Skip to content

Commit

Permalink
feat(composer)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### composer:v1beta1

The following keys were deleted:
- schemas.LoadEnvironmentStateResponse.description
- schemas.LoadEnvironmentStateResponse.id
- schemas.LoadEnvironmentStateResponse.type
- schemas.StoreEnvironmentStateResponse.description
- schemas.StoreEnvironmentStateResponse.id
- schemas.StoreEnvironmentStateResponse.properties.snapshotLocation.description
- schemas.StoreEnvironmentStateResponse.properties.snapshotLocation.type
- schemas.StoreEnvironmentStateResponse.type

The following keys were added:
- schemas.LoadSnapshotResponse.description
- schemas.LoadSnapshotResponse.id
- schemas.LoadSnapshotResponse.type
- schemas.SaveSnapshotResponse.description
- schemas.SaveSnapshotResponse.id
- schemas.SaveSnapshotResponse.properties.snapshotPath.description
- schemas.SaveSnapshotResponse.properties.snapshotPath.type
- schemas.SaveSnapshotResponse.type

The following keys were changed:
- schemas.Date.description
- schemas.OperationMetadata.properties.operationType.enum
- schemas.OperationMetadata.properties.operationType.enumDescriptions

#### composer:v1

The following keys were added:
- schemas.PrivateEnvironmentConfig.properties.cloudComposerConnectionSubnetwork.description
- schemas.PrivateEnvironmentConfig.properties.cloudComposerConnectionSubnetwork.type

The following keys were changed:
- schemas.Date.description
- schemas.OperationMetadata.properties.operationType.enum
- schemas.OperationMetadata.properties.operationType.enumDescriptions
  • Loading branch information
yoshi-automation authored and bcoe committed Mar 8, 2022
1 parent 22ca424 commit 54a2107
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 39 deletions.
16 changes: 10 additions & 6 deletions discovery/composer-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@
}
}
},
"revision": "20211208",
"revision": "20220224",
"rootUrl": "https://composer.googleapis.com/",
"schemas": {
"AllowedIpRange": {
Expand Down Expand Up @@ -479,7 +479,7 @@
"type": "object"
},
"Date": {
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.",
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
"id": "Date",
"properties": {
"day": {
Expand Down Expand Up @@ -892,17 +892,17 @@
"DELETE",
"UPDATE",
"CHECK",
"STORE_STATE",
"LOAD_STATE"
"SAVE_SNAPSHOT",
"LOAD_SNAPSHOT"
],
"enumDescriptions": [
"Unused.",
"A resource creation operation.",
"A resource deletion operation.",
"A resource update operation.",
"A resource check operation.",
"Stores the state of the resource operation.",
"Loads the state of the resource operation."
"Saves snapshot of the resource operation.",
"Loads snapshot of the resource operation."
],
"type": "string"
},
Expand Down Expand Up @@ -961,6 +961,10 @@
"description": "The configuration information for configuring a Private IP Cloud Composer environment.",
"id": "PrivateEnvironmentConfig",
"properties": {
"cloudComposerConnectionSubnetwork": {
"description": "Optional. When specified, the environment will use Private Service Connect instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and the PSC endpoint in the Customer Project will use an IP address from this subnetwork.",
"type": "string"
},
"cloudComposerNetworkIpv4CidrBlock": {
"description": "Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.",
"type": "string"
Expand Down
40 changes: 20 additions & 20 deletions discovery/composer-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
}
}
},
"revision": "20211208",
"revision": "20220224",
"rootUrl": "https://composer.googleapis.com/",
"schemas": {
"AllowedIpRange": {
Expand Down Expand Up @@ -561,7 +561,7 @@
"type": "object"
},
"Date": {
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.",
"description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp",
"id": "Date",
"properties": {
"day": {
Expand Down Expand Up @@ -856,9 +856,9 @@
},
"type": "object"
},
"LoadEnvironmentStateResponse": {
"description": "Load environment state response.",
"id": "LoadEnvironmentStateResponse",
"LoadSnapshotResponse": {
"description": "Response to LoadSnapshotRequest.",
"id": "LoadSnapshotResponse",
"properties": {},
"type": "object"
},
Expand Down Expand Up @@ -1017,17 +1017,17 @@
"DELETE",
"UPDATE",
"CHECK",
"STORE_STATE",
"LOAD_STATE"
"SAVE_SNAPSHOT",
"LOAD_SNAPSHOT"
],
"enumDescriptions": [
"Unused.",
"A resource creation operation.",
"A resource deletion operation.",
"A resource update operation.",
"A resource check operation.",
"Stores the state of the resource operation.",
"Loads the state of the resource operation."
"Saves snapshot of the resource operation.",
"Loads snapshot of the resource operation."
],
"type": "string"
},
Expand Down Expand Up @@ -1131,6 +1131,17 @@
"properties": {},
"type": "object"
},
"SaveSnapshotResponse": {
"description": "Response to SaveSnapshotRequest.",
"id": "SaveSnapshotResponse",
"properties": {
"snapshotPath": {
"description": "The fully-resolved Cloud Storage path of the created snapshot, e.g.: \"gs://my-bucket/snapshots/project_location_environment_timestamp\". This field is populated only if the snapshot creation was successful.",
"type": "string"
}
},
"type": "object"
},
"SchedulerResource": {
"description": "Configuration for resources used by Airflow schedulers.",
"id": "SchedulerResource",
Expand Down Expand Up @@ -1226,17 +1237,6 @@
},
"type": "object"
},
"StoreEnvironmentStateResponse": {
"description": "Store environment state response.",
"id": "StoreEnvironmentStateResponse",
"properties": {
"snapshotLocation": {
"description": "The fully-resolved Cloud Storage location of the created snapshot, e.g.: \"gs://my-bucket/snapshots/project_id/location/environment_uuid/timestamp\". This field is populated only if the snapshot creation was successful.",
"type": "string"
}
},
"type": "object"
},
"WebServerConfig": {
"description": "The configuration settings for the Airflow web server App Engine instance. Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.",
"id": "WebServerConfig",
Expand Down
6 changes: 5 additions & 1 deletion src/apis/composer/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export namespace composer_v1 {
machineType?: string | null;
}
/**
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
*/
export interface Schema$Date {
/**
Expand Down Expand Up @@ -522,6 +522,10 @@ export namespace composer_v1 {
* The configuration information for configuring a Private IP Cloud Composer environment.
*/
export interface Schema$PrivateEnvironmentConfig {
/**
* Optional. When specified, the environment will use Private Service Connect instead of VPC peerings to connect to Cloud SQL in the Tenant Project, and the PSC endpoint in the Customer Project will use an IP address from this subnetwork.
*/
cloudComposerConnectionSubnetwork?: string | null;
/**
* Optional. The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.
*/
Expand Down
24 changes: 12 additions & 12 deletions src/apis/composer/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export namespace composer_v1beta1 {
machineType?: string | null;
}
/**
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
* Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
*/
export interface Schema$Date {
/**
Expand Down Expand Up @@ -416,9 +416,9 @@ export namespace composer_v1beta1 {
operations?: Schema$Operation[];
}
/**
* Load environment state response.
* Response to LoadSnapshotRequest.
*/
export interface Schema$LoadEnvironmentStateResponse {}
export interface Schema$LoadSnapshotResponse {}
/**
* The configuration settings for Cloud Composer maintenance window. The following example: ``` { "startTime":"2019-08-01T01:00:00Z" "endTime":"2019-08-01T07:00:00Z" "recurrence":"FREQ=WEEKLY;BYDAY=TU,WE" \} ``` would define a maintenance window between 01 and 07 hours UTC during each Tuesday and Wednesday.
*/
Expand Down Expand Up @@ -614,6 +614,15 @@ export namespace composer_v1beta1 {
* Restart Airflow web server.
*/
export interface Schema$RestartWebServerRequest {}
/**
* Response to SaveSnapshotRequest.
*/
export interface Schema$SaveSnapshotResponse {
/**
* The fully-resolved Cloud Storage path of the created snapshot, e.g.: "gs://my-bucket/snapshots/project_location_environment_timestamp". This field is populated only if the snapshot creation was successful.
*/
snapshotPath?: string | null;
}
/**
* Configuration for resources used by Airflow schedulers.
*/
Expand Down Expand Up @@ -681,15 +690,6 @@ export namespace composer_v1beta1 {
*/
message?: string | null;
}
/**
* Store environment state response.
*/
export interface Schema$StoreEnvironmentStateResponse {
/**
* The fully-resolved Cloud Storage location of the created snapshot, e.g.: "gs://my-bucket/snapshots/project_id/location/environment_uuid/timestamp". This field is populated only if the snapshot creation was successful.
*/
snapshotLocation?: string | null;
}
/**
* The configuration settings for the Airflow web server App Engine instance. Supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.
*/
Expand Down

0 comments on commit 54a2107

Please sign in to comment.