Network Security v1 API - Class AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod (1.0.0-beta01)

public sealed class AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod : IMessage<AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod>, IEquatable<AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod>, IDeepCloneable<AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Security v1 API class AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod.

Describes a set of MCP methods to match against.

Inheritance

object > AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod

Namespace

Google.Cloud.NetworkSecurity.V1

Assembly

Google.Cloud.NetworkSecurity.V1.dll

Constructors

MCPMethod()

public MCPMethod()

MCPMethod(MCPMethod)

public MCPMethod(AuthzPolicy.Types.AuthzRule.Types.To.Types.RequestOperation.Types.MCPMethod other)
Parameter
Name Description
other AuthzPolicyTypesAuthzRuleTypesToTypesRequestOperationTypesMCPMethod

Properties

Name

public string Name { get; set; }

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.
Property Value
Type Description
string

Params

public RepeatedField<AuthzPolicy.Types.AuthzRule.Types.StringMatch> Params { get; }

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.

Property Value
Type Description
RepeatedFieldAuthzPolicyTypesAuthzRuleTypesStringMatch