Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of composer v1beta1 client #1640

Merged
merged 1 commit into from Dec 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions api_names_out.yaml
Expand Up @@ -29067,7 +29067,13 @@
"/composer:v1beta1/AllowedIpRange/value": value
"/composer:v1beta1/DatabaseConfig": database_config
"/composer:v1beta1/DatabaseConfig/machineType": machine_type
"/composer:v1beta1/Date": date
"/composer:v1beta1/Date/day": day
"/composer:v1beta1/Date/month": month
"/composer:v1beta1/Date/year": year
"/composer:v1beta1/Empty": empty
"/composer:v1beta1/EncryptionConfig": encryption_config
"/composer:v1beta1/EncryptionConfig/kmsKeyName": kms_key_name
"/composer:v1beta1/Environment": environment
"/composer:v1beta1/Environment/config": config
"/composer:v1beta1/Environment/createTime": create_time
Expand All @@ -29081,6 +29087,7 @@
"/composer:v1beta1/EnvironmentConfig/airflowUri": airflow_uri
"/composer:v1beta1/EnvironmentConfig/dagGcsPrefix": dag_gcs_prefix
"/composer:v1beta1/EnvironmentConfig/databaseConfig": database_config
"/composer:v1beta1/EnvironmentConfig/encryptionConfig": encryption_config
"/composer:v1beta1/EnvironmentConfig/gkeCluster": gke_cluster
"/composer:v1beta1/EnvironmentConfig/nodeConfig": node_config
"/composer:v1beta1/EnvironmentConfig/nodeCount": node_count
Expand All @@ -29095,10 +29102,13 @@
"/composer:v1beta1/IPAllocationPolicy/servicesSecondaryRangeName": services_secondary_range_name
"/composer:v1beta1/IPAllocationPolicy/useIpAliases": use_ip_aliases
"/composer:v1beta1/ImageVersion": image_version
"/composer:v1beta1/ImageVersion/creationDisabled": creation_disabled
"/composer:v1beta1/ImageVersion/imageVersionId": image_version_id
"/composer:v1beta1/ImageVersion/isDefault": is_default
"/composer:v1beta1/ImageVersion/releaseDate": release_date
"/composer:v1beta1/ImageVersion/supportedPythonVersions": supported_python_versions
"/composer:v1beta1/ImageVersion/supportedPythonVersions/supported_python_version": supported_python_version
"/composer:v1beta1/ImageVersion/upgradeDisabled": upgrade_disabled
"/composer:v1beta1/ListEnvironmentsResponse": list_environments_response
"/composer:v1beta1/ListEnvironmentsResponse/environments": environments
"/composer:v1beta1/ListEnvironmentsResponse/environments/environment": environment
Expand Down Expand Up @@ -29148,6 +29158,7 @@
"/composer:v1beta1/PrivateEnvironmentConfig/privateClusterConfig": private_cluster_config
"/composer:v1beta1/PrivateEnvironmentConfig/webServerIpv4CidrBlock": web_server_ipv4_cidr_block
"/composer:v1beta1/PrivateEnvironmentConfig/webServerIpv4ReservedRange": web_server_ipv4_reserved_range
"/composer:v1beta1/RestartWebServerRequest": restart_web_server_request
"/composer:v1beta1/SoftwareConfig": software_config
"/composer:v1beta1/SoftwareConfig/airflowConfigOverrides": airflow_config_overrides
"/composer:v1beta1/SoftwareConfig/airflowConfigOverrides/airflow_config_override": airflow_config_override
Expand Down Expand Up @@ -29181,7 +29192,10 @@
"/composer:v1beta1/composer.projects.locations.environments.patch": patch_project_location_environment
"/composer:v1beta1/composer.projects.locations.environments.patch/name": name
"/composer:v1beta1/composer.projects.locations.environments.patch/updateMask": update_mask
"/composer:v1beta1/composer.projects.locations.environments.restartWebServer": restart_environment_web_server
"/composer:v1beta1/composer.projects.locations.environments.restartWebServer/name": name
"/composer:v1beta1/composer.projects.locations.imageVersions.list": list_project_location_image_versions
"/composer:v1beta1/composer.projects.locations.imageVersions.list/includePastReleases": include_past_releases
"/composer:v1beta1/composer.projects.locations.imageVersions.list/pageSize": page_size
"/composer:v1beta1/composer.projects.locations.imageVersions.list/pageToken": page_token
"/composer:v1beta1/composer.projects.locations.imageVersions.list/parent": parent
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/composer_v1beta1.rb
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://cloud.google.com/composer/
module ComposerV1beta1
VERSION = 'V1beta1'
REVISION = '20201002'
REVISION = '20201202'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
109 changes: 109 additions & 0 deletions generated/google/apis/composer_v1beta1/classes.rb
Expand Up @@ -73,6 +73,47 @@ def update!(**args)
end
end

# 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`.
class Date
include Google::Apis::Core::Hashable

# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
# specify a year by itself or a year and month where the day isn't significant.
# Corresponds to the JSON property `day`
# @return [Fixnum]
attr_accessor :day

# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
# and day.
# Corresponds to the JSON property `month`
# @return [Fixnum]
attr_accessor :month

# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
# year.
# Corresponds to the JSON property `year`
# @return [Fixnum]
attr_accessor :year

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
@year = args[:year] if args.key?(:year)
end
end

# 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.
Expand All @@ -90,6 +131,27 @@ def update!(**args)
end
end

# The encryption options for the Composer environment and its dependencies.
class EncryptionConfig
include Google::Apis::Core::Hashable

# Optional. Customer-managed Encryption Key available through Google's Key
# Management Service. Cannot be updated. If not specified, Google-managed key
# will be used.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end
end

# An environment for running orchestration tasks.
class Environment
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -178,6 +240,11 @@ class EnvironmentConfig
# @return [Google::Apis::ComposerV1beta1::DatabaseConfig]
attr_accessor :database_config

# The encryption options for the Composer environment and its dependencies.
# Corresponds to the JSON property `encryptionConfig`
# @return [Google::Apis::ComposerV1beta1::EncryptionConfig]
attr_accessor :encryption_config

# Output only. The Kubernetes Engine cluster used to run this environment.
# Corresponds to the JSON property `gkeCluster`
# @return [String]
Expand Down Expand Up @@ -225,6 +292,7 @@ def update!(**args)
@airflow_uri = args[:airflow_uri] if args.key?(:airflow_uri)
@dag_gcs_prefix = args[:dag_gcs_prefix] if args.key?(:dag_gcs_prefix)
@database_config = args[:database_config] if args.key?(:database_config)
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
@gke_cluster = args[:gke_cluster] if args.key?(:gke_cluster)
@node_config = args[:node_config] if args.key?(:node_config)
@node_count = args[:node_count] if args.key?(:node_count)
Expand Down Expand Up @@ -304,6 +372,12 @@ def update!(**args)
class ImageVersion
include Google::Apis::Core::Hashable

# Whether it is impossible to create an environment with the image version.
# Corresponds to the JSON property `creationDisabled`
# @return [Boolean]
attr_accessor :creation_disabled
alias_method :creation_disabled?, :creation_disabled

# The string identifier of the ImageVersion, in the form: "composer-x.y.z-
# airflow-a.b(.c)"
# Corresponds to the JSON property `imageVersionId`
Expand All @@ -317,20 +391,42 @@ class ImageVersion
attr_accessor :is_default
alias_method :is_default?, :is_default

# 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`.
# Corresponds to the JSON property `releaseDate`
# @return [Google::Apis::ComposerV1beta1::Date]
attr_accessor :release_date

# supported python versions
# Corresponds to the JSON property `supportedPythonVersions`
# @return [Array<String>]
attr_accessor :supported_python_versions

# Whether it is impossible to upgrade an environment running with the image
# version.
# Corresponds to the JSON property `upgradeDisabled`
# @return [Boolean]
attr_accessor :upgrade_disabled
alias_method :upgrade_disabled?, :upgrade_disabled

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@creation_disabled = args[:creation_disabled] if args.key?(:creation_disabled)
@image_version_id = args[:image_version_id] if args.key?(:image_version_id)
@is_default = args[:is_default] if args.key?(:is_default)
@release_date = args[:release_date] if args.key?(:release_date)
@supported_python_versions = args[:supported_python_versions] if args.key?(:supported_python_versions)
@upgrade_disabled = args[:upgrade_disabled] if args.key?(:upgrade_disabled)
end
end

Expand Down Expand Up @@ -721,6 +817,19 @@ def update!(**args)
end
end

# Restart Airflow web server.
class RestartWebServerRequest
include Google::Apis::Core::Hashable

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
end
end

# Specifies the selection and configuration of software inside the environment.
class SoftwareConfig
include Google::Apis::Core::Hashable
Expand Down
46 changes: 46 additions & 0 deletions generated/google/apis/composer_v1beta1/representations.rb
Expand Up @@ -34,12 +34,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Date
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class EncryptionConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Environment
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -112,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class RestartWebServerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class SoftwareConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -151,12 +169,28 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :day, as: 'day'
property :month, as: 'month'
property :year, as: 'year'
end
end

class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class EncryptionConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kms_key_name, as: 'kmsKeyName'
end
end

class Environment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -178,6 +212,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :dag_gcs_prefix, as: 'dagGcsPrefix'
property :database_config, as: 'databaseConfig', class: Google::Apis::ComposerV1beta1::DatabaseConfig, decorator: Google::Apis::ComposerV1beta1::DatabaseConfig::Representation

property :encryption_config, as: 'encryptionConfig', class: Google::Apis::ComposerV1beta1::EncryptionConfig, decorator: Google::Apis::ComposerV1beta1::EncryptionConfig::Representation

property :gke_cluster, as: 'gkeCluster'
property :node_config, as: 'nodeConfig', class: Google::Apis::ComposerV1beta1::NodeConfig, decorator: Google::Apis::ComposerV1beta1::NodeConfig::Representation

Expand Down Expand Up @@ -207,9 +243,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
class ImageVersion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_disabled, as: 'creationDisabled'
property :image_version_id, as: 'imageVersionId'
property :is_default, as: 'isDefault'
property :release_date, as: 'releaseDate', class: Google::Apis::ComposerV1beta1::Date, decorator: Google::Apis::ComposerV1beta1::Date::Representation

collection :supported_python_versions, as: 'supportedPythonVersions'
property :upgrade_disabled, as: 'upgradeDisabled'
end
end

Expand Down Expand Up @@ -301,6 +341,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class RestartWebServerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class SoftwareConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down