From b2ec73b99e02f8b5daefe2893cfb068c19ed1c59 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 16 May 2018 00:36:46 +0000 Subject: [PATCH] Autogenerated update (2018-05-16) Update: - admin_reports_v1 - appengine_v1 - appengine_v1beta - cloudiot_v1 - composer_v1beta1 - sqladmin_v1beta4 - youtube_analytics_v2 --- api_names_out.yaml | 19 +++ generated/google/apis/admin_reports_v1.rb | 2 +- generated/google/apis/appengine_v1.rb | 2 +- generated/google/apis/appengine_v1/classes.rb | 15 ++- generated/google/apis/appengine_v1/service.rb | 47 ++++--- generated/google/apis/appengine_v1beta.rb | 2 +- .../google/apis/appengine_v1beta/classes.rb | 18 ++- .../google/apis/appengine_v1beta/service.rb | 47 ++++--- generated/google/apis/cloudiot_v1.rb | 2 +- generated/google/apis/cloudiot_v1/service.rb | 14 +- generated/google/apis/composer_v1beta1.rb | 2 +- .../google/apis/composer_v1beta1/classes.rb | 101 +++++++-------- .../google/apis/composer_v1beta1/service.rb | 10 +- generated/google/apis/pubsub_v1/classes.rb | 57 +++++++-- generated/google/apis/pubsub_v1/service.rb | 61 ++++++--- generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/classes.rb | 76 +++++++++++ .../apis/sqladmin_v1beta4/representations.rb | 44 +++++++ .../google/apis/sqladmin_v1beta4/service.rb | 120 ++++++++++++++++++ generated/google/apis/youtube_analytics_v2.rb | 4 +- .../apis/youtube_analytics_v2/service.rb | 2 +- 21 files changed, 488 insertions(+), 159 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 15f52b207..286bb0594 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -71314,8 +71314,15 @@ "/sqladmin:v1beta4/InstancesListResponse/items/item": item "/sqladmin:v1beta4/InstancesListResponse/kind": kind "/sqladmin:v1beta4/InstancesListResponse/nextPageToken": next_page_token +"/sqladmin:v1beta4/InstancesListServerCasResponse": instances_list_server_cas_response +"/sqladmin:v1beta4/InstancesListServerCasResponse/activeVersion": active_version +"/sqladmin:v1beta4/InstancesListServerCasResponse/certs": certs +"/sqladmin:v1beta4/InstancesListServerCasResponse/certs/cert": cert +"/sqladmin:v1beta4/InstancesListServerCasResponse/kind": kind "/sqladmin:v1beta4/InstancesRestoreBackupRequest": restore_instances_backup_request "/sqladmin:v1beta4/InstancesRestoreBackupRequest/restoreBackupContext": restore_backup_context +"/sqladmin:v1beta4/InstancesRotateServerCaRequest": instances_rotate_server_ca_request +"/sqladmin:v1beta4/InstancesRotateServerCaRequest/rotateServerCaContext": rotate_server_ca_context "/sqladmin:v1beta4/InstancesTruncateLogRequest": instances_truncate_log_request "/sqladmin:v1beta4/InstancesTruncateLogRequest/truncateLogContext": truncate_log_context "/sqladmin:v1beta4/IpConfiguration": ip_configuration @@ -71388,6 +71395,9 @@ "/sqladmin:v1beta4/RestoreBackupContext/backupRunId": backup_run_id "/sqladmin:v1beta4/RestoreBackupContext/instanceId": instance_id "/sqladmin:v1beta4/RestoreBackupContext/kind": kind +"/sqladmin:v1beta4/RotateServerCaContext": rotate_server_ca_context +"/sqladmin:v1beta4/RotateServerCaContext/kind": kind +"/sqladmin:v1beta4/RotateServerCaContext/nextVersion": next_version "/sqladmin:v1beta4/Settings": settings "/sqladmin:v1beta4/Settings/activationPolicy": activation_policy "/sqladmin:v1beta4/Settings/authorizedGaeApplications": authorized_gae_applications @@ -71508,6 +71518,9 @@ "/sqladmin:v1beta4/sql.databases.update/project": project "/sqladmin:v1beta4/sql.flags.list": list_flags "/sqladmin:v1beta4/sql.flags.list/databaseVersion": database_version +"/sqladmin:v1beta4/sql.instances.addServerCa": add_instance_server_ca +"/sqladmin:v1beta4/sql.instances.addServerCa/instance": instance +"/sqladmin:v1beta4/sql.instances.addServerCa/project": project "/sqladmin:v1beta4/sql.instances.clone": clone_instance "/sqladmin:v1beta4/sql.instances.clone/instance": instance "/sqladmin:v1beta4/sql.instances.clone/project": project @@ -71536,6 +71549,9 @@ "/sqladmin:v1beta4/sql.instances.list/maxResults": max_results "/sqladmin:v1beta4/sql.instances.list/pageToken": page_token "/sqladmin:v1beta4/sql.instances.list/project": project +"/sqladmin:v1beta4/sql.instances.listServerCas": list_instance_server_cas +"/sqladmin:v1beta4/sql.instances.listServerCas/instance": instance +"/sqladmin:v1beta4/sql.instances.listServerCas/project": project "/sqladmin:v1beta4/sql.instances.patch": patch_instance "/sqladmin:v1beta4/sql.instances.patch/instance": instance "/sqladmin:v1beta4/sql.instances.patch/project": project @@ -71551,6 +71567,9 @@ "/sqladmin:v1beta4/sql.instances.restoreBackup": restore_instance_backup "/sqladmin:v1beta4/sql.instances.restoreBackup/instance": instance "/sqladmin:v1beta4/sql.instances.restoreBackup/project": project +"/sqladmin:v1beta4/sql.instances.rotateServerCa": rotate_instance_server_ca +"/sqladmin:v1beta4/sql.instances.rotateServerCa/instance": instance +"/sqladmin:v1beta4/sql.instances.rotateServerCa/project": project "/sqladmin:v1beta4/sql.instances.startReplica": start_instance_replica "/sqladmin:v1beta4/sql.instances.startReplica/instance": instance "/sqladmin:v1beta4/sql.instances.startReplica/project": project diff --git a/generated/google/apis/admin_reports_v1.rb b/generated/google/apis/admin_reports_v1.rb index 19bf8c4ce..41b1527e3 100644 --- a/generated/google/apis/admin_reports_v1.rb +++ b/generated/google/apis/admin_reports_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/reports/ module AdminReportsV1 VERSION = 'ReportsV1' - REVISION = '20180430' + REVISION = '20180514' # View audit reports for your G Suite domain AUTH_ADMIN_REPORTS_AUDIT_READONLY = 'https://www.googleapis.com/auth/admin.reports.audit.readonly' diff --git a/generated/google/apis/appengine_v1.rb b/generated/google/apis/appengine_v1.rb index ea3d59384..a5677fc9a 100644 --- a/generated/google/apis/appengine_v1.rb +++ b/generated/google/apis/appengine_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1 VERSION = 'V1' - REVISION = '20180320' + REVISION = '20180511' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1/classes.rb b/generated/google/apis/appengine_v1/classes.rb index 09b321dde..6a14205f3 100644 --- a/generated/google/apis/appengine_v1/classes.rb +++ b/generated/google/apis/appengine_v1/classes.rb @@ -805,14 +805,21 @@ module Google # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The # Endpoints API Service provides tooling for serving Open API and gRPC endpoints # via an NGINX proxy. Only valid for App Engine Flexible environment deployments. - # The fields here refer to the name and configuration id of a "service" resource + # The fields here refer to the name and configuration ID of a "service" resource # in the Service Management API (https://cloud.google.com/service-management/ # overview). class EndpointsApiService include Google::Apis::Core::Hashable - # Endpoints service configuration id as specified by the Service Management API. - # For example "2016-09-19r1" + # Endpoints service configuration ID as specified by the Service Management API. + # For example "2016-09-19r1".By default, the rollout strategy for Endpoints is + # RolloutStrategy.FIXED. This means that Endpoints starts up with a particular + # configuration ID. When a new configuration is rolled out, Endpoints must be + # given the new configuration ID. The config_id field is used to give the + # configuration ID and is required in this case.Endpoints also has a rollout + # strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches + # the latest configuration and does not need the configuration ID. In this case, + # config_id must be omitted. # Corresponds to the JSON property `configId` # @return [String] attr_accessor :config_id @@ -2694,7 +2701,7 @@ module Google # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The # Endpoints API Service provides tooling for serving Open API and gRPC endpoints # via an NGINX proxy. Only valid for App Engine Flexible environment deployments. - # The fields here refer to the name and configuration id of a "service" resource + # The fields here refer to the name and configuration ID of a "service" resource # in the Service Management API (https://cloud.google.com/service-management/ # overview). # Corresponds to the JSON property `endpointsApiService` diff --git a/generated/google/apis/appengine_v1/service.rb b/generated/google/apis/appengine_v1/service.rb index bb61399a4..6f9c15bf5 100644 --- a/generated/google/apis/appengine_v1/service.rb +++ b/generated/google/apis/appengine_v1/service.rb @@ -1291,38 +1291,47 @@ module Google # Updates the specified Version resource. You can specify the following fields # depending on the App Engine environment and type of scaling that the version - # resource uses: - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1/apps.services.versions#Version.FIELDS.serving_status): For Version - # resources that use basic scaling, manual scaling, or run in the App Engine - # flexible environment. + # resource uses:Standard environment # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1/apps.services.versions#Version.FIELDS.instance_class): For Version - # resources that run in the App Engine standard environment. + # rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic scaling + # in the standard environment: # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine standard environment. + # automatic_scaling) # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine standard environment. + # automatic_scaling) + # automaticScaling.standard_scheduler_settings.max_instances (https://cloud. + # google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions# + # StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.min_instances (https://cloud. + # google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions# + # StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.target_cpu_utilization (https:// + # cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services. + # versions#StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.target_throughput_utilization ( + # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps. + # services.versions#StandardSchedulerSettings)basic scaling or manual scaling in + # the standard environment: + # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1/apps.services.versions#Version.FIELDS.serving_status)Flexible + # environment + # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling + # in the flexible environment: # automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/ # docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/ # appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version. - # FIELDS.automatic_scaling): For Version resources that use automatic scaling - # and run in the App Engine flexible environment. + # FIELDS.automatic_scaling) # @param [String] apps_id # Part of `name`. Name of the resource to update. Example: apps/myapp/services/ # default/versions/1. diff --git a/generated/google/apis/appengine_v1beta.rb b/generated/google/apis/appengine_v1beta.rb index 506676c61..edf0820b8 100644 --- a/generated/google/apis/appengine_v1beta.rb +++ b/generated/google/apis/appengine_v1beta.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta VERSION = 'V1beta' - REVISION = '20180320' + REVISION = '20180511' # View and manage your applications deployed on Google App Engine AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin' diff --git a/generated/google/apis/appengine_v1beta/classes.rb b/generated/google/apis/appengine_v1beta/classes.rb index 48d044d07..992d37bee 100644 --- a/generated/google/apis/appengine_v1beta/classes.rb +++ b/generated/google/apis/appengine_v1beta/classes.rb @@ -890,17 +890,21 @@ module Google # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The # Endpoints API Service provides tooling for serving Open API and gRPC endpoints # via an NGINX proxy. Only valid for App Engine Flexible environment deployments. - # The fields here refer to the name and configuration id of a "service" resource + # The fields here refer to the name and configuration ID of a "service" resource # in the Service Management API (https://cloud.google.com/service-management/ # overview). class EndpointsApiService include Google::Apis::Core::Hashable - # Endpoints service configuration id as specified by the Service Management API. - # For example "2016-09-19r1"By default, the Endpoints service configuration id - # is fixed and config_id must be specified. To keep the Endpoints service - # configuration id updated with each rollout, specify RolloutStrategy.MANAGED - # and omit config_id. + # Endpoints service configuration ID as specified by the Service Management API. + # For example "2016-09-19r1".By default, the rollout strategy for Endpoints is + # RolloutStrategy.FIXED. This means that Endpoints starts up with a particular + # configuration ID. When a new configuration is rolled out, Endpoints must be + # given the new configuration ID. The config_id field is used to give the + # configuration ID and is required in this case.Endpoints also has a rollout + # strategy called RolloutStrategy.MANAGED. When using this, Endpoints fetches + # the latest configuration and does not need to be told the configuration ID. In + # this case, config_id must be omitted. # Corresponds to the JSON property `configId` # @return [String] attr_accessor :config_id @@ -2856,7 +2860,7 @@ module Google # Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The # Endpoints API Service provides tooling for serving Open API and gRPC endpoints # via an NGINX proxy. Only valid for App Engine Flexible environment deployments. - # The fields here refer to the name and configuration id of a "service" resource + # The fields here refer to the name and configuration ID of a "service" resource # in the Service Management API (https://cloud.google.com/service-management/ # overview). # Corresponds to the JSON property `endpointsApiService` diff --git a/generated/google/apis/appengine_v1beta/service.rb b/generated/google/apis/appengine_v1beta/service.rb index b303124a8..3984693ca 100644 --- a/generated/google/apis/appengine_v1beta/service.rb +++ b/generated/google/apis/appengine_v1beta/service.rb @@ -1291,38 +1291,47 @@ module Google # Updates the specified Version resource. You can specify the following fields # depending on the App Engine environment and type of scaling that the version - # resource uses: - # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1beta/apps.services.versions#Version.FIELDS.serving_status): For - # Version resources that use basic scaling, manual scaling, or run in the App - # Engine flexible environment. + # resource uses:Standard environment # instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/ - # rest/v1beta/apps.services.versions#Version.FIELDS.instance_class): For - # Version resources that run in the App Engine standard environment. + # rest/v1beta/apps.services.versions#Version.FIELDS.instance_class)automatic + # scaling in the standard environment: # automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine standard environment. + # automatic_scaling) # automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine standard environment. + # automatic_scaling) + # automaticScaling.standard_scheduler_settings.max_instances (https://cloud. + # google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. + # versions#StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.min_instances (https://cloud. + # google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. + # versions#StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.target_cpu_utilization (https:// + # cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps.services. + # versions#StandardSchedulerSettings) + # automaticScaling.standard_scheduler_settings.target_throughput_utilization ( + # https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1beta/apps. + # services.versions#StandardSchedulerSettings)basic scaling or manual scaling in + # the standard environment: + # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)Flexible + # environment + # serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/ + # rest/v1beta/apps.services.versions#Version.FIELDS.serving_status)automatic + # scaling in the flexible environment: # automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/ # admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/ # docs/admin-api/reference/rest/v1beta/apps.services.versions#Version.FIELDS. - # automatic_scaling): For Version resources that use automatic scaling and run - # in the App Engine flexible environment. + # automatic_scaling) # automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/ # appengine/docs/admin-api/reference/rest/v1beta/apps.services.versions#Version. - # FIELDS.automatic_scaling): For Version resources that use automatic scaling - # and run in the App Engine flexible environment. + # FIELDS.automatic_scaling) # @param [String] apps_id # Part of `name`. Name of the resource to update. Example: apps/myapp/services/ # default/versions/1. diff --git a/generated/google/apis/cloudiot_v1.rb b/generated/google/apis/cloudiot_v1.rb index f5cafe476..1705551d0 100644 --- a/generated/google/apis/cloudiot_v1.rb +++ b/generated/google/apis/cloudiot_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/iot module CloudiotV1 VERSION = 'V1' - REVISION = '20180501' + REVISION = '20180508' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudiot_v1/service.rb b/generated/google/apis/cloudiot_v1/service.rb index 0d471f910..9075692e0 100644 --- a/generated/google/apis/cloudiot_v1/service.rb +++ b/generated/google/apis/cloudiot_v1/service.rb @@ -63,10 +63,6 @@ module Google # The fields of the `Device` resource to be returned in the response. The # fields `id`, and `num_id` are always returned by default, along with any # other fields specified. - # @param [String] gateway_type - # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` - # specified, only non-gateway devices are returned. If - # `GATEWAY_TYPE_UNSPECIFIED` specified, all devices are returned. # @param [Fixnum] page_size # The maximum number of devices to return in the response. If this value # is zero, the service will select a default size. A call may return fewer @@ -93,7 +89,7 @@ module Google # @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_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/devices', options) command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse @@ -101,7 +97,6 @@ module Google command.query['deviceIds'] = device_ids unless device_ids.nil? command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil? command.query['fieldMask'] = field_mask unless field_mask.nil? - command.query['gatewayType'] = gateway_type unless gateway_type.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? @@ -513,10 +508,6 @@ module Google # The fields of the `Device` resource to be returned in the response. The # fields `id`, and `num_id` are always returned by default, along with any # other fields specified. - # @param [String] gateway_type - # If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY` - # specified, only non-gateway devices are returned. If - # `GATEWAY_TYPE_UNSPECIFIED` specified, all devices are returned. # @param [Fixnum] page_size # The maximum number of devices to return in the response. If this value # is zero, the service will select a default size. A call may return fewer @@ -543,7 +534,7 @@ module Google # @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_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/devices', options) command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse @@ -551,7 +542,6 @@ module Google command.query['deviceIds'] = device_ids unless device_ids.nil? command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil? command.query['fieldMask'] = field_mask unless field_mask.nil? - command.query['gatewayType'] = gateway_type unless gateway_type.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? diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index ee100a0a1..120c568c8 100644 --- a/generated/google/apis/composer_v1beta1.rb +++ b/generated/google/apis/composer_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1beta1 VERSION = 'V1beta1' - REVISION = '20180430' + REVISION = '20180510' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/composer_v1beta1/classes.rb b/generated/google/apis/composer_v1beta1/classes.rb index 884608c27..b041a8684 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -68,7 +68,7 @@ module Google attr_accessor :labels # The resource name of the environment, in the form: - # `projects/`projectId`/locations/`locationId`/environments/`environmentId`` + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -133,19 +133,19 @@ module Google # @return [String] attr_accessor :gke_cluster - # The configuration information for the Container Engine nodes running + # The configuration information for the Kubernetes Engine nodes running # the Apache Airflow software. # Corresponds to the JSON property `nodeConfig` # @return [Google::Apis::ComposerV1beta1::NodeConfig] attr_accessor :node_config - # The number of nodes in the Container Engine cluster that will be + # The number of nodes in the Kubernetes Engine cluster that will be # used to run this environment. # Corresponds to the JSON property `nodeCount` # @return [Fixnum] attr_accessor :node_count - # Specifies the selection and config of software inside the environment. + # Specifies the selection and configuration of software inside the environment. # Corresponds to the JSON property `softwareConfig` # @return [Google::Apis::ComposerV1beta1::SoftwareConfig] attr_accessor :software_config @@ -215,12 +215,12 @@ module Google end end - # The configuration information for the Container Engine nodes running + # The configuration information for the Kubernetes Engine nodes running # the Apache Airflow software. class NodeConfig include Google::Apis::Core::Hashable - # Optional. The disk size in GB used for node VMs. Minimum is 10GB. + # Optional. The disk size in GB used for node VMs. Minimum size is 10GB. # If unspecified, defaults to 100GB. Cannot be updated. # Corresponds to the JSON property `diskSizeGb` # @return [Fixnum] @@ -228,55 +228,54 @@ module Google # Optional. The Compute Engine [zone](/compute/docs/regions-zones) in which # to deploy the VMs used to run the Apache Airflow software, specified as a - # relative resource name](https://cloud.google.com/apis/design/resource_names# - # relative_resource_name). - # For example: `projects/`projectId`/zones/`zoneId``. + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: "projects/`projectId`/zones/`zoneId`". # This `location` must belong to the enclosing environment's project and # location. If both this field and `nodeConfig.machineType` are specified, # `nodeConfig.machineType` must belong to this `location`; if both are # unspecified, the service will pick a zone in the Compute Engine region - # corresponding to the Cloud Composer location and propagate that choice to - # both fields. If exactly one of this field and `nodeConfig.machineType` is + # corresponding to the Cloud Composer location, and propagate that choice to + # both fields. If only one field (`location` or `nodeConfig.machineType`) is # specified, the location information from the specified field will be # propagated to the unspecified field. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. The Google Compute Engine [machine type]( - # /compute/docs/machine-types) used for cluster instances, specified as a - # [relative resource name]( - # https://cloud.google.com/apis/design/resource_names#relative_resource_name). + # Optional. The Compute Engine + # [machine type](/compute/docs/machine-types) used for cluster instances, + # specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). # For example: - # `projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId``. + # "projects/`projectId`/zones/`zoneId`/machineTypes/`machineTypeId`". # The `machineType` must belong to the enclosing environment's project and # location. If both this field and `nodeConfig.location` are specified, # this `machineType` must belong to the `nodeConfig.location`; if both are # unspecified, the service will pick a zone in the Compute Engine region - # corresponding to the Cloud Composer location and propagate that choice to + # corresponding to the Cloud Composer location, and propagate that choice to # both fields. If exactly one of this field and `nodeConfig.location` is # specified, the location information from the specified field will be # propagated to the unspecified field. - # Furthermore, if this field is unspecified, the `machineTypeId` defaults - # to `n1-standard-1`. + # If this field is unspecified, the `machineTypeId` defaults + # to "n1-standard-1". # Corresponds to the JSON property `machineType` # @return [String] attr_accessor :machine_type # Optional. The Compute Engine network to be used for machine - # communications, specified as a [relative resource name]( - # https://cloud.google.com/apis/design/resource_names#relative_resource_name). - # For example: `projects/`projectId`/global/networks/`networkId``. + # communications, specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). + # For example: "projects/`projectId`/global/networks/`networkId`". # [Shared VPC](/vpc/docs/shared-vpc) is not currently supported. The # network must belong to the environment's project. If unspecified, the - # "default" network ID in the environment's project is used. If a "Custom - # Subnet Network" (see [Using Subnetworks](/compute/docs/subnetworks) for - # more information) is provided, `nodeConfig.subnetwork` must also be provided. + # "default" network ID in the environment's project is used. If a + # [Custom Subnet Network]((/vpc/docs/vpc#vpc_networks_and_subnets) + # is provided, `nodeConfig.subnetwork` must also be provided. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # Optional. The set of Google API scopes to be made available on all of the + # Optional. The set of Google API scopes to be made available on all # node VMs. If `oauth_scopes` is empty, defaults to # ["https://www.googleapis.com/auth/cloud-platform"]. Cannot be updated. # Corresponds to the JSON property `oauthScopes` @@ -291,10 +290,10 @@ module Google attr_accessor :service_account # Optional. The Compute Engine subnetwork to be used for machine - # communications, specified as a [relative resource name]( - # https://cloud.google.com/apis/design/resource_names#relative_resource_name). + # communications, specified as a + # [relative resource name](/apis/design/resource_names#relative_resource_name). # For example: - # `projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`` + # "projects/`projectId`/regions/`regionId`/subnetworks/`subnetworkId`" # If a subnetwork is provided, `nodeConfig.network` must also be provided, # and the subnetwork must belong to the enclosing environment's project and # location. @@ -481,26 +480,24 @@ module Google end end - # Specifies the selection and config of software inside the environment. + # Specifies the selection and configuration of software inside the environment. class SoftwareConfig include Google::Apis::Core::Hashable # Optional. Apache Airflow configuration properties to override. - # Property keys contain the section and property name, separated by a hyphen, - # for example `core-dags_are_paused_at_creation`. Sections must not + # Property keys contain the section and property names, separated by a hyphen, + # for example "core-dags_are_paused_at_creation". Section names must not # contain hyphens ("-"), opening square brackets ("["), or closing square - # brackets ("]"). The name must be non-empty and must not contain an equals - # sign ("=") or semicolon (";"). The section as well as the name must not - # contain a period ("."). Apache Airflow configuration property names must be - # written in - # [snake_case](https://www.google.com/url?sa=D&q=https%3A%2F%2Fen.wikipedia.org% - # 2Fwiki%2FSnake_case). - # Property values can contain any character and be written in any lower/upper - # case format. + # brackets ("]"). The property name must not be empty and must not contain + # an equals sign ("=") or semicolon (";"). Section and property names must + # not contain a period ("."). Apache Airflow configuration property names + # must be written in [snake_case](https://en.wikipedia.org/wiki/Snake_case). + # Property values can contain any character, and can be written in any + # lower/upper case format. # Certain Apache Airflow configuration property values are # [blacklisted](/composer/docs/how-to/managing/setting-airflow-configurations# - # airflow_configuration_blacklists) and - # cannot be overridden. + # airflow_configuration_blacklists), + # and cannot be overridden. # Corresponds to the JSON property `airflowConfigOverrides` # @return [Hash] attr_accessor :airflow_config_overrides @@ -508,10 +505,10 @@ module Google # Optional. Additional environment variables to provide to the Apache Airflow # scheduler, worker, and webserver processes. # Environment variable names must match the regular expression - # `a-zA-Z_*`. Furthermore, they cannot specify Apache Airflow - # software configuration overrides (i.e., match the regular expression - # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`); nor can they take any of the following - # reserved values: + # `a-zA-Z_*`. They cannot specify Apache Airflow + # software configuration overrides (they cannot match the regular expression + # `AIRFLOW__[A-Z0-9_]+__[A-Z0-9_]+`), and they cannot match any of the + # following reserved names: # * `AIRFLOW_HOME` # * `C_FORCE_ROOT` # * `CONTAINER_NAME` @@ -534,10 +531,10 @@ module Google # This encapsulates both the version of Cloud Composer functionality and the # version of Apache Airflow. It must match the regular expression # `composer-[0-9]+\.[0-9]+(\.[0-9]+)?-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`. - # The Cloud Composer portion of the version is a [semantic - # version](https://semver.org). The portion of the image version following - # airflow- is an official Apache Airflow repository [release - # name](https://github.com/apache/incubator-airflow/releases). + # The Cloud Composer portion of the version is a + # [semantic version](https://semver.org). The portion of the image version + # following airflow- is an official Apache Airflow repository + # [release name](https://github.com/apache/incubator-airflow/releases). # See also [Release Notes](/composer/docs/release-notes). # Corresponds to the JSON property `imageVersion` # @return [String] @@ -545,9 +542,9 @@ module Google # Optional. Custom Python Package Index (PyPI) packages to be installed in # the environment. - # Keys refer to the lowercase package name such as `numpy` + # Keys refer to the lowercase package name such as "numpy" # and values are the lowercase extras and version specifier such as - # `==1.12.0`, `[devel,gcp_api]`, or `[devel]>=1.8.2, <1.9.2`. To specify a + # "==1.12.0", "[devel,gcp_api]", or "[devel]>=1.8.2, <1.9.2". To specify a # package without pinning it to a version specifier, use the empty string as # the value. # Corresponds to the JSON property `pypiPackages` diff --git a/generated/google/apis/composer_v1beta1/service.rb b/generated/google/apis/composer_v1beta1/service.rb index d90c3a4f5..cfb04bb56 100644 --- a/generated/google/apis/composer_v1beta1/service.rb +++ b/generated/google/apis/composer_v1beta1/service.rb @@ -49,7 +49,7 @@ module Google # Create a new environment. # @param [String] parent - # The parent must be of the form `projects/`projectId`/locations/`locationId``. + # The parent must be of the form "projects/`projectId`/locations/`locationId`". # @param [Google::Apis::ComposerV1beta1::Environment] environment_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -83,7 +83,7 @@ module Google # Delete an environment. # @param [String] name # The environment to delete, in the form: - # `projects/`projectId`/locations/`locationId`/environments/`environmentId`` + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -114,7 +114,7 @@ module Google # Get an existing environment. # @param [String] name # The resource name of the environment to get, in the form: - # `projects/`projectId`/locations/`locationId`/environments/`environmentId`` + # "projects/`projectId`/locations/`locationId`/environments/`environmentId`" # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -145,7 +145,7 @@ module Google # List environments. # @param [String] parent # List environments in the given project and location, in the form: - # `projects/`projectId`/locations/`locationId`` + # "projects/`projectId`/locations/`locationId`" # @param [Fixnum] page_size # The maximum number of environments to return. # @param [String] page_token @@ -182,7 +182,7 @@ module Google # Update an environment. # @param [String] name # 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 [String] update_mask # Required. A comma-separated list of paths, relative to `Environment`, of diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 52f3272eb..d54129845 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -82,7 +82,11 @@ module Google end end - # Request for the `CreateSnapshot` method. + # Request for the `CreateSnapshot` method.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in + # backward-incompatible ways and is not recommended for production use. + # It is not subject to any SLA or deprecation policy. class CreateSnapshotRequest include Google::Apis::Core::Hashable @@ -128,7 +132,11 @@ module Google end end - # Response for the `ListSnapshots` method. + # Response for the `ListSnapshots` method.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. class ListSnapshotsResponse include Google::Apis::Core::Hashable @@ -181,8 +189,11 @@ module Google end end - # Response for the `ListTopicSnapshots` method. - # [ALPHA] This method is a part of a closed Alpha API. + # Response for the `ListTopicSnapshots` method.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. class ListTopicSnapshotsResponse include Google::Apis::Core::Hashable @@ -594,7 +605,11 @@ module Google end end - # Request for the `Seek` method. + # Request for the `Seek` method.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. class SeekRequest include Google::Apis::Core::Hashable @@ -699,7 +714,11 @@ module Google end end - # A snapshot resource. + # A snapshot resource.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. class Snapshot include Google::Apis::Core::Hashable @@ -769,8 +788,11 @@ module Google # If `retain_acked_messages` is true, then this also configures the retention # of acknowledged messages, and thus configures how far back in time a `Seek` # can be done. Defaults to 7 days. Cannot be more than 7 days or less than 10 - # minutes. - # [ALPHA] This field is a part of a closed Alpha API. + # minutes.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # Corresponds to the JSON property `messageRetentionDuration` # @return [String] attr_accessor :message_retention_duration @@ -793,8 +815,11 @@ module Google # Indicates whether to retain acknowledged messages. If true, then # messages are not expunged from the subscription's backlog, even if they are # acknowledged, until they fall out of the `message_retention_duration` - # window. - # [ALPHA] This field is a part of a closed Alpha API. + # window.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # Corresponds to the JSON property `retainAckedMessages` # @return [Boolean] attr_accessor :retain_acked_messages @@ -889,11 +914,19 @@ module Google end end - # Request for the UpdateSnapshot method. + # Request for the UpdateSnapshot method.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. class UpdateSnapshotRequest include Google::Apis::Core::Hashable - # A snapshot resource. + # A snapshot resource.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # Corresponds to the JSON property `snapshot` # @return [Google::Apis::PubsubV1::Snapshot] attr_accessor :snapshot diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index be59acc0c..17fa46b4d 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -47,18 +47,21 @@ module Google @batch_path = 'batch' end - # [ALPHA] This method is a part of a closed Alpha API. - # Creates a snapshot from the requested subscription. + # Creates a snapshot from the requested subscription.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # If the snapshot already exists, returns `ALREADY_EXISTS`. # If the requested subscription doesn't exist, returns `NOT_FOUND`. # If the backlog in the subscription is too old -- and the resulting snapshot # would expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. - # See also the `Snapshot.expire_time` field. - # If the name is not provided in the request, the server will assign a random + # See also the `Snapshot.expire_time` field. If the name is not provided in + # the request, the server will assign a random # name for this snapshot on the same project as the subscription, conforming - # to the - # [resource name - # format](https://cloud.google.com/pubsub/docs/overview#names). The generated + # to the [resource name format](https://cloud.google.com/pubsub/docs/overview# + # names). + # The generated # name is populated in the returned Snapshot object. Note that for REST API # requests, you must specify a name in the request. # @param [String] name @@ -97,11 +100,15 @@ module Google execute_or_queue_command(command, &block) end - # Removes an existing snapshot. All messages retained in the snapshot + # Removes an existing snapshot.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. + # When the snapshot is deleted, all messages retained in the snapshot # are immediately dropped. After a snapshot is deleted, a new one may be # created with the same name, but the new one has no association with the old # snapshot or its subscription, unless the same subscription is specified. - # [ALPHA] This method is a part of a closed Alpha API. # @param [String] snapshot # The name of the snapshot to delete. # Format is `projects/`project`/snapshots/`snap``. @@ -132,8 +139,11 @@ module Google execute_or_queue_command(command, &block) end - # Gets the configuration details of a snapshot. - # [ALPHA] This method is a part of a closed Alpha API. + # Gets the configuration details of a snapshot.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # @param [String] snapshot # The name of the snapshot to get. # Format is `projects/`project`/snapshots/`snap``. @@ -197,8 +207,11 @@ module Google execute_or_queue_command(command, &block) end - # Lists the existing snapshots. - # [ALPHA] This method is a part of a closed Alpha API. + # Lists the existing snapshots.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # @param [String] project # The name of the cloud project that snapshots belong to. # Format is `projects/`project``. @@ -237,9 +250,12 @@ module Google execute_or_queue_command(command, &block) end - # Updates an existing snapshot. Note that certain properties of a - # snapshot are not modifiable. - # [ALPHA] This method is a part of a closed Alpha API. + # Updates an existing snapshot.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. + # Note that certain properties of a snapshot are not modifiable. # @param [String] name # The name of the snapshot. # @param [Google::Apis::PubsubV1::UpdateSnapshotRequest] update_snapshot_request_object @@ -722,8 +738,11 @@ module Google end # Seeks an existing subscription to a point in time or to a given snapshot, - # whichever is provided in the request. - # [ALPHA] This method is a part of a closed Alpha API. + # whichever is provided in the request.

+ # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # @param [String] subscription # The subscription to affect. # @param [Google::Apis::PubsubV1::SeekRequest] seek_request_object @@ -1116,8 +1135,10 @@ module Google execute_or_queue_command(command, &block) end - # Lists the names of the snapshots on this topic. - # [ALPHA] This method is a part of a closed Alpha API. + # Lists the names of the snapshots on this topic.

+ # ALPHA: This feature is part of an alpha release. This API might be + # changed in backward-incompatible ways and is not recommended for production + # use. It is not subject to any SLA or deprecation policy. # @param [String] topic # The name of the topic that snapshots are attached to. # Format is `projects/`project`/topics/`topic``. diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index 9a94d153e..335066f7f 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20180314' + REVISION = '20180507' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index 4ef27d114..299ec63c0 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -1191,6 +1191,37 @@ module Google end end + # Instances ListServerCas response. + class InstancesListServerCasResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `activeVersion` + # @return [String] + attr_accessor :active_version + + # List of server CA certificates for the instance. + # Corresponds to the JSON property `certs` + # @return [Array] + attr_accessor :certs + + # This is always sql#instancesListServerCas. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @active_version = args[:active_version] if args.key?(:active_version) + @certs = args[:certs] if args.key?(:certs) + @kind = args[:kind] if args.key?(:kind) + end + end + # Database instance restore backup request. class RestoreInstancesBackupRequest include Google::Apis::Core::Hashable @@ -1210,6 +1241,25 @@ module Google end end + # Rotate Server CA request. + class InstancesRotateServerCaRequest + include Google::Apis::Core::Hashable + + # Instance rotate server CA context. + # Corresponds to the JSON property `rotateServerCaContext` + # @return [Google::Apis::SqladminV1beta4::RotateServerCaContext] + attr_accessor :rotate_server_ca_context + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rotate_server_ca_context = args[:rotate_server_ca_context] if args.key?(:rotate_server_ca_context) + end + end + # Instance truncate log request. class InstancesTruncateLogRequest include Google::Apis::Core::Hashable @@ -1753,6 +1803,32 @@ module Google end end + # Instance rotate server CA context. + class RotateServerCaContext + include Google::Apis::Core::Hashable + + # This is always sql#rotateServerCaContext. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The fingerprint of the next version to be rotated to. If left unspecified, + # will be rotated to the most recently added server CA version. + # Corresponds to the JSON property `nextVersion` + # @return [String] + attr_accessor :next_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @next_version = args[:next_version] if args.key?(:next_version) + end + end + # Database instance settings. class Settings include Google::Apis::Core::Hashable diff --git a/generated/google/apis/sqladmin_v1beta4/representations.rb b/generated/google/apis/sqladmin_v1beta4/representations.rb index 94f1cb409..2fcb038dc 100644 --- a/generated/google/apis/sqladmin_v1beta4/representations.rb +++ b/generated/google/apis/sqladmin_v1beta4/representations.rb @@ -190,12 +190,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstancesListServerCasResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RestoreInstancesBackupRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class InstancesRotateServerCaRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class InstancesTruncateLogRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -274,6 +286,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RotateServerCaContext + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Settings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -660,6 +678,16 @@ module Google end end + class InstancesListServerCasResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :active_version, as: 'activeVersion' + collection :certs, as: 'certs', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation + + property :kind, as: 'kind' + end + end + class RestoreInstancesBackupRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -668,6 +696,14 @@ module Google end end + class InstancesRotateServerCaRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rotate_server_ca_context, as: 'rotateServerCaContext', class: Google::Apis::SqladminV1beta4::RotateServerCaContext, decorator: Google::Apis::SqladminV1beta4::RotateServerCaContext::Representation + + end + end + class InstancesTruncateLogRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -814,6 +850,14 @@ module Google end end + class RotateServerCaContext + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + property :next_version, as: 'nextVersion' + end + end + class Settings # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 3f113c51c..a57e82dd7 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -490,6 +490,46 @@ module Google execute_or_queue_command(command, &block) end + # Add a new trusted Certificate Authority (CA) version for the specified + # instance. Required to prepare for a certificate rotation. If a CA version was + # previously added but never used in a certificate rotation, this operation + # replaces that version. There can not be more than one CA version waiting to be + # rotated in. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::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 add_instance_server_ca(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/addServerCa', options) + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates a Cloud SQL instance as a clone of the source instance. The API is not # ready for Second Generation instances yet. # @param [String] project @@ -843,6 +883,46 @@ module Google execute_or_queue_command(command, &block) end + # Lists all of the trusted Certificate Authorities (CAs) for the specified + # instance. There can be up to three CAs listed: the CA that was used to sign + # the certificate that is currently in use, a CA that has been added but not yet + # used to sign a certificate, and a CA used to sign a certificate that has + # previously rotated out. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] + # + # @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_instance_server_cas(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'projects/{project}/instances/{instance}/listServerCas', options) + command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation + command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Updates settings of a Cloud SQL instance. Caution: This is not a partial # update, so you must include values for all the settings that you want to # retain. For partial updates, use patch.. This method supports patch semantics. @@ -1034,6 +1114,46 @@ module Google execute_or_queue_command(command, &block) end + # Rotates the server certificate to one signed by the Certificate Authority (CA) + # version previously added with the addServerCA method. + # @param [String] project + # Project ID of the project that contains the instance. + # @param [String] instance + # Cloud SQL instance ID. This does not include the project ID. + # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SqladminV1beta4::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 rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'projects/{project}/instances/{instance}/rotateServerCa', options) + command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation + command.request_object = instances_rotate_server_ca_request_object + command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation + command.response_class = Google::Apis::SqladminV1beta4::Operation + command.params['project'] = project unless project.nil? + command.params['instance'] = instance unless instance.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Starts the replication in the read replica instance. # @param [String] project # ID of the project that contains the read replica. diff --git a/generated/google/apis/youtube_analytics_v2.rb b/generated/google/apis/youtube_analytics_v2.rb index 7bee370c3..81d792c28 100644 --- a/generated/google/apis/youtube_analytics_v2.rb +++ b/generated/google/apis/youtube_analytics_v2.rb @@ -22,10 +22,10 @@ module Google # # Retrieves your YouTube Analytics data. # - # @see http://developers.google.com/youtube/analytics + # @see https://developers.google.com/youtube/analytics module YoutubeAnalyticsV2 VERSION = 'V2' - REVISION = '20180424' + REVISION = '20180514' # Manage your YouTube account AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' diff --git a/generated/google/apis/youtube_analytics_v2/service.rb b/generated/google/apis/youtube_analytics_v2/service.rb index bbe784488..f7f8deb26 100644 --- a/generated/google/apis/youtube_analytics_v2/service.rb +++ b/generated/google/apis/youtube_analytics_v2/service.rb @@ -30,7 +30,7 @@ module Google # YoutubeAnalytics = Google::Apis::YoutubeAnalyticsV2 # Alias the module # service = YoutubeAnalytics::YouTubeAnalyticsService.new # - # @see http://developers.google.com/youtube/analytics + # @see https://developers.google.com/youtube/analytics class YouTubeAnalyticsService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access,