Class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcpMethod
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcpMethod
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networksecurity_v1/classes.rb,
lib/google/apis/networksecurity_v1/representations.rb,
lib/google/apis/networksecurity_v1/representations.rb
Overview
Describes a set of MCP methods to match against.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
-
#params ⇒ Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthzPolicyAuthzRuleToRequestOperationMcpMethod
constructor
A new instance of AuthzPolicyAuthzRuleToRequestOperationMcpMethod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthzPolicyAuthzRuleToRequestOperationMcpMethod
Returns a new instance of AuthzPolicyAuthzRuleToRequestOperationMcpMethod.
789 790 791 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 789 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The MCP method to match against. Allowed values are as follows: 1.
tools, prompts, resources - these will match against all sub methods
under the respective methods. 2. prompts/list, tools/list, resources/list
, resources/templates/list 3. prompts/get, tools/call, resources/
subscribe, resources/unsubscribe, resources/read Params cannot be
specified for categories 1 and 2.
Corresponds to the JSON property name
779 780 781 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 779 def name @name end |
#params ⇒ Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch>
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.
Corresponds to the JSON property params
787 788 789 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 787 def params @params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
794 795 796 797 |
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 794 def update!(**args) @name = args[:name] if args.key?(:name) @params = args[:params] if args.key?(:params) end |