Autogenerated update (2020-08-22)

Update:
- composer_v1
- composer_v1beta1
- file_v1
- file_v1beta1
- pubsublite_v1
- texttospeech_v1
- texttospeech_v1beta1
This commit is contained in:
Google APIs 2020-08-22 00:38:17 +00:00
parent e08f0d3bef
commit d0d22a2baa
25 changed files with 1333 additions and 856 deletions

View File

@ -94511,6 +94511,19 @@
"/file:v1/file.projects.locations.operations.list/pageToken": page_token "/file:v1/file.projects.locations.operations.list/pageToken": page_token
"/file:v1/key": key "/file:v1/key": key
"/file:v1/quotaUser": quota_user "/file:v1/quotaUser": quota_user
"/file:v1beta1/Backup": backup
"/file:v1beta1/Backup/capacityGb": capacity_gb
"/file:v1beta1/Backup/createTime": create_time
"/file:v1beta1/Backup/description": description
"/file:v1beta1/Backup/downloadBytes": download_bytes
"/file:v1beta1/Backup/labels": labels
"/file:v1beta1/Backup/labels/label": label
"/file:v1beta1/Backup/name": name
"/file:v1beta1/Backup/sourceFileShare": source_file_share
"/file:v1beta1/Backup/sourceInstance": source_instance
"/file:v1beta1/Backup/sourceInstanceTier": source_instance_tier
"/file:v1beta1/Backup/state": state
"/file:v1beta1/Backup/storageBytes": storage_bytes
"/file:v1beta1/CancelOperationRequest": cancel_operation_request "/file:v1beta1/CancelOperationRequest": cancel_operation_request
"/file:v1beta1/ClientList": client_list "/file:v1beta1/ClientList": client_list
"/file:v1beta1/ClientList/hostNames": host_names "/file:v1beta1/ClientList/hostNames": host_names
@ -94539,6 +94552,7 @@
"/file:v1beta1/FileShareConfig/nfsExportOptions/nfs_export_option": nfs_export_option "/file:v1beta1/FileShareConfig/nfsExportOptions/nfs_export_option": nfs_export_option
"/file:v1beta1/FileShareConfig/protocols": protocols "/file:v1beta1/FileShareConfig/protocols": protocols
"/file:v1beta1/FileShareConfig/protocols/protocol": protocol "/file:v1beta1/FileShareConfig/protocols/protocol": protocol
"/file:v1beta1/FileShareConfig/sourceBackup": source_backup
"/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance": google_cloud_saasaccelerator_management_providers_v1_instance "/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance": google_cloud_saasaccelerator_management_providers_v1_instance
"/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/consumerDefinedName": consumer_defined_name "/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/consumerDefinedName": consumer_defined_name
"/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/createTime": create_time "/file:v1beta1/GoogleCloudSaasacceleratorManagementProvidersV1Instance/createTime": create_time
@ -94621,6 +94635,12 @@
"/file:v1beta1/Instance/state": state "/file:v1beta1/Instance/state": state
"/file:v1beta1/Instance/statusMessage": status_message "/file:v1beta1/Instance/statusMessage": status_message
"/file:v1beta1/Instance/tier": tier "/file:v1beta1/Instance/tier": tier
"/file:v1beta1/ListBackupsResponse": list_backups_response
"/file:v1beta1/ListBackupsResponse/backups": backups
"/file:v1beta1/ListBackupsResponse/backups/backup": backup
"/file:v1beta1/ListBackupsResponse/nextPageToken": next_page_token
"/file:v1beta1/ListBackupsResponse/unreachable": unreachable
"/file:v1beta1/ListBackupsResponse/unreachable/unreachable": unreachable
"/file:v1beta1/ListInstancesResponse": list_instances_response "/file:v1beta1/ListInstancesResponse": list_instances_response
"/file:v1beta1/ListInstancesResponse/instances": instances "/file:v1beta1/ListInstancesResponse/instances": instances
"/file:v1beta1/ListInstancesResponse/instances/instance": instance "/file:v1beta1/ListInstancesResponse/instances/instance": instance
@ -94682,6 +94702,10 @@
"/file:v1beta1/OperationMetadata/statusDetail": status_detail "/file:v1beta1/OperationMetadata/statusDetail": status_detail
"/file:v1beta1/OperationMetadata/target": target "/file:v1beta1/OperationMetadata/target": target
"/file:v1beta1/OperationMetadata/verb": verb "/file:v1beta1/OperationMetadata/verb": verb
"/file:v1beta1/RestoreInstanceRequest": restore_instance_request
"/file:v1beta1/RestoreInstanceRequest/fileShare": file_share
"/file:v1beta1/RestoreInstanceRequest/sourceBackup": source_backup
"/file:v1beta1/RestoreInstanceRequest/sourceSnapshot": source_snapshot
"/file:v1beta1/SmbExport": smb_export "/file:v1beta1/SmbExport": smb_export
"/file:v1beta1/SmbExport/browsable": browsable "/file:v1beta1/SmbExport/browsable": browsable
"/file:v1beta1/SmbExport/fileShare": file_share "/file:v1beta1/SmbExport/fileShare": file_share
@ -94692,6 +94716,22 @@
"/file:v1beta1/Status/details/detail/detail": detail "/file:v1beta1/Status/details/detail/detail": detail
"/file:v1beta1/Status/message": message "/file:v1beta1/Status/message": message
"/file:v1beta1/fields": fields "/file:v1beta1/fields": fields
"/file:v1beta1/file.projects.locations.backups.create": create_project_location_backup
"/file:v1beta1/file.projects.locations.backups.create/backupId": backup_id
"/file:v1beta1/file.projects.locations.backups.create/parent": parent
"/file:v1beta1/file.projects.locations.backups.delete": delete_project_location_backup
"/file:v1beta1/file.projects.locations.backups.delete/name": name
"/file:v1beta1/file.projects.locations.backups.get": get_project_location_backup
"/file:v1beta1/file.projects.locations.backups.get/name": name
"/file:v1beta1/file.projects.locations.backups.list": list_project_location_backups
"/file:v1beta1/file.projects.locations.backups.list/filter": filter
"/file:v1beta1/file.projects.locations.backups.list/orderBy": order_by
"/file:v1beta1/file.projects.locations.backups.list/pageSize": page_size
"/file:v1beta1/file.projects.locations.backups.list/pageToken": page_token
"/file:v1beta1/file.projects.locations.backups.list/parent": parent
"/file:v1beta1/file.projects.locations.backups.patch": patch_project_location_backup
"/file:v1beta1/file.projects.locations.backups.patch/name": name
"/file:v1beta1/file.projects.locations.backups.patch/updateMask": update_mask
"/file:v1beta1/file.projects.locations.get": get_project_location "/file:v1beta1/file.projects.locations.get": get_project_location
"/file:v1beta1/file.projects.locations.get/name": name "/file:v1beta1/file.projects.locations.get/name": name
"/file:v1beta1/file.projects.locations.instances.create": create_project_location_instance "/file:v1beta1/file.projects.locations.instances.create": create_project_location_instance
@ -94710,6 +94750,8 @@
"/file:v1beta1/file.projects.locations.instances.patch": patch_project_location_instance "/file:v1beta1/file.projects.locations.instances.patch": patch_project_location_instance
"/file:v1beta1/file.projects.locations.instances.patch/name": name "/file:v1beta1/file.projects.locations.instances.patch/name": name
"/file:v1beta1/file.projects.locations.instances.patch/updateMask": update_mask "/file:v1beta1/file.projects.locations.instances.patch/updateMask": update_mask
"/file:v1beta1/file.projects.locations.instances.restore": restore_instance
"/file:v1beta1/file.projects.locations.instances.restore/name": name
"/file:v1beta1/file.projects.locations.list": list_project_locations "/file:v1beta1/file.projects.locations.list": list_project_locations
"/file:v1beta1/file.projects.locations.list/filter": filter "/file:v1beta1/file.projects.locations.list/filter": filter
"/file:v1beta1/file.projects.locations.list/includeUnrevealedLocations": include_unrevealed_locations "/file:v1beta1/file.projects.locations.list/includeUnrevealedLocations": include_unrevealed_locations
@ -94769,6 +94811,7 @@
"/firebase:v1beta1/FirebaseAppInfo/appId": app_id "/firebase:v1beta1/FirebaseAppInfo/appId": app_id
"/firebase:v1beta1/FirebaseAppInfo/displayName": display_name "/firebase:v1beta1/FirebaseAppInfo/displayName": display_name
"/firebase:v1beta1/FirebaseAppInfo/name": name "/firebase:v1beta1/FirebaseAppInfo/name": name
"/firebase:v1beta1/FirebaseAppInfo/namespace": namespace
"/firebase:v1beta1/FirebaseAppInfo/platform": platform "/firebase:v1beta1/FirebaseAppInfo/platform": platform
"/firebase:v1beta1/FirebaseProject": firebase_project "/firebase:v1beta1/FirebaseProject": firebase_project
"/firebase:v1beta1/FirebaseProject/displayName": display_name "/firebase:v1beta1/FirebaseProject/displayName": display_name
@ -94869,6 +94912,7 @@
"/firebase:v1beta1/WebApp/displayName": display_name "/firebase:v1beta1/WebApp/displayName": display_name
"/firebase:v1beta1/WebApp/name": name "/firebase:v1beta1/WebApp/name": name
"/firebase:v1beta1/WebApp/projectId": project_id "/firebase:v1beta1/WebApp/projectId": project_id
"/firebase:v1beta1/WebApp/webId": web_id
"/firebase:v1beta1/WebAppConfig": web_app_config "/firebase:v1beta1/WebAppConfig": web_app_config
"/firebase:v1beta1/WebAppConfig/apiKey": api_key "/firebase:v1beta1/WebAppConfig/apiKey": api_key
"/firebase:v1beta1/WebAppConfig/appId": app_id "/firebase:v1beta1/WebAppConfig/appId": app_id
@ -94942,6 +94986,7 @@
"/firebase:v1beta1/firebase.projects.removeAnalytics": remove_project_analytics "/firebase:v1beta1/firebase.projects.removeAnalytics": remove_project_analytics
"/firebase:v1beta1/firebase.projects.removeAnalytics/parent": parent "/firebase:v1beta1/firebase.projects.removeAnalytics/parent": parent
"/firebase:v1beta1/firebase.projects.searchApps": search_project_apps "/firebase:v1beta1/firebase.projects.searchApps": search_project_apps
"/firebase:v1beta1/firebase.projects.searchApps/filter": filter
"/firebase:v1beta1/firebase.projects.searchApps/pageSize": page_size "/firebase:v1beta1/firebase.projects.searchApps/pageSize": page_size
"/firebase:v1beta1/firebase.projects.searchApps/pageToken": page_token "/firebase:v1beta1/firebase.projects.searchApps/pageToken": page_token
"/firebase:v1beta1/firebase.projects.searchApps/parent": parent "/firebase:v1beta1/firebase.projects.searchApps/parent": parent

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/ # @see https://cloud.google.com/composer/
module ComposerV1 module ComposerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200313' REVISION = '20200817'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,13 +22,11 @@ module Google
module Apis module Apis
module ComposerV1 module ComposerV1
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -55,21 +53,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Optional. User-defined labels for this environment. # Optional. User-defined labels for this environment. The labels map can contain
# The labels map can contain no more than 64 entries. Entries of the labels # no more than 64 entries. Entries of the labels map are UTF8 strings that
# map are UTF8 strings that comply with the following restrictions: # comply with the following restrictions: * Keys must conform to regexp: \p`Ll`\
# * Keys must conform to regexp: \p`Ll`\p`Lo``0,62` # p`Lo``0,62` * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` *
# * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` # Both keys and values are additionally constrained to be <= 128 bytes in size.
# * Both keys and values are additionally constrained to be <= 128 bytes in
# size.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The resource name of the environment, in the form: # The resource name of the environment, in the form: "projects/`projectId`/
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # locations/`locationId`/environments/`environmentId`" EnvironmentId must start
# EnvironmentId must start with a lowercase letter followed by up to 63 # with a lowercase letter followed by up to 63 lowercase letters, numbers, or
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen. # hyphens, and cannot end with a hyphen.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -85,8 +81,7 @@ module Google
attr_accessor :update_time attr_accessor :update_time
# Output only. The UUID (Universally Unique IDentifier) associated with this # Output only. The UUID (Universally Unique IDentifier) associated with this
# environment. # environment. This value is generated when the environment is created.
# This value is generated when the environment is created.
# Corresponds to the JSON property `uuid` # Corresponds to the JSON property `uuid`
# @return [String] # @return [String]
attr_accessor :uuid attr_accessor :uuid
@ -112,18 +107,16 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The URI of the Apache Airflow Web UI hosted within this # Output only. The URI of the Apache Airflow Web UI hosted within this
# environment (see # environment (see [Airflow web interface](/composer/docs/how-to/accessing/
# [Airflow web # airflow-web-interface)).
# interface](/composer/docs/how-to/accessing/airflow-web-interface)).
# Corresponds to the JSON property `airflowUri` # Corresponds to the JSON property `airflowUri`
# @return [String] # @return [String]
attr_accessor :airflow_uri attr_accessor :airflow_uri
# Output only. The Cloud Storage prefix of the DAGs for this environment. # Output only. The Cloud Storage prefix of the DAGs for this environment.
# Although Cloud # Although Cloud Storage objects reside in a flat namespace, a hierarchical file
# Storage objects reside in a flat namespace, a hierarchical file tree # tree can be simulated using "/"-delimited object name prefixes. DAG objects
# can be simulated using "/"-delimited object name prefixes. DAG objects for # for this environment reside in a simulated directory with the given prefix.
# this environment reside in a simulated directory with the given prefix.
# Corresponds to the JSON property `dagGcsPrefix` # Corresponds to the JSON property `dagGcsPrefix`
# @return [String] # @return [String]
attr_accessor :dag_gcs_prefix attr_accessor :dag_gcs_prefix
@ -133,14 +126,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :gke_cluster attr_accessor :gke_cluster
# The configuration information for the Kubernetes Engine nodes running # The configuration information for the Kubernetes Engine nodes running the
# the Apache Airflow software. # Apache Airflow software.
# Corresponds to the JSON property `nodeConfig` # Corresponds to the JSON property `nodeConfig`
# @return [Google::Apis::ComposerV1::NodeConfig] # @return [Google::Apis::ComposerV1::NodeConfig]
attr_accessor :node_config attr_accessor :node_config
# The number of nodes in the Kubernetes Engine cluster that will be # The number of nodes in the Kubernetes Engine cluster that will be used to run
# used to run this environment. # this environment.
# Corresponds to the JSON property `nodeCount` # Corresponds to the JSON property `nodeCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :node_count attr_accessor :node_count
@ -172,57 +165,48 @@ module Google
end end
end end
# Configuration for controlling how IPs are allocated in the # Configuration for controlling how IPs are allocated in the GKE cluster running
# GKE cluster running the Apache Airflow software. # the Apache Airflow software.
class IpAllocationPolicy class IpAllocationPolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The IP address range used to allocate IP addresses to pods in # Optional. The IP address range used to allocate IP addresses to pods in the
# the GKE cluster. # GKE cluster. This field is applicable only when `use_ip_aliases` is true. Set
# This field is applicable only when `use_ip_aliases` is true. # to blank to have GKE choose a range with the default size. Set to /netmask (e.
# Set to blank to have GKE choose a range with the default size. # g. `/14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](
# Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific # http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `
# netmask. # 10.96.0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.
# Set to a # 0.0/12`, `192.168.0.0/16`) to pick a specific range to use.
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
# to use.
# Corresponds to the JSON property `clusterIpv4CidrBlock` # Corresponds to the JSON property `clusterIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :cluster_ipv4_cidr_block attr_accessor :cluster_ipv4_cidr_block
# Optional. The name of the GKE cluster's secondary range used to allocate # Optional. The name of the GKE cluster's secondary range used to allocate IP
# IP addresses to pods. # addresses to pods. This field is applicable only when `use_ip_aliases` is true.
# This field is applicable only when `use_ip_aliases` is true.
# Corresponds to the JSON property `clusterSecondaryRangeName` # Corresponds to the JSON property `clusterSecondaryRangeName`
# @return [String] # @return [String]
attr_accessor :cluster_secondary_range_name attr_accessor :cluster_secondary_range_name
# Optional. The IP address range of the services IP addresses in this # Optional. The IP address range of the services IP addresses in this GKE
# GKE cluster. # cluster. This field is applicable only when `use_ip_aliases` is true. Set to
# This field is applicable only when `use_ip_aliases` is true. # blank to have GKE choose a range with the default size. Set to /netmask (e.g. `
# Set to blank to have GKE choose a range with the default size. # /14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](http:
# Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific # //en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.
# netmask. # 0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`
# Set to a # , `192.168.0.0/16`) to pick a specific range to use.
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
# to use.
# Corresponds to the JSON property `servicesIpv4CidrBlock` # Corresponds to the JSON property `servicesIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :services_ipv4_cidr_block attr_accessor :services_ipv4_cidr_block
# Optional. The name of the services' secondary range used to allocate # Optional. The name of the services' secondary range used to allocate IP
# IP addresses to the GKE cluster. # addresses to the GKE cluster. This field is applicable only when `
# This field is applicable only when `use_ip_aliases` is true. # use_ip_aliases` is true.
# Corresponds to the JSON property `servicesSecondaryRangeName` # Corresponds to the JSON property `servicesSecondaryRangeName`
# @return [String] # @return [String]
attr_accessor :services_secondary_range_name attr_accessor :services_secondary_range_name
# Optional. Whether or not to enable Alias IPs in the GKE cluster. # Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a
# If `true`, a VPC-native cluster is created. # VPC-native cluster is created.
# Corresponds to the JSON property `useIpAliases` # Corresponds to the JSON property `useIpAliases`
# @return [Boolean] # @return [Boolean]
attr_accessor :use_ip_aliases attr_accessor :use_ip_aliases
@ -246,14 +230,14 @@ module Google
class ImageVersion class ImageVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The string identifier of the ImageVersion, in the form: # The string identifier of the ImageVersion, in the form: "composer-x.y.z-
# "composer-x.y.z-airflow-a.b(.c)" # airflow-a.b(.c)"
# Corresponds to the JSON property `imageVersionId` # Corresponds to the JSON property `imageVersionId`
# @return [String] # @return [String]
attr_accessor :image_version_id attr_accessor :image_version_id
# Whether this is the default ImageVersion used by Composer during # Whether this is the default ImageVersion used by Composer during environment
# environment creation if no input ImageVersion is specified. # creation if no input ImageVersion is specified.
# Corresponds to the JSON property `isDefault` # Corresponds to the JSON property `isDefault`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_default attr_accessor :is_default
@ -351,106 +335,95 @@ module Google
end end
end end
# The configuration information for the Kubernetes Engine nodes running # The configuration information for the Kubernetes Engine nodes running the
# the Apache Airflow software. # Apache Airflow software.
class NodeConfig class NodeConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The disk size in GB used for node VMs. Minimum size is 20GB. # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
# If unspecified, defaults to 100GB. Cannot be updated. # unspecified, defaults to 100GB. Cannot be updated.
# Corresponds to the JSON property `diskSizeGb` # Corresponds to the JSON property `diskSizeGb`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :disk_size_gb attr_accessor :disk_size_gb
# Configuration for controlling how IPs are allocated in the # Configuration for controlling how IPs are allocated in the GKE cluster running
# GKE cluster running the Apache Airflow software. # the Apache Airflow software.
# Corresponds to the JSON property `ipAllocationPolicy` # Corresponds to the JSON property `ipAllocationPolicy`
# @return [Google::Apis::ComposerV1::IpAllocationPolicy] # @return [Google::Apis::ComposerV1::IpAllocationPolicy]
attr_accessor :ip_allocation_policy attr_accessor :ip_allocation_policy
# Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which to
# to deploy the VMs used to run the Apache Airflow software, specified as a # deploy the VMs used to run the Apache Airflow software, specified as a [
# [relative resource # relative resource name](/apis/design/resource_names#relative_resource_name).
# name](/apis/design/resource_names#relative_resource_name). For example: # For example: "projects/`projectId`/zones/`zoneId`". This `location` must
# "projects/`projectId`/zones/`zoneId`". # belong to the enclosing environment's project and location. If both this field
# This `location` must belong to the enclosing environment's project and # and `nodeConfig.machineType` are specified, `nodeConfig.machineType` must
# location. If both this field and `nodeConfig.machineType` are specified, # belong to this `location`; if both are unspecified, the service will pick a
# `nodeConfig.machineType` must belong to this `location`; if both are # zone in the Compute Engine region corresponding to the Cloud Composer location,
# unspecified, the service will pick a zone in the Compute Engine region # and propagate that choice to both fields. If only one field (`location` or `
# corresponding to the Cloud Composer location, and propagate that choice to # nodeConfig.machineType`) is specified, the location information from the
# both fields. If only one field (`location` or `nodeConfig.machineType`) is # specified field will be propagated to the unspecified field.
# specified, the location information from the specified field will be
# propagated to the unspecified field.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. The Compute Engine # Optional. The Compute Engine [machine type](/compute/docs/machine-types) used
# [machine type](/compute/docs/machine-types) used for cluster instances, # for cluster instances, specified as a [relative resource name](/apis/design/
# specified as a # resource_names#relative_resource_name). For example: "projects/`projectId`/
# [relative resource # zones/`zoneId`/machineTypes/`machineTypeId`". The `machineType` must belong to
# name](/apis/design/resource_names#relative_resource_name). For example: # the enclosing environment's project and location. If both this field and `
# "projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId`". # nodeConfig.location` are specified, this `machineType` must belong to the `
# The `machineType` must belong to the enclosing environment's project and # nodeConfig.location`; if both are unspecified, the service will pick a zone in
# location. If both this field and `nodeConfig.location` are specified, # the Compute Engine region corresponding to the Cloud Composer location, and
# this `machineType` must belong to the `nodeConfig.location`; if both are # propagate that choice to both fields. If exactly one of this field and `
# unspecified, the service will pick a zone in the Compute Engine region # nodeConfig.location` is specified, the location information from the specified
# corresponding to the Cloud Composer location, and propagate that choice to # field will be propagated to the unspecified field. The `machineTypeId` must
# both fields. If exactly one of this field and `nodeConfig.location` is # not be a [shared-core machine type](/compute/docs/machine-types#sharedcore).
# specified, the location information from the specified field will be # If this field is unspecified, the `machineTypeId` defaults to "n1-standard-1".
# propagated to the unspecified field.
# The `machineTypeId` must not be a [shared-core machine
# type](/compute/docs/machine-types#sharedcore).
# If this field is unspecified, the `machineTypeId` defaults
# to "n1-standard-1".
# Corresponds to the JSON property `machineType` # Corresponds to the JSON property `machineType`
# @return [String] # @return [String]
attr_accessor :machine_type attr_accessor :machine_type
# Optional. The Compute Engine network to be used for machine # Optional. The Compute Engine network to be used for machine communications,
# communications, specified as a # specified as a [relative resource name](/apis/design/resource_names#
# [relative resource # relative_resource_name). For example: "projects/`projectId`/global/networks/`
# name](/apis/design/resource_names#relative_resource_name). For example: # networkId`". [Shared VPC](/vpc/docs/shared-vpc) is not currently supported.
# "projects/`projectId`/global/networks/`networkId`". # The network must belong to the environment's project. If unspecified, the "
# [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The # default" network ID in the environment's project is used. If a [Custom Subnet
# network must belong to the environment's project. If unspecified, the # Network](/vpc/docs/vpc#vpc_networks_and_subnets) is provided, `nodeConfig.
# "default" network ID in the environment's project is used. If a # subnetwork` must also be provided.
# [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
# is provided, `nodeConfig.subnetwork` must also be provided.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# Optional. The set of Google API scopes to be made available on all # Optional. The set of Google API scopes to be made available on all node VMs.
# node VMs. If `oauth_scopes` is empty, defaults to # If `oauth_scopes` is empty, defaults to ["https://www.googleapis.com/auth/
# ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. # cloud-platform"]. Cannot be updated.
# Corresponds to the JSON property `oauthScopes` # Corresponds to the JSON property `oauthScopes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :oauth_scopes attr_accessor :oauth_scopes
# Optional. The Google Cloud Platform Service Account to be used by the node # Optional. The Google Cloud Platform Service Account to be used by the node VMs.
# VMs. If a service account is not specified, the "default" Compute Engine # If a service account is not specified, the "default" Compute Engine service
# service account is used. Cannot be updated. # account is used. Cannot be updated.
# Corresponds to the JSON property `serviceAccount` # Corresponds to the JSON property `serviceAccount`
# @return [String] # @return [String]
attr_accessor :service_account attr_accessor :service_account
# Optional. The Compute Engine subnetwork to be used for machine # Optional. The Compute Engine subnetwork to be used for machine communications,
# communications, specified as a # specified as a [relative resource name](/apis/design/resource_names#
# [relative resource # relative_resource_name). For example: "projects/`projectId`/regions/`regionId`/
# name](/apis/design/resource_names#relative_resource_name). For example: # subnetworks/`subnetworkId`" If a subnetwork is provided, `nodeConfig.network`
# "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`" # must also be provided, and the subnetwork must belong to the enclosing
# If a subnetwork is provided, `nodeConfig.network` must also be provided, # environment's project and location.
# and the subnetwork must belong to the enclosing environment's project and
# location.
# Corresponds to the JSON property `subnetwork` # Corresponds to the JSON property `subnetwork`
# @return [String] # @return [String]
attr_accessor :subnetwork attr_accessor :subnetwork
# Optional. The list of instance tags applied to all node VMs. Tags are used # Optional. The list of instance tags applied to all node VMs. Tags are used to
# to identify valid sources or targets for network firewalls. Each tag within # identify valid sources or targets for network firewalls. Each tag within the
# the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). # list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot
# Cannot be updated. # be updated.
# Corresponds to the JSON property `tags` # Corresponds to the JSON property `tags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tags attr_accessor :tags
@ -478,47 +451,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::ComposerV1::Status] # @return [Google::Apis::ComposerV1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -557,8 +528,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :operation_type attr_accessor :operation_type
# Output only. The resource being operated on, as a [relative resource name]( # Output only. The resource being operated on, as a [relative resource name]( /
# /apis/design/resource_names#relative_resource_name). # apis/design/resource_names#relative_resource_name).
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [String] # @return [String]
attr_accessor :resource attr_accessor :resource
@ -601,18 +572,16 @@ module Google
alias_method :enable_private_endpoint?, :enable_private_endpoint alias_method :enable_private_endpoint?, :enable_private_endpoint
# Optional. The CIDR block from which IPv4 range for GKE master will be reserved. # Optional. The CIDR block from which IPv4 range for GKE master will be reserved.
# If # If left blank, the default value of '172.16.0.0/23' is used.
# left blank, the default value of '172.16.0.0/23' is used.
# Corresponds to the JSON property `masterIpv4CidrBlock` # Corresponds to the JSON property `masterIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :master_ipv4_cidr_block attr_accessor :master_ipv4_cidr_block
# Output only. The IP range in CIDR notation to use for the hosted master # Output only. The IP range in CIDR notation to use for the hosted master
# network. This # network. This range is used for assigning internal IP addresses to the GKE
# range is used for assigning internal IP addresses to the GKE cluster # cluster master or set of masters and to the internal load balancer virtual IP.
# master or set of masters and to the internal load balancer virtual IP. # This range must not overlap with any other ranges in use within the cluster's
# This range must not overlap with any other ranges in use # network.
# within the cluster's network.
# Corresponds to the JSON property `masterIpv4ReservedRange` # Corresponds to the JSON property `masterIpv4ReservedRange`
# @return [String] # @return [String]
attr_accessor :master_ipv4_reserved_range attr_accessor :master_ipv4_reserved_range
@ -635,15 +604,14 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The CIDR block from which IP range in tenant project will be # Optional. The CIDR block from which IP range in tenant project will be
# reserved for # reserved for Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
# Cloud SQL. Needs to be disjoint from `web_server_ipv4_cidr_block`.
# Corresponds to the JSON property `cloudSqlIpv4CidrBlock` # Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :cloud_sql_ipv4_cidr_block attr_accessor :cloud_sql_ipv4_cidr_block
# Optional. If `true`, a Private IP Cloud Composer environment is created. # Optional. If `true`, a Private IP Cloud Composer environment is created. If
# If this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be # this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to
# set to true. # true.
# Corresponds to the JSON property `enablePrivateEnvironment` # Corresponds to the JSON property `enablePrivateEnvironment`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_private_environment attr_accessor :enable_private_environment
@ -656,9 +624,8 @@ module Google
attr_accessor :private_cluster_config attr_accessor :private_cluster_config
# Optional. The CIDR block from which IP range for web server will be reserved. # Optional. The CIDR block from which IP range for web server will be reserved.
# Needs # Needs to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and `
# to be disjoint from `private_cluster_config.master_ipv4_cidr_block` and # cloud_sql_ipv4_cidr_block`.
# `cloud_sql_ipv4_cidr_block`.
# Corresponds to the JSON property `webServerIpv4CidrBlock` # Corresponds to the JSON property `webServerIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :web_server_ipv4_cidr_block attr_accessor :web_server_ipv4_cidr_block
@ -686,84 +653,65 @@ module Google
class SoftwareConfig class SoftwareConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Apache Airflow configuration properties to override. # Optional. Apache Airflow configuration properties to override. Property keys
# Property keys contain the section and property names, separated by a # contain the section and property names, separated by a hyphen, for example "
# hyphen, for example "core-dags_are_paused_at_creation". Section names must # core-dags_are_paused_at_creation". Section names must not contain hyphens ("-")
# not contain hyphens ("-"), opening square brackets ("["), or closing # , opening square brackets ("["), or closing square brackets ("]"). The
# square brackets ("]"). The property name must not be empty and must not # property name must not be empty and must not contain an equals sign ("=") or
# contain an equals sign ("=") or semicolon (";"). Section and property names # semicolon (";"). Section and property names must not contain a period (".").
# must not contain a period ("."). Apache Airflow configuration property # Apache Airflow configuration property names must be written in [snake_case](
# names must be written in # https://en.wikipedia.org/wiki/Snake_case). Property values can contain any
# [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can # character, and can be written in any lower/upper case format. Certain Apache
# contain any character, and can be written in any lower/upper case format. # Airflow configuration property values are [blacklisted](/composer/docs/how-to/
# Certain Apache Airflow configuration property values are # managing/setting-airflow-configurations#airflow_configuration_blacklists), and
# [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations# # cannot be overridden.
# airflow_configuration_blacklists),
# and cannot be overridden.
# Corresponds to the JSON property `airflowConfigOverrides` # Corresponds to the JSON property `airflowConfigOverrides`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :airflow_config_overrides attr_accessor :airflow_config_overrides
# Optional. Additional environment variables to provide to the Apache Airflow # Optional. Additional environment variables to provide to the Apache Airflow
# scheduler, worker, and webserver processes. # scheduler, worker, and webserver processes. Environment variable names must
# Environment variable names must match the regular expression # match the regular expression `a-zA-Z_*`. They cannot specify Apache Airflow
# `a-zA-Z_*`. They cannot specify Apache Airflow # software configuration overrides (they cannot match the regular expression `
# software configuration overrides (they cannot match the regular expression # AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the following
# `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the # reserved names: * `AIRFLOW_HOME` * `C_FORCE_ROOT` * `CONTAINER_NAME` * `
# following reserved names: # DAGS_FOLDER` * `GCP_PROJECT` * `GCS_BUCKET` * `GKE_CLUSTER_NAME` * `
# * `AIRFLOW_HOME` # SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` * `SQL_PROJECT` * `SQL_REGION`
# * `C_FORCE_ROOT`
# * `CONTAINER_NAME`
# * `DAGS_FOLDER`
# * `GCP_PROJECT`
# * `GCS_BUCKET`
# * `GKE_CLUSTER_NAME`
# * `SQL_DATABASE`
# * `SQL_INSTANCE`
# * `SQL_PASSWORD`
# * `SQL_PROJECT`
# * `SQL_REGION`
# * `SQL_USER` # * `SQL_USER`
# Corresponds to the JSON property `envVariables` # Corresponds to the JSON property `envVariables`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :env_variables attr_accessor :env_variables
# The version of the software running in the environment. # The version of the software running in the environment. This encapsulates both
# This encapsulates both the version of Cloud Composer functionality and the # the version of Cloud Composer functionality and the version of Apache Airflow.
# version of Apache Airflow. It must match the regular expression # It must match the regular expression `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-
# `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. # airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. When used as input, the server also
# When used as input, the server also checks if the provided version is # checks if the provided version is supported and denies the request for an
# supported and denies the request for an unsupported version. # unsupported version. The Cloud Composer portion of the version is a [semantic
# The Cloud Composer portion of the version is a # version](https://semver.org) or `latest`. When the patch version is omitted,
# [semantic version](https://semver.org) or `latest`. When the patch version # the current Cloud Composer patch version is selected. When `latest` is
# is omitted, the current Cloud Composer patch version is selected. # provided instead of an explicit version number, the server replaces `latest`
# When `latest` is provided instead of an explicit version number, # with the current Cloud Composer version and stores that version number in the
# the server replaces `latest` with the current Cloud Composer version # same field. The portion of the image version that follows *airflow-* is an
# and stores that version number in the same field. # official Apache Airflow repository [release name](https://github.com/apache/
# The portion of the image version that follows <em>airflow-</em> is an # incubator-airflow/releases). See also [Version List](/composer/docs/concepts/
# official Apache Airflow repository # versioning/composer-versions).
# [release name](https://github.com/apache/incubator-airflow/releases).
# See also [Version
# List](/composer/docs/concepts/versioning/composer-versions).
# Corresponds to the JSON property `imageVersion` # Corresponds to the JSON property `imageVersion`
# @return [String] # @return [String]
attr_accessor :image_version attr_accessor :image_version
# Optional. Custom Python Package Index (PyPI) packages to be installed in # Optional. Custom Python Package Index (PyPI) packages to be installed in the
# the environment. # environment. Keys refer to the lowercase package name such as "numpy" and
# Keys refer to the lowercase package name such as "numpy" # values are the lowercase extras and version specifier such as "==1.12.0", "[
# and values are the lowercase extras and version specifier such as # devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a package without
# "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a # pinning it to a version specifier, use the empty string as the value.
# package without pinning it to a version specifier, use the empty string as
# the value.
# Corresponds to the JSON property `pypiPackages` # Corresponds to the JSON property `pypiPackages`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :pypi_packages attr_accessor :pypi_packages
# Optional. The major version of Python used to run the Apache Airflow # Optional. The major version of Python used to run the Apache Airflow scheduler,
# scheduler, worker, and webserver processes. # worker, and webserver processes. Can be set to '2' or '3'. If not specified,
# Can be set to '2' or '3'. If not specified, the default is '2'. Cannot be # the default is '2'. Cannot be updated.
# updated.
# Corresponds to the JSON property `pythonVersion` # Corresponds to the JSON property `pythonVersion`
# @return [String] # @return [String]
attr_accessor :python_version attr_accessor :python_version
@ -782,12 +730,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -802,9 +750,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -49,8 +49,7 @@ module Google
# Create a new environment. # Create a new environment.
# @param [String] parent # @param [String] parent
# The parent must be of the form # The parent must be of the form "projects/`projectId`/locations/`locationId`".
# "projects/`projectId`/locations/`locationId`".
# @param [Google::Apis::ComposerV1::Environment] environment_object # @param [Google::Apis::ComposerV1::Environment] environment_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -83,8 +82,8 @@ module Google
# Delete an environment. # Delete an environment.
# @param [String] name # @param [String] name
# The environment to delete, in the form: # The environment to delete, in the form: "projects/`projectId`/locations/`
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # locationId`/environments/`environmentId`"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -114,8 +113,8 @@ module Google
# Get an existing environment. # Get an existing environment.
# @param [String] name # @param [String] name
# The resource name of the environment to get, in the form: # The resource name of the environment to get, in the form: "projects/`projectId`
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # /locations/`locationId`/environments/`environmentId`"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -145,8 +144,8 @@ module Google
# List environments. # List environments.
# @param [String] parent # @param [String] parent
# List environments in the given project and location, in the form: # List environments in the given project and location, in the form: "projects/`
# "projects/`projectId`/locations/`locationId`" # projectId`/locations/`locationId`"
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of environments to return. # The maximum number of environments to return.
# @param [String] page_token # @param [String] page_token
@ -182,134 +181,66 @@ module Google
# Update an environment. # Update an environment.
# @param [String] name # @param [String] name
# The relative resource name of the environment to update, in the form: # The relative resource name of the environment to update, in the form: "
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # projects/`projectId`/locations/`locationId`/environments/`environmentId`"
# @param [Google::Apis::ComposerV1::Environment] environment_object # @param [Google::Apis::ComposerV1::Environment] environment_object
# @param [String] update_mask # @param [String] update_mask
# Required. A comma-separated list of paths, relative to `Environment`, of # Required. A comma-separated list of paths, relative to `Environment`, of
# fields to update. # fields to update. For example, to set the version of scikit-learn to install
# For example, to set the version of scikit-learn to install in the # in the environment to 0.19.0 and to remove an existing installation of numpy,
# environment to 0.19.0 and to remove an existing installation of # the `updateMask` parameter would include the following two `paths` values: "
# numpy, the `updateMask` parameter would include the following two # config.softwareConfig.pypiPackages.scikit-learn" and "config.softwareConfig.
# `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and # pypiPackages.numpy". The included patch environment would specify the scikit-
# "config.softwareConfig.pypiPackages.numpy". The included patch # learn version as follows: ` "config":` "softwareConfig":` "pypiPackages":` "
# environment would specify the scikit-learn version as follows: # scikit-learn":"==0.19.0" ` ` ` ` Note that in the above example, any existing
# ` # PyPI packages other than scikit-learn and numpy will be unaffected. Only one
# "config":` # update type may be included in a single request's `updateMask`. For example,
# "softwareConfig":` # one cannot update both the PyPI packages and labels in the same request.
# "pypiPackages":` # However, it is possible to update multiple members of a map field
# "scikit-learn":"==0.19.0" # simultaneously in the same request. For example, to set the labels "label1"
# ` # and "label2" while clearing "label3" (assuming it already exists), one can
# ` # provide the paths "labels.label1", "labels.label2", and "labels.label3" and
# ` # populate the patch environment as follows: ` "labels":` "label1":"new-label1-
# ` # value" "label2":"new-label2-value" ` ` Note that in the above example, any
# Note that in the above example, any existing PyPI packages # existing labels that are not included in the `updateMask` will be unaffected.
# other than scikit-learn and numpy will be unaffected. # It is also possible to replace an entire map field by providing the map field'
# Only one update type may be included in a single request's `updateMask`. # s path in the `updateMask`. The new value of the field will be that which is
# For example, one cannot update both the PyPI packages and # provided in the patch environment. For example, to delete all pre-existing
# labels in the same request. However, it is possible to update multiple # user-specified PyPI packages and install botocore at version 1.7.14, the `
# members of a map field simultaneously in the same request. For example, # updateMask` would contain the path "config.softwareConfig.pypiPackages", and
# to set the labels "label1" and "label2" while clearing "label3" (assuming # the patch environment would be the following: ` "config":` "softwareConfig":` "
# it already exists), one can # pypiPackages":` "botocore":"==1.7.14" ` ` ` ` **Note:** Only the following
# provide the paths "labels.label1", "labels.label2", and "labels.label3" # fields can be updated: *Mask* *Purpose* config.softwareConfig.pypiPackages
# and populate the patch environment as follows: # Replace all custom custom PyPI packages. If a replacement package map is not
# ` # included in `environment`, all custom PyPI packages are cleared. It is an
# "labels":` # error to provide both this mask and a mask specifying an individual package.
# "label1":"new-label1-value" # config.softwareConfig.pypiPackages.packagename Update the custom PyPI package
# "label2":"new-label2-value" # packagename, preserving other packages. To delete the package, include it in `
# ` # updateMask`, and omit the mapping for it in `environment.config.softwareConfig.
# ` # pypiPackages`. It is an error to provide both a mask of this form and the "
# Note that in the above example, any existing labels that are not # config.softwareConfig.pypiPackages" mask. labels Replace all environment
# included in the `updateMask` will be unaffected. # labels. If a replacement labels map is not included in `environment`, all
# It is also possible to replace an entire map field by providing the # labels are cleared. It is an error to provide both this mask and a mask
# map field's path in the `updateMask`. The new value of the field will # specifying one or more individual labels. labels.labelName Set the label named
# be that which is provided in the patch environment. For example, to # labelName, while preserving other labels. To delete the label, include it in `
# delete all pre-existing user-specified PyPI packages and # updateMask` and omit its mapping in `environment.labels`. It is an error to
# install botocore at version 1.7.14, the `updateMask` would contain # provide both a mask of this form and the "labels" mask. config.nodeCount
# the path "config.softwareConfig.pypiPackages", and # Horizontally scale the number of nodes in the environment. An integer greater
# the patch environment would be the following: # than or equal to 3 must be provided in the `config.nodeCount` field. config.
# ` # softwareConfig.airflowConfigOverrides Replace all Apache Airflow config
# "config":` # overrides. If a replacement config overrides map is not included in `
# "softwareConfig":` # environment`, all config overrides are cleared. It is an error to provide both
# "pypiPackages":` # this mask and a mask specifying one or more individual config overrides.
# "botocore":"==1.7.14" # config.softwareConfig.airflowConfigOverrides.section-name Override the Apache
# ` # Airflow config property name in the section named section, preserving other
# ` # properties. To delete the property override, include it in `updateMask` and
# ` # omit its mapping in `environment.config.softwareConfig.airflowConfigOverrides`.
# ` # It is an error to provide both a mask of this form and the "config.
# **Note:** Only the following fields can be updated: # softwareConfig.airflowConfigOverrides" mask. config.softwareConfig.
# <table> # envVariables Replace all environment variables. If a replacement environment
# <tbody>
# <tr>
# <td><strong>Mask</strong></td>
# <td><strong>Purpose</strong></td>
# </tr>
# <tr>
# <td>config.softwareConfig.pypiPackages
# </td>
# <td>Replace all custom custom PyPI packages. If a replacement
# package map is not included in `environment`, all custom
# PyPI packages are cleared. It is an error to provide both this mask and a
# mask specifying an individual package.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.pypiPackages.<var>packagename</var></td>
# <td>Update the custom PyPI package <var>packagename</var>,
# preserving other packages. To delete the package, include it in
# `updateMask`, and omit the mapping for it in
# `environment.config.softwareConfig.pypiPackages`. It is an error
# to provide both a mask of this form and the
# "config.softwareConfig.pypiPackages" mask.</td>
# </tr>
# <tr>
# <td>labels</td>
# <td>Replace all environment labels. If a replacement labels map is not
# included in `environment`, all labels are cleared. It is an error to
# provide both this mask and a mask specifying one or more individual
# labels.</td>
# </tr>
# <tr>
# <td>labels.<var>labelName</var></td>
# <td>Set the label named <var>labelName</var>, while preserving other
# labels. To delete the label, include it in `updateMask` and omit its
# mapping in `environment.labels`. It is an error to provide both a
# mask of this form and the "labels" mask.</td>
# </tr>
# <tr>
# <td>config.nodeCount</td>
# <td>Horizontally scale the number of nodes in the environment. An integer
# greater than or equal to 3 must be provided in the `config.nodeCount`
# field.
# </td>
# </tr>
# <tr>
# <td>config.softwareConfig.airflowConfigOverrides</td>
# <td>Replace all Apache Airflow config overrides. If a replacement config
# overrides map is not included in `environment`, all config overrides
# are cleared.
# It is an error to provide both this mask and a mask specifying one or
# more individual config overrides.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.airflowConfigOverrides.<var>section</var>-<var>name
# </var></td>
# <td>Override the Apache Airflow config property <var>name</var> in the
# section named <var>section</var>, preserving other properties. To delete
# the property override, include it in `updateMask` and omit its mapping
# in `environment.config.softwareConfig.airflowConfigOverrides`.
# It is an error to provide both a mask of this form and the
# "config.softwareConfig.airflowConfigOverrides" mask.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.envVariables</td>
# <td>Replace all environment variables. If a replacement environment
# variable map is not included in `environment`, all custom environment # variable map is not included in `environment`, all custom environment
# variables are cleared. # variables are cleared. It is an error to provide both this mask and a mask
# It is an error to provide both this mask and a mask specifying one or # specifying one or more individual environment variables.
# more individual environment variables.</td>
# </tr>
# </tbody>
# </table>
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -342,8 +273,8 @@ module Google
# List ImageVersions for provided location. # List ImageVersions for provided location.
# @param [String] parent # @param [String] parent
# List ImageVersions in the given project and location, in the form: # List ImageVersions in the given project and location, in the form: "projects/`
# "projects/`projectId`/locations/`locationId`" # projectId`/locations/`locationId`"
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of image_versions to return. # The maximum number of image_versions to return.
# @param [String] page_token # @param [String] page_token
@ -377,10 +308,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -410,9 +341,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -442,15 +372,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/composer/ # @see https://cloud.google.com/composer/
module ComposerV1beta1 module ComposerV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200616' REVISION = '20200817'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -31,13 +31,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# IP address or range, defined using CIDR notation, of requests that this # IP address or range, defined using CIDR notation, of requests that this rule
# rule applies to. # applies to. Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` or `
# Examples: `192.168.1.1` or `192.168.0.0/16` or `2001:db8::/32` # 2001:0db8:0000:0042:0000:8a2e:0370:7334`. IP range prefixes should be properly
# or `2001:0db8:0000:0042:0000:8a2e:0370:7334`. # truncated. For example, `1.2.3.4/24` should be truncated to `1.2.3.0/24`.
# <p>IP range prefixes should be properly truncated. For example, # Similarly, for IPv6, `2001:db8::1/32` should be truncated to `2001:db8::/32`.
# `1.2.3.4/24` should be truncated to `1.2.3.0/24`. Similarly, for IPv6,
# `2001:db8::1/32` should be truncated to `2001:db8::/32`.
# Corresponds to the JSON property `value` # Corresponds to the JSON property `value`
# @return [String] # @return [String]
attr_accessor :value attr_accessor :value
@ -58,9 +56,9 @@ module Google
class DatabaseConfig class DatabaseConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Cloud SQL machine type used by Airflow database. # Optional. Cloud SQL machine type used by Airflow database. It has to be one of:
# It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 # db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If
# or db-n1-standard-16. If not specified, db-n1-standard-2 will be used. # not specified, db-n1-standard-2 will be used.
# Corresponds to the JSON property `machineType` # Corresponds to the JSON property `machineType`
# @return [String] # @return [String]
attr_accessor :machine_type attr_accessor :machine_type
@ -75,13 +73,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -108,21 +104,19 @@ module Google
# @return [String] # @return [String]
attr_accessor :create_time attr_accessor :create_time
# Optional. User-defined labels for this environment. # Optional. User-defined labels for this environment. The labels map can contain
# The labels map can contain no more than 64 entries. Entries of the labels # no more than 64 entries. Entries of the labels map are UTF8 strings that
# map are UTF8 strings that comply with the following restrictions: # comply with the following restrictions: * Keys must conform to regexp: \p`Ll`\
# * Keys must conform to regexp: \p`Ll`\p`Lo``0,62` # p`Lo``0,62` * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` *
# * Values must conform to regexp: [\p`Ll`\p`Lo`\p`N`_-]`0,63` # Both keys and values are additionally constrained to be <= 128 bytes in size.
# * Both keys and values are additionally constrained to be <= 128 bytes in
# size.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
# The resource name of the environment, in the form: # The resource name of the environment, in the form: "projects/`projectId`/
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # locations/`locationId`/environments/`environmentId`" EnvironmentId must start
# EnvironmentId must start with a lowercase letter followed by up to 63 # with a lowercase letter followed by up to 63 lowercase letters, numbers, or
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen. # hyphens, and cannot end with a hyphen.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -138,8 +132,7 @@ module Google
attr_accessor :update_time attr_accessor :update_time
# Output only. The UUID (Universally Unique IDentifier) associated with this # Output only. The UUID (Universally Unique IDentifier) associated with this
# environment. # environment. This value is generated when the environment is created.
# This value is generated when the environment is created.
# Corresponds to the JSON property `uuid` # Corresponds to the JSON property `uuid`
# @return [String] # @return [String]
attr_accessor :uuid attr_accessor :uuid
@ -165,18 +158,16 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Output only. The URI of the Apache Airflow Web UI hosted within this # Output only. The URI of the Apache Airflow Web UI hosted within this
# environment (see # environment (see [Airflow web interface](/composer/docs/how-to/accessing/
# [Airflow web # airflow-web-interface)).
# interface](/composer/docs/how-to/accessing/airflow-web-interface)).
# Corresponds to the JSON property `airflowUri` # Corresponds to the JSON property `airflowUri`
# @return [String] # @return [String]
attr_accessor :airflow_uri attr_accessor :airflow_uri
# Output only. The Cloud Storage prefix of the DAGs for this environment. # Output only. The Cloud Storage prefix of the DAGs for this environment.
# Although Cloud # Although Cloud Storage objects reside in a flat namespace, a hierarchical file
# Storage objects reside in a flat namespace, a hierarchical file tree # tree can be simulated using "/"-delimited object name prefixes. DAG objects
# can be simulated using "/"-delimited object name prefixes. DAG objects for # for this environment reside in a simulated directory with the given prefix.
# this environment reside in a simulated directory with the given prefix.
# Corresponds to the JSON property `dagGcsPrefix` # Corresponds to the JSON property `dagGcsPrefix`
# @return [String] # @return [String]
attr_accessor :dag_gcs_prefix attr_accessor :dag_gcs_prefix
@ -192,14 +183,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :gke_cluster attr_accessor :gke_cluster
# The configuration information for the Kubernetes Engine nodes running # The configuration information for the Kubernetes Engine nodes running the
# the Apache Airflow software. # Apache Airflow software.
# Corresponds to the JSON property `nodeConfig` # Corresponds to the JSON property `nodeConfig`
# @return [Google::Apis::ComposerV1beta1::NodeConfig] # @return [Google::Apis::ComposerV1beta1::NodeConfig]
attr_accessor :node_config attr_accessor :node_config
# The number of nodes in the Kubernetes Engine cluster that will be # The number of nodes in the Kubernetes Engine cluster that will be used to run
# used to run this environment. # this environment.
# Corresponds to the JSON property `nodeCount` # Corresponds to the JSON property `nodeCount`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :node_count attr_accessor :node_count
@ -244,63 +235,52 @@ module Google
end end
end end
# Configuration for controlling how IPs are allocated in the # Configuration for controlling how IPs are allocated in the GKE cluster.
# GKE cluster.
class IpAllocationPolicy class IpAllocationPolicy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The IP address range used to allocate IP addresses to pods in # Optional. The IP address range used to allocate IP addresses to pods in the
# the cluster. # cluster. This field is applicable only when `use_ip_aliases` is true. Set to
# This field is applicable only when `use_ip_aliases` is true. # blank to have GKE choose a range with the default size. Set to /netmask (e.g. `
# Set to blank to have GKE choose a range with the default size. # /14`) to have GKE choose a range with a specific netmask. Set to a [CIDR](http:
# Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific # //en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.
# netmask. # 0.0/14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`
# Set to a # , `192.168.0.0/16`) to pick a specific range to use. Specify `
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # cluster_secondary_range_name` or `cluster_ipv4_cidr_block` but not both.
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
# to use.
# Specify `cluster_secondary_range_name` or `cluster_ipv4_cidr_block`
# but not both.
# Corresponds to the JSON property `clusterIpv4CidrBlock` # Corresponds to the JSON property `clusterIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :cluster_ipv4_cidr_block attr_accessor :cluster_ipv4_cidr_block
# Optional. The name of the cluster's secondary range used to allocate # Optional. The name of the cluster's secondary range used to allocate IP
# IP addresses to pods. Specify either `cluster_secondary_range_name` # addresses to pods. Specify either `cluster_secondary_range_name` or `
# or `cluster_ipv4_cidr_block` but not both. # cluster_ipv4_cidr_block` but not both. This field is applicable only when `
# This field is applicable only when `use_ip_aliases` is true. # use_ip_aliases` is true.
# Corresponds to the JSON property `clusterSecondaryRangeName` # Corresponds to the JSON property `clusterSecondaryRangeName`
# @return [String] # @return [String]
attr_accessor :cluster_secondary_range_name attr_accessor :cluster_secondary_range_name
# Optional. The IP address range of the services IP addresses in this # Optional. The IP address range of the services IP addresses in this cluster.
# cluster. # This field is applicable only when `use_ip_aliases` is true. Set to blank to
# This field is applicable only when `use_ip_aliases` is true. # have GKE choose a range with the default size. Set to /netmask (e.g. `/14`) to
# Set to blank to have GKE choose a range with the default size. # have GKE choose a range with a specific netmask. Set to a [CIDR](http://en.
# Set to /netmask (e.g. `/14`) to have GKE choose a range with a specific # wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/
# netmask. # 14`) from the RFC-1918 private networks (e.g. `10.0.0.0/8`, `172.16.0.0/12`, `
# Set to a # 192.168.0.0/16`) to pick a specific range to use. Specify `
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) # services_secondary_range_name` or `services_ipv4_cidr_block` but not both.
# notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
# `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
# to use.
# Specify `services_secondary_range_name` or `services_ipv4_cidr_block`
# but not both.
# Corresponds to the JSON property `servicesIpv4CidrBlock` # Corresponds to the JSON property `servicesIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :services_ipv4_cidr_block attr_accessor :services_ipv4_cidr_block
# Optional. The name of the services' secondary range used to allocate # Optional. The name of the services' secondary range used to allocate IP
# IP addresses to the cluster. Specify either `services_secondary_range_name` # addresses to the cluster. Specify either `services_secondary_range_name` or `
# or `services_ipv4_cidr_block` but not both. # services_ipv4_cidr_block` but not both. This field is applicable only when `
# This field is applicable only when `use_ip_aliases` is true. # use_ip_aliases` is true.
# Corresponds to the JSON property `servicesSecondaryRangeName` # Corresponds to the JSON property `servicesSecondaryRangeName`
# @return [String] # @return [String]
attr_accessor :services_secondary_range_name attr_accessor :services_secondary_range_name
# Optional. Whether or not to enable Alias IPs in the GKE cluster. # Optional. Whether or not to enable Alias IPs in the GKE cluster. If `true`, a
# If `true`, a VPC-native cluster is created. # VPC-native cluster is created.
# Corresponds to the JSON property `useIpAliases` # Corresponds to the JSON property `useIpAliases`
# @return [Boolean] # @return [Boolean]
attr_accessor :use_ip_aliases attr_accessor :use_ip_aliases
@ -324,14 +304,14 @@ module Google
class ImageVersion class ImageVersion
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The string identifier of the ImageVersion, in the form: # The string identifier of the ImageVersion, in the form: "composer-x.y.z-
# "composer-x.y.z-airflow-a.b(.c)" # airflow-a.b(.c)"
# Corresponds to the JSON property `imageVersionId` # Corresponds to the JSON property `imageVersionId`
# @return [String] # @return [String]
attr_accessor :image_version_id attr_accessor :image_version_id
# Whether this is the default ImageVersion used by Composer during # Whether this is the default ImageVersion used by Composer during environment
# environment creation if no input ImageVersion is specified. # creation if no input ImageVersion is specified.
# Corresponds to the JSON property `isDefault` # Corresponds to the JSON property `isDefault`
# @return [Boolean] # @return [Boolean]
attr_accessor :is_default attr_accessor :is_default
@ -429,106 +409,93 @@ module Google
end end
end end
# The configuration information for the Kubernetes Engine nodes running # The configuration information for the Kubernetes Engine nodes running the
# the Apache Airflow software. # Apache Airflow software.
class NodeConfig class NodeConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The disk size in GB used for node VMs. Minimum size is 20GB. # Optional. The disk size in GB used for node VMs. Minimum size is 20GB. If
# If unspecified, defaults to 100GB. Cannot be updated. # unspecified, defaults to 100GB. Cannot be updated.
# Corresponds to the JSON property `diskSizeGb` # Corresponds to the JSON property `diskSizeGb`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :disk_size_gb attr_accessor :disk_size_gb
# Configuration for controlling how IPs are allocated in the # Configuration for controlling how IPs are allocated in the GKE cluster.
# GKE cluster.
# Corresponds to the JSON property `ipAllocationPolicy` # Corresponds to the JSON property `ipAllocationPolicy`
# @return [Google::Apis::ComposerV1beta1::IpAllocationPolicy] # @return [Google::Apis::ComposerV1beta1::IpAllocationPolicy]
attr_accessor :ip_allocation_policy attr_accessor :ip_allocation_policy
# Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which to
# to deploy the VMs used to run the Apache Airflow software, specified as a # deploy the VMs used to run the Apache Airflow software, specified as a [
# [relative resource # relative resource name](/apis/design/resource_names#relative_resource_name).
# name](/apis/design/resource_names#relative_resource_name). For example: # For example: "projects/`projectId`/zones/`zoneId`". This `location` must
# "projects/`projectId`/zones/`zoneId`". # belong to the enclosing environment's project and location. If both this field
# This `location` must belong to the enclosing environment's project and # and `nodeConfig.machineType` are specified, `nodeConfig.machineType` must
# location. If both this field and `nodeConfig.machineType` are specified, # belong to this `location`; if both are unspecified, the service will pick a
# `nodeConfig.machineType` must belong to this `location`; if both are # zone in the Compute Engine region corresponding to the Cloud Composer location,
# unspecified, the service will pick a zone in the Compute Engine region # and propagate that choice to both fields. If only one field (`location` or `
# corresponding to the Cloud Composer location, and propagate that choice to # nodeConfig.machineType`) is specified, the location information from the
# both fields. If only one field (`location` or `nodeConfig.machineType`) is # specified field will be propagated to the unspecified field.
# specified, the location information from the specified field will be
# propagated to the unspecified field.
# Corresponds to the JSON property `location` # Corresponds to the JSON property `location`
# @return [String] # @return [String]
attr_accessor :location attr_accessor :location
# Optional. The Compute Engine # Optional. The Compute Engine [machine type](/compute/docs/machine-types) used
# [machine type](/compute/docs/machine-types) used for cluster instances, # for cluster instances, specified as a [relative resource name](/apis/design/
# specified as a # resource_names#relative_resource_name). For example: "projects/`projectId`/
# [relative resource # zones/`zoneId`/machineTypes/`machineTypeId`". The `machineType` must belong to
# name](/apis/design/resource_names#relative_resource_name). For example: # the enclosing environment's project and location. If both this field and `
# "projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId`". # nodeConfig.location` are specified, this `machineType` must belong to the `
# The `machineType` must belong to the enclosing environment's project and # nodeConfig.location`; if both are unspecified, the service will pick a zone in
# location. If both this field and `nodeConfig.location` are specified, # the Compute Engine region corresponding to the Cloud Composer location, and
# this `machineType` must belong to the `nodeConfig.location`; if both are # propagate that choice to both fields. If exactly one of this field and `
# unspecified, the service will pick a zone in the Compute Engine region # nodeConfig.location` is specified, the location information from the specified
# corresponding to the Cloud Composer location, and propagate that choice to # field will be propagated to the unspecified field. The `machineTypeId` must
# both fields. If exactly one of this field and `nodeConfig.location` is # not be a [shared-core machine type](/compute/docs/machine-types#sharedcore).
# specified, the location information from the specified field will be # If this field is unspecified, the `machineTypeId` defaults to "n1-standard-1".
# propagated to the unspecified field.
# The `machineTypeId` must not be a [shared-core machine
# type](/compute/docs/machine-types#sharedcore).
# If this field is unspecified, the `machineTypeId` defaults
# to "n1-standard-1".
# Corresponds to the JSON property `machineType` # Corresponds to the JSON property `machineType`
# @return [String] # @return [String]
attr_accessor :machine_type attr_accessor :machine_type
# Optional. The Compute Engine network to be used for machine # Optional. The Compute Engine network to be used for machine communications,
# communications, specified as a # specified as a [relative resource name](/apis/design/resource_names#
# [relative resource # relative_resource_name). For example: "projects/`projectId`/global/networks/`
# name](/apis/design/resource_names#relative_resource_name). For example: # networkId`". If unspecified, the default network in the environment's project
# "projects/`projectId`/global/networks/`networkId`". # is used. If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets)
# If unspecified, the default network in the environment's project is used. # is provided, `nodeConfig.subnetwork` must also be provided. For [Shared VPC](/
# If a [Custom Subnet Network](/vpc/docs/vpc#vpc_networks_and_subnets) # vpc/docs/shared-vpc) subnetwork requirements, see `nodeConfig.subnetwork`.
# is provided, `nodeConfig.subnetwork` must also be provided. For
# [Shared VPC](/vpc/docs/shared-vpc) subnetwork requirements, see
# `nodeConfig.subnetwork`.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# Optional. The set of Google API scopes to be made available on all # Optional. The set of Google API scopes to be made available on all node VMs.
# node VMs. If `oauth_scopes` is empty, defaults to # If `oauth_scopes` is empty, defaults to ["https://www.googleapis.com/auth/
# ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. # cloud-platform"]. Cannot be updated.
# Corresponds to the JSON property `oauthScopes` # Corresponds to the JSON property `oauthScopes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :oauth_scopes attr_accessor :oauth_scopes
# Optional. The Google Cloud Platform Service Account to be used by the node # Optional. The Google Cloud Platform Service Account to be used by the node VMs.
# VMs. If a service account is not specified, the "default" Compute Engine # If a service account is not specified, the "default" Compute Engine service
# service account is used. Cannot be updated. # account is used. Cannot be updated.
# Corresponds to the JSON property `serviceAccount` # Corresponds to the JSON property `serviceAccount`
# @return [String] # @return [String]
attr_accessor :service_account attr_accessor :service_account
# Optional. The Compute Engine subnetwork to be used for machine # Optional. The Compute Engine subnetwork to be used for machine communications,
# communications, specified as a # specified as a [relative resource name](/apis/design/resource_names#
# [relative resource # relative_resource_name). For example: "projects/`projectId`/regions/`regionId`/
# name](/apis/design/resource_names#relative_resource_name). For example: # subnetworks/`subnetworkId`" If a subnetwork is provided, `nodeConfig.network`
# "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`" # must also be provided, and the subnetwork must belong to the enclosing
# If a subnetwork is provided, `nodeConfig.network` must also be provided, # environment's project and location.
# and the subnetwork must belong to the enclosing environment's project and
# location.
# Corresponds to the JSON property `subnetwork` # Corresponds to the JSON property `subnetwork`
# @return [String] # @return [String]
attr_accessor :subnetwork attr_accessor :subnetwork
# Optional. The list of instance tags applied to all node VMs. Tags are used # Optional. The list of instance tags applied to all node VMs. Tags are used to
# to identify valid sources or targets for network firewalls. Each tag within # identify valid sources or targets for network firewalls. Each tag within the
# the list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). # list must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Cannot
# Cannot be updated. # be updated.
# Corresponds to the JSON property `tags` # Corresponds to the JSON property `tags`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tags attr_accessor :tags
@ -556,47 +523,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::ComposerV1beta1::Status] # @return [Google::Apis::ComposerV1beta1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -635,8 +600,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :operation_type attr_accessor :operation_type
# Output only. The resource being operated on, as a [relative resource name]( # Output only. The resource being operated on, as a [relative resource name]( /
# /apis/design/resource_names#relative_resource_name). # apis/design/resource_names#relative_resource_name).
# Corresponds to the JSON property `resource` # Corresponds to the JSON property `resource`
# @return [String] # @return [String]
attr_accessor :resource attr_accessor :resource
@ -679,18 +644,16 @@ module Google
alias_method :enable_private_endpoint?, :enable_private_endpoint alias_method :enable_private_endpoint?, :enable_private_endpoint
# Optional. The CIDR block from which IPv4 range for GKE master will be reserved. # Optional. The CIDR block from which IPv4 range for GKE master will be reserved.
# If # If left blank, the default value of '172.16.0.0/23' is used.
# left blank, the default value of '172.16.0.0/23' is used.
# Corresponds to the JSON property `masterIpv4CidrBlock` # Corresponds to the JSON property `masterIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :master_ipv4_cidr_block attr_accessor :master_ipv4_cidr_block
# Output only. The IP range in CIDR notation to use for the hosted master # Output only. The IP range in CIDR notation to use for the hosted master
# network. This # network. This range is used for assigning internal IP addresses to the cluster
# range is used for assigning internal IP addresses to the cluster # master or set of masters and to the internal load balancer virtual IP. This
# master or set of masters and to the internal load balancer virtual IP. # range must not overlap with any other ranges in use within the cluster's
# This range must not overlap with any other ranges in use # network.
# within the cluster's network.
# Corresponds to the JSON property `masterIpv4ReservedRange` # Corresponds to the JSON property `masterIpv4ReservedRange`
# @return [String] # @return [String]
attr_accessor :master_ipv4_reserved_range attr_accessor :master_ipv4_reserved_range
@ -713,14 +676,13 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. The CIDR block from which IP range in tenant project will be # Optional. The CIDR block from which IP range in tenant project will be
# reserved for # reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
# Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block
# Corresponds to the JSON property `cloudSqlIpv4CidrBlock` # Corresponds to the JSON property `cloudSqlIpv4CidrBlock`
# @return [String] # @return [String]
attr_accessor :cloud_sql_ipv4_cidr_block attr_accessor :cloud_sql_ipv4_cidr_block
# Optional. If `true`, a Private IP Cloud Composer environment is created. # Optional. If `true`, a Private IP Cloud Composer environment is created. If
# If this field is true, `use_ip_aliases` must be true. # this field is true, `use_ip_aliases` must be true.
# Corresponds to the JSON property `enablePrivateEnvironment` # Corresponds to the JSON property `enablePrivateEnvironment`
# @return [Boolean] # @return [Boolean]
attr_accessor :enable_private_environment attr_accessor :enable_private_environment
@ -733,8 +695,7 @@ module Google
attr_accessor :private_cluster_config attr_accessor :private_cluster_config
# Optional. The CIDR block from which IP range for web server will be reserved. # Optional. The CIDR block from which IP range for web server will be reserved.
# Needs # Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and
# to be disjoint from private_cluster_config.master_ipv4_cidr_block and
# cloud_sql_ipv4_cidr_block. # cloud_sql_ipv4_cidr_block.
# Corresponds to the JSON property `webServerIpv4CidrBlock` # Corresponds to the JSON property `webServerIpv4CidrBlock`
# @return [String] # @return [String]
@ -763,84 +724,65 @@ module Google
class SoftwareConfig class SoftwareConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Apache Airflow configuration properties to override. # Optional. Apache Airflow configuration properties to override. Property keys
# Property keys contain the section and property names, separated by a # contain the section and property names, separated by a hyphen, for example "
# hyphen, for example "core-dags_are_paused_at_creation". Section names must # core-dags_are_paused_at_creation". Section names must not contain hyphens ("-")
# not contain hyphens ("-"), opening square brackets ("["), or closing # , opening square brackets ("["), or closing square brackets ("]"). The
# square brackets ("]"). The property name must not be empty and must not # property name must not be empty and must not contain an equals sign ("=") or
# contain an equals sign ("=") or semicolon (";"). Section and property names # semicolon (";"). Section and property names must not contain a period (".").
# must not contain a period ("."). Apache Airflow configuration property # Apache Airflow configuration property names must be written in [snake_case](
# names must be written in # https://en.wikipedia.org/wiki/Snake_case). Property values can contain any
# [snake_case](https://en.wikipedia.org/wiki/Snake_case). Property values can # character, and can be written in any lower/upper case format. Certain Apache
# contain any character, and can be written in any lower/upper case format. # Airflow configuration property values are [blacklisted](/composer/docs/how-to/
# Certain Apache Airflow configuration property values are # managing/setting-airflow-configurations#airflow_configuration_blacklists), and
# [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations# # cannot be overridden.
# airflow_configuration_blacklists),
# and cannot be overridden.
# Corresponds to the JSON property `airflowConfigOverrides` # Corresponds to the JSON property `airflowConfigOverrides`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :airflow_config_overrides attr_accessor :airflow_config_overrides
# Optional. Additional environment variables to provide to the Apache Airflow # Optional. Additional environment variables to provide to the Apache Airflow
# scheduler, worker, and webserver processes. # scheduler, worker, and webserver processes. Environment variable names must
# Environment variable names must match the regular expression # match the regular expression `a-zA-Z_*`. They cannot specify Apache Airflow
# `a-zA-Z_*`. They cannot specify Apache Airflow # software configuration overrides (they cannot match the regular expression `
# software configuration overrides (they cannot match the regular expression # AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the following
# `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the # reserved names: * `AIRFLOW_HOME` * `C_FORCE_ROOT` * `CONTAINER_NAME` * `
# following reserved names: # DAGS_FOLDER` * `GCP_PROJECT` * `GCS_BUCKET` * `GKE_CLUSTER_NAME` * `
# * `AIRFLOW_HOME` # SQL_DATABASE` * `SQL_INSTANCE` * `SQL_PASSWORD` * `SQL_PROJECT` * `SQL_REGION`
# * `C_FORCE_ROOT`
# * `CONTAINER_NAME`
# * `DAGS_FOLDER`
# * `GCP_PROJECT`
# * `GCS_BUCKET`
# * `GKE_CLUSTER_NAME`
# * `SQL_DATABASE`
# * `SQL_INSTANCE`
# * `SQL_PASSWORD`
# * `SQL_PROJECT`
# * `SQL_REGION`
# * `SQL_USER` # * `SQL_USER`
# Corresponds to the JSON property `envVariables` # Corresponds to the JSON property `envVariables`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :env_variables attr_accessor :env_variables
# The version of the software running in the environment. # The version of the software running in the environment. This encapsulates both
# This encapsulates both the version of Cloud Composer functionality and the # the version of Cloud Composer functionality and the version of Apache Airflow.
# version of Apache Airflow. It must match the regular expression # It must match the regular expression `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-
# `composer-([0-9]+\.[0-9]+\.[0-9]+|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. # airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. When used as input, the server also
# When used as input, the server also checks if the provided version is # checks if the provided version is supported and denies the request for an
# supported and denies the request for an unsupported version. # unsupported version. The Cloud Composer portion of the version is a [semantic
# The Cloud Composer portion of the version is a # version](https://semver.org) or `latest`. When the patch version is omitted,
# [semantic version](https://semver.org) or `latest`. When the patch version # the current Cloud Composer patch version is selected. When `latest` is
# is omitted, the current Cloud Composer patch version is selected. # provided instead of an explicit version number, the server replaces `latest`
# When `latest` is provided instead of an explicit version number, # with the current Cloud Composer version and stores that version number in the
# the server replaces `latest` with the current Cloud Composer version # same field. The portion of the image version that follows *airflow-* is an
# and stores that version number in the same field. # official Apache Airflow repository [release name](https://github.com/apache/
# The portion of the image version that follows <em>airflow-</em> is an # incubator-airflow/releases). See also [Version List](/composer/docs/concepts/
# official Apache Airflow repository # versioning/composer-versions).
# [release name](https://github.com/apache/incubator-airflow/releases).
# See also [Version
# List](/composer/docs/concepts/versioning/composer-versions).
# Corresponds to the JSON property `imageVersion` # Corresponds to the JSON property `imageVersion`
# @return [String] # @return [String]
attr_accessor :image_version attr_accessor :image_version
# Optional. Custom Python Package Index (PyPI) packages to be installed in # Optional. Custom Python Package Index (PyPI) packages to be installed in the
# the environment. # environment. Keys refer to the lowercase package name such as "numpy" and
# Keys refer to the lowercase package name such as "numpy" # values are the lowercase extras and version specifier such as "==1.12.0", "[
# and values are the lowercase extras and version specifier such as # devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a package without
# "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a # pinning it to a version specifier, use the empty string as the value.
# package without pinning it to a version specifier, use the empty string as
# the value.
# Corresponds to the JSON property `pypiPackages` # Corresponds to the JSON property `pypiPackages`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :pypi_packages attr_accessor :pypi_packages
# Optional. The major version of Python used to run the Apache Airflow # Optional. The major version of Python used to run the Apache Airflow scheduler,
# scheduler, worker, and webserver processes. # worker, and webserver processes. Can be set to '2' or '3'. If not specified,
# Can be set to '2' or '3'. If not specified, the default is '2'. Cannot be # the default is '2'. Cannot be updated.
# updated.
# Corresponds to the JSON property `pythonVersion` # Corresponds to the JSON property `pythonVersion`
# @return [String] # @return [String]
attr_accessor :python_version attr_accessor :python_version
@ -859,12 +801,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -879,9 +821,9 @@ module Google
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message
@ -902,12 +844,11 @@ module Google
class WebServerConfig class WebServerConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Optional. Machine type on which Airflow web server is running. # Optional. Machine type on which Airflow web server is running. It has to be
# It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or # one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-
# composer-n1-webserver-8. # webserver-8. If not specified, composer-n1-webserver-2 will be used. Value
# If not specified, composer-n1-webserver-2 will be used. # custom is returned only in response, if Airflow web server parameters were
# Value custom is returned only in response, if Airflow web server parameters # manually changed to a non-standard values.
# were manually changed to a non-standard values.
# Corresponds to the JSON property `machineType` # Corresponds to the JSON property `machineType`
# @return [String] # @return [String]
attr_accessor :machine_type attr_accessor :machine_type

View File

@ -49,8 +49,7 @@ module Google
# Create a new environment. # Create a new environment.
# @param [String] parent # @param [String] parent
# The parent must be of the form # The parent must be of the form "projects/`projectId`/locations/`locationId`".
# "projects/`projectId`/locations/`locationId`".
# @param [Google::Apis::ComposerV1beta1::Environment] environment_object # @param [Google::Apis::ComposerV1beta1::Environment] environment_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -83,8 +82,8 @@ module Google
# Delete an environment. # Delete an environment.
# @param [String] name # @param [String] name
# The environment to delete, in the form: # The environment to delete, in the form: "projects/`projectId`/locations/`
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # locationId`/environments/`environmentId`"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -114,8 +113,8 @@ module Google
# Get an existing environment. # Get an existing environment.
# @param [String] name # @param [String] name
# The resource name of the environment to get, in the form: # The resource name of the environment to get, in the form: "projects/`projectId`
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # /locations/`locationId`/environments/`environmentId`"
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -145,8 +144,8 @@ module Google
# List environments. # List environments.
# @param [String] parent # @param [String] parent
# List environments in the given project and location, in the form: # List environments in the given project and location, in the form: "projects/`
# "projects/`projectId`/locations/`locationId`" # projectId`/locations/`locationId`"
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of environments to return. # The maximum number of environments to return.
# @param [String] page_token # @param [String] page_token
@ -182,162 +181,78 @@ module Google
# Update an environment. # Update an environment.
# @param [String] name # @param [String] name
# The relative resource name of the environment to update, in the form: # The relative resource name of the environment to update, in the form: "
# "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # projects/`projectId`/locations/`locationId`/environments/`environmentId`"
# @param [Google::Apis::ComposerV1beta1::Environment] environment_object # @param [Google::Apis::ComposerV1beta1::Environment] environment_object
# @param [String] update_mask # @param [String] update_mask
# Required. A comma-separated list of paths, relative to `Environment`, of # Required. A comma-separated list of paths, relative to `Environment`, of
# fields to update. # fields to update. For example, to set the version of scikit-learn to install
# For example, to set the version of scikit-learn to install in the # in the environment to 0.19.0 and to remove an existing installation of
# environment to 0.19.0 and to remove an existing installation of # argparse, the `updateMask` parameter would include the following two `paths`
# argparse, the `updateMask` parameter would include the following two # values: "config.softwareConfig.pypiPackages.scikit-learn" and "config.
# `paths` values: "config.softwareConfig.pypiPackages.scikit-learn" and # softwareConfig.pypiPackages.argparse". The included patch environment would
# "config.softwareConfig.pypiPackages.argparse". The included patch # specify the scikit-learn version as follows: ` "config":` "softwareConfig":` "
# environment would specify the scikit-learn version as follows: # pypiPackages":` "scikit-learn":"==0.19.0" ` ` ` ` Note that in the above
# ` # example, any existing PyPI packages other than scikit-learn and argparse will
# "config":` # be unaffected. Only one update type may be included in a single request's `
# "softwareConfig":` # updateMask`. For example, one cannot update both the PyPI packages and labels
# "pypiPackages":` # in the same request. However, it is possible to update multiple members of a
# "scikit-learn":"==0.19.0" # map field simultaneously in the same request. For example, to set the labels "
# ` # label1" and "label2" while clearing "label3" (assuming it already exists), one
# ` # can provide the paths "labels.label1", "labels.label2", and "labels.label3"
# ` # and populate the patch environment as follows: ` "labels":` "label1":"new-
# ` # label1-value" "label2":"new-label2-value" ` ` Note that in the above example,
# Note that in the above example, any existing PyPI packages # any existing labels that are not included in the `updateMask` will be
# other than scikit-learn and argparse will be unaffected. # unaffected. It is also possible to replace an entire map field by providing
# Only one update type may be included in a single request's `updateMask`. # the map field's path in the `updateMask`. The new value of the field will be
# For example, one cannot update both the PyPI packages and # that which is provided in the patch environment. For example, to delete all
# labels in the same request. However, it is possible to update multiple # pre-existing user-specified PyPI packages and install botocore at version 1.7.
# members of a map field simultaneously in the same request. For example, # 14, the `updateMask` would contain the path "config.softwareConfig.
# to set the labels "label1" and "label2" while clearing "label3" (assuming # pypiPackages", and the patch environment would be the following: ` "config":` "
# it already exists), one can # softwareConfig":` "pypiPackages":` "botocore":"==1.7.14" ` ` ` ` *Note:* Only
# provide the paths "labels.label1", "labels.label2", and "labels.label3" # the following fields can be updated: *Mask* *Purpose* config.softwareConfig.
# and populate the patch environment as follows: # pypiPackages Replace all custom custom PyPI packages. If a replacement package
# ` # map is not included in `environment`, all custom PyPI packages are cleared. It
# "labels":` # is an error to provide both this mask and a mask specifying an individual
# "label1":"new-label1-value" # package. config.softwareConfig.pypiPackages.packagename Update the custom PyPI
# "label2":"new-label2-value" # package packagename, preserving other packages. To delete the package, include
# ` # it in `updateMask`, and omit the mapping for it in `environment.config.
# ` # softwareConfig.pypiPackages`. It is an error to provide both a mask of this
# Note that in the above example, any existing labels that are not # form and the "config.softwareConfig.pypiPackages" mask. labels Replace all
# included in the `updateMask` will be unaffected. # environment labels. If a replacement labels map is not included in `
# It is also possible to replace an entire map field by providing the # environment`, all labels are cleared. It is an error to provide both this mask
# map field's path in the `updateMask`. The new value of the field will # and a mask specifying one or more individual labels. labels.labelName Set the
# be that which is provided in the patch environment. For example, to # label named labelName, while preserving other labels. To delete the label,
# delete all pre-existing user-specified PyPI packages and # include it in `updateMask` and omit its mapping in `environment.labels`. It is
# install botocore at version 1.7.14, the `updateMask` would contain # an error to provide both a mask of this form and the "labels" mask. config.
# the path "config.softwareConfig.pypiPackages", and # nodeCount Horizontally scale the number of nodes in the environment. An
# the patch environment would be the following: # integer greater than or equal to 3 must be provided in the `config.nodeCount`
# ` # field. config.webServerNetworkAccessControl Replace the environment's current
# "config":` # WebServerNetworkAccessControl. config.softwareConfig.airflowConfigOverrides
# "softwareConfig":` # Replace all Apache Airflow config overrides. If a replacement config overrides
# "pypiPackages":` # map is not included in `environment`, all config overrides are cleared. It is
# "botocore":"==1.7.14" # an error to provide both this mask and a mask specifying one or more
# ` # individual config overrides. config.softwareConfig.airflowConfigOverrides.
# ` # section-name Override the Apache Airflow config property name in the section
# ` # named section, preserving other properties. To delete the property override,
# ` # include it in `updateMask` and omit its mapping in `environment.config.
# <strong>Note:</strong> Only the following fields can be updated: # softwareConfig.airflowConfigOverrides`. It is an error to provide both a mask
# <table> # of this form and the "config.softwareConfig.airflowConfigOverrides" mask.
# <tbody> # config.softwareConfig.envVariables Replace all environment variables. If a
# <tr> # replacement environment variable map is not included in `environment`, all
# <td><strong>Mask</strong></td> # custom environment variables are cleared. It is an error to provide both this
# <td><strong>Purpose</strong></td> # mask and a mask specifying one or more individual environment variables.
# </tr> # config.softwareConfig.imageVersion Upgrade the version of the environment in-
# <tr> # place. Refer to `SoftwareConfig.image_version` for information on how to
# <td>config.softwareConfig.pypiPackages # format the new image version. Additionally, the new image version cannot
# </td> # effect a version downgrade and must match the current image version's Composer
# <td>Replace all custom custom PyPI packages. If a replacement # major version and Airflow major and minor versions. Consult the Cloud Composer
# package map is not included in `environment`, all custom # Version List for valid values. config.databaseConfig.machineType Cloud SQL
# PyPI packages are cleared. It is an error to provide both this mask and a # machine type used by Airflow database. It has to be one of: db-n1-standard-2,
# mask specifying an individual package.</td> # db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. config.
# </tr> # webServerConfig.machineType Machine type on which Airflow web server is
# <tr> # running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4
# <td>config.softwareConfig.pypiPackages.<var>packagename</var></td> # or composer-n1-webserver-8.
# <td>Update the custom PyPI package <var>packagename</var>,
# preserving other packages. To delete the package, include it in
# `updateMask`, and omit the mapping for it in
# `environment.config.softwareConfig.pypiPackages`. It is an error
# to provide both a mask of this form and the
# "config.softwareConfig.pypiPackages" mask.</td>
# </tr>
# <tr>
# <td>labels</td>
# <td>Replace all environment labels. If a replacement labels map is not
# included in `environment`, all labels are cleared. It is an error to
# provide both this mask and a mask specifying one or more individual
# labels.</td>
# </tr>
# <tr>
# <td>labels.<var>labelName</var></td>
# <td>Set the label named <var>labelName</var>, while preserving other
# labels. To delete the label, include it in `updateMask` and omit its
# mapping in `environment.labels`. It is an error to provide both a
# mask of this form and the "labels" mask.</td>
# </tr>
# <tr>
# <td>config.nodeCount</td>
# <td>Horizontally scale the number of nodes in the environment. An integer
# greater than or equal to 3 must be provided in the `config.nodeCount`
# field.
# </td>
# </tr>
# <tr>
# <td>config.webServerNetworkAccessControl</td>
# <td>Replace the environment's current WebServerNetworkAccessControl.
# </td>
# </tr>
# <tr>
# <td>config.softwareConfig.airflowConfigOverrides</td>
# <td>Replace all Apache Airflow config overrides. If a replacement config
# overrides map is not included in `environment`, all config overrides
# are cleared.
# It is an error to provide both this mask and a mask specifying one or
# more individual config overrides.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.airflowConfigOverrides.<var>section</var>-<var>name
# </var></td>
# <td>Override the Apache Airflow config property <var>name</var> in the
# section named <var>section</var>, preserving other properties. To delete
# the property override, include it in `updateMask` and omit its mapping
# in `environment.config.softwareConfig.airflowConfigOverrides`.
# It is an error to provide both a mask of this form and the
# "config.softwareConfig.airflowConfigOverrides" mask.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.envVariables</td>
# <td>Replace all environment variables. If a replacement environment
# variable map is not included in `environment`, all custom environment
# variables are cleared.
# It is an error to provide both this mask and a mask specifying one or
# more individual environment variables.</td>
# </tr>
# <tr>
# <td>config.softwareConfig.imageVersion</td>
# <td>Upgrade the version of the environment in-place. Refer to
# `SoftwareConfig.image_version` for information on how to format the new
# image version. Additionally, the new image version cannot effect a version
# downgrade and must match the current image version's Composer major
# version and Airflow major and minor versions. Consult the
# <a href="/composer/docs/concepts/versioning/composer-versions">Cloud
# Composer Version List</a> for valid values.</td>
# </tr>
# <tr>
# <td>config.databaseConfig.machineType</td>
# <td>Cloud SQL machine type used by Airflow database.
# It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8
# or db-n1-standard-16.</td>
# </tr>
# <tr>
# <td>config.webServerConfig.machineType</td>
# <td>Machine type on which Airflow web server is running.
# It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or
# composer-n1-webserver-8.
# </td>
# </tr>
# </tbody>
# </table>
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -370,8 +285,8 @@ module Google
# List ImageVersions for provided location. # List ImageVersions for provided location.
# @param [String] parent # @param [String] parent
# List ImageVersions in the given project and location, in the form: # List ImageVersions in the given project and location, in the form: "projects/`
# "projects/`projectId`/locations/`locationId`" # projectId`/locations/`locationId`"
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of image_versions to return. # The maximum number of image_versions to return.
# @param [String] page_token # @param [String] page_token
@ -405,10 +320,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -438,9 +353,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -470,15 +384,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1 module FileV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200806' REVISION = '20200819'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/filestore/ # @see https://cloud.google.com/filestore/
module FileV1beta1 module FileV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200806' REVISION = '20200819'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,93 @@ module Google
module Apis module Apis
module FileV1beta1 module FileV1beta1
# A Cloud Filestore backup.
class Backup
include Google::Apis::Core::Hashable
# Output only. Capacity of the backup. This would be the size of the file share
# when the backup is restored.
# Corresponds to the JSON property `capacityGb`
# @return [Fixnum]
attr_accessor :capacity_gb
# Output only. The time when the backup was created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# A description of the backup with 2048 characters or less. Requests with longer
# descriptions will be rejected.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Output only. Amount of bytes that will be downloaded if the backup is restored
# Corresponds to the JSON property `downloadBytes`
# @return [Fixnum]
attr_accessor :download_bytes
# Resource labels to represent user provided metadata.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Output only. The resource name of the backup, in the format projects/`
# project_id`/locations/`location_id`/backups/`backup_id`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the file share in the source Cloud Filestore instance that the backup
# is created from.
# Corresponds to the JSON property `sourceFileShare`
# @return [String]
attr_accessor :source_file_share
# The resource name of the source Cloud Filestore instance, in the format
# projects/`project_id`/locations/`location_id`/instances/`instance_id`, used to
# create this backup.
# Corresponds to the JSON property `sourceInstance`
# @return [String]
attr_accessor :source_instance
# Output only. The service tier of the source Cloud Filestore instance that this
# backup is created from.
# Corresponds to the JSON property `sourceInstanceTier`
# @return [String]
attr_accessor :source_instance_tier
# Output only. The backup state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Output only. The size of the storage used by the backup. As backups share
# storage, this number is expected to change with backup creation/deletion.
# Corresponds to the JSON property `storageBytes`
# @return [Fixnum]
attr_accessor :storage_bytes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
@create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description)
@download_bytes = args[:download_bytes] if args.key?(:download_bytes)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
@source_file_share = args[:source_file_share] if args.key?(:source_file_share)
@source_instance = args[:source_instance] if args.key?(:source_instance)
@source_instance_tier = args[:source_instance_tier] if args.key?(:source_instance_tier)
@state = args[:state] if args.key?(:state)
@storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
end
end
# The request message for Operations.CancelOperation. # The request message for Operations.CancelOperation.
class CancelOperationRequest class CancelOperationRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -72,6 +159,12 @@ module Google
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>] # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
attr_accessor :nfs_export_options attr_accessor :nfs_export_options
# The resource name of the backup, in the format projects/`project_id`/locations/
# `location_id`/backups/`backup_id`, that this file share has been restored from.
# Corresponds to the JSON property `sourceBackup`
# @return [String]
attr_accessor :source_backup
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -81,6 +174,7 @@ module Google
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options) @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
@source_backup = args[:source_backup] if args.key?(:source_backup)
end end
end end
@ -547,6 +641,42 @@ module Google
end end
end end
# ListBackupsResponse is the result of ListBackupsRequest.
class ListBackupsResponse
include Google::Apis::Core::Hashable
# A list of backups in the project for the specified location. If the `location`
# value in the request is "-", the response contains a list of backups from all
# locations. If any location is unreachable, the response will only return
# backups in reachable locations and the "unreachable" field will be populated
# with a list of unreachable locations.
# Corresponds to the JSON property `backups`
# @return [Array<Google::Apis::FileV1beta1::Backup>]
attr_accessor :backups
# The token you can use to retrieve the next page of results. Not returned if
# there are no more results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Locations that could not be reached.
# Corresponds to the JSON property `unreachable`
# @return [Array<String>]
attr_accessor :unreachable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@backups = args[:backups] if args.key?(:backups)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@unreachable = args[:unreachable] if args.key?(:unreachable)
end
end
# ListInstancesResponse is the result of ListInstancesRequest. # ListInstancesResponse is the result of ListInstancesRequest.
class ListInstancesResponse class ListInstancesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -902,6 +1032,41 @@ module Google
end end
end end
# RestoreInstanceRequest restores an existing instances's file share from a
# snapshot or backup.
class RestoreInstanceRequest
include Google::Apis::Core::Hashable
# Required. Name of the file share in the Cloud Filestore instance that the
# snapshot is being restored to.
# Corresponds to the JSON property `fileShare`
# @return [String]
attr_accessor :file_share
# The resource name of the backup, in the format projects/`project_id`/locations/
# `location_id`/backups/`backup_id`.
# Corresponds to the JSON property `sourceBackup`
# @return [String]
attr_accessor :source_backup
# The resource name of the snapshot, in the format projects/`project_id`/
# locations/`location_id`/snapshots/`snapshot_id`.
# Corresponds to the JSON property `sourceSnapshot`
# @return [String]
attr_accessor :source_snapshot
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_share = args[:file_share] if args.key?(:file_share)
@source_backup = args[:source_backup] if args.key?(:source_backup)
@source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
end
end
# The `Status` type defines a logical error model that is suitable for different # 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 [ # programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module FileV1beta1 module FileV1beta1
class Backup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -94,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListBackupsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,12 +154,35 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class RestoreInstanceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status class Status
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Backup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
property :create_time, as: 'createTime'
property :description, as: 'description'
property :download_bytes, :numeric_string => true, as: 'downloadBytes'
hash :labels, as: 'labels'
property :name, as: 'name'
property :source_file_share, as: 'sourceFileShare'
property :source_instance, as: 'sourceInstance'
property :source_instance_tier, as: 'sourceInstanceTier'
property :state, as: 'state'
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
end
end
class CancelOperationRequest class CancelOperationRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -167,6 +202,7 @@ module Google
property :name, as: 'name' property :name, as: 'name'
collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
property :source_backup, as: 'sourceBackup'
end end
end end
@ -279,6 +315,16 @@ module Google
end end
end end
class ListBackupsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :backups, as: 'backups', class: Google::Apis::FileV1beta1::Backup, decorator: Google::Apis::FileV1beta1::Backup::Representation
property :next_page_token, as: 'nextPageToken'
collection :unreachable, as: 'unreachable'
end
end
class ListInstancesResponse class ListInstancesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -364,6 +410,15 @@ module Google
end end
end end
class RestoreInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file_share, as: 'fileShare'
property :source_backup, as: 'sourceBackup'
property :source_snapshot, as: 'sourceSnapshot'
end
end
class Status class Status
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -119,6 +119,194 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a backup.
# @param [String] parent
# Required. The backup's project and location, in the format projects/`
# project_id`/locations/`location`. In Cloud Filestore, backup locations map to
# GCP regions, for example **us-west1**.
# @param [Google::Apis::FileV1beta1::Backup] backup_object
# @param [String] backup_id
# Required. The ID to use for the backup. The ID must be unique within the
# specified project and location. This value must start with a lowercase letter
# followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end
# with a hyphen.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/backups', options)
command.request_representation = Google::Apis::FileV1beta1::Backup::Representation
command.request_object = backup_object
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
command.response_class = Google::Apis::FileV1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['backupId'] = backup_id unless backup_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a backup.
# @param [String] name
# Required. The backup resource name, in the format projects/`project_id`/
# locations/`location`/backups/`backup_id`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_backup(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
command.response_class = Google::Apis::FileV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the details of a specific backup.
# @param [String] name
# Required. The backup resource name, in the format projects/`project_id`/
# locations/`location`/backups/`backup_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::Backup] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::Backup]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_backup(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::FileV1beta1::Backup::Representation
command.response_class = Google::Apis::FileV1beta1::Backup
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all backups in a project for either a specified location or for all
# locations.
# @param [String] parent
# Required. The project and location for which to retrieve backup information,
# in the format projects/`project_id`/locations/`location`. In Cloud Filestore,
# backup locations map to GCP regions, for example **us-west1**. To retrieve
# backup information for all locations, use "-" for the `location` value.
# @param [String] filter
# List filter.
# @param [String] order_by
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value to use if there are additional results to retrieve
# for this list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::ListBackupsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::ListBackupsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/backups', options)
command.response_representation = Google::Apis::FileV1beta1::ListBackupsResponse::Representation
command.response_class = Google::Apis::FileV1beta1::ListBackupsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the settings of a specific backup.
# @param [String] name
# Output only. The resource name of the backup, in the format projects/`
# project_id`/locations/`location_id`/backups/`backup_id`.
# @param [Google::Apis::FileV1beta1::Backup] backup_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in this
# field.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::FileV1beta1::Backup::Representation
command.request_object = backup_object
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
command.response_class = Google::Apis::FileV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates an instance. # Creates an instance.
# @param [String] parent # @param [String] parent
# Required. The instance's project and location, in the format projects/` # Required. The instance's project and location, in the format projects/`
@ -308,6 +496,40 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Restores an existing instance's file share from a snapshot or backup.
# @param [String] name
# Required. The resource name of the instance, in the format projects/`
# project_id`/locations/`location_id`/instances/`instance_id`.
# @param [Google::Apis::FileV1beta1::RestoreInstanceRequest] restore_instance_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::FileV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def restore_instance(name, restore_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:restore', options)
command.request_representation = Google::Apis::FileV1beta1::RestoreInstanceRequest::Representation
command.request_object = restore_instance_request_object
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
command.response_class = Google::Apis::FileV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes # Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the # a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

View File

@ -379,9 +379,9 @@ module Google
class FirebaseAppInfo class FirebaseAppInfo
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Immutable. The globally unique, Firebase-assigned identifier for the `WebApp`. # Output only. Immutable. The globally unique, Firebase-assigned identifier for
# This identifier should be treated as an opaque token, as the data format is # the `WebApp`. This identifier should be treated as an opaque token, as the
# not specified. # data format is not specified.
# Corresponds to the JSON property `appId` # Corresponds to the JSON property `appId`
# @return [String] # @return [String]
attr_accessor :app_id attr_accessor :app_id
@ -398,6 +398,17 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Output only. Immutable. The platform-specific identifier of the App. *Note:*
# For most use cases, use `appId`, which is the canonical, globally unique
# identifier for referencing an App. This string is derived from a native
# identifier for each platform: `packageName` for an `AndroidApp`, `bundleId`
# for an `IosApp`, and `webId` for a `WebApp`. Its contents should be treated as
# opaque, as the native identifier format may change as platforms evolve. This
# string is only unique within a `FirebaseProject` and its associated Apps.
# Corresponds to the JSON property `namespace`
# @return [String]
attr_accessor :namespace
# The platform of the Firebase App. # The platform of the Firebase App.
# Corresponds to the JSON property `platform` # Corresponds to the JSON property `platform`
# @return [String] # @return [String]
@ -412,6 +423,7 @@ module Google
@app_id = args[:app_id] if args.key?(:app_id) @app_id = args[:app_id] if args.key?(:app_id)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@namespace = args[:namespace] if args.key?(:namespace)
@platform = args[:platform] if args.key?(:platform) @platform = args[:platform] if args.key?(:platform)
end end
end end
@ -1178,6 +1190,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :project_id attr_accessor :project_id
# Output only. Immutable. A unique, Firebase-assigned identifier for the `WebApp`
# . This identifier is only used to populate the `namespace` value for the `
# WebApp`. For most use cases, use `appId` to identify or reference the App. The
# `webId` value is only unique within a `FirebaseProject` and its associated
# Apps.
# Corresponds to the JSON property `webId`
# @return [String]
attr_accessor :web_id
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1189,6 +1210,7 @@ module Google
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@project_id = args[:project_id] if args.key?(:project_id) @project_id = args[:project_id] if args.key?(:project_id)
@web_id = args[:web_id] if args.key?(:web_id)
end end
end end

View File

@ -313,6 +313,7 @@ module Google
property :app_id, as: 'appId' property :app_id, as: 'appId'
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :name, as: 'name' property :name, as: 'name'
property :namespace, as: 'namespace'
property :platform, as: 'platform' property :platform, as: 'platform'
end end
end end
@ -511,6 +512,7 @@ module Google
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :name, as: 'name' property :name, as: 'name'
property :project_id, as: 'projectId' property :project_id, as: 'projectId'
property :web_id, as: 'webId'
end end
end end

View File

@ -493,6 +493,12 @@ module Google
# The parent FirebaseProject for which to list Apps, in the format: projects/ # The parent FirebaseProject for which to list Apps, in the format: projects/
# PROJECT_IDENTIFIER Refer to the `FirebaseProject` [`name`](../projects# # PROJECT_IDENTIFIER Refer to the `FirebaseProject` [`name`](../projects#
# FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values. # FirebaseProject.FIELDS.name) field for details about PROJECT_IDENTIFIER values.
# @param [String] filter
# A query string compatible with Google's [AIP-160](https://google.aip.dev/160)
# standard. Use any of the following fields in a query: * [`appId`](../projects.
# apps#FirebaseProjectInfo.FIELDS.app_id) * [`namespace`](../projects.apps#
# FirebaseProjectInfo.FIELDS.namespace) * [`platform`](../projects.apps#
# FirebaseProjectInfo.FIELDS.platform)
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The maximum number of Apps to return in the response. The server may return # The maximum number of Apps to return in the response. The server may return
# fewer than this value at its discretion. If no value is specified (or too # fewer than this value at its discretion. If no value is specified (or too
@ -518,11 +524,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def search_project_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) def search_project_apps(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}:searchApps', options) command = make_simple_command(:get, 'v1beta1/{+parent}:searchApps', options)
command.response_representation = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse::Representation command.response_representation = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse::Representation
command.response_class = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse command.response_class = Google::Apis::FirebaseV1beta1::SearchFirebaseAppsResponse
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil? command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil? command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?

View File

@ -0,0 +1,35 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/groupsmigration_v1/service.rb'
require 'google/apis/groupsmigration_v1/classes.rb'
require 'google/apis/groupsmigration_v1/representations.rb'
module Google
module Apis
# Groups Migration API
#
# The Groups Migration API allows domain administrators to archive emails into
# Google groups.
#
# @see https://developers.google.com/google-apps/groups-migration/
module GroupsmigrationV1
VERSION = 'V1'
REVISION = '20200813'
# Manage messages in groups on your domain
AUTH_APPS_GROUPS_MIGRATION = 'https://www.googleapis.com/auth/apps.groups.migration'
end
end
end

View File

@ -0,0 +1,51 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module GroupsmigrationV1
# JSON response template for groups migration API.
class Groups
include Google::Apis::Core::Hashable
# The kind of insert resource this is.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The status of the insert request.
# Corresponds to the JSON property `responseCode`
# @return [String]
attr_accessor :response_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@response_code = args[:response_code] if args.key?(:response_code)
end
end
end
end
end

View File

@ -0,0 +1,40 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module GroupsmigrationV1
class Groups
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Groups
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :response_code, as: 'responseCode'
end
end
end
end
end

View File

@ -0,0 +1,100 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module GroupsmigrationV1
# Groups Migration API
#
# The Groups Migration API allows domain administrators to archive emails into
# Google groups.
#
# @example
# require 'google/apis/groupsmigration_v1'
#
# Groupsmigration = Google::Apis::GroupsmigrationV1 # Alias the module
# service = Groupsmigration::GroupsMigrationService.new
#
# @see https://developers.google.com/google-apps/groups-migration/
class GroupsMigrationService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://www.googleapis.com/', '')
@batch_path = 'batch/groupsmigration/v1'
end
# Inserts a new mail into the archive of the Google group.
# @param [String] group_id
# The group ID
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
# Content type of the uploaded content.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GroupsmigrationV1::Groups] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GroupsmigrationV1::Groups]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_archive(group_id, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, 'groups/v1/groups/{groupId}/archive', options)
else
command = make_upload_command(:post, 'groups/v1/groups/{groupId}/archive', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.response_representation = Google::Apis::GroupsmigrationV1::Groups::Representation
command.response_class = Google::Apis::GroupsmigrationV1::Groups
command.params['groupId'] = group_id unless group_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/pubsub/lite/docs # @see https://cloud.google.com/pubsub/lite/docs
module PubsubliteV1 module PubsubliteV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200803' REVISION = '20200818'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -224,10 +224,12 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :count attr_accessor :count
# Every partition in the topic is allocated throughput equivalent to `scale` # DEPRECATED: Use capacity instead which can express a superset of
# times the standard partition throughput (4 MiB/s). This is also reflected in # configurations. Every partition in the topic is allocated throughput
# the cost of this topic; a topic with `scale` of 2 and count of 10 is charged # equivalent to `scale` times the standard partition throughput (4 MiB/s). This
# for 20 partitions. This value must be in the range [1,4]. # is also reflected in the cost of this topic; a topic with `scale` of 2 and
# count of 10 is charged for 20 partitions. This value must be in the range [1,4]
# .
# Corresponds to the JSON property `scale` # Corresponds to the JSON property `scale`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :scale attr_accessor :scale

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/ # @see https://cloud.google.com/text-to-speech/
module TexttospeechV1 module TexttospeechV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200807' REVISION = '20200814'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -83,10 +83,10 @@ module Google
# Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) # Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag. If specified, the ListVoices call will only return voices that # language tag. If specified, the ListVoices call will only return voices that
# can be used to synthesize this language_code. E.g. when specifying "en-NZ", # can be used to synthesize this language_code. E.g. when specifying "en-NZ",
# you will get supported "en-*" voices; when specifying "no", you will get # you will get supported "en-\*" voices; when specifying "no", you will get
# supported "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying " # supported "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices;
# zh" will also get supported "cmn-*" voices; specifying "zh-hk" will also get # specifying "zh" will also get supported "cmn-\*" voices; specifying "zh-hk"
# supported "yue-*" voices. # will also get supported "yue-\*" voices.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/text-to-speech/ # @see https://cloud.google.com/text-to-speech/
module TexttospeechV1beta1 module TexttospeechV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200807' REVISION = '20200814'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -83,10 +83,10 @@ module Google
# Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) # Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
# language tag. If specified, the ListVoices call will only return voices that # language tag. If specified, the ListVoices call will only return voices that
# can be used to synthesize this language_code. E.g. when specifying "en-NZ", # can be used to synthesize this language_code. E.g. when specifying "en-NZ",
# you will get supported "en-*" voices; when specifying "no", you will get # you will get supported "en-\*" voices; when specifying "no", you will get
# supported "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying " # supported "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices;
# zh" will also get supported "cmn-*" voices; specifying "zh-hk" will also get # specifying "zh" will also get supported "cmn-\*" voices; specifying "zh-hk"
# supported "yue-*" voices. # will also get supported "yue-\*" voices.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user