Reference documentation and code samples for the Network Security V1 API class Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::To::RequestOperation::MCPMethod.
Describes a set of MCP methods to match against.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#name
def name() -> ::String-
(::String) —
Required. The MCP method to match against. Allowed values are as follows:
tools,prompts,resources- these will match against all sub methods under the respective methods.prompts/list,tools/list,resources/list,resources/templates/listprompts/get,tools/call,resources/subscribe,resources/unsubscribe,resources/readParams cannot be specified for categories 1 and 2.
#name=
def name=(value) -> ::String-
value (::String) —
Required. The MCP method to match against. Allowed values are as follows:
tools,prompts,resources- these will match against all sub methods under the respective methods.prompts/list,tools/list,resources/list,resources/templates/listprompts/get,tools/call,resources/subscribe,resources/unsubscribe,resources/readParams cannot be specified for categories 1 and 2.
-
(::String) —
Required. The MCP method to match against. Allowed values are as follows:
tools,prompts,resources- these will match against all sub methods under the respective methods.prompts/list,tools/list,resources/list,resources/templates/listprompts/get,tools/call,resources/subscribe,resources/unsubscribe,resources/readParams cannot be specified for categories 1 and 2.
#params
def params() -> ::Array<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch>- (::Array<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch>) — Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
#params=
def params=(value) -> ::Array<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch>- value (::Array<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch>) — Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
- (::Array<::Google::Cloud::NetworkSecurity::V1::AuthzPolicy::AuthzRule::StringMatch>) — Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.