Skip to content

Commit ed49cac

Browse files
feat(networkconnectivity): update the API
#### networkconnectivity:v1alpha1 The following keys were changed: - schemas.Hub.properties.state.enum - schemas.Hub.properties.state.enumDescriptions - schemas.Migration.properties.target.description - schemas.Spoke.properties.state.enum - schemas.Spoke.properties.state.enumDescriptions #### networkconnectivity:v1 The following keys were added: - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.description - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.flatPath - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.httpMethod - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.id - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameterOrder - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameters.name.description - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameters.name.location - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameters.name.required - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.parameters.name.type - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.path - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.request.$ref - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.response.$ref - resources.projects.resources.locations.resources.global.resources.hubs.methods.acceptSpokeUpdate.scopes - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.description - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.flatPath - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.httpMethod - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.id - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameterOrder - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameters.name.description - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameters.name.location - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameters.name.pattern - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameters.name.required - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.parameters.name.type - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.path - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.request.$ref - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.response.$ref - resources.projects.resources.locations.resources.global.resources.hubs.methods.rejectSpokeUpdate.scopes - schemas.AcceptSpokeUpdateRequest.description - schemas.AcceptSpokeUpdateRequest.id - schemas.AcceptSpokeUpdateRequest.properties.requestId.description - schemas.AcceptSpokeUpdateRequest.properties.requestId.type - schemas.AcceptSpokeUpdateRequest.properties.spokeEtag.description - schemas.AcceptSpokeUpdateRequest.properties.spokeEtag.type - schemas.AcceptSpokeUpdateRequest.properties.spokeUri.description - schemas.AcceptSpokeUpdateRequest.properties.spokeUri.type - schemas.AcceptSpokeUpdateRequest.type - schemas.LinkedProducerVpcNetwork.properties.proposedIncludeExportRanges.description - schemas.LinkedProducerVpcNetwork.properties.proposedIncludeExportRanges.items.type - schemas.LinkedProducerVpcNetwork.properties.proposedIncludeExportRanges.type - schemas.LinkedVpcNetwork.properties.proposedIncludeExportRanges.description - schemas.LinkedVpcNetwork.properties.proposedIncludeExportRanges.items.type - schemas.LinkedVpcNetwork.properties.proposedIncludeExportRanges.type - schemas.RejectSpokeUpdateRequest.description - schemas.RejectSpokeUpdateRequest.id - schemas.RejectSpokeUpdateRequest.properties.details.description - schemas.RejectSpokeUpdateRequest.properties.details.type - schemas.RejectSpokeUpdateRequest.properties.requestId.description - schemas.RejectSpokeUpdateRequest.properties.requestId.type - schemas.RejectSpokeUpdateRequest.properties.spokeEtag.description - schemas.RejectSpokeUpdateRequest.properties.spokeEtag.type - schemas.RejectSpokeUpdateRequest.properties.spokeUri.description - schemas.RejectSpokeUpdateRequest.properties.spokeUri.type - schemas.RejectSpokeUpdateRequest.type - schemas.Spoke.properties.etag.description - schemas.Spoke.properties.etag.type - schemas.Spoke.properties.fieldPathsPendingUpdate.description - schemas.Spoke.properties.fieldPathsPendingUpdate.items.type - schemas.Spoke.properties.fieldPathsPendingUpdate.type The following keys were changed: - resources.projects.resources.locations.resources.global.resources.policyBasedRoutes.methods.create.parameters.policyBasedRouteId.description - resources.projects.resources.locations.resources.regionalEndpoints.methods.create.parameters.regionalEndpointId.description - schemas.Group.properties.state.enum - schemas.Group.properties.state.enumDescriptions - schemas.Hub.properties.exportPsc.description - schemas.Hub.properties.state.enum - schemas.Hub.properties.state.enumDescriptions - schemas.Migration.properties.target.description - schemas.RegionalEndpoint.properties.name.description - schemas.Route.properties.state.enum - schemas.Route.properties.state.enumDescriptions - schemas.RouteTable.properties.state.enum - schemas.RouteTable.properties.state.enumDescriptions - schemas.Spoke.properties.state.enum - schemas.Spoke.properties.state.enumDescriptions - schemas.SpokeStateCount.properties.state.enum - schemas.SpokeStateCount.properties.state.enumDescriptions
1 parent 33013c4 commit ed49cac

File tree

4 files changed

+441
-30
lines changed

4 files changed

+441
-30
lines changed

discovery/networkconnectivity-v1.json

Lines changed: 153 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,34 @@
209209
"https://www.googleapis.com/auth/cloud-platform"
210210
]
211211
},
212+
"acceptSpokeUpdate": {
213+
"description": "Accepts a proposal to update a Network Connectivity Center spoke in a hub.",
214+
"flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:acceptSpokeUpdate",
215+
"httpMethod": "POST",
216+
"id": "networkconnectivity.projects.locations.global.hubs.acceptSpokeUpdate",
217+
"parameterOrder": [
218+
"name"
219+
],
220+
"parameters": {
221+
"name": {
222+
"description": "Required. The name of the hub to accept spoke update.",
223+
"location": "path",
224+
"pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$",
225+
"required": true,
226+
"type": "string"
227+
}
228+
},
229+
"path": "v1/{+name}:acceptSpokeUpdate",
230+
"request": {
231+
"$ref": "AcceptSpokeUpdateRequest"
232+
},
233+
"response": {
234+
"$ref": "GoogleLongrunningOperation"
235+
},
236+
"scopes": [
237+
"https://www.googleapis.com/auth/cloud-platform"
238+
]
239+
},
212240
"create": {
213241
"description": "Creates a new Network Connectivity Center hub in the specified project.",
214242
"flatPath": "v1/projects/{projectsId}/locations/global/hubs",
@@ -564,6 +592,34 @@
564592
"https://www.googleapis.com/auth/cloud-platform"
565593
]
566594
},
595+
"rejectSpokeUpdate": {
596+
"description": "Rejects a proposal to update a Network Connectivity Center spoke in a hub.",
597+
"flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:rejectSpokeUpdate",
598+
"httpMethod": "POST",
599+
"id": "networkconnectivity.projects.locations.global.hubs.rejectSpokeUpdate",
600+
"parameterOrder": [
601+
"name"
602+
],
603+
"parameters": {
604+
"name": {
605+
"description": "Required. The name of the hub to reject spoke update.",
606+
"location": "path",
607+
"pattern": "^projects/[^/]+/locations/global/hubs/[^/]+$",
608+
"required": true,
609+
"type": "string"
610+
}
611+
},
612+
"path": "v1/{+name}:rejectSpokeUpdate",
613+
"request": {
614+
"$ref": "RejectSpokeUpdateRequest"
615+
},
616+
"response": {
617+
"$ref": "GoogleLongrunningOperation"
618+
},
619+
"scopes": [
620+
"https://www.googleapis.com/auth/cloud-platform"
621+
]
622+
},
567623
"setIamPolicy": {
568624
"description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
569625
"flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}:setIamPolicy",
@@ -996,7 +1052,7 @@
9961052
"type": "string"
9971053
},
9981054
"policyBasedRouteId": {
999-
"description": "Required. Unique id for the policy-based route to create.",
1055+
"description": "Required. Unique id for the policy-based route to create. Provided by the client when the resource is created. The name must comply with https://google.aip.dev/122#resource-id-segments. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.",
10001056
"location": "query",
10011057
"type": "string"
10021058
},
@@ -1533,7 +1589,7 @@
15331589
"type": "string"
15341590
},
15351591
"regionalEndpointId": {
1536-
"description": "Required. Unique id of the Regional Endpoint to be created.",
1592+
"description": "Required. Unique id of the Regional Endpoint to be created. @pattern: ^[-a-z0-9](?:[-a-z0-9]{0,44})[a-z0-9]$",
15371593
"location": "query",
15381594
"type": "string"
15391595
},
@@ -2863,7 +2919,7 @@
28632919
}
28642920
}
28652921
},
2866-
"revision": "20250110",
2922+
"revision": "20250305",
28672923
"rootUrl": "https://networkconnectivity.googleapis.com/",
28682924
"schemas": {
28692925
"AcceptHubSpokeRequest": {
@@ -2892,6 +2948,25 @@
28922948
},
28932949
"type": "object"
28942950
},
2951+
"AcceptSpokeUpdateRequest": {
2952+
"description": "The request for HubService.AcceptSpokeUpdate.",
2953+
"id": "AcceptSpokeUpdateRequest",
2954+
"properties": {
2955+
"requestId": {
2956+
"description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
2957+
"type": "string"
2958+
},
2959+
"spokeEtag": {
2960+
"description": "Required. The etag of the spoke to accept update.",
2961+
"type": "string"
2962+
},
2963+
"spokeUri": {
2964+
"description": "Required. The URI of the spoke to accept update.",
2965+
"type": "string"
2966+
}
2967+
},
2968+
"type": "object"
2969+
},
28952970
"AuditConfig": {
28962971
"description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:[email protected]\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:[email protected]\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.",
28972972
"id": "AuditConfig",
@@ -3380,7 +3455,8 @@
33803455
"REJECTING",
33813456
"UPDATING",
33823457
"INACTIVE",
3383-
"OBSOLETE"
3458+
"OBSOLETE",
3459+
"FAILED"
33843460
],
33853461
"enumDescriptions": [
33863462
"No state information available",
@@ -3391,7 +3467,8 @@
33913467
"The resource's reject operation is in progress.",
33923468
"The resource's update operation is in progress.",
33933469
"The resource is inactive.",
3394-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
3470+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
3471+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
33953472
],
33963473
"readOnly": true,
33973474
"type": "string"
@@ -3425,7 +3502,7 @@
34253502
"type": "string"
34263503
},
34273504
"exportPsc": {
3428-
"description": "Optional. Whether Private Service Connect transitivity is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.",
3505+
"description": "Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.",
34293506
"type": "boolean"
34303507
},
34313508
"labels": {
@@ -3496,7 +3573,8 @@
34963573
"REJECTING",
34973574
"UPDATING",
34983575
"INACTIVE",
3499-
"OBSOLETE"
3576+
"OBSOLETE",
3577+
"FAILED"
35003578
],
35013579
"enumDescriptions": [
35023580
"No state information available",
@@ -3507,7 +3585,8 @@
35073585
"The resource's reject operation is in progress.",
35083586
"The resource's update operation is in progress.",
35093587
"The resource is inactive.",
3510-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
3588+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
3589+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
35113590
],
35123591
"readOnly": true,
35133592
"type": "string"
@@ -3730,6 +3809,13 @@
37303809
"readOnly": true,
37313810
"type": "string"
37323811
},
3812+
"proposedIncludeExportRanges": {
3813+
"description": "Optional. The proposed include export IP ranges waiting for hub administration's approval.",
3814+
"items": {
3815+
"type": "string"
3816+
},
3817+
"type": "array"
3818+
},
37333819
"serviceConsumerVpcSpoke": {
37343820
"description": "Output only. The Service Consumer Network spoke.",
37353821
"readOnly": true,
@@ -3794,6 +3880,13 @@
37943880
"readOnly": true,
37953881
"type": "array"
37963882
},
3883+
"proposedIncludeExportRanges": {
3884+
"description": "Optional. The proposed include export IP ranges waiting for hub administration's approval.",
3885+
"items": {
3886+
"type": "string"
3887+
},
3888+
"type": "array"
3889+
},
37973890
"uri": {
37983891
"description": "Required. The URI of the VPC network resource.",
37993892
"type": "string"
@@ -4241,7 +4334,7 @@
42414334
"type": "string"
42424335
},
42434336
"target": {
4244-
"description": "Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. The resource For example: /projects/{project}/regions/{region}/subnetworks/{subnet}",
4337+
"description": "Immutable. Resource path of the target resource. The target project can be different, as in the cases when migrating to peer networks. For example: /projects/{project}/regions/{region}/subnetworks/{subnet}",
42454338
"type": "string"
42464339
}
42474340
},
@@ -4756,7 +4849,7 @@
47564849
"type": "object"
47574850
},
47584851
"name": {
4759-
"description": "Output only. The name of a RegionalEndpoint. Format: `projects/{project}/locations/{location}/regionalEndpoints/{regional_endpoint}`.",
4852+
"description": "Output only. The name of a RegionalEndpoint. Pattern: `projects/{project}/locations/{location}/regionalEndpoints/^[-a-z0-9](?:[-a-z0-9]{0,44})[a-z0-9]$`.",
47604853
"readOnly": true,
47614854
"type": "string"
47624855
},
@@ -4816,6 +4909,29 @@
48164909
},
48174910
"type": "object"
48184911
},
4912+
"RejectSpokeUpdateRequest": {
4913+
"description": "The request for HubService.RejectSpokeUpdate.",
4914+
"id": "RejectSpokeUpdateRequest",
4915+
"properties": {
4916+
"details": {
4917+
"description": "Optional. Additional information provided by the hub administrator.",
4918+
"type": "string"
4919+
},
4920+
"requestId": {
4921+
"description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
4922+
"type": "string"
4923+
},
4924+
"spokeEtag": {
4925+
"description": "Required. The etag of the spoke to reject update.",
4926+
"type": "string"
4927+
},
4928+
"spokeUri": {
4929+
"description": "Required. The URI of the spoke to reject update.",
4930+
"type": "string"
4931+
}
4932+
},
4933+
"type": "object"
4934+
},
48194935
"Route": {
48204936
"description": "A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes.",
48214937
"id": "Route",
@@ -4887,7 +5003,8 @@
48875003
"REJECTING",
48885004
"UPDATING",
48895005
"INACTIVE",
4890-
"OBSOLETE"
5006+
"OBSOLETE",
5007+
"FAILED"
48915008
],
48925009
"enumDescriptions": [
48935010
"No state information available",
@@ -4898,7 +5015,8 @@
48985015
"The resource's reject operation is in progress.",
48995016
"The resource's update operation is in progress.",
49005017
"The resource is inactive.",
4901-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
5018+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
5019+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
49025020
],
49035021
"readOnly": true,
49045022
"type": "string"
@@ -4969,7 +5087,8 @@
49695087
"REJECTING",
49705088
"UPDATING",
49715089
"INACTIVE",
4972-
"OBSOLETE"
5090+
"OBSOLETE",
5091+
"FAILED"
49735092
],
49745093
"enumDescriptions": [
49755094
"No state information available",
@@ -4980,7 +5099,8 @@
49805099
"The resource's reject operation is in progress.",
49815100
"The resource's update operation is in progress.",
49825101
"The resource is inactive.",
4983-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
5102+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
5103+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
49845104
],
49855105
"readOnly": true,
49865106
"type": "string"
@@ -5313,6 +5433,17 @@
53135433
"description": "Optional. An optional description of the spoke.",
53145434
"type": "string"
53155435
},
5436+
"etag": {
5437+
"description": "Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.",
5438+
"type": "string"
5439+
},
5440+
"fieldPathsPendingUpdate": {
5441+
"description": "Optional. The list of fields waiting for hub administration's approval.",
5442+
"items": {
5443+
"type": "string"
5444+
},
5445+
"type": "array"
5446+
},
53165447
"group": {
53175448
"description": "Optional. The name of the group that this spoke is associated with.",
53185449
"type": "string"
@@ -5392,7 +5523,8 @@
53925523
"REJECTING",
53935524
"UPDATING",
53945525
"INACTIVE",
5395-
"OBSOLETE"
5526+
"OBSOLETE",
5527+
"FAILED"
53965528
],
53975529
"enumDescriptions": [
53985530
"No state information available",
@@ -5403,7 +5535,8 @@
54035535
"The resource's reject operation is in progress.",
54045536
"The resource's update operation is in progress.",
54055537
"The resource is inactive.",
5406-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
5538+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
5539+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
54075540
],
54085541
"readOnly": true,
54095542
"type": "string"
@@ -5443,7 +5576,8 @@
54435576
"REJECTING",
54445577
"UPDATING",
54455578
"INACTIVE",
5446-
"OBSOLETE"
5579+
"OBSOLETE",
5580+
"FAILED"
54475581
],
54485582
"enumDescriptions": [
54495583
"No state information available",
@@ -5454,7 +5588,8 @@
54545588
"The resource's reject operation is in progress.",
54555589
"The resource's update operation is in progress.",
54565590
"The resource is inactive.",
5457-
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only."
5591+
"The hub associated with this spoke resource has been deleted. This state applies to spoke resources only.",
5592+
"The resource is in an undefined state due to resource creation or deletion failure. You can try to delete the resource later or contact support for help."
54585593
],
54595594
"readOnly": true,
54605595
"type": "string"

0 commit comments

Comments
 (0)