Skip to content

Commit a0ce139

Browse files
yoshi-automationsofisl
authored andcommitted
feat(datastream): update the API
#### datastream:v1 The following keys were added: - schemas.BasicEncryption.description - schemas.BasicEncryption.id - schemas.BasicEncryption.type - schemas.EncryptionAndServerValidation.description - schemas.EncryptionAndServerValidation.id - schemas.EncryptionAndServerValidation.properties.caCertificate.description - schemas.EncryptionAndServerValidation.properties.caCertificate.type - schemas.EncryptionAndServerValidation.properties.serverCertificateHostname.description - schemas.EncryptionAndServerValidation.properties.serverCertificateHostname.type - schemas.EncryptionAndServerValidation.type - schemas.EncryptionNotEnforced.description - schemas.EncryptionNotEnforced.id - schemas.EncryptionNotEnforced.type - schemas.SqlServerProfile.properties.sslConfig.$ref - schemas.SqlServerProfile.properties.sslConfig.description - schemas.SqlServerSslConfig.description - schemas.SqlServerSslConfig.id - schemas.SqlServerSslConfig.properties.basicEncryption.$ref - schemas.SqlServerSslConfig.properties.basicEncryption.description - schemas.SqlServerSslConfig.properties.encryptionAndServerValidation.$ref - schemas.SqlServerSslConfig.properties.encryptionAndServerValidation.description - schemas.SqlServerSslConfig.properties.encryptionNotEnforced.$ref - schemas.SqlServerSslConfig.properties.encryptionNotEnforced.description - schemas.SqlServerSslConfig.type
1 parent cc899e9 commit a0ce139

File tree

2 files changed

+93
-1
lines changed

2 files changed

+93
-1
lines changed

discovery/datastream-v1.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@
12611261
}
12621262
}
12631263
},
1264-
"revision": "20250714",
1264+
"revision": "20250722",
12651265
"rootUrl": "https://datastream.googleapis.com/",
12661266
"schemas": {
12671267
"AppendOnly": {
@@ -1379,6 +1379,12 @@
13791379
"properties": {},
13801380
"type": "object"
13811381
},
1382+
"BasicEncryption": {
1383+
"description": "Message to represent the option where Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default.",
1384+
"id": "BasicEncryption",
1385+
"properties": {},
1386+
"type": "object"
1387+
},
13821388
"BigQueryDestinationConfig": {
13831389
"description": "BigQuery destination configuration",
13841390
"id": "BigQueryDestinationConfig",
@@ -1724,6 +1730,27 @@
17241730
"properties": {},
17251731
"type": "object"
17261732
},
1733+
"EncryptionAndServerValidation": {
1734+
"description": "Message to represent the option where Datastream will enforce encryption and authenticate server identity. ca_certificate must be set if user selects this option.",
1735+
"id": "EncryptionAndServerValidation",
1736+
"properties": {
1737+
"caCertificate": {
1738+
"description": "Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.",
1739+
"type": "string"
1740+
},
1741+
"serverCertificateHostname": {
1742+
"description": "Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.",
1743+
"type": "string"
1744+
}
1745+
},
1746+
"type": "object"
1747+
},
1748+
"EncryptionNotEnforced": {
1749+
"description": "Message to represent the option where encryption is not enforced. An empty message right now to allow future extensibility.",
1750+
"id": "EncryptionNotEnforced",
1751+
"properties": {},
1752+
"type": "object"
1753+
},
17271754
"Error": {
17281755
"description": "Represent a user-facing Error.",
17291756
"id": "Error",
@@ -3639,6 +3666,10 @@
36393666
"description": "Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the `password` field.",
36403667
"type": "string"
36413668
},
3669+
"sslConfig": {
3670+
"$ref": "SqlServerSslConfig",
3671+
"description": "Optional. SSL configuration for the SQLServer connection."
3672+
},
36423673
"username": {
36433674
"description": "Required. Username for the SQLServer connection.",
36443675
"type": "string"
@@ -3711,6 +3742,25 @@
37113742
},
37123743
"type": "object"
37133744
},
3745+
"SqlServerSslConfig": {
3746+
"description": "SQL Server SSL configuration information.",
3747+
"id": "SqlServerSslConfig",
3748+
"properties": {
3749+
"basicEncryption": {
3750+
"$ref": "BasicEncryption",
3751+
"description": "If set, Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default."
3752+
},
3753+
"encryptionAndServerValidation": {
3754+
"$ref": "EncryptionAndServerValidation",
3755+
"description": "If set, Datastream will enforce encryption and authenticate server identity."
3756+
},
3757+
"encryptionNotEnforced": {
3758+
"$ref": "EncryptionNotEnforced",
3759+
"description": "If set, Datastream will not enforce encryption. If the DB server mandates encryption, then connection will be encrypted but server identity will not be authenticated."
3760+
}
3761+
},
3762+
"type": "object"
3763+
},
37143764
"SqlServerTable": {
37153765
"description": "SQLServer table.",
37163766
"id": "SqlServerTable",

src/apis/datastream/v1.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ export namespace datastream_v1 {
190190
* Backfill strategy to disable automatic backfill for the Stream's objects.
191191
*/
192192
export interface Schema$BackfillNoneStrategy {}
193+
/**
194+
* Message to represent the option where Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default.
195+
*/
196+
export interface Schema$BasicEncryption {}
193197
/**
194198
* BigQuery destination configuration
195199
*/
@@ -479,6 +483,23 @@ export namespace datastream_v1 {
479483
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
480484
*/
481485
export interface Schema$Empty {}
486+
/**
487+
* Message to represent the option where Datastream will enforce encryption and authenticate server identity. ca_certificate must be set if user selects this option.
488+
*/
489+
export interface Schema$EncryptionAndServerValidation {
490+
/**
491+
* Optional. Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
492+
*/
493+
caCertificate?: string | null;
494+
/**
495+
* Optional. The hostname mentioned in the Subject or SAN extension of the server certificate. This field is used for bypassing the hostname validation while verifying server certificate. This is required for scenarios where the host name that datastream connects to is different from the certificate's subject. This specifically happens for private connectivity. It could also happen when the customer provides a public IP in connection profile but the same is not present in the server certificate.
496+
*/
497+
serverCertificateHostname?: string | null;
498+
}
499+
/**
500+
* Message to represent the option where encryption is not enforced. An empty message right now to allow future extensibility.
501+
*/
502+
export interface Schema$EncryptionNotEnforced {}
482503
/**
483504
* Represent a user-facing Error.
484505
*/
@@ -2012,6 +2033,10 @@ export namespace datastream_v1 {
20122033
* Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the `password` field.
20132034
*/
20142035
secretManagerStoredPassword?: string | null;
2036+
/**
2037+
* Optional. SSL configuration for the SQLServer connection.
2038+
*/
2039+
sslConfig?: Schema$SqlServerSslConfig;
20152040
/**
20162041
* Required. Username for the SQLServer connection.
20172042
*/
@@ -2068,6 +2093,23 @@ export namespace datastream_v1 {
20682093
*/
20692094
transactionLogs?: Schema$SqlServerTransactionLogs;
20702095
}
2096+
/**
2097+
* SQL Server SSL configuration information.
2098+
*/
2099+
export interface Schema$SqlServerSslConfig {
2100+
/**
2101+
* If set, Datastream will enforce encryption without authenticating server identity. Server certificates will be trusted by default.
2102+
*/
2103+
basicEncryption?: Schema$BasicEncryption;
2104+
/**
2105+
* If set, Datastream will enforce encryption and authenticate server identity.
2106+
*/
2107+
encryptionAndServerValidation?: Schema$EncryptionAndServerValidation;
2108+
/**
2109+
* If set, Datastream will not enforce encryption. If the DB server mandates encryption, then connection will be encrypted but server identity will not be authenticated.
2110+
*/
2111+
encryptionNotEnforced?: Schema$EncryptionNotEnforced;
2112+
}
20712113
/**
20722114
* SQLServer table.
20732115
*/

0 commit comments

Comments
 (0)