Skip to content

Commit 811596d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(alloydb): update the API
#### alloydb:v1alpha The following keys were added: - schemas.PscInstanceConfig.properties.pscDnsName.description - schemas.PscInstanceConfig.properties.pscDnsName.readOnly - schemas.PscInstanceConfig.properties.pscDnsName.type - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enum - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enumDescriptions - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.type The following keys were changed: - schemas.Cluster.properties.network.description - schemas.NetworkConfig.properties.network.description - schemas.PscInstanceConfig.properties.serviceAttachmentLink.description - schemas.PscInterfaceConfig.properties.networkAttachment.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.primaryResourceId.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.properties.additionalMetadata.description #### alloydb:v1beta The following keys were added: - schemas.Cluster.properties.pscConfig.$ref - schemas.Cluster.properties.pscConfig.description - schemas.PscConfig.description - schemas.PscConfig.id - schemas.PscConfig.properties.pscEnabled.description - schemas.PscConfig.properties.pscEnabled.type - schemas.PscConfig.type - schemas.PscInstanceConfig.properties.pscDnsName.description - schemas.PscInstanceConfig.properties.pscDnsName.readOnly - schemas.PscInstanceConfig.properties.pscDnsName.type - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enum - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enumDescriptions - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.type The following keys were changed: - schemas.Cluster.properties.network.description - schemas.NetworkConfig.properties.network.description - schemas.PscInstanceConfig.properties.serviceAttachmentLink.description - schemas.PscInterfaceConfig.properties.networkAttachment.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.primaryResourceId.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.properties.additionalMetadata.description #### alloydb:v1 The following keys were added: - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enum - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.enumDescriptions - schemas.StorageDatabasecenterPartnerapiV1mainOperationError.properties.errorType.type The following keys were changed: - schemas.Cluster.properties.network.description - schemas.NetworkConfig.properties.network.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.primaryResourceId.description - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData.properties.additionalMetadata.description
1 parent bee5953 commit 811596d

File tree

6 files changed

+147
-35
lines changed

6 files changed

+147
-35
lines changed

discovery/alloydb-v1.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@
14891489
}
14901490
}
14911491
},
1492-
"revision": "20240216",
1492+
"revision": "20240228",
14931493
"rootUrl": "https://alloydb.googleapis.com/",
14941494
"schemas": {
14951495
"AutomatedBackupPolicy": {
@@ -1885,7 +1885,7 @@
18851885
},
18861886
"network": {
18871887
"deprecated": true,
1888-
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project}/global/networks/{network_id}\". This is required to create a cluster. Deprecated, use network_config.network instead.",
1888+
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project}/global/networks/{network_id}`. This is required to create a cluster. Deprecated, use network_config.network instead.",
18891889
"type": "string"
18901890
},
18911891
"networkConfig": {
@@ -2651,7 +2651,7 @@
26512651
"type": "string"
26522652
},
26532653
"network": {
2654-
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project_number}/global/networks/{network_id}\". This is required to create a cluster.",
2654+
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project_number}/global/networks/{network_id}`. This is required to create a cluster.",
26552655
"type": "string"
26562656
}
26572657
},
@@ -3638,7 +3638,7 @@
36383638
},
36393639
"primaryResourceId": {
36403640
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
3641-
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested"
3641+
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional."
36423642
},
36433643
"product": {
36443644
"$ref": "StorageDatabasecenterProtoCommonProduct",
@@ -3676,7 +3676,7 @@
36763676
"description": "Properties of the object.",
36773677
"type": "any"
36783678
},
3679-
"description": "Required. Any other additional metadata specific to recommendation",
3679+
"description": "Optional. Any other additional metadata specific to recommendation",
36803680
"type": "object"
36813681
},
36823682
"lastRefreshTime": {
@@ -3957,6 +3957,27 @@
39573957
"description": "Identifies the specific error that occurred. REQUIRED",
39583958
"type": "string"
39593959
},
3960+
"errorType": {
3961+
"enum": [
3962+
"OPERATION_ERROR_TYPE_UNSPECIFIED",
3963+
"KMS_KEY_ERROR",
3964+
"DATABASE_ERROR",
3965+
"STOCKOUT_ERROR",
3966+
"CANCELLATION_ERROR",
3967+
"SQLSERVER_ERROR",
3968+
"INTERNAL_ERROR"
3969+
],
3970+
"enumDescriptions": [
3971+
"UNSPECIFIED means product type is not known or available.",
3972+
"key destroyed, expired, not found, unreachable or permission denied.",
3973+
"Database is not accessible",
3974+
"The zone or region does not have sufficient resources to handle the request at the moment",
3975+
"User initiated cancellation",
3976+
"SQL server specific error",
3977+
"Any other internal error."
3978+
],
3979+
"type": "string"
3980+
},
39603981
"message": {
39613982
"description": "Additional information about the error encountered. REQUIRED",
39623983
"type": "string"

discovery/alloydb-v1alpha.json

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@
14891489
}
14901490
}
14911491
},
1492-
"revision": "20240216",
1492+
"revision": "20240228",
14931493
"rootUrl": "https://alloydb.googleapis.com/",
14941494
"schemas": {
14951495
"AuthorizedNetwork": {
@@ -1901,7 +1901,7 @@
19011901
},
19021902
"network": {
19031903
"deprecated": true,
1904-
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project}/global/networks/{network_id}\". This is required to create a cluster. Deprecated, use network_config.network instead.",
1904+
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project}/global/networks/{network_id}`. This is required to create a cluster. Deprecated, use network_config.network instead.",
19051905
"type": "string"
19061906
},
19071907
"networkConfig": {
@@ -2746,7 +2746,7 @@
27462746
"type": "string"
27472747
},
27482748
"network": {
2749-
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project_number}/global/networks/{network_id}\". This is required to create a cluster.",
2749+
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project_number}/global/networks/{network_id}`. This is required to create a cluster.",
27502750
"type": "string"
27512751
}
27522752
},
@@ -2924,6 +2924,11 @@
29242924
},
29252925
"type": "array"
29262926
},
2927+
"pscDnsName": {
2928+
"description": "Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog",
2929+
"readOnly": true,
2930+
"type": "string"
2931+
},
29272932
"pscEnabled": {
29282933
"description": "Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.",
29292934
"type": "boolean"
@@ -2936,7 +2941,7 @@
29362941
"type": "array"
29372942
},
29382943
"serviceAttachmentLink": {
2939-
"description": "Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects//regions//serviceAttachments/",
2944+
"description": "Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of `projects//regions//serviceAttachments/`",
29402945
"readOnly": true,
29412946
"type": "string"
29422947
}
@@ -2955,7 +2960,7 @@
29552960
"type": "array"
29562961
},
29572962
"networkAttachment": {
2958-
"description": "The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: \"projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}\". NetworkAttachment has to be provided when the PSC interface is created.",
2963+
"description": "The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. NetworkAttachment has to be provided when the PSC interface is created.",
29592964
"type": "string"
29602965
}
29612966
},
@@ -3806,7 +3811,7 @@
38063811
},
38073812
"primaryResourceId": {
38083813
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
3809-
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested"
3814+
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional."
38103815
},
38113816
"product": {
38123817
"$ref": "StorageDatabasecenterProtoCommonProduct",
@@ -3844,7 +3849,7 @@
38443849
"description": "Properties of the object.",
38453850
"type": "any"
38463851
},
3847-
"description": "Required. Any other additional metadata specific to recommendation",
3852+
"description": "Optional. Any other additional metadata specific to recommendation",
38483853
"type": "object"
38493854
},
38503855
"lastRefreshTime": {
@@ -4125,6 +4130,27 @@
41254130
"description": "Identifies the specific error that occurred. REQUIRED",
41264131
"type": "string"
41274132
},
4133+
"errorType": {
4134+
"enum": [
4135+
"OPERATION_ERROR_TYPE_UNSPECIFIED",
4136+
"KMS_KEY_ERROR",
4137+
"DATABASE_ERROR",
4138+
"STOCKOUT_ERROR",
4139+
"CANCELLATION_ERROR",
4140+
"SQLSERVER_ERROR",
4141+
"INTERNAL_ERROR"
4142+
],
4143+
"enumDescriptions": [
4144+
"UNSPECIFIED means product type is not known or available.",
4145+
"key destroyed, expired, not found, unreachable or permission denied.",
4146+
"Database is not accessible",
4147+
"The zone or region does not have sufficient resources to handle the request at the moment",
4148+
"User initiated cancellation",
4149+
"SQL server specific error",
4150+
"Any other internal error."
4151+
],
4152+
"type": "string"
4153+
},
41284154
"message": {
41294155
"description": "Additional information about the error encountered. REQUIRED",
41304156
"type": "string"

discovery/alloydb-v1beta.json

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@
14861486
}
14871487
}
14881488
},
1489-
"revision": "20240216",
1489+
"revision": "20240228",
14901490
"rootUrl": "https://alloydb.googleapis.com/",
14911491
"schemas": {
14921492
"AuthorizedNetwork": {
@@ -1887,7 +1887,7 @@
18871887
},
18881888
"network": {
18891889
"deprecated": true,
1890-
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project}/global/networks/{network_id}\". This is required to create a cluster. Deprecated, use network_config.network instead.",
1890+
"description": "Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project}/global/networks/{network_id}`. This is required to create a cluster. Deprecated, use network_config.network instead.",
18911891
"type": "string"
18921892
},
18931893
"networkConfig": {
@@ -1898,6 +1898,10 @@
18981898
"description": "Output only. Cross Region replication config specific to PRIMARY cluster.",
18991899
"readOnly": true
19001900
},
1901+
"pscConfig": {
1902+
"$ref": "PscConfig",
1903+
"description": "Optional. The configuration for Private Service Connect (PSC) for the cluster."
1904+
},
19011905
"reconciling": {
19021906
"description": "Output only. Reconciling (https://google.aip.dev/128#reconciliation). Set to true if the current state of Cluster does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance.",
19031907
"readOnly": true,
@@ -2718,7 +2722,7 @@
27182722
"type": "string"
27192723
},
27202724
"network": {
2721-
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: \"projects/{project_number}/global/networks/{network_id}\". This is required to create a cluster.",
2725+
"description": "Optional. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: `projects/{project_number}/global/networks/{network_id}`. This is required to create a cluster.",
27222726
"type": "string"
27232727
}
27242728
},
@@ -2860,6 +2864,17 @@
28602864
},
28612865
"type": "object"
28622866
},
2867+
"PscConfig": {
2868+
"description": "PscConfig contains PSC related configuration at a cluster level.",
2869+
"id": "PscConfig",
2870+
"properties": {
2871+
"pscEnabled": {
2872+
"description": "Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.",
2873+
"type": "boolean"
2874+
}
2875+
},
2876+
"type": "object"
2877+
},
28632878
"PscInstanceConfig": {
28642879
"description": "PscInstanceConfig contains PSC related configuration at an instance level.",
28652880
"id": "PscInstanceConfig",
@@ -2885,6 +2900,11 @@
28852900
},
28862901
"type": "array"
28872902
},
2903+
"pscDnsName": {
2904+
"description": "Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog",
2905+
"readOnly": true,
2906+
"type": "string"
2907+
},
28882908
"pscEnabled": {
28892909
"description": "Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.",
28902910
"type": "boolean"
@@ -2897,7 +2917,7 @@
28972917
"type": "array"
28982918
},
28992919
"serviceAttachmentLink": {
2900-
"description": "Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects//regions//serviceAttachments/",
2920+
"description": "Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of `projects//regions//serviceAttachments/`",
29012921
"readOnly": true,
29022922
"type": "string"
29032923
}
@@ -2916,7 +2936,7 @@
29162936
"type": "array"
29172937
},
29182938
"networkAttachment": {
2919-
"description": "The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: \"projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}\". NetworkAttachment has to be provided when the PSC interface is created.",
2939+
"description": "The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: `projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}`. NetworkAttachment has to be provided when the PSC interface is created.",
29202940
"type": "string"
29212941
}
29222942
},
@@ -3767,7 +3787,7 @@
37673787
},
37683788
"primaryResourceId": {
37693789
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
3770-
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested"
3790+
"description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional."
37713791
},
37723792
"product": {
37733793
"$ref": "StorageDatabasecenterProtoCommonProduct",
@@ -3805,7 +3825,7 @@
38053825
"description": "Properties of the object.",
38063826
"type": "any"
38073827
},
3808-
"description": "Required. Any other additional metadata specific to recommendation",
3828+
"description": "Optional. Any other additional metadata specific to recommendation",
38093829
"type": "object"
38103830
},
38113831
"lastRefreshTime": {
@@ -4086,6 +4106,27 @@
40864106
"description": "Identifies the specific error that occurred. REQUIRED",
40874107
"type": "string"
40884108
},
4109+
"errorType": {
4110+
"enum": [
4111+
"OPERATION_ERROR_TYPE_UNSPECIFIED",
4112+
"KMS_KEY_ERROR",
4113+
"DATABASE_ERROR",
4114+
"STOCKOUT_ERROR",
4115+
"CANCELLATION_ERROR",
4116+
"SQLSERVER_ERROR",
4117+
"INTERNAL_ERROR"
4118+
],
4119+
"enumDescriptions": [
4120+
"UNSPECIFIED means product type is not known or available.",
4121+
"key destroyed, expired, not found, unreachable or permission denied.",
4122+
"Database is not accessible",
4123+
"The zone or region does not have sufficient resources to handle the request at the moment",
4124+
"User initiated cancellation",
4125+
"SQL server specific error",
4126+
"Any other internal error."
4127+
],
4128+
"type": "string"
4129+
},
40894130
"message": {
40904131
"description": "Additional information about the error encountered. REQUIRED",
40914132
"type": "string"

0 commit comments

Comments
 (0)