Skip to content

Commit 867b6aa

Browse files
1 parent 7444d07 commit 867b6aa

File tree

11 files changed

+335
-20
lines changed

11 files changed

+335
-20
lines changed

clients/google-api-services-networksecurity/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-networksecurity</artifactId>
25-
<version>v1-rev20260226-2.0.0</version>
25+
<version>v1-rev20260323-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260226-2.0.0'
38+
implementation 'com.google.apis:google-api-services-networksecurity:v1-rev20260323-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/NetworkSecurity.java

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5266,10 +5266,14 @@ public Get set(String parameterName, Object value) {
52665266
}
52675267
}
52685268
/**
5269-
* Lists information about the supported locations for this service. This method can be called in
5270-
* two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
5271-
* visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
5272-
* public locations as well as private or other locations specifically visible to the project.
5269+
* Lists information about the supported locations for this service. This method lists locations
5270+
* based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global
5271+
* locations**: If `name` is empty, the method lists the public locations available to all projects.
5272+
* * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method
5273+
* lists locations visible to that specific project. This includes public, private, or other
5274+
* project-specific locations enabled for the project. For gRPC and client library implementations,
5275+
* the resource name is passed as the `name` field. For direct service calls, the resource name is
5276+
* incorporated into the request path based on the specific service implementation and version.
52735277
*
52745278
* Create a request for the method "locations.list".
52755279
*
@@ -5293,10 +5297,15 @@ public class List extends NetworkSecurityRequest<com.google.api.services.network
52935297
java.util.regex.Pattern.compile("^projects/[^/]+$");
52945298

52955299
/**
5296-
* Lists information about the supported locations for this service. This method can be called in
5297-
* two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-
5298-
* visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include
5299-
* public locations as well as private or other locations specifically visible to the project.
5300+
* Lists information about the supported locations for this service. This method lists locations
5301+
* based on the resource scope provided in the [ListLocationsRequest.name] field: * **Global
5302+
* locations**: If `name` is empty, the method lists the public locations available to all
5303+
* projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`,
5304+
* the method lists locations visible to that specific project. This includes public, private, or
5305+
* other project-specific locations enabled for the project. For gRPC and client library
5306+
* implementations, the resource name is passed as the `name` field. For direct service calls, the
5307+
* resource name is incorporated into the request path based on the specific service
5308+
* implementation and version.
53005309
*
53015310
* Create a request for the method "locations.list".
53025311
*

clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicy.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ public final class AuthzPolicy extends com.google.api.client.json.GenericJson {
9494
@com.google.api.client.util.Key
9595
private java.lang.String name;
9696

97+
/**
98+
* Optional. Immutable. Defines the type of authorization being performed. If not specified,
99+
* `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
100+
* The value may be {@code null}.
101+
*/
102+
@com.google.api.client.util.Key
103+
private java.lang.String policyProfile;
104+
97105
/**
98106
* Required. Specifies the set of resources to which this policy should be applied to.
99107
* The value may be {@code null}.
@@ -257,6 +265,25 @@ public AuthzPolicy setName(java.lang.String name) {
257265
return this;
258266
}
259267

268+
/**
269+
* Optional. Immutable. Defines the type of authorization being performed. If not specified,
270+
* `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
271+
* @return value or {@code null} for none
272+
*/
273+
public java.lang.String getPolicyProfile() {
274+
return policyProfile;
275+
}
276+
277+
/**
278+
* Optional. Immutable. Defines the type of authorization being performed. If not specified,
279+
* `REQUEST_AUTHZ` is applied. This field cannot be changed once AuthzPolicy is created.
280+
* @param policyProfile policyProfile or {@code null} for none
281+
*/
282+
public AuthzPolicy setPolicyProfile(java.lang.String policyProfile) {
283+
this.policyProfile = policyProfile;
284+
return this;
285+
}
286+
260287
/**
261288
* Required. Specifies the set of resources to which this policy should be applied to.
262289
* @return value or {@code null} for none

clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyAuthzRuleToRequestOperation.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ public final class AuthzPolicyAuthzRuleToRequestOperation extends com.google.api
5151
com.google.api.client.util.Data.nullOf(AuthzPolicyAuthzRuleStringMatch.class);
5252
}
5353

54+
/**
55+
* Optional. Defines the MCP protocol attributes to match on. If the MCP payload in the request
56+
* body cannot be successfully parsed, the request will be denied. This field can be set only for
57+
* AuthzPolicies targeting AgentGateway resources.
58+
* The value may be {@code null}.
59+
*/
60+
@com.google.api.client.util.Key
61+
private AuthzPolicyAuthzRuleToRequestOperationMCP mcp;
62+
5463
/**
5564
* Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name
5665
* (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case
@@ -115,6 +124,27 @@ public AuthzPolicyAuthzRuleToRequestOperation setHosts(java.util.List<AuthzPolic
115124
return this;
116125
}
117126

127+
/**
128+
* Optional. Defines the MCP protocol attributes to match on. If the MCP payload in the request
129+
* body cannot be successfully parsed, the request will be denied. This field can be set only for
130+
* AuthzPolicies targeting AgentGateway resources.
131+
* @return value or {@code null} for none
132+
*/
133+
public AuthzPolicyAuthzRuleToRequestOperationMCP getMcp() {
134+
return mcp;
135+
}
136+
137+
/**
138+
* Optional. Defines the MCP protocol attributes to match on. If the MCP payload in the request
139+
* body cannot be successfully parsed, the request will be denied. This field can be set only for
140+
* AuthzPolicies targeting AgentGateway resources.
141+
* @param mcp mcp or {@code null} for none
142+
*/
143+
public AuthzPolicyAuthzRuleToRequestOperation setMcp(AuthzPolicyAuthzRuleToRequestOperationMCP mcp) {
144+
this.mcp = mcp;
145+
return this;
146+
}
147+
118148
/**
119149
* Optional. A list of HTTP methods to match against. Each entry must be a valid HTTP method name
120150
* (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only allows exact match and is always case
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.networksecurity.v1.model;
18+
19+
/**
20+
* Describes a set of MCP protocol attributes to match against for a given MCP request.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Network Security API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AuthzPolicyAuthzRuleToRequestOperationMCP extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: *
34+
* initialize * completion/ * logging/ * notifications/ * ping Defaults to
35+
* SKIP_BASE_PROTOCOL_METHODS if not specified.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String baseProtocolMethodsOption;
40+
41+
/**
42+
* Optional. A list of MCP methods and associated parameters to match on. It is recommended to use
43+
* this field to match on tools, prompts and resource accesses while setting the
44+
* baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol
45+
* methods. Limited to 10 MCP methods per Authorization Policy.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.util.List<AuthzPolicyAuthzRuleToRequestOperationMCPMethod> methods;
50+
51+
/**
52+
* Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: *
53+
* initialize * completion/ * logging/ * notifications/ * ping Defaults to
54+
* SKIP_BASE_PROTOCOL_METHODS if not specified.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getBaseProtocolMethodsOption() {
58+
return baseProtocolMethodsOption;
59+
}
60+
61+
/**
62+
* Optional. If specified, matches on the MCP protocol’s non-access specific methods namely: *
63+
* initialize * completion/ * logging/ * notifications/ * ping Defaults to
64+
* SKIP_BASE_PROTOCOL_METHODS if not specified.
65+
* @param baseProtocolMethodsOption baseProtocolMethodsOption or {@code null} for none
66+
*/
67+
public AuthzPolicyAuthzRuleToRequestOperationMCP setBaseProtocolMethodsOption(java.lang.String baseProtocolMethodsOption) {
68+
this.baseProtocolMethodsOption = baseProtocolMethodsOption;
69+
return this;
70+
}
71+
72+
/**
73+
* Optional. A list of MCP methods and associated parameters to match on. It is recommended to use
74+
* this field to match on tools, prompts and resource accesses while setting the
75+
* baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol
76+
* methods. Limited to 10 MCP methods per Authorization Policy.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.util.List<AuthzPolicyAuthzRuleToRequestOperationMCPMethod> getMethods() {
80+
return methods;
81+
}
82+
83+
/**
84+
* Optional. A list of MCP methods and associated parameters to match on. It is recommended to use
85+
* this field to match on tools, prompts and resource accesses while setting the
86+
* baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol
87+
* methods. Limited to 10 MCP methods per Authorization Policy.
88+
* @param methods methods or {@code null} for none
89+
*/
90+
public AuthzPolicyAuthzRuleToRequestOperationMCP setMethods(java.util.List<AuthzPolicyAuthzRuleToRequestOperationMCPMethod> methods) {
91+
this.methods = methods;
92+
return this;
93+
}
94+
95+
@Override
96+
public AuthzPolicyAuthzRuleToRequestOperationMCP set(String fieldName, Object value) {
97+
return (AuthzPolicyAuthzRuleToRequestOperationMCP) super.set(fieldName, value);
98+
}
99+
100+
@Override
101+
public AuthzPolicyAuthzRuleToRequestOperationMCP clone() {
102+
return (AuthzPolicyAuthzRuleToRequestOperationMCP) super.clone();
103+
}
104+
105+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.networksecurity.v1.model;
18+
19+
/**
20+
* Describes a set of MCP methods to match against.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Network Security API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AuthzPolicyAuthzRuleToRequestOperationMCPMethod extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The MCP method to match against. Allowed values are as follows: 1. `tools`,
34+
* `prompts`, `resources` - these will match against all sub methods under the respective methods.
35+
* 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`,
36+
* `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be
37+
* specified for categories 1 and 2.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.String name;
42+
43+
/**
44+
* Optional. A list of MCP method parameters to match against. The match can be one of exact,
45+
* prefix, suffix, or contains (substring match). Matches are always case sensitive unless the
46+
* ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.util.List<AuthzPolicyAuthzRuleStringMatch> params;
51+
52+
static {
53+
// hack to force ProGuard to consider AuthzPolicyAuthzRuleStringMatch used, since otherwise it would be stripped out
54+
// see https://github.com/google/google-api-java-client/issues/543
55+
com.google.api.client.util.Data.nullOf(AuthzPolicyAuthzRuleStringMatch.class);
56+
}
57+
58+
/**
59+
* Required. The MCP method to match against. Allowed values are as follows: 1. `tools`,
60+
* `prompts`, `resources` - these will match against all sub methods under the respective methods.
61+
* 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`,
62+
* `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be
63+
* specified for categories 1 and 2.
64+
* @return value or {@code null} for none
65+
*/
66+
public java.lang.String getName() {
67+
return name;
68+
}
69+
70+
/**
71+
* Required. The MCP method to match against. Allowed values are as follows: 1. `tools`,
72+
* `prompts`, `resources` - these will match against all sub methods under the respective methods.
73+
* 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`,
74+
* `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be
75+
* specified for categories 1 and 2.
76+
* @param name name or {@code null} for none
77+
*/
78+
public AuthzPolicyAuthzRuleToRequestOperationMCPMethod setName(java.lang.String name) {
79+
this.name = name;
80+
return this;
81+
}
82+
83+
/**
84+
* Optional. A list of MCP method parameters to match against. The match can be one of exact,
85+
* prefix, suffix, or contains (substring match). Matches are always case sensitive unless the
86+
* ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
87+
* @return value or {@code null} for none
88+
*/
89+
public java.util.List<AuthzPolicyAuthzRuleStringMatch> getParams() {
90+
return params;
91+
}
92+
93+
/**
94+
* Optional. A list of MCP method parameters to match against. The match can be one of exact,
95+
* prefix, suffix, or contains (substring match). Matches are always case sensitive unless the
96+
* ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
97+
* @param params params or {@code null} for none
98+
*/
99+
public AuthzPolicyAuthzRuleToRequestOperationMCPMethod setParams(java.util.List<AuthzPolicyAuthzRuleStringMatch> params) {
100+
this.params = params;
101+
return this;
102+
}
103+
104+
@Override
105+
public AuthzPolicyAuthzRuleToRequestOperationMCPMethod set(String fieldName, Object value) {
106+
return (AuthzPolicyAuthzRuleToRequestOperationMCPMethod) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public AuthzPolicyAuthzRuleToRequestOperationMCPMethod clone() {
111+
return (AuthzPolicyAuthzRuleToRequestOperationMCPMethod) super.clone();
112+
}
113+
114+
}

clients/google-api-services-networksecurity/v1/2.0.0/com/google/api/services/networksecurity/v1/model/AuthzPolicyTarget.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public final class AuthzPolicyTarget extends com.google.api.client.json.GenericJson {
3131

3232
/**
33-
* Required. All gateways and forwarding rules referenced by this policy and extensions must share
33+
* Optional. All gateways and forwarding rules referenced by this policy and extensions must share
3434
* the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`.
3535
* For more information, refer to [Backend services overview](https://cloud.google.com/load-
3636
* balancing/docs/backend-service).
@@ -47,7 +47,7 @@ public final class AuthzPolicyTarget extends com.google.api.client.json.GenericJ
4747
private java.util.List<java.lang.String> resources;
4848

4949
/**
50-
* Required. All gateways and forwarding rules referenced by this policy and extensions must share
50+
* Optional. All gateways and forwarding rules referenced by this policy and extensions must share
5151
* the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`.
5252
* For more information, refer to [Backend services overview](https://cloud.google.com/load-
5353
* balancing/docs/backend-service).
@@ -58,7 +58,7 @@ public java.lang.String getLoadBalancingScheme() {
5858
}
5959

6060
/**
61-
* Required. All gateways and forwarding rules referenced by this policy and extensions must share
61+
* Optional. All gateways and forwarding rules referenced by this policy and extensions must share
6262
* the same load balancing scheme. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`.
6363
* For more information, refer to [Backend services overview](https://cloud.google.com/load-
6464
* balancing/docs/backend-service).

0 commit comments

Comments
 (0)