Skip to content

Commit

Permalink
feat(alloydb): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Mar 14, 2024
1 parent bee5953 commit 811596d
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 35 deletions.
31 changes: 26 additions & 5 deletions discovery/alloydb-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@
}
}
},
"revision": "20240216",
"revision": "20240228",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AutomatedBackupPolicy": {
Expand Down Expand Up @@ -1885,7 +1885,7 @@
},
"network": {
"deprecated": true,
"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.",
"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.",
"type": "string"
},
"networkConfig": {
Expand Down Expand Up @@ -2651,7 +2651,7 @@
"type": "string"
},
"network": {
"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.",
"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.",
"type": "string"
}
},
Expand Down Expand Up @@ -3638,7 +3638,7 @@
},
"primaryResourceId": {
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
"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"
"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."
},
"product": {
"$ref": "StorageDatabasecenterProtoCommonProduct",
Expand Down Expand Up @@ -3676,7 +3676,7 @@
"description": "Properties of the object.",
"type": "any"
},
"description": "Required. Any other additional metadata specific to recommendation",
"description": "Optional. Any other additional metadata specific to recommendation",
"type": "object"
},
"lastRefreshTime": {
Expand Down Expand Up @@ -3957,6 +3957,27 @@
"description": "Identifies the specific error that occurred. REQUIRED",
"type": "string"
},
"errorType": {
"enum": [
"OPERATION_ERROR_TYPE_UNSPECIFIED",
"KMS_KEY_ERROR",
"DATABASE_ERROR",
"STOCKOUT_ERROR",
"CANCELLATION_ERROR",
"SQLSERVER_ERROR",
"INTERNAL_ERROR"
],
"enumDescriptions": [
"UNSPECIFIED means product type is not known or available.",
"key destroyed, expired, not found, unreachable or permission denied.",
"Database is not accessible",
"The zone or region does not have sufficient resources to handle the request at the moment",
"User initiated cancellation",
"SQL server specific error",
"Any other internal error."
],
"type": "string"
},
"message": {
"description": "Additional information about the error encountered. REQUIRED",
"type": "string"
Expand Down
40 changes: 33 additions & 7 deletions discovery/alloydb-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@
}
}
},
"revision": "20240216",
"revision": "20240228",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
Expand Down Expand Up @@ -1901,7 +1901,7 @@
},
"network": {
"deprecated": true,
"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.",
"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.",
"type": "string"
},
"networkConfig": {
Expand Down Expand Up @@ -2746,7 +2746,7 @@
"type": "string"
},
"network": {
"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.",
"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.",
"type": "string"
}
},
Expand Down Expand Up @@ -2924,6 +2924,11 @@
},
"type": "array"
},
"pscDnsName": {
"description": "Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog",
"readOnly": true,
"type": "string"
},
"pscEnabled": {
"description": "Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.",
"type": "boolean"
Expand All @@ -2936,7 +2941,7 @@
"type": "array"
},
"serviceAttachmentLink": {
"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/",
"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/`",
"readOnly": true,
"type": "string"
}
Expand All @@ -2955,7 +2960,7 @@
"type": "array"
},
"networkAttachment": {
"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.",
"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.",
"type": "string"
}
},
Expand Down Expand Up @@ -3806,7 +3811,7 @@
},
"primaryResourceId": {
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
"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"
"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."
},
"product": {
"$ref": "StorageDatabasecenterProtoCommonProduct",
Expand Down Expand Up @@ -3844,7 +3849,7 @@
"description": "Properties of the object.",
"type": "any"
},
"description": "Required. Any other additional metadata specific to recommendation",
"description": "Optional. Any other additional metadata specific to recommendation",
"type": "object"
},
"lastRefreshTime": {
Expand Down Expand Up @@ -4125,6 +4130,27 @@
"description": "Identifies the specific error that occurred. REQUIRED",
"type": "string"
},
"errorType": {
"enum": [
"OPERATION_ERROR_TYPE_UNSPECIFIED",
"KMS_KEY_ERROR",
"DATABASE_ERROR",
"STOCKOUT_ERROR",
"CANCELLATION_ERROR",
"SQLSERVER_ERROR",
"INTERNAL_ERROR"
],
"enumDescriptions": [
"UNSPECIFIED means product type is not known or available.",
"key destroyed, expired, not found, unreachable or permission denied.",
"Database is not accessible",
"The zone or region does not have sufficient resources to handle the request at the moment",
"User initiated cancellation",
"SQL server specific error",
"Any other internal error."
],
"type": "string"
},
"message": {
"description": "Additional information about the error encountered. REQUIRED",
"type": "string"
Expand Down
55 changes: 48 additions & 7 deletions discovery/alloydb-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@
}
}
},
"revision": "20240216",
"revision": "20240228",
"rootUrl": "https://alloydb.googleapis.com/",
"schemas": {
"AuthorizedNetwork": {
Expand Down Expand Up @@ -1887,7 +1887,7 @@
},
"network": {
"deprecated": true,
"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.",
"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.",
"type": "string"
},
"networkConfig": {
Expand All @@ -1898,6 +1898,10 @@
"description": "Output only. Cross Region replication config specific to PRIMARY cluster.",
"readOnly": true
},
"pscConfig": {
"$ref": "PscConfig",
"description": "Optional. The configuration for Private Service Connect (PSC) for the cluster."
},
"reconciling": {
"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.",
"readOnly": true,
Expand Down Expand Up @@ -2718,7 +2722,7 @@
"type": "string"
},
"network": {
"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.",
"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.",
"type": "string"
}
},
Expand Down Expand Up @@ -2860,6 +2864,17 @@
},
"type": "object"
},
"PscConfig": {
"description": "PscConfig contains PSC related configuration at a cluster level.",
"id": "PscConfig",
"properties": {
"pscEnabled": {
"description": "Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.",
"type": "boolean"
}
},
"type": "object"
},
"PscInstanceConfig": {
"description": "PscInstanceConfig contains PSC related configuration at an instance level.",
"id": "PscInstanceConfig",
Expand All @@ -2885,6 +2900,11 @@
},
"type": "array"
},
"pscDnsName": {
"description": "Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog",
"readOnly": true,
"type": "string"
},
"pscEnabled": {
"description": "Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.",
"type": "boolean"
Expand All @@ -2897,7 +2917,7 @@
"type": "array"
},
"serviceAttachmentLink": {
"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/",
"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/`",
"readOnly": true,
"type": "string"
}
Expand All @@ -2916,7 +2936,7 @@
"type": "array"
},
"networkAttachment": {
"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.",
"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.",
"type": "string"
}
},
Expand Down Expand Up @@ -3767,7 +3787,7 @@
},
"primaryResourceId": {
"$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId",
"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"
"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."
},
"product": {
"$ref": "StorageDatabasecenterProtoCommonProduct",
Expand Down Expand Up @@ -3805,7 +3825,7 @@
"description": "Properties of the object.",
"type": "any"
},
"description": "Required. Any other additional metadata specific to recommendation",
"description": "Optional. Any other additional metadata specific to recommendation",
"type": "object"
},
"lastRefreshTime": {
Expand Down Expand Up @@ -4086,6 +4106,27 @@
"description": "Identifies the specific error that occurred. REQUIRED",
"type": "string"
},
"errorType": {
"enum": [
"OPERATION_ERROR_TYPE_UNSPECIFIED",
"KMS_KEY_ERROR",
"DATABASE_ERROR",
"STOCKOUT_ERROR",
"CANCELLATION_ERROR",
"SQLSERVER_ERROR",
"INTERNAL_ERROR"
],
"enumDescriptions": [
"UNSPECIFIED means product type is not known or available.",
"key destroyed, expired, not found, unreachable or permission denied.",
"Database is not accessible",
"The zone or region does not have sufficient resources to handle the request at the moment",
"User initiated cancellation",
"SQL server specific error",
"Any other internal error."
],
"type": "string"
},
"message": {
"description": "Additional information about the error encountered. REQUIRED",
"type": "string"
Expand Down
Loading

0 comments on commit 811596d

Please sign in to comment.