Reference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector.
An allowed method or permission of a service specified in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#method
defmethod()->::String
Returns
(::String) — Value for method should be a valid method name for the corresponding
service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
If * used as value for method, then ALL methods and permissions are
allowed.
Note: The following fields are mutually exclusive: method, permission. If a field in that set is populated, all other fields in the set will automatically be cleared.
#method=
defmethod=(value)->::String
Parameter
value (::String) — Value for method should be a valid method name for the corresponding
service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
If * used as value for method, then ALL methods and permissions are
allowed.
Note: The following fields are mutually exclusive: method, permission. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Value for method should be a valid method name for the corresponding
service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
If * used as value for method, then ALL methods and permissions are
allowed.
Note: The following fields are mutually exclusive: method, permission. If a field in that set is populated, all other fields in the set will automatically be cleared.
#permission
defpermission()->::String
Returns
(::String) — Value for permission should be a valid Cloud IAM permission for the
corresponding service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
Note: The following fields are mutually exclusive: permission, method. If a field in that set is populated, all other fields in the set will automatically be cleared.
#permission=
defpermission=(value)->::String
Parameter
value (::String) — Value for permission should be a valid Cloud IAM permission for the
corresponding service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
Note: The following fields are mutually exclusive: permission, method. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Value for permission should be a valid Cloud IAM permission for the
corresponding service_name in [ApiOperation]
[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation].
Note: The following fields are mutually exclusive: permission, method. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Access Context Manager V1 API - Class Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector (v0.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.0 (latest)](/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.10.1](/ruby/docs/reference/google-identity-access_context_manager-v1/0.10.1/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.9.0](/ruby/docs/reference/google-identity-access_context_manager-v1/0.9.0/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.8.2](/ruby/docs/reference/google-identity-access_context_manager-v1/0.8.2/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.7.2](/ruby/docs/reference/google-identity-access_context_manager-v1/0.7.2/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.6.0](/ruby/docs/reference/google-identity-access_context_manager-v1/0.6.0/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.5.2](/ruby/docs/reference/google-identity-access_context_manager-v1/0.5.2/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.4.0](/ruby/docs/reference/google-identity-access_context_manager-v1/0.4.0/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.3.0](/ruby/docs/reference/google-identity-access_context_manager-v1/0.3.0/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.2.0](/ruby/docs/reference/google-identity-access_context_manager-v1/0.2.0/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector)\n- [0.1.2](/ruby/docs/reference/google-identity-access_context_manager-v1/0.1.2/Google-Identity-AccessContextManager-V1-ServicePerimeterConfig-MethodSelector) \nReference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::ServicePerimeterConfig::MethodSelector.\n\nAn allowed method or permission of a service specified in \\[ApiOperation\\]\n\\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\]. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #method\n\n def method() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Value for `method` should be a valid method name for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\]. If `*` used as value for `method`, then ALL methods and permissions are allowed.\n\n\n Note: The following fields are mutually exclusive: `method`, `permission`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #method=\n\n def method=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Value for `method` should be a valid method name for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\]. If `*` used as value for `method`, then ALL methods and permissions are allowed.\n\n\nNote: The following fields are mutually exclusive: `method`, `permission`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Value for `method` should be a valid method name for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\]. If `*` used as value for `method`, then ALL methods and permissions are allowed.\n\n\n Note: The following fields are mutually exclusive: `method`, `permission`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #permission\n\n def permission() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Value for `permission` should be a valid Cloud IAM permission for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\].\n\n\n Note: The following fields are mutually exclusive: `permission`, `method`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #permission=\n\n def permission=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Value for `permission` should be a valid Cloud IAM permission for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\].\n\n\nNote: The following fields are mutually exclusive: `permission`, `method`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Value for `permission` should be a valid Cloud IAM permission for the corresponding `service_name` in \\[ApiOperation\\] \\[google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation\\].\n\n\n Note: The following fields are mutually exclusive: `permission`, `method`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]