Skip to content

Commit 11aa993

Browse files
feat(alloydb): update the api
#### alloydb:v1 The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.import (Total Keys: 12) - schemas.CloudSQLBackupRunSource (Total Keys: 6) - schemas.Cluster.properties.cloudsqlBackupRunSource (Total Keys: 2) - schemas.CsvImportOptions (Total Keys: 8) - schemas.ImportClusterRequest (Total Keys: 7) - schemas.ImportClusterResponse (Total Keys: 4) - schemas.PscConfig.properties.serviceOwnedProjectNumber (Total Keys: 3) - schemas.PscInstanceConfig.properties.pscInterfaceConfigs (Total Keys: 2) - schemas.PscInterfaceConfig (Total Keys: 3) - schemas.SqlImportOptions (Total Keys: 2) - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.suspensionReason.type (Total Keys: 1) - schemas.StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata.properties.isDeletionProtectionEnabled.type (Total Keys: 1) #### alloydb:v1alpha The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.import (Total Keys: 12) - schemas.CsvImportOptions (Total Keys: 8) - schemas.ImportClusterRequest (Total Keys: 7) - schemas.SqlImportOptions (Total Keys: 2) - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.suspensionReason.type (Total Keys: 1) - schemas.StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata.properties.isDeletionProtectionEnabled.type (Total Keys: 1) #### alloydb:v1beta The following keys were added: - resources.projects.resources.locations.resources.clusters.methods.import (Total Keys: 12) - schemas.CsvImportOptions (Total Keys: 8) - schemas.ImportClusterRequest (Total Keys: 7) - schemas.PscConfig.properties.serviceOwnedProjectNumber (Total Keys: 3) - schemas.PscInstanceConfig.properties.pscInterfaceConfigs (Total Keys: 2) - schemas.PscInterfaceConfig (Total Keys: 3) - schemas.SqlImportOptions (Total Keys: 2) - schemas.StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata.properties.suspensionReason.type (Total Keys: 1) - schemas.StorageDatabasecenterPartnerapiV1mainInternalResourceMetadata.properties.isDeletionProtectionEnabled.type (Total Keys: 1)
1 parent 2cec979 commit 11aa993

8 files changed

+880
-30
lines changed

docs/dyn/alloydb_v1.projects.locations.clusters.html

Lines changed: 94 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/alloydb_v1.projects.locations.clusters.instances.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ <h3>Method Details</h3>
179179
&quot;A String&quot;,
180180
],
181181
&quot;pscDnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
182+
&quot;pscInterfaceConfigs&quot;: [ # Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
183+
{ # Configuration for setting up a PSC interface to enable outbound connectivity.
184+
&quot;networkAttachmentResource&quot;: &quot;A String&quot;, # The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: &quot;projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}&quot;. The network attachment must be in the same region as the instance.
185+
},
186+
],
182187
&quot;serviceAttachmentLink&quot;: &quot;A String&quot;, # 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/`
183188
},
184189
&quot;publicIpAddress&quot;: &quot;A String&quot;, # Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
@@ -299,6 +304,11 @@ <h3>Method Details</h3>
299304
&quot;A String&quot;,
300305
],
301306
&quot;pscDnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
307+
&quot;pscInterfaceConfigs&quot;: [ # Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
308+
{ # Configuration for setting up a PSC interface to enable outbound connectivity.
309+
&quot;networkAttachmentResource&quot;: &quot;A String&quot;, # The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: &quot;projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}&quot;. The network attachment must be in the same region as the instance.
310+
},
311+
],
302312
&quot;serviceAttachmentLink&quot;: &quot;A String&quot;, # 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/`
303313
},
304314
&quot;publicIpAddress&quot;: &quot;A String&quot;, # Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
@@ -510,6 +520,11 @@ <h3>Method Details</h3>
510520
&quot;A String&quot;,
511521
],
512522
&quot;pscDnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
523+
&quot;pscInterfaceConfigs&quot;: [ # Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
524+
{ # Configuration for setting up a PSC interface to enable outbound connectivity.
525+
&quot;networkAttachmentResource&quot;: &quot;A String&quot;, # The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: &quot;projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}&quot;. The network attachment must be in the same region as the instance.
526+
},
527+
],
513528
&quot;serviceAttachmentLink&quot;: &quot;A String&quot;, # 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/`
514529
},
515530
&quot;publicIpAddress&quot;: &quot;A String&quot;, # Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
@@ -677,6 +692,11 @@ <h3>Method Details</h3>
677692
&quot;A String&quot;,
678693
],
679694
&quot;pscDnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
695+
&quot;pscInterfaceConfigs&quot;: [ # Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
696+
{ # Configuration for setting up a PSC interface to enable outbound connectivity.
697+
&quot;networkAttachmentResource&quot;: &quot;A String&quot;, # The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: &quot;projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}&quot;. The network attachment must be in the same region as the instance.
698+
},
699+
],
680700
&quot;serviceAttachmentLink&quot;: &quot;A String&quot;, # 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/`
681701
},
682702
&quot;publicIpAddress&quot;: &quot;A String&quot;, # Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.
@@ -786,6 +806,11 @@ <h3>Method Details</h3>
786806
&quot;A String&quot;,
787807
],
788808
&quot;pscDnsName&quot;: &quot;A String&quot;, # Output only. The DNS name of the instance for PSC connectivity. Name convention: ...alloydb-psc.goog
809+
&quot;pscInterfaceConfigs&quot;: [ # Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. Currently we only support 0 or 1 PSC interface.
810+
{ # Configuration for setting up a PSC interface to enable outbound connectivity.
811+
&quot;networkAttachmentResource&quot;: &quot;A String&quot;, # The network attachment resource created in the consumer network to which the PSC interface will be linked. This is of the format: &quot;projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}&quot;. The network attachment must be in the same region as the instance.
812+
},
813+
],
789814
&quot;serviceAttachmentLink&quot;: &quot;A String&quot;, # 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/`
790815
},
791816
&quot;publicIpAddress&quot;: &quot;A String&quot;, # Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.

docs/dyn/alloydb_v1alpha.projects.locations.clusters.html

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ <h2>Instance Methods</h2>
102102
<p class="toc_element">
103103
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
104104
<p class="firstline">Gets details of a single Cluster.</p>
105+
<p class="toc_element">
106+
<code><a href="#import_">import_(name, body=None, x__xgafv=None)</a></code></p>
107+
<p class="firstline">Imports data to the cluster. Imperative only.</p>
105108
<p class="toc_element">
106109
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
107110
<p class="firstline">Lists Clusters in a given project and location.</p>
@@ -779,6 +782,61 @@ <h3>Method Details</h3>
779782
}</pre>
780783
</div>
781784

785+
<div class="method">
786+
<code class="details" id="import_">import_(name, body=None, x__xgafv=None)</code>
787+
<pre>Imports data to the cluster. Imperative only.
788+
789+
Args:
790+
name: string, Required. The resource name of the cluster. (required)
791+
body: object, The request body.
792+
The object takes the form of:
793+
794+
{ # Import cluster request.
795+
&quot;csvImportOptions&quot;: { # Options for importing data in CSV format. # Options for importing data in CSV format.
796+
&quot;columns&quot;: [ # Optional. The columns to which CSV data is imported. If not specified, all columns of the database table are loaded with CSV data.
797+
&quot;A String&quot;,
798+
],
799+
&quot;escapeCharacter&quot;: &quot;A String&quot;, # Optional. Specifies the character that should appear before a data character that needs to be escaped. The default is same as quote character. The value of this argument has to be a character in Hex ASCII Code.
800+
&quot;fieldDelimiter&quot;: &quot;A String&quot;, # Optional. Specifies the character that separates columns within each row (line) of the file. The default is comma. The value of this argument has to be a character in Hex ASCII Code.
801+
&quot;quoteCharacter&quot;: &quot;A String&quot;, # Optional. Specifies the quoting character to be used when a data value is quoted. The default is double-quote. The value of this argument has to be a character in Hex ASCII Code.
802+
&quot;table&quot;: &quot;A String&quot;, # Required. The database table to import CSV file into.
803+
},
804+
&quot;database&quot;: &quot;A String&quot;, # Optional. Name of the database to which the import will be done. For import from SQL file, this is required only if the file does not specify a database. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference.
805+
&quot;gcsUri&quot;: &quot;A String&quot;, # Required. The path to the file in Google Cloud Storage where the source file for import will be stored. The URI is in the form `gs://bucketName/fileName`.
806+
&quot;sqlImportOptions&quot;: { # Options for importing data in SQL format. # Options for importing data in SQL format.
807+
},
808+
&quot;user&quot;: &quot;A String&quot;, # Optional. Database user to be used for importing the data. Note - Value provided should be the same as expected from `SELECT current_user;` and NOT as a resource reference.
809+
}
810+
811+
x__xgafv: string, V1 error format.
812+
Allowed values
813+
1 - v1 error format
814+
2 - v2 error format
815+
816+
Returns:
817+
An object of the form:
818+
819+
{ # This resource represents a long-running operation that is the result of a network API call.
820+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
821+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
822+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
823+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
824+
{
825+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
826+
},
827+
],
828+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
829+
},
830+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
831+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
832+
},
833+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
834+
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
835+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
836+
},
837+
}</pre>
838+
</div>
839+
782840
<div class="method">
783841
<code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
784842
<pre>Lists Clusters in a given project and location.

0 commit comments

Comments
 (0)