Skip to content

Commit ba9bf43

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(sqladmin): update the API
#### sqladmin:v1beta4 The following keys were added: - schemas.Settings.properties.dataApiAccess.description - schemas.Settings.properties.dataApiAccess.enum - schemas.Settings.properties.dataApiAccess.enumDescriptions - schemas.Settings.properties.dataApiAccess.type #### sqladmin:v1 The following keys were added: - schemas.Settings.properties.dataApiAccess.description - schemas.Settings.properties.dataApiAccess.enum - schemas.Settings.properties.dataApiAccess.enumDescriptions - schemas.Settings.properties.dataApiAccess.type The following keys were changed: - resources.instances.methods.clone.parameters.instance.description - resources.instances.methods.clone.parameters.project.description - schemas.CloneContext.properties.destinationInstanceName.description - schemas.InstancesCloneRequest.properties.cloneContext.description
1 parent a345662 commit ba9bf43

File tree

4 files changed

+48
-12
lines changed

4 files changed

+48
-12
lines changed

discovery/sqladmin-v1.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -962,13 +962,13 @@
962962
],
963963
"parameters": {
964964
"instance": {
965-
"description": "The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.",
965+
"description": "Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.",
966966
"location": "path",
967967
"required": true,
968968
"type": "string"
969969
},
970970
"project": {
971-
"description": "Project ID of the source as well as the clone Cloud SQL instance.",
971+
"description": "Required. Project ID of the source as well as the clone Cloud SQL instance.",
972972
"location": "path",
973973
"required": true,
974974
"type": "string"
@@ -2685,7 +2685,7 @@
26852685
}
26862686
}
26872687
},
2688-
"revision": "20251006",
2688+
"revision": "20251019",
26892689
"rootUrl": "https://sqladmin.googleapis.com/",
26902690
"schemas": {
26912691
"AclEntry": {
@@ -3626,7 +3626,7 @@
36263626
"type": "array"
36273627
},
36283628
"destinationInstanceName": {
3629-
"description": "Name of the Cloud SQL instance to be created as a clone.",
3629+
"description": "Required. Name of the Cloud SQL instance to be created as a clone.",
36303630
"type": "string"
36313631
},
36323632
"kind": {
@@ -5681,7 +5681,7 @@
56815681
"properties": {
56825682
"cloneContext": {
56835683
"$ref": "CloneContext",
5684-
"description": "Contains details about the clone operation."
5684+
"description": "Required. Contains details about the clone operation."
56855685
}
56865686
},
56875687
"type": "object"
@@ -7421,6 +7421,20 @@
74217421
"description": "Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.",
74227422
"type": "boolean"
74237423
},
7424+
"dataApiAccess": {
7425+
"description": "This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.",
7426+
"enum": [
7427+
"DATA_API_ACCESS_UNSPECIFIED",
7428+
"DISALLOW_DATA_API",
7429+
"ALLOW_DATA_API"
7430+
],
7431+
"enumDescriptions": [
7432+
"Unspecified, effectively the same as `DISALLOW_DATA_API`.",
7433+
"Disallow using Data API to connect to the instance.",
7434+
"Allow using Data API to connect to the instance. For private IP instances, this will allow authorized users to access the instance from the public internet."
7435+
],
7436+
"type": "string"
7437+
},
74247438
"dataCacheConfig": {
74257439
"$ref": "DataCacheConfig",
74267440
"description": "Configuration for data cache."

discovery/sqladmin-v1beta4.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@
26852685
}
26862686
}
26872687
},
2688-
"revision": "20251006",
2688+
"revision": "20251019",
26892689
"rootUrl": "https://sqladmin.googleapis.com/",
26902690
"schemas": {
26912691
"AclEntry": {
@@ -7422,6 +7422,20 @@
74227422
"description": "Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.",
74237423
"type": "boolean"
74247424
},
7425+
"dataApiAccess": {
7426+
"description": "This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.",
7427+
"enum": [
7428+
"DATA_API_ACCESS_UNSPECIFIED",
7429+
"DISALLOW_DATA_API",
7430+
"ALLOW_DATA_API"
7431+
],
7432+
"enumDescriptions": [
7433+
"Unspecified, effectively the same as `DISALLOW_DATA_API`.",
7434+
"Disallow using Data API to connect to the instance.",
7435+
"Allow using Data API to connect to the instance. For private IP instances, this will allow authorized users to access the instance from the public internet."
7436+
],
7437+
"type": "string"
7438+
},
74257439
"dataCacheConfig": {
74267440
"$ref": "DataCacheConfig",
74277441
"description": "Configuration for data cache."

src/apis/sqladmin/v1.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ export namespace sqladmin_v1 {
550550
*/
551551
databaseNames?: string[] | null;
552552
/**
553-
* Name of the Cloud SQL instance to be created as a clone.
553+
* Required. Name of the Cloud SQL instance to be created as a clone.
554554
*/
555555
destinationInstanceName?: string | null;
556556
/**
@@ -1512,7 +1512,7 @@ export namespace sqladmin_v1 {
15121512
*/
15131513
export interface Schema$InstancesCloneRequest {
15141514
/**
1515-
* Contains details about the clone operation.
1515+
* Required. Contains details about the clone operation.
15161516
*/
15171517
cloneContext?: Schema$CloneContext;
15181518
}
@@ -2532,6 +2532,10 @@ export namespace sqladmin_v1 {
25322532
* Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
25332533
*/
25342534
crashSafeReplicationEnabled?: boolean | null;
2535+
/**
2536+
* This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.
2537+
*/
2538+
dataApiAccess?: string | null;
25352539
/**
25362540
* The database flags passed to the instance at startup.
25372541
*/
@@ -7029,9 +7033,9 @@ export namespace sqladmin_v1 {
70297033
*
70307034
* // Do the magic
70317035
* const res = await sql.instances.clone({
7032-
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
7036+
* // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
70337037
* instance: 'placeholder-value',
7034-
* // Project ID of the source as well as the clone Cloud SQL instance.
7038+
* // Required. Project ID of the source as well as the clone Cloud SQL instance.
70357039
* project: 'placeholder-value',
70367040
*
70377041
* // Request body metadata
@@ -11976,11 +11980,11 @@ export namespace sqladmin_v1 {
1197611980
}
1197711981
export interface Params$Resource$Instances$Clone extends StandardParameters {
1197811982
/**
11979-
* The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
11983+
* Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
1198011984
*/
1198111985
instance?: string;
1198211986
/**
11983-
* Project ID of the source as well as the clone Cloud SQL instance.
11987+
* Required. Project ID of the source as well as the clone Cloud SQL instance.
1198411988
*/
1198511989
project?: string;
1198611990

src/apis/sqladmin/v1beta4.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,10 @@ export namespace sqladmin_v1beta4 {
25352535
* Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
25362536
*/
25372537
crashSafeReplicationEnabled?: boolean | null;
2538+
/**
2539+
* This parameter controls whether to allow using Data API to connect to the instance. Not allowed by default.
2540+
*/
2541+
dataApiAccess?: string | null;
25382542
/**
25392543
* The database flags passed to the instance at startup.
25402544
*/

0 commit comments

Comments
 (0)