Skip to content

Commit e673e80

Browse files
yoshi-automationsofisl
authored andcommitted
feat(servicenetworking): update the API
#### servicenetworking:v1beta The following keys were changed: - schemas.PolicyBinding.properties.role.description #### servicenetworking:v1 The following keys were added: - schemas.AddSubnetworkRequest.properties.skipRequestedAddressValidation.description - schemas.AddSubnetworkRequest.properties.skipRequestedAddressValidation.type The following keys were changed: - schemas.PolicyBinding.properties.role.description
1 parent 144ba15 commit e673e80

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

discovery/servicenetworking-v1.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@
10291029
}
10301030
}
10311031
},
1032-
"revision": "20240716",
1032+
"revision": "20240820",
10331033
"rootUrl": "https://servicenetworking.googleapis.com/",
10341034
"schemas": {
10351035
"AddDnsRecordSetMetadata": {
@@ -1211,6 +1211,10 @@
12111211
},
12121212
"type": "array"
12131213
},
1214+
"skipRequestedAddressValidation": {
1215+
"description": "Optional. Skips validating if the requested_address is in use by SN VPC’s peering group. Compute Engine will still perform this check and fail the request if the requested_address is in use. Note that Compute Engine does not check for the existence of dynamic routes when performing this check. Caller of this API should make sure that there are no dynamic routes overlapping with the requested_address/prefix_length IP address range otherwise the created subnet could cause misrouting.",
1216+
"type": "boolean"
1217+
},
12141218
"subnetwork": {
12151219
"description": "Required. A name for the new subnet. For information about the naming requirements, see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.",
12161220
"type": "string"
@@ -3219,7 +3223,7 @@
32193223
"type": "string"
32203224
},
32213225
"role": {
3222-
"description": "Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/compute.xpnAdmin' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project",
3226+
"description": "Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/tpu.xpnAgent' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project - 'roles/monitoring.viewer' applied on the shared VPC host project",
32233227
"type": "string"
32243228
}
32253229
},

discovery/servicenetworking-v1beta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
}
308308
}
309309
},
310-
"revision": "20240716",
310+
"revision": "20240820",
311311
"rootUrl": "https://servicenetworking.googleapis.com/",
312312
"schemas": {
313313
"AddDnsRecordSetMetadata": {
@@ -2243,7 +2243,7 @@
22432243
"type": "string"
22442244
},
22452245
"role": {
2246-
"description": "Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/compute.xpnAdmin' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project",
2246+
"description": "Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/tpu.xpnAgent' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project - 'roles/monitoring.viewer' applied on the shared VPC host project",
22472247
"type": "string"
22482248
}
22492249
},

src/apis/servicenetworking/v1.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ export namespace servicenetworking_v1 {
275275
* Optional. A list of secondary IP ranges to be created within the new subnetwork.
276276
*/
277277
secondaryIpRangeSpecs?: Schema$SecondaryIpRangeSpec[];
278+
/**
279+
* Optional. Skips validating if the requested_address is in use by SN VPC’s peering group. Compute Engine will still perform this check and fail the request if the requested_address is in use. Note that Compute Engine does not check for the existence of dynamic routes when performing this check. Caller of this API should make sure that there are no dynamic routes overlapping with the requested_address/prefix_length IP address range otherwise the created subnet could cause misrouting.
280+
*/
281+
skipRequestedAddressValidation?: boolean | null;
278282
/**
279283
* Required. A name for the new subnet. For information about the naming requirements, see [subnetwork](/compute/docs/reference/rest/v1/subnetworks) in the Compute API documentation.
280284
*/
@@ -1670,7 +1674,7 @@ export namespace servicenetworking_v1 {
16701674
*/
16711675
member?: string | null;
16721676
/**
1673-
* Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/compute.xpnAdmin' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project
1677+
* Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/tpu.xpnAgent' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project - 'roles/monitoring.viewer' applied on the shared VPC host project
16741678
*/
16751679
role?: string | null;
16761680
}

src/apis/servicenetworking/v1beta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ export namespace servicenetworking_v1beta {
14691469
*/
14701470
member?: string | null;
14711471
/**
1472-
* Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/compute.xpnAdmin' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project
1472+
* Required. Role to apply. Only allowlisted roles can be used at the specified granularity. The role must be one of the following: - 'roles/container.hostServiceAgentUser' applied on the shared VPC host project - 'roles/compute.securityAdmin' applied on the shared VPC host project - 'roles/compute.networkAdmin' applied on the shared VPC host project - 'roles/tpu.xpnAgent' applied on the shared VPC host project - 'roles/dns.admin' applied on the shared VPC host project - 'roles/logging.admin' applied on the shared VPC host project - 'roles/monitoring.viewer' applied on the shared VPC host project
14731473
*/
14741474
role?: string | null;
14751475
}

0 commit comments

Comments
 (0)