From 482f64818beb46d4dc6203d2a3c4ace7050625cf Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 30 Jul 2020 00:38:07 +0000 Subject: [PATCH] Autogenerated update (2020-07-30) Delete: - fitness_v1 Update: - appsmarket_v2 - cloudsearch_v1 - deploymentmanager_alpha - deploymentmanager_v2beta - gameservices_v1 - gameservices_v1beta - tagmanager_v2 - tpu_v1 - tpu_v1alpha1 --- api_names_out.yaml | 1 + generated/google/apis/appsmarket_v2.rb | 2 +- generated/google/apis/cloudsearch_v1.rb | 2 +- .../google/apis/cloudsearch_v1/classes.rb | 3 +- .../google/apis/deploymentmanager_alpha.rb | 2 +- .../google/apis/deploymentmanager_v2beta.rb | 2 +- generated/google/apis/fitness_v1.rb | 85 -- generated/google/apis/fitness_v1/classes.rb | 1020 ----------------- .../google/apis/fitness_v1/representations.rb | 398 ------- generated/google/apis/fitness_v1/service.rb | 647 ----------- generated/google/apis/gameservices_v1.rb | 2 +- .../google/apis/gameservices_v1/classes.rb | 867 ++++++-------- .../google/apis/gameservices_v1/service.rb | 374 +++--- generated/google/apis/gameservices_v1beta.rb | 2 +- .../apis/gameservices_v1beta/classes.rb | 867 ++++++-------- .../apis/gameservices_v1beta/service.rb | 374 +++--- generated/google/apis/tagmanager_v2.rb | 2 +- .../google/apis/tagmanager_v2/classes.rb | 6 + .../apis/tagmanager_v2/representations.rb | 1 + generated/google/apis/tpu_v1.rb | 2 +- generated/google/apis/tpu_v1/classes.rb | 146 ++- generated/google/apis/tpu_v1/service.rb | 46 +- generated/google/apis/tpu_v1alpha1.rb | 2 +- generated/google/apis/tpu_v1alpha1/classes.rb | 146 ++- generated/google/apis/tpu_v1alpha1/service.rb | 46 +- 25 files changed, 1218 insertions(+), 3827 deletions(-) delete mode 100644 generated/google/apis/fitness_v1.rb delete mode 100644 generated/google/apis/fitness_v1/classes.rb delete mode 100644 generated/google/apis/fitness_v1/representations.rb delete mode 100644 generated/google/apis/fitness_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index c432b0408..f0723bebd 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -132709,6 +132709,7 @@ "/tagmanager:v2/Client/name": name "/tagmanager:v2/Client/parameter": parameter "/tagmanager:v2/Client/parameter/parameter": parameter +"/tagmanager:v2/Client/parentFolderId": parent_folder_id "/tagmanager:v2/Client/path": path "/tagmanager:v2/Client/priority": priority "/tagmanager:v2/Client/tagManagerUrl": tag_manager_url diff --git a/generated/google/apis/appsmarket_v2.rb b/generated/google/apis/appsmarket_v2.rb index 81fcb137e..5eb796db8 100644 --- a/generated/google/apis/appsmarket_v2.rb +++ b/generated/google/apis/appsmarket_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/apps-marketplace module AppsmarketV2 VERSION = 'V2' - REVISION = '20200720' + REVISION = '20200727' # View your installed application's licensing information AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' diff --git a/generated/google/apis/cloudsearch_v1.rb b/generated/google/apis/cloudsearch_v1.rb index c18bec832..65a63c406 100644 --- a/generated/google/apis/cloudsearch_v1.rb +++ b/generated/google/apis/cloudsearch_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-search/docs/guides/ module CloudsearchV1 VERSION = 'V1' - REVISION = '20200519' + REVISION = '20200721' # Index and serve your organization's data with Cloud Search AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' diff --git a/generated/google/apis/cloudsearch_v1/classes.rb b/generated/google/apis/cloudsearch_v1/classes.rb index f04e3c7e4..9c68dfcc3 100644 --- a/generated/google/apis/cloudsearch_v1/classes.rb +++ b/generated/google/apis/cloudsearch_v1/classes.rb @@ -4117,8 +4117,7 @@ module Google # The raw query string. # See supported search operators in the [Cloud search # Cheat - # Sheet](https://gsuite.google.com/learning-center/products/cloudsearch/cheat- - # sheet/) + # Sheet](https://support.google.com/a/users/answer/9299929) # Corresponds to the JSON property `query` # @return [String] attr_accessor :query diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index 37979c1cb..2afeb51ab 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20200512' + REVISION = '20200519' # 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/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index 35cad9acf..b800856c2 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20200512' + REVISION = '20200519' # 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/fitness_v1.rb b/generated/google/apis/fitness_v1.rb deleted file mode 100644 index e6592508b..000000000 --- a/generated/google/apis/fitness_v1.rb +++ /dev/null @@ -1,85 +0,0 @@ -# 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/fitness_v1/service.rb' -require 'google/apis/fitness_v1/classes.rb' -require 'google/apis/fitness_v1/representations.rb' - -module Google - module Apis - # Fitness API - # - # The Fitness API for managing users' fitness tracking data. - # - # @see https://developers.google.com/fit/rest/v1/get-started - module FitnessV1 - VERSION = 'V1' - REVISION = '20200724' - - # Use Google Fit to see and store your physical activity data - AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read' - - # See and add to your Google Fit physical activity data - AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write' - - # See info about your blood glucose in Google Fit. I consent to Google sharing my blood glucose information with this app. - AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read' - - # See and add info about your blood glucose to Google Fit. I consent to Google sharing my blood glucose information with this app. - AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write' - - # See info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app. - AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read' - - # See and add info about your blood pressure in Google Fit. I consent to Google sharing my blood pressure information with this app. - AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write' - - # See info about your body measurements and heart rate in Google Fit - AUTH_FITNESS_BODY_READ = 'https://www.googleapis.com/auth/fitness.body.read' - - # See and add info about your body measurements and heart rate to Google Fit - AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write' - - # See info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app. - AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read' - - # See and add to info about your body temperature in Google Fit. I consent to Google sharing my body temperature information with this app. - AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write' - - # See your Google Fit speed and distance data - AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read' - - # See and add to your Google Fit location data - AUTH_FITNESS_LOCATION_WRITE = 'https://www.googleapis.com/auth/fitness.location.write' - - # See info about your nutrition in Google Fit - AUTH_FITNESS_NUTRITION_READ = 'https://www.googleapis.com/auth/fitness.nutrition.read' - - # See and add to info about your nutrition in Google Fit - AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write' - - # See info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app. - AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read' - - # See and add info about your oxygen saturation in Google Fit. I consent to Google sharing my oxygen saturation information with this app. - AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write' - - # See info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app. - AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read' - - # See and add info about your reproductive health in Google Fit. I consent to Google sharing my reporductive health information with this app. - AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write' - end - end -end diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb deleted file mode 100644 index f1c96f582..000000000 --- a/generated/google/apis/fitness_v1/classes.rb +++ /dev/null @@ -1,1020 +0,0 @@ -# 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 FitnessV1 - - # - class AggregateBucket - include Google::Apis::Core::Hashable - - # Available for Bucket.Type.ACTIVITY_TYPE, Bucket.Type.ACTIVITY_SEGMENT - # Corresponds to the JSON property `activity` - # @return [Fixnum] - attr_accessor :activity - - # There will be one dataset per AggregateBy in the request. - # Corresponds to the JSON property `dataset` - # @return [Array] - attr_accessor :dataset - - # The end time for the aggregated data, in milliseconds since epoch, - # inclusive. - # Corresponds to the JSON property `endTimeMillis` - # @return [Fixnum] - attr_accessor :end_time_millis - - # Sessions contain metadata, such as a user-friendly name and time interval - # information. - # Corresponds to the JSON property `session` - # @return [Google::Apis::FitnessV1::Session] - attr_accessor :session - - # The start time for the aggregated data, in milliseconds since epoch, - # inclusive. - # Corresponds to the JSON property `startTimeMillis` - # @return [Fixnum] - attr_accessor :start_time_millis - - # The type of a bucket signifies how the data aggregation is performed in the - # bucket. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @activity = args[:activity] if args.key?(:activity) - @dataset = args[:dataset] if args.key?(:dataset) - @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) - @session = args[:session] if args.key?(:session) - @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) - @type = args[:type] if args.key?(:type) - end - end - - # The specification of which data to aggregate. - class AggregateBy - include Google::Apis::Core::Hashable - - # A data source ID to aggregate. Only data from the specified data source ID - # will be included in the aggregation. If specified, this data source must - # exist; the OAuth scopes in the supplied credentials must grant read access - # to this data type. The dataset in the response will have the same data - # source ID. Note: Data can be aggregated by either the dataTypeName or the - # dataSourceId, not both. - # Corresponds to the JSON property `dataSourceId` - # @return [String] - attr_accessor :data_source_id - - # The data type to aggregate. All data sources providing this data type will - # contribute data to the aggregation. The response will contain a single - # dataset for this data type name. The dataset will have a data source ID of - # derived::com.google.android.gms:aggregated. - # If the user has no data for this data type, an empty data set will be - # returned. Note: Data can be aggregated by either the dataTypeName or the - # dataSourceId, not both. - # Corresponds to the JSON property `dataTypeName` - # @return [String] - attr_accessor :data_type_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_source_id = args[:data_source_id] if args.key?(:data_source_id) - @data_type_name = args[:data_type_name] if args.key?(:data_type_name) - end - end - - # Next id: 10 - class AggregateRequest - include Google::Apis::Core::Hashable - - # The specification of data to be aggregated. At least one aggregateBy spec - # must be provided. All data that is specified will be aggregated using the - # same bucketing criteria. There will be one dataset in the response for - # every aggregateBy spec. - # Corresponds to the JSON property `aggregateBy` - # @return [Array] - attr_accessor :aggregate_by - - # Specifies that data be aggregated each activity segment recored for a user. - # Similar to bucketByActivitySegment, but bucketing is done for each activity - # segment rather than all segments of the same type. Mutually exclusive of - # other bucketing specifications. - # Corresponds to the JSON property `bucketByActivitySegment` - # @return [Google::Apis::FitnessV1::BucketByActivity] - attr_accessor :bucket_by_activity_segment - - # Specifies that data be aggregated by the type of activity being performed - # when the data was recorded. All data that was recorded during a certain - # activity type (.for the given time range) will be aggregated into the same - # bucket. Data that was recorded while the user was not active will not be - # included in the response. Mutually exclusive of other bucketing - # specifications. - # Corresponds to the JSON property `bucketByActivityType` - # @return [Google::Apis::FitnessV1::BucketByActivity] - attr_accessor :bucket_by_activity_type - - # Specifies that data be aggregated by user sessions. Data that does not fall - # within the time range of a session will not be included in the response. - # Mutually exclusive of other bucketing specifications. - # Corresponds to the JSON property `bucketBySession` - # @return [Google::Apis::FitnessV1::BucketBySession] - attr_accessor :bucket_by_session - - # Specifies that data be aggregated by a single time interval. Mutually - # exclusive of other bucketing specifications. - # Corresponds to the JSON property `bucketByTime` - # @return [Google::Apis::FitnessV1::BucketByTime] - attr_accessor :bucket_by_time - - # The end of a window of time. Data that intersects with this time - # window will be aggregated. The time is in milliseconds since epoch, - # inclusive. - # Corresponds to the JSON property `endTimeMillis` - # @return [Fixnum] - attr_accessor :end_time_millis - - # DO NOT POPULATE THIS FIELD. It is ignored. - # Corresponds to the JSON property `filteredDataQualityStandard` - # @return [Array] - attr_accessor :filtered_data_quality_standard - - # The start of a window of time. Data that intersects with this time - # window will be aggregated. The time is in milliseconds since epoch, - # inclusive. - # Corresponds to the JSON property `startTimeMillis` - # @return [Fixnum] - attr_accessor :start_time_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @aggregate_by = args[:aggregate_by] if args.key?(:aggregate_by) - @bucket_by_activity_segment = args[:bucket_by_activity_segment] if args.key?(:bucket_by_activity_segment) - @bucket_by_activity_type = args[:bucket_by_activity_type] if args.key?(:bucket_by_activity_type) - @bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session) - @bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time) - @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) - @filtered_data_quality_standard = args[:filtered_data_quality_standard] if args.key?(:filtered_data_quality_standard) - @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) - end - end - - # - class AggregateResponse - include Google::Apis::Core::Hashable - - # A list of buckets containing the aggregated data. - # Corresponds to the JSON property `bucket` - # @return [Array] - attr_accessor :bucket - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bucket = args[:bucket] if args.key?(:bucket) - end - end - - # - class Application - include Google::Apis::Core::Hashable - - # An optional URI that can be used to link back to the application. - # Corresponds to the JSON property `detailsUrl` - # @return [String] - attr_accessor :details_url - - # The name of this application. This is required for REST clients, but we - # do not enforce uniqueness of this name. It is provided as a matter of - # convenience for other developers who would like to identify which REST - # created an Application or Data Source. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Package name for this application. This is used as a unique - # identifier when created by Android applications, but cannot be specified - # by REST clients. REST clients will have their developer project number - # reflected into the Data Source data stream IDs, instead of the packageName. - # Corresponds to the JSON property `packageName` - # @return [String] - attr_accessor :package_name - - # Version of the application. You should update this field whenever the - # application changes in a way that affects the computation of the data. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @details_url = args[:details_url] if args.key?(:details_url) - @name = args[:name] if args.key?(:name) - @package_name = args[:package_name] if args.key?(:package_name) - @version = args[:version] if args.key?(:version) - end - end - - # - class BucketByActivity - include Google::Apis::Core::Hashable - - # The default activity stream will be used if a specific activityDataSourceId - # is not specified. - # Corresponds to the JSON property `activityDataSourceId` - # @return [String] - attr_accessor :activity_data_source_id - - # Specifies that only activity segments of duration longer than - # minDurationMillis are considered and used as a container for aggregated - # data. - # Corresponds to the JSON property `minDurationMillis` - # @return [Fixnum] - attr_accessor :min_duration_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id) - @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis) - end - end - - # - class BucketBySession - include Google::Apis::Core::Hashable - - # Specifies that only sessions of duration longer than minDurationMillis are - # considered and used as a container for aggregated data. - # Corresponds to the JSON property `minDurationMillis` - # @return [Fixnum] - attr_accessor :min_duration_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis) - end - end - - # - class BucketByTime - include Google::Apis::Core::Hashable - - # Specifies that result buckets aggregate data by exactly durationMillis time - # frames. Time frames that contain no data will be included in the response - # with an empty dataset. - # Corresponds to the JSON property `durationMillis` - # @return [Fixnum] - attr_accessor :duration_millis - - # - # Corresponds to the JSON property `period` - # @return [Google::Apis::FitnessV1::BucketByTimePeriod] - attr_accessor :period - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @duration_millis = args[:duration_millis] if args.key?(:duration_millis) - @period = args[:period] if args.key?(:period) - end - end - - # - class BucketByTimePeriod - include Google::Apis::Core::Hashable - - # org.joda.timezone.DateTimeZone - # Corresponds to the JSON property `timeZoneId` - # @return [String] - attr_accessor :time_zone_id - - # - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # - # Corresponds to the JSON property `value` - # @return [Fixnum] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id) - @type = args[:type] if args.key?(:type) - @value = args[:value] if args.key?(:value) - end - end - - # Represents a single data point, generated by a particular data source. A - # data point holds a value for each field, an end timestamp and an optional - # start time. The exact semantics of each of these attributes are specified in - # the documentation for the particular data type. - # A data point can represent an instantaneous measurement, reading or input - # observation, as well as averages or aggregates over a time interval. Check - # the data type documentation to determine which is the case for a particular - # data type. - # Data points always contain one value for each field of the data type. - class DataPoint - include Google::Apis::Core::Hashable - - # DO NOT USE THIS FIELD. It is ignored, and not stored. - # Corresponds to the JSON property `computationTimeMillis` - # @return [Fixnum] - attr_accessor :computation_time_millis - - # The data type defining the format of the values in this data point. - # Corresponds to the JSON property `dataTypeName` - # @return [String] - attr_accessor :data_type_name - - # The end time of the interval represented by this data point, in - # nanoseconds since epoch. - # Corresponds to the JSON property `endTimeNanos` - # @return [Fixnum] - attr_accessor :end_time_nanos - - # Indicates the last time this data point was modified. Useful only in - # contexts where we are listing the data changes, rather than representing - # the current state of the data. - # Corresponds to the JSON property `modifiedTimeMillis` - # @return [Fixnum] - attr_accessor :modified_time_millis - - # If the data point is contained in a dataset for a derived data source, - # this field will be populated with the data source stream ID that created - # the data point originally. - # WARNING: do not rely on this field for anything other than debugging. The - # value of this field, if it is set at all, is an implementation detail and - # is not guaranteed to remain consistent. - # Corresponds to the JSON property `originDataSourceId` - # @return [String] - attr_accessor :origin_data_source_id - - # The raw timestamp from the original SensorEvent. - # Corresponds to the JSON property `rawTimestampNanos` - # @return [Fixnum] - attr_accessor :raw_timestamp_nanos - - # The start time of the interval represented by this data point, in - # nanoseconds since epoch. - # Corresponds to the JSON property `startTimeNanos` - # @return [Fixnum] - attr_accessor :start_time_nanos - - # Values of each data type field for the data point. It is expected that each - # value corresponding to a data type field will occur in the same order that - # the field is listed with in the data type specified in a data source. - # Only one of integer and floating point fields will be populated, depending - # on the format enum value within data source's type field. - # Corresponds to the JSON property `value` - # @return [Array] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @computation_time_millis = args[:computation_time_millis] if args.key?(:computation_time_millis) - @data_type_name = args[:data_type_name] if args.key?(:data_type_name) - @end_time_nanos = args[:end_time_nanos] if args.key?(:end_time_nanos) - @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) - @origin_data_source_id = args[:origin_data_source_id] if args.key?(:origin_data_source_id) - @raw_timestamp_nanos = args[:raw_timestamp_nanos] if args.key?(:raw_timestamp_nanos) - @start_time_nanos = args[:start_time_nanos] if args.key?(:start_time_nanos) - @value = args[:value] if args.key?(:value) - end - end - - # Definition of a unique source of sensor data. Data sources can expose raw - # data coming from hardware sensors on local or companion devices. They can - # also expose derived data, created by transforming or merging other data - # sources. Multiple data sources can exist for the same data type. Every data - # point inserted into or read from this service has an associated data - # source. - # The data source contains enough information to uniquely identify its data, - # including the hardware device and the application that collected and/or - # transformed the data. It also holds useful metadata, such as the hardware and - # application versions, and the device type. - # Each data source produces a unique stream of data, with a unique identifier. - # Not all changes to data source affect the stream identifier, so that data - # collected by updated versions of the same application/device can still be - # considered to belong to the same data stream. - class DataSource - include Google::Apis::Core::Hashable - - # Information about an application which feeds sensor data into the platform. - # Corresponds to the JSON property `application` - # @return [Google::Apis::FitnessV1::Application] - attr_accessor :application - - # DO NOT POPULATE THIS FIELD. It is never populated in responses from the - # platform, and is ignored in queries. It will be removed in a future version - # entirely. - # Corresponds to the JSON property `dataQualityStandard` - # @return [Array] - attr_accessor :data_quality_standard - - # A unique identifier for the data stream produced by this data source. The - # identifier includes:

- #
    - #
  • The physical device's manufacturer, model, and serial number - # (UID).
  • - #
  • The application's package name or name. Package name is used when the - # data source was created by an Android application. The developer project - # number is used when the data source was created by a REST client.
  • - #
  • The data source's type.
  • - #
  • The data source's stream name.
  • - #
- # Note that not all attributes of the data source are used as part of the - # stream identifier. In particular, the version of the hardware/the - # application isn't used. This allows us to preserve the same stream through - # version updates. This also means that two DataSource objects may represent - # the same data stream even if they're not equal. - # The exact format of the data stream ID created by an Android application - # is: - # type:dataType.name:application.packageName:device. - # manufacturer:device.model:device.uid:dataStreamName - # The exact format of the data stream ID created by a REST client is: - # type:dataType.name:developer project - # number:device.manufacturer:device.model:device.uid: - # dataStreamName - # When any of the optional fields that make up the data stream ID are absent, - # they will be omitted from the data stream ID. The minimum viable data - # stream ID would be: - # type:dataType.name:developer project number - # Finally, the developer project number and device UID are obfuscated when - # read by any REST or Android client that did not create the data source. - # Only the data source creator will see the developer project number in clear - # and normal form. This means a client will see a different set of - # data_stream_ids than another client with different credentials. - # Corresponds to the JSON property `dataStreamId` - # @return [String] - attr_accessor :data_stream_id - - # The stream name uniquely identifies this particular data source among - # other data sources of the same type from the same underlying producer. - # Setting the stream name is optional, but should be done whenever an - # application exposes two streams for the same data type, or when a device - # has two equivalent sensors. - # Corresponds to the JSON property `dataStreamName` - # @return [String] - attr_accessor :data_stream_name - - # The data type defines the schema for a stream of data being collected by, - # inserted into, or queried from the Fitness API. - # Corresponds to the JSON property `dataType` - # @return [Google::Apis::FitnessV1::DataType] - attr_accessor :data_type - - # Representation of an integrated device (such as a phone or a wearable) that - # can hold sensors. Each sensor is exposed as a data source. - # The main purpose of the device information contained in this class is to - # identify the hardware of a particular data source. This can be useful in - # different ways, including: - #
    - #
  • Distinguishing two similar sensors on different devices (the step - # counter on two nexus 5 phones, for instance) - #
  • Display the source of data to the user (by using the device make / - # model) - #
  • Treat data differently depending on sensor type (accelerometers on a - # watch may give different patterns than those on a phone) - #
  • Build different analysis models for each device/version. - #
- # Corresponds to the JSON property `device` - # @return [Google::Apis::FitnessV1::Device] - attr_accessor :device - - # An end-user visible name for this data source. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A constant describing the type of this data source. Indicates whether this - # data source produces raw or derived data. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @application = args[:application] if args.key?(:application) - @data_quality_standard = args[:data_quality_standard] if args.key?(:data_quality_standard) - @data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id) - @data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name) - @data_type = args[:data_type] if args.key?(:data_type) - @device = args[:device] if args.key?(:device) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - end - end - - # - class DataType - include Google::Apis::Core::Hashable - - # A field represents one dimension of a data type. - # Corresponds to the JSON property `field` - # @return [Array] - attr_accessor :field - - # Each data type has a unique, namespaced, name. All data types in the - # com.google namespace are shared as part of the platform. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @field = args[:field] if args.key?(:field) - @name = args[:name] if args.key?(:name) - end - end - - # In case of multi-dimensional data (such as an accelerometer with x, y, and z - # axes) each field represents one dimension. Each data type field has a unique - # name which identifies it. The field also defines the format of the data (int, - # float, etc.). - # This message is only instantiated in code and not used for wire comms or - # stored in any way. - class DataTypeField - include Google::Apis::Core::Hashable - - # The different supported formats for each field in a data type. - # Corresponds to the JSON property `format` - # @return [String] - attr_accessor :format - - # Defines the name and format of data. Unlike data type names, field names - # are not namespaced, and only need to be unique within the data type. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # - # Corresponds to the JSON property `optional` - # @return [Boolean] - attr_accessor :optional - alias_method :optional?, :optional - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @format = args[:format] if args.key?(:format) - @name = args[:name] if args.key?(:name) - @optional = args[:optional] if args.key?(:optional) - end - end - - # A dataset represents a projection container for data points. They do not - # carry any info of their own. Datasets represent a set of data points from a - # particular data source. A data point can be found in more than one dataset. - class Dataset - include Google::Apis::Core::Hashable - - # The data stream ID of the data source that created the points in this - # dataset. - # Corresponds to the JSON property `dataSourceId` - # @return [String] - attr_accessor :data_source_id - - # The largest end time of all data points in this possibly partial - # representation of the dataset. Time is in nanoseconds from epoch. This - # should also match the second part of the dataset identifier. - # Corresponds to the JSON property `maxEndTimeNs` - # @return [Fixnum] - attr_accessor :max_end_time_ns - - # The smallest start time of all data points in this possibly partial - # representation of the dataset. Time is in nanoseconds from epoch. This - # should also match the first part of the dataset identifier. - # Corresponds to the JSON property `minStartTimeNs` - # @return [Fixnum] - attr_accessor :min_start_time_ns - - # This token will be set when a dataset is received in response to a GET - # request and the dataset is too large to be included in a single response. - # Provide this value in a subsequent GET request to return the next page of - # data points within this dataset. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A partial list of data points contained in the dataset, ordered by largest - # endTimeNanos first. This list is considered complete when retrieving a - # small dataset and partial when patching a dataset or retrieving a dataset - # that is too large to include in a single response. - # Corresponds to the JSON property `point` - # @return [Array] - attr_accessor :point - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_source_id = args[:data_source_id] if args.key?(:data_source_id) - @max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns) - @min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @point = args[:point] if args.key?(:point) - end - end - - # Representation of an integrated device (such as a phone or a wearable) that - # can hold sensors. Each sensor is exposed as a data source. - # The main purpose of the device information contained in this class is to - # identify the hardware of a particular data source. This can be useful in - # different ways, including: - #
    - #
  • Distinguishing two similar sensors on different devices (the step - # counter on two nexus 5 phones, for instance) - #
  • Display the source of data to the user (by using the device make / - # model) - #
  • Treat data differently depending on sensor type (accelerometers on a - # watch may give different patterns than those on a phone) - #
  • Build different analysis models for each device/version. - #
- class Device - include Google::Apis::Core::Hashable - - # Manufacturer of the product/hardware. - # Corresponds to the JSON property `manufacturer` - # @return [String] - attr_accessor :manufacturer - - # End-user visible model name for the device. - # Corresponds to the JSON property `model` - # @return [String] - attr_accessor :model - - # A constant representing the type of the device. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # The serial number or other unique ID for the hardware. This field is - # obfuscated when read by any REST or Android client that did not create - # the data source. Only the data source creator will see the uid field in - # clear and normal form. - # The obfuscation preserves equality; that is, given two IDs, if id1 == id2, - # obfuscated(id1) == obfuscated(id2). - # Corresponds to the JSON property `uid` - # @return [String] - attr_accessor :uid - - # Version string for the device hardware/software. - # Corresponds to the JSON property `version` - # @return [String] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @manufacturer = args[:manufacturer] if args.key?(:manufacturer) - @model = args[:model] if args.key?(:model) - @type = args[:type] if args.key?(:type) - @uid = args[:uid] if args.key?(:uid) - @version = args[:version] if args.key?(:version) - end - end - - # - class ListDataPointChangesResponse - include Google::Apis::Core::Hashable - - # The data stream ID of the data source with data point changes. - # Corresponds to the JSON property `dataSourceId` - # @return [String] - attr_accessor :data_source_id - - # Deleted data points for the user. Note, for modifications this should be - # parsed before handling insertions. - # Corresponds to the JSON property `deletedDataPoint` - # @return [Array] - attr_accessor :deleted_data_point - - # Inserted data points for the user. - # Corresponds to the JSON property `insertedDataPoint` - # @return [Array] - attr_accessor :inserted_data_point - - # The continuation token, which is used to page through large result sets. - # Provide this value in a subsequent request to return the next page of - # results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_source_id = args[:data_source_id] if args.key?(:data_source_id) - @deleted_data_point = args[:deleted_data_point] if args.key?(:deleted_data_point) - @inserted_data_point = args[:inserted_data_point] if args.key?(:inserted_data_point) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class ListDataSourcesResponse - include Google::Apis::Core::Hashable - - # A previously created data source. - # Corresponds to the JSON property `dataSource` - # @return [Array] - attr_accessor :data_source - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @data_source = args[:data_source] if args.key?(:data_source) - end - end - - # - class ListSessionsResponse - include Google::Apis::Core::Hashable - - # If includeDeleted is set to true in the request, and - # startTime and endTime are omitted, this will include - # sessions which were deleted since the last sync. - # Corresponds to the JSON property `deletedSession` - # @return [Array] - attr_accessor :deleted_session - - # Flag to indicate server has more data to transfer. - # DO NOT USE THIS FIELD. It is never populated in responses from the server. - # Corresponds to the JSON property `hasMoreData` - # @return [Boolean] - attr_accessor :has_more_data - alias_method :has_more_data?, :has_more_data - - # The sync token which is used to sync further changes. This will only be - # provided if both startTime and endTime are omitted - # from the request. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Sessions with an end time that is between startTime and - # endTime of the request. - # Corresponds to the JSON property `session` - # @return [Array] - attr_accessor :session - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @deleted_session = args[:deleted_session] if args.key?(:deleted_session) - @has_more_data = args[:has_more_data] if args.key?(:has_more_data) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @session = args[:session] if args.key?(:session) - end - end - - # Holder object for the value of an entry in a map field of a data point. - # A map value supports a subset of the formats that the regular Value supports. - class MapValue - include Google::Apis::Core::Hashable - - # Floating point value. - # Corresponds to the JSON property `fpVal` - # @return [Float] - attr_accessor :fp_val - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @fp_val = args[:fp_val] if args.key?(:fp_val) - end - end - - # Sessions contain metadata, such as a user-friendly name and time interval - # information. - class Session - include Google::Apis::Core::Hashable - - # Session active time. While start_time_millis and end_time_millis define - # the full session time, the active time can be shorter and specified by - # active_time_millis. - # If the inactive time during the session is known, it should also be - # inserted via a com.google.activity.segment data point with a STILL - # activity value - # Corresponds to the JSON property `activeTimeMillis` - # @return [Fixnum] - attr_accessor :active_time_millis - - # The type of activity this session represents. - # Corresponds to the JSON property `activityType` - # @return [Fixnum] - attr_accessor :activity_type - - # The application that created the session. - # Corresponds to the JSON property `application` - # @return [Google::Apis::FitnessV1::Application] - attr_accessor :application - - # A description for this session. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # An end time, in milliseconds since epoch, inclusive. - # Corresponds to the JSON property `endTimeMillis` - # @return [Fixnum] - attr_accessor :end_time_millis - - # A client-generated identifier that is unique across all sessions owned by - # this particular user. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # A timestamp that indicates when the session was last modified. - # Corresponds to the JSON property `modifiedTimeMillis` - # @return [Fixnum] - attr_accessor :modified_time_millis - - # A human readable name of the session. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # A start time, in milliseconds since epoch, inclusive. - # Corresponds to the JSON property `startTimeMillis` - # @return [Fixnum] - attr_accessor :start_time_millis - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis) - @activity_type = args[:activity_type] if args.key?(:activity_type) - @application = args[:application] if args.key?(:application) - @description = args[:description] if args.key?(:description) - @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) - @id = args[:id] if args.key?(:id) - @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) - @name = args[:name] if args.key?(:name) - @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) - end - end - - # Holder object for the value of a single field in a data point. - # A field value has a particular format and is only ever set to one of an - # integer or a floating point value. - class Value - include Google::Apis::Core::Hashable - - # Floating point value. When this is set, other values must not be set. - # Corresponds to the JSON property `fpVal` - # @return [Float] - attr_accessor :fp_val - - # Integer value. When this is set, other values must not be set. - # Corresponds to the JSON property `intVal` - # @return [Fixnum] - attr_accessor :int_val - - # Map value. The valid key space and units for the corresponding value - # of each entry should be documented as part of the data type definition. - # Keys should be kept small whenever possible. Data streams with large keys - # and high data frequency may be down sampled. - # Corresponds to the JSON property `mapVal` - # @return [Array] - attr_accessor :map_val - - # String value. When this is set, other values must not be set. - # Strings should be kept small whenever possible. Data streams with large - # string values and high data frequency may be down sampled. - # Corresponds to the JSON property `stringVal` - # @return [String] - attr_accessor :string_val - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @fp_val = args[:fp_val] if args.key?(:fp_val) - @int_val = args[:int_val] if args.key?(:int_val) - @map_val = args[:map_val] if args.key?(:map_val) - @string_val = args[:string_val] if args.key?(:string_val) - end - end - - # - class ValueMapValEntry - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `key` - # @return [String] - attr_accessor :key - - # Holder object for the value of an entry in a map field of a data point. - # A map value supports a subset of the formats that the regular Value supports. - # Corresponds to the JSON property `value` - # @return [Google::Apis::FitnessV1::MapValue] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @key = args[:key] if args.key?(:key) - @value = args[:value] if args.key?(:value) - end - end - end - end -end diff --git a/generated/google/apis/fitness_v1/representations.rb b/generated/google/apis/fitness_v1/representations.rb deleted file mode 100644 index 89154d676..000000000 --- a/generated/google/apis/fitness_v1/representations.rb +++ /dev/null @@ -1,398 +0,0 @@ -# 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 FitnessV1 - - class AggregateBucket - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AggregateBy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AggregateRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AggregateResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Application - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketByActivity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketBySession - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketByTime - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class BucketByTimePeriod - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataPoint - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataSource - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataType - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class DataTypeField - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Dataset - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Device - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListDataPointChangesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListDataSourcesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListSessionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class MapValue - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Session - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Value - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ValueMapValEntry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AggregateBucket - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :activity, as: 'activity' - collection :dataset, as: 'dataset', class: Google::Apis::FitnessV1::Dataset, decorator: Google::Apis::FitnessV1::Dataset::Representation - - property :end_time_millis, :numeric_string => true, as: 'endTimeMillis' - property :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation - - property :start_time_millis, :numeric_string => true, as: 'startTimeMillis' - property :type, as: 'type' - end - end - - class AggregateBy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data_source_id, as: 'dataSourceId' - property :data_type_name, as: 'dataTypeName' - end - end - - class AggregateRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :aggregate_by, as: 'aggregateBy', class: Google::Apis::FitnessV1::AggregateBy, decorator: Google::Apis::FitnessV1::AggregateBy::Representation - - property :bucket_by_activity_segment, as: 'bucketByActivitySegment', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation - - property :bucket_by_activity_type, as: 'bucketByActivityType', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation - - property :bucket_by_session, as: 'bucketBySession', class: Google::Apis::FitnessV1::BucketBySession, decorator: Google::Apis::FitnessV1::BucketBySession::Representation - - property :bucket_by_time, as: 'bucketByTime', class: Google::Apis::FitnessV1::BucketByTime, decorator: Google::Apis::FitnessV1::BucketByTime::Representation - - property :end_time_millis, :numeric_string => true, as: 'endTimeMillis' - collection :filtered_data_quality_standard, as: 'filteredDataQualityStandard' - property :start_time_millis, :numeric_string => true, as: 'startTimeMillis' - end - end - - class AggregateResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bucket, as: 'bucket', class: Google::Apis::FitnessV1::AggregateBucket, decorator: Google::Apis::FitnessV1::AggregateBucket::Representation - - end - end - - class Application - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :details_url, as: 'detailsUrl' - property :name, as: 'name' - property :package_name, as: 'packageName' - property :version, as: 'version' - end - end - - class BucketByActivity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :activity_data_source_id, as: 'activityDataSourceId' - property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis' - end - end - - class BucketBySession - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis' - end - end - - class BucketByTime - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :duration_millis, :numeric_string => true, as: 'durationMillis' - property :period, as: 'period', class: Google::Apis::FitnessV1::BucketByTimePeriod, decorator: Google::Apis::FitnessV1::BucketByTimePeriod::Representation - - end - end - - class BucketByTimePeriod - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :time_zone_id, as: 'timeZoneId' - property :type, as: 'type' - property :value, as: 'value' - end - end - - class DataPoint - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :computation_time_millis, :numeric_string => true, as: 'computationTimeMillis' - property :data_type_name, as: 'dataTypeName' - property :end_time_nanos, :numeric_string => true, as: 'endTimeNanos' - property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis' - property :origin_data_source_id, as: 'originDataSourceId' - property :raw_timestamp_nanos, :numeric_string => true, as: 'rawTimestampNanos' - property :start_time_nanos, :numeric_string => true, as: 'startTimeNanos' - collection :value, as: 'value', class: Google::Apis::FitnessV1::Value, decorator: Google::Apis::FitnessV1::Value::Representation - - end - end - - class DataSource - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation - - collection :data_quality_standard, as: 'dataQualityStandard' - property :data_stream_id, as: 'dataStreamId' - property :data_stream_name, as: 'dataStreamName' - property :data_type, as: 'dataType', class: Google::Apis::FitnessV1::DataType, decorator: Google::Apis::FitnessV1::DataType::Representation - - property :device, as: 'device', class: Google::Apis::FitnessV1::Device, decorator: Google::Apis::FitnessV1::Device::Representation - - property :name, as: 'name' - property :type, as: 'type' - end - end - - class DataType - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :field, as: 'field', class: Google::Apis::FitnessV1::DataTypeField, decorator: Google::Apis::FitnessV1::DataTypeField::Representation - - property :name, as: 'name' - end - end - - class DataTypeField - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :format, as: 'format' - property :name, as: 'name' - property :optional, as: 'optional' - end - end - - class Dataset - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data_source_id, as: 'dataSourceId' - property :max_end_time_ns, :numeric_string => true, as: 'maxEndTimeNs' - property :min_start_time_ns, :numeric_string => true, as: 'minStartTimeNs' - property :next_page_token, as: 'nextPageToken' - collection :point, as: 'point', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation - - end - end - - class Device - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :manufacturer, as: 'manufacturer' - property :model, as: 'model' - property :type, as: 'type' - property :uid, as: 'uid' - property :version, as: 'version' - end - end - - class ListDataPointChangesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :data_source_id, as: 'dataSourceId' - collection :deleted_data_point, as: 'deletedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation - - collection :inserted_data_point, as: 'insertedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ListDataSourcesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :data_source, as: 'dataSource', class: Google::Apis::FitnessV1::DataSource, decorator: Google::Apis::FitnessV1::DataSource::Representation - - end - end - - class ListSessionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :deleted_session, as: 'deletedSession', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation - - property :has_more_data, as: 'hasMoreData' - property :next_page_token, as: 'nextPageToken' - collection :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation - - end - end - - class MapValue - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :fp_val, as: 'fpVal' - end - end - - class Session - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :active_time_millis, :numeric_string => true, as: 'activeTimeMillis' - property :activity_type, as: 'activityType' - property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation - - property :description, as: 'description' - property :end_time_millis, :numeric_string => true, as: 'endTimeMillis' - property :id, as: 'id' - property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis' - property :name, as: 'name' - property :start_time_millis, :numeric_string => true, as: 'startTimeMillis' - end - end - - class Value - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :fp_val, as: 'fpVal' - property :int_val, as: 'intVal' - collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation - - property :string_val, as: 'stringVal' - end - end - - class ValueMapValEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :key, as: 'key' - property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation - - end - end - end - end -end diff --git a/generated/google/apis/fitness_v1/service.rb b/generated/google/apis/fitness_v1/service.rb deleted file mode 100644 index 148faa4ae..000000000 --- a/generated/google/apis/fitness_v1/service.rb +++ /dev/null @@ -1,647 +0,0 @@ -# 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 FitnessV1 - # Fitness API - # - # The Fitness API for managing users' fitness tracking data. - # - # @example - # require 'google/apis/fitness_v1' - # - # Fitness = Google::Apis::FitnessV1 # Alias the module - # service = Fitness::FitnessService.new - # - # @see https://developers.google.com/fit/rest/v1/get-started - class FitnessService < 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/fitness/v1' - end - - # Creates a new data source that is unique across all data sources belonging - # to this user. - # A data source is a unique source of sensor data. Data sources can expose - # raw data coming from hardware sensors on local or companion devices. They - # can also expose derived data, created by transforming or merging other data - # sources. Multiple data sources can exist for the same data type. Every data - # point in every dataset inserted into or read from the Fitness API has an - # associated data source. - # Each data source produces a unique stream of dataset updates, with a - # unique data source identifier. Not all changes to data source affect the - # data stream ID, so that data collected by updated versions of the same - # application/device can still be considered to belong to the same data - # source. - # Data sources are identified using a string generated by the server, based - # on the contents of the source being created. The dataStreamId - # field should not be set when invoking this method. It - # will be automatically generated by the server with the correct format. If - # a dataStreamId is set, it must match the format that the - # server would generate. This format is a combination of some fields from the - # data source, and has a specific order. If it doesn't match, the request - # will fail with an error. - # Specifying a DataType which is not a known type (beginning with - # "com.google.") will create a DataSource with a custom data type. - # Custom data types are only readable by the application that created them. - # Custom data types are deprecated; use standard data types - # instead. - # In addition to the data source fields included in the data source ID, the - # developer project number that is authenticated when creating the data - # source is included. This developer project number is obfuscated when read - # by any other developer reading public data types. - # @param [String] user_id - # Create the data source for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [Google::Apis::FitnessV1::DataSource] data_source_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::FitnessV1::DataSource] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::DataSource] - # - # @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_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataSources', options) - command.request_representation = Google::Apis::FitnessV1::DataSource::Representation - command.request_object = data_source_object - command.response_representation = Google::Apis::FitnessV1::DataSource::Representation - command.response_class = Google::Apis::FitnessV1::DataSource - command.params['userId'] = user_id unless user_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 the specified data source. The request will fail if the data - # source contains any data points. - # @param [String] user_id - # Retrieve a data source for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [String] data_source_id - # The data stream ID of the data source to delete. - # @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::FitnessV1::DataSource] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::DataSource] - # - # @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_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options) - command.response_representation = Google::Apis::FitnessV1::DataSource::Representation - command.response_class = Google::Apis::FitnessV1::DataSource - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_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 - - # Returns the specified data source. - # @param [String] user_id - # Retrieve a data source for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [String] data_source_id - # The data stream ID of the data source to retrieve. - # @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::FitnessV1::DataSource] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::DataSource] - # - # @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_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options) - command.response_representation = Google::Apis::FitnessV1::DataSource::Representation - command.response_class = Google::Apis::FitnessV1::DataSource - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_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 - - # Lists all data sources that are visible to the developer, using the OAuth - # scopes provided. The list is not exhaustive; the user may have private - # data sources that are only visible to other developers, or calls using - # other scopes. - # @param [String] user_id - # List data sources for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [Array, String] data_type_name - # The names of data types to include in the list. If not specified, all - # data sources will be returned. - # @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::FitnessV1::ListDataSourcesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::ListDataSourcesResponse] - # - # @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_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources', options) - command.response_representation = Google::Apis::FitnessV1::ListDataSourcesResponse::Representation - command.response_class = Google::Apis::FitnessV1::ListDataSourcesResponse - command.params['userId'] = user_id unless user_id.nil? - command.query['dataTypeName'] = data_type_name unless data_type_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 - - # Updates the specified data source. The dataStreamId, - # dataType, type, dataStreamName, and - # device properties with the exception of version, - # cannot be modified. - # Data sources are identified by their dataStreamId. - # @param [String] user_id - # Update the data source for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [String] data_source_id - # The data stream ID of the data source to update. - # @param [Google::Apis::FitnessV1::DataSource] data_source_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::FitnessV1::DataSource] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::DataSource] - # - # @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 update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options) - command.request_representation = Google::Apis::FitnessV1::DataSource::Representation - command.request_object = data_source_object - command.response_representation = Google::Apis::FitnessV1::DataSource::Representation - command.response_class = Google::Apis::FitnessV1::DataSource - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_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 - - # Queries for user's data point changes for a particular data source. - # @param [String] user_id - # List data points for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [String] data_source_id - # The data stream ID of the data source that created the dataset. - # @param [Fixnum] limit - # If specified, no more than this many data point changes will be included - # in the response. - # @param [String] page_token - # The continuation token, which is used to page through large result sets. - # To get the next page of results, set this parameter to the value of - # nextPageToken from the previous response. - # @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::FitnessV1::ListDataPointChangesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::ListDataPointChangesResponse] - # - # @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_user_data_source_data_point_changes(user_id, data_source_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges', options) - command.response_representation = Google::Apis::FitnessV1::ListDataPointChangesResponse::Representation - command.response_class = Google::Apis::FitnessV1::ListDataPointChangesResponse - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_id.nil? - command.query['limit'] = limit unless limit.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 - - # Performs an inclusive delete of all data points whose start and end times - # have any overlap with the time range specified by the dataset ID. For most - # data types, the entire data point will be deleted. For data types where the - # time span represents a consistent value (such as - # com.google.activity.segment), and a data point straddles - # either end point of the dataset, only the overlapping portion of the data - # point will be deleted. - # @param [String] user_id - # Delete a dataset for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [String] data_source_id - # The data stream ID of the data source that created the dataset. - # @param [String] dataset_id - # Dataset identifier that is a composite of the minimum data point start time - # and maximum data point end time represented as nanoseconds from the epoch. - # The ID is formatted like: "startTime-endTime" - # where startTime and endTime are 64 bit integers. - # @param [Fixnum] current_time_millis - # The client's current time in milliseconds since epoch. - # @param [Fixnum] modified_time_millis - # When the operation was performed on the client. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil? - command.query['modifiedTimeMillis'] = modified_time_millis unless modified_time_millis.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns a dataset containing all data points whose start and end times - # overlap with the specified range of the dataset minimum start time and - # maximum end time. Specifically, any data point whose start time is less - # than or equal to the dataset end time and whose end time is greater than or - # equal to the dataset start time. - # @param [String] user_id - # Retrieve a dataset for the person identified. Use me to - # indicate the authenticated user. Only me is supported at this - # time. - # @param [String] data_source_id - # The data stream ID of the data source that created the dataset. - # @param [String] dataset_id - # Dataset identifier that is a composite of the minimum data point start time - # and maximum data point end time represented as nanoseconds from the epoch. - # The ID is formatted like: "startTime-endTime" - # where startTime and endTime are 64 bit integers. - # @param [Fixnum] limit - # If specified, no more than this many data points will be included in the - # dataset. If there are more data points in the dataset, nextPageToken - # will be set in the dataset response. - # @param [String] page_token - # The continuation token, which is used to page through large datasets. - # To get the next page of a dataset, set this parameter to the value of - # nextPageToken from the previous response. Each subsequent - # call will yield a partial dataset with data point end timestamps that are - # strictly smaller than those in the previous partial response. - # @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::FitnessV1::Dataset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::Dataset] - # - # @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_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) - command.response_representation = Google::Apis::FitnessV1::Dataset::Representation - command.response_class = Google::Apis::FitnessV1::Dataset - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['limit'] = limit unless limit.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 - - # Adds data points to a dataset. The dataset need not be previously created. - # All points within the given dataset will be returned with subsquent calls - # to retrieve this dataset. Data points can belong to more than one dataset. - # This method does not use patch semantics. - # @param [String] user_id - # Patch a dataset for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [String] data_source_id - # The data stream ID of the data source that created the dataset. - # @param [String] dataset_id - # Dataset identifier that is a composite of the minimum data point start time - # and maximum data point end time represented as nanoseconds from the epoch. - # The ID is formatted like: "startTime-endTime" - # where startTime and endTime are 64 bit integers. - # @param [Google::Apis::FitnessV1::Dataset] dataset_object - # @param [Fixnum] current_time_millis - # The client's current time in milliseconds since epoch. Note that the - # minStartTimeNs and maxEndTimeNs properties in - # the request body are in nanoseconds instead of milliseconds. - # @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::FitnessV1::Dataset] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::Dataset] - # - # @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_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options) - command.request_representation = Google::Apis::FitnessV1::Dataset::Representation - command.request_object = dataset_object - command.response_representation = Google::Apis::FitnessV1::Dataset::Representation - command.response_class = Google::Apis::FitnessV1::Dataset - command.params['userId'] = user_id unless user_id.nil? - command.params['dataSourceId'] = data_source_id unless data_source_id.nil? - command.params['datasetId'] = dataset_id unless dataset_id.nil? - command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Aggregates data of a certain type or stream into buckets divided by a given - # type of boundary. Multiple data sets of multiple types and from multiple - # sources can be aggregated into exactly one bucket type per request. - # @param [String] user_id - # Aggregate data for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_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::FitnessV1::AggregateResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::AggregateResponse] - # - # @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 aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataset:aggregate', options) - command.request_representation = Google::Apis::FitnessV1::AggregateRequest::Representation - command.request_object = aggregate_request_object - command.response_representation = Google::Apis::FitnessV1::AggregateResponse::Representation - command.response_class = Google::Apis::FitnessV1::AggregateResponse - command.params['userId'] = user_id unless user_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 session specified by the given session ID. - # @param [String] user_id - # Delete a session for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [String] session_id - # The ID of the session to be deleted. - # @param [Fixnum] current_time_millis - # The client's current time in milliseconds since epoch. - # @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 [NilClass] No result returned for this method - # @yieldparam err [StandardError] error object if request failed - # - # @return [void] - # - # @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_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'fitness/v1/users/{userId}/sessions/{sessionId}', options) - command.params['userId'] = user_id unless user_id.nil? - command.params['sessionId'] = session_id unless session_id.nil? - command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.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 sessions previously created. - # @param [String] user_id - # List sessions for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [Array, Fixnum] activity_type - # If non-empty, only sessions with these activity types should be returned. - # @param [String] end_time - # An RFC3339 timestamp. - # Only sessions ending between the start and end times will be included in - # the response. If this time is omitted but startTime is - # specified, all sessions from startTime to the end of time will - # be returned. - # @param [Boolean] include_deleted - # If true, and if both startTime and endTime are - # omitted, session deletions will be returned. - # @param [String] page_token - # The continuation token, which is used for incremental syncing. - # To get the next batch of changes, set this parameter to the value of - # nextPageToken from the previous response. The page token is - # ignored if either start or end time is specified. If none of start time, - # end time, and the page token is specified, sessions modified in the last - # 30 days are returned. - # @param [String] start_time - # An RFC3339 timestamp. - # Only sessions ending between the start and end times will be included in - # the response. If this time is omitted but endTime is specified, - # all sessions from the start of time up to endTime will be - # returned. - # @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::FitnessV1::ListSessionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::ListSessionsResponse] - # - # @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_user_sessions(user_id, activity_type: nil, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'fitness/v1/users/{userId}/sessions', options) - command.response_representation = Google::Apis::FitnessV1::ListSessionsResponse::Representation - command.response_class = Google::Apis::FitnessV1::ListSessionsResponse - command.params['userId'] = user_id unless user_id.nil? - command.query['activityType'] = activity_type unless activity_type.nil? - command.query['endTime'] = end_time unless end_time.nil? - command.query['includeDeleted'] = include_deleted unless include_deleted.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['startTime'] = start_time unless start_time.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 or insert a given session. - # @param [String] user_id - # Create sessions for the person identified. Use me to indicate - # the authenticated user. Only me is supported at this time. - # @param [String] session_id - # The ID of the session to be created. - # @param [Google::Apis::FitnessV1::Session] session_object - # @param [Fixnum] current_time_millis - # The client's current time in milliseconds since epoch. - # @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::FitnessV1::Session] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::FitnessV1::Session] - # - # @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 update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:put, 'fitness/v1/users/{userId}/sessions/{sessionId}', options) - command.request_representation = Google::Apis::FitnessV1::Session::Representation - command.request_object = session_object - command.response_representation = Google::Apis::FitnessV1::Session::Representation - command.response_class = Google::Apis::FitnessV1::Session - command.params['userId'] = user_id unless user_id.nil? - command.params['sessionId'] = session_id unless session_id.nil? - command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.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 diff --git a/generated/google/apis/gameservices_v1.rb b/generated/google/apis/gameservices_v1.rb index 657ab6756..cc6838df5 100644 --- a/generated/google/apis/gameservices_v1.rb +++ b/generated/google/apis/gameservices_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/solutions/gaming/ module GameservicesV1 VERSION = 'V1' - REVISION = '20200630' + REVISION = '20200721' # 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/gameservices_v1/classes.rb b/generated/google/apis/gameservices_v1/classes.rb index 0bf99916e..4f5b8e92e 100644 --- a/generated/google/apis/gameservices_v1/classes.rb +++ b/generated/google/apis/gameservices_v1/classes.rb @@ -22,53 +22,21 @@ module Google module Apis module GameservicesV1 - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -82,9 +50,9 @@ module Google # @return [Array] attr_accessor :exempted_members - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -101,28 +69,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -174,69 +129,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::GameservicesV1::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -310,8 +253,8 @@ module Google # @return [String] attr_accessor :svc - # Trusted attributes supplied by any service that owns resources and uses - # the IAM system for access control. + # Trusted attributes supplied by any service that owns resources and uses the + # IAM system for access control. # Corresponds to the JSON property `sys` # @return [String] attr_accessor :sys @@ -335,23 +278,18 @@ module Google end end - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # Supported field names: - # - "authority", which is "[token]" if IAMContext.token is present, - # otherwise the value of IAMContext.authority_selector if present, and - # otherwise a representation of IAMContext.principal; or - # - "iam_principal", a representation of IAMContext.principal even if a - # token or authority selector is present; or - # - "" (empty string), resulting in a counter with no fields. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/debug_access_count - # `iam_principal=[value of IAMContext.principal]` + # Increment a streamz counter with the specified metric and field names. Metric + # names should start with a '/', generally be lowercase-only, and end in "_count" + # . Field names should not contain an initial slash. The actual exported metric + # names will have "/iam/policy" prepended. Field names correspond to IAM request + # parameters and field values are their respective values. Supported field names: + # - "authority", which is "[token]" if IAMContext.token is present, otherwise + # the value of IAMContext.authority_selector if present, and otherwise a + # representation of IAMContext.principal; or - "iam_principal", a representation + # of IAMContext.principal even if a token or authority selector is present; or - + # "" (empty string), resulting in a counter with no fields. Examples: counter ` + # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / + # iam/policy/debug_access_count `iam_principal=[value of IAMContext.principal]` class CounterOptions include Google::Apis::Core::Hashable @@ -382,10 +320,8 @@ module Google end end - # Custom fields. - # These can be used to create a counter with arbitrary field/value - # pairs. - # See: go/rpcsp-custom-fields. + # Custom fields. These can be used to create a counter with arbitrary field/ + # value pairs. See: go/rpcsp-custom-fields. class CustomField include Google::Apis::Core::Hashable @@ -395,8 +331,8 @@ module Google attr_accessor :name # Value is the field value. It is important that in contrast to the - # CounterOptions.field, the value here is a constant that is not - # derived from the IAMContext. + # CounterOptions.field, the value here is a constant that is not derived from + # the IAMContext. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -440,8 +376,8 @@ module Google # @return [String] attr_accessor :cluster - # The details about the Agones fleets and autoscalers created in the - # game server cluster. + # The details about the Agones fleets and autoscalers created in the game server + # cluster. # Corresponds to the JSON property `fleetDetails` # @return [Array] attr_accessor :fleet_details @@ -476,8 +412,8 @@ module Google # @return [Google::Apis::GameservicesV1::SpecSource] attr_accessor :spec_source - # DeployedFleetStatus has details about the Agones fleets such as how many - # are running, how many allocated, and so on. + # DeployedFleetStatus has details about the Agones fleets such as how many are + # running, how many allocated, and so on. # Corresponds to the JSON property `status` # @return [Google::Apis::GameservicesV1::DeployedFleetStatus] attr_accessor :status @@ -551,8 +487,8 @@ module Google end end - # DeployedFleetStatus has details about the Agones fleets such as how many - # are running, how many allocated, and so on. + # DeployedFleetStatus has details about the Agones fleets such as how many are + # running, how many allocated, and so on. class DeployedFleetStatus include Google::Apis::Core::Hashable @@ -572,8 +508,8 @@ module Google attr_accessor :replicas # The number of GameServer replicas in the RESERVED state in this fleet. - # Reserved instances won't be deleted on scale down, but won't cause - # an autoscaler to scale up. + # Reserved instances won't be deleted on scale down, but won't cause an + # autoscaler to scale up. # Corresponds to the JSON property `reservedReplicas` # @return [Fixnum] attr_accessor :reserved_replicas @@ -591,13 +527,11 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -610,52 +544,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -715,8 +640,8 @@ module Google class FleetConfig include Google::Apis::Core::Hashable - # Agones fleet spec. Example spec: - # `https://agones.dev/site/docs/reference/fleet/`. + # Agones fleet spec. Example spec: `https://agones.dev/site/docs/reference/fleet/ + # `. # Corresponds to the JSON property `fleetSpec` # @return [String] attr_accessor :fleet_spec @@ -761,18 +686,16 @@ module Google # @return [String] attr_accessor :etag - # The labels associated with this game server cluster. Each label is a - # key-value pair. + # The labels associated with this game server cluster. Each label is a key-value + # pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -807,9 +730,9 @@ module Google # @return [Google::Apis::GameservicesV1::GkeClusterReference] attr_accessor :gke_cluster_reference - # Namespace designated on the game server cluster where the Agones game - # server instances will be created. Existence of the namespace will be - # validated during creation. + # Namespace designated on the game server cluster where the Agones game server + # instances will be created. Existence of the namespace will be validated during + # creation. # Corresponds to the JSON property `namespace` # @return [String] attr_accessor :namespace @@ -839,24 +762,22 @@ module Google # @return [String] attr_accessor :description - # FleetConfig contains a list of Agones fleet specs. Only one FleetConfig - # is allowed. + # FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is + # allowed. # Corresponds to the JSON property `fleetConfigs` # @return [Array] attr_accessor :fleet_configs - # The labels associated with this game server config. Each label is a - # key-value pair. + # The labels associated with this game server config. Each label is a key-value + # pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The resource name of the game server config. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # configs/`config``. - # For example, - # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my- - # config`. + # The resource name of the game server config. Uses the form: `projects/`project` + # /locations/`location`/gameServerDeployments/`deployment`/configs/`config``. + # For example, `projects/my-project/locations/global/gameServerDeployments/my- + # game/configs/my-config`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -931,16 +852,15 @@ module Google # @return [String] attr_accessor :etag - # The labels associated with this game server deployment. Each label is a - # key-value pair. + # The labels associated with this game server deployment. Each label is a key- + # value pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The resource name of the game server deployment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`. + # The resource name of the game server deployment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. For example, + # `projects/my-project/locations/global/gameServerDeployments/my-deployment`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -965,8 +885,7 @@ module Google end end - # The game server deployment rollout which represents the desired rollout - # state. + # The game server deployment rollout which represents the desired rollout state. class GameServerDeploymentRollout include Google::Apis::Core::Hashable @@ -975,10 +894,9 @@ module Google # @return [String] attr_accessor :create_time - # The default game server config is applied to all realms unless overridden - # in the rollout. For example, - # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my- - # config`. + # The default game server config is applied to all realms unless overridden in + # the rollout. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-game/configs/my-config`. # Corresponds to the JSON property `defaultGameServerConfig` # @return [String] attr_accessor :default_game_server_config @@ -988,19 +906,17 @@ module Google # @return [String] attr_accessor :etag - # Contains the game server config rollout overrides. Overrides are processed - # in the order they are listed. Once a match is found for a realm, the rest - # of the list is not processed. + # Contains the game server config rollout overrides. Overrides are processed in + # the order they are listed. Once a match is found for a realm, the rest of the + # list is not processed. # Corresponds to the JSON property `gameServerConfigOverrides` # @return [Array] attr_accessor :game_server_config_overrides - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1029,14 +945,11 @@ module Google class GkeClusterReference include Google::Apis::Core::Hashable - # The full or partial name of a GKE cluster, using one of the following - # forms: - # * `projects/`project`/locations/`location`/clusters/`cluster`` - # * `locations/`location`/clusters/`cluster`` - # * ``cluster`` - # If project and location are not specified, the project and location of the - # GameServerCluster resource are used to generate the full name of the - # GKE cluster. + # The full or partial name of a GKE cluster, using one of the following forms: * + # `projects/`project`/locations/`location`/clusters/`cluster`` * `locations/` + # location`/clusters/`cluster`` * ``cluster`` If project and location are not + # specified, the project and location of the GameServerCluster resource are used + # to generate the full name of the GKE cluster. # Corresponds to the JSON property `cluster` # @return [String] attr_accessor :cluster @@ -1252,14 +1165,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1275,8 +1188,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1304,23 +1217,18 @@ module Google # @return [Google::Apis::GameservicesV1::CloudAuditOptions] attr_accessor :cloud_audit - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # Supported field names: - # - "authority", which is "[token]" if IAMContext.token is present, - # otherwise the value of IAMContext.authority_selector if present, and - # otherwise a representation of IAMContext.principal; or - # - "iam_principal", a representation of IAMContext.principal even if a - # token or authority selector is present; or - # - "" (empty string), resulting in a counter with no fields. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/debug_access_count - # `iam_principal=[value of IAMContext.principal]` + # Increment a streamz counter with the specified metric and field names. Metric + # names should start with a '/', generally be lowercase-only, and end in "_count" + # . Field names should not contain an initial slash. The actual exported metric + # names will have "/iam/policy" prepended. Field names correspond to IAM request + # parameters and field values are their respective values. Supported field names: + # - "authority", which is "[token]" if IAMContext.token is present, otherwise + # the value of IAMContext.authority_selector if present, and otherwise a + # representation of IAMContext.principal; or - "iam_principal", a representation + # of IAMContext.principal even if a token or authority selector is present; or - + # "" (empty string), resulting in a counter with no fields. Examples: counter ` + # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / + # iam/policy/debug_access_count `iam_principal=[value of IAMContext.principal]` # Corresponds to the JSON property `counter` # @return [Google::Apis::GameservicesV1::CounterOptions] attr_accessor :counter @@ -1347,47 +1255,45 @@ module Google class Operation include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done alias_method :done?, :done - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::GameservicesV1::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # 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 - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. + # 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 `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -1426,18 +1332,17 @@ module Google attr_accessor :end_time # Output only. Operation status for Game Services API operations. Operation - # status is in - # the form of key-value pairs where keys are resource IDs and the values show - # the status of the operation. In case of failures, the value includes an - # error code and error message. + # status is in the form of key-value pairs where keys are resource IDs and the + # values show the status of the operation. In case of failures, the value + # includes an error code and error message. # Corresponds to the JSON property `operationStatus` # @return [Hash] attr_accessor :operation_status - # Output only. Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # Output only. Identifies whether the user has requested cancellation of the + # operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. # Corresponds to the JSON property `requestedCancellation` # @return [Boolean] attr_accessor :requested_cancellation @@ -1514,66 +1419,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1582,24 +1453,24 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1612,37 +1483,31 @@ module Google alias_method :iam_owned?, :iam_owned # If more than one rule is specified, the rules are applied in the following - # manner: - # - All matching LOG rules are always applied. - # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - # granted. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if no rule applies, permission is denied. + # manner: - All matching LOG rules are always applied. - If any DENY/ + # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if + # one or more matching rule requires logging. - Otherwise, if any ALLOW/ + # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if + # one or more matching rule requires logging. - Otherwise, if no rule applies, + # permission is denied. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1662,8 +1527,7 @@ module Google end end - # Response message for - # GameServerClustersService.PreviewCreateGameServerCluster. + # Response message for GameServerClustersService.PreviewCreateGameServerCluster. class PreviewCreateGameServerClusterResponse include Google::Apis::Core::Hashable @@ -1688,8 +1552,7 @@ module Google end end - # Response message for - # GameServerClustersService.PreviewDeleteGameServerCluster. + # Response message for GameServerClustersService.PreviewDeleteGameServerCluster. class PreviewDeleteGameServerClusterResponse include Google::Apis::Core::Hashable @@ -1714,8 +1577,8 @@ module Google end end - # Response message for PreviewGameServerDeploymentRollout. - # This has details about the Agones fleet and autoscaler to be actuated. + # Response message for PreviewGameServerDeploymentRollout. This has details + # about the Agones fleet and autoscaler to be actuated. class PreviewGameServerDeploymentRolloutResponse include Google::Apis::Core::Hashable @@ -1820,17 +1683,16 @@ module Google # @return [Hash] attr_accessor :labels - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. Time zone where all policies targeting this realm are evaluated. The - # value - # of this field must be from the IANA time zone database: - # https://www.iana.org/time-zones. + # value of this field must be from the IANA time zone database: https://www.iana. + # org/time-zones. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone @@ -1895,8 +1757,8 @@ module Google # @return [String] attr_accessor :description - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ + # AUTHORITY_SELECTOR is in at least one of these entries. # Corresponds to the JSON property `in` # @return [Array] attr_accessor :in @@ -1907,17 +1769,17 @@ module Google # @return [Array] attr_accessor :log_config - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries can be found at in the Local IAM - # documentation (see go/local-iam#features). + # If one or more 'not_in' clauses are specified, the rule matches if the + # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and + # not_in entries can be found at in the Local IAM documentation (see go/local- + # iam#features). # Corresponds to the JSON property `notIn` # @return [Array] attr_accessor :not_in - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value + # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. + # *') matches all verbs. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1942,8 +1804,8 @@ module Google class ScalingConfig include Google::Apis::Core::Hashable - # Required. Agones fleet autoscaler spec. Example spec: - # https://agones.dev/site/docs/reference/fleetautoscaler/ + # Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/ + # docs/reference/fleetautoscaler/ # Corresponds to the JSON property `fleetAutoscalerSpec` # @return [String] attr_accessor :fleet_autoscaler_spec @@ -1958,9 +1820,9 @@ module Google # @return [Array] attr_accessor :schedules - # Labels used to identify the game server clusters to which this Agones - # scaling config applies. A game server cluster is subject to this Agones - # scaling config if its labels match any of the selector entries. + # Labels used to identify the game server clusters to which this Agones scaling + # config applies. A game server cluster is subject to this Agones scaling config + # if its labels match any of the selector entries. # Corresponds to the JSON property `selectors` # @return [Array] attr_accessor :selectors @@ -1980,8 +1842,8 @@ module Google # The schedule of a recurring or one time event. The event's time span is # specified by start_time and end_time. If the scheduled event's timespan is - # larger than the cron_spec + cron_job_duration, the event will be recurring. - # If only cron_spec + cron_job_duration are specified, the event is effective + # larger than the cron_spec + cron_job_duration, the event will be recurring. If + # only cron_spec + cron_job_duration are specified, the event is effective # starting at the local time specified by cron_spec, and is recurring. # start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time # cron job: cron spec start time + duration @@ -1994,9 +1856,8 @@ module Google # @return [String] attr_accessor :cron_job_duration - # The cron definition of the scheduled event. See - # https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as - # defined by the realm. + # The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/ + # Cron. Cron spec specifies the local time as defined by the realm. # Corresponds to the JSON property `cronSpec` # @return [String] attr_accessor :cron_spec @@ -2029,74 +1890,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::GameservicesV1::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -2116,15 +1942,14 @@ module Google class SpecSource include Google::Apis::Core::Hashable - # The game server config resource. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment_id`/ - # configs/`config_id``. + # The game server config resource. Uses the form: `projects/`project`/locations/` + # location`/gameServerDeployments/`deployment_id`/configs/`config_id``. # Corresponds to the JSON property `gameServerConfigName` # @return [String] attr_accessor :game_server_config_name - # The name of the Agones leet config or Agones scaling config used to derive - # the Agones fleet or Agones autoscaler spec. + # The name of the Agones leet config or Agones scaling config used to derive the + # Agones fleet or Agones autoscaler spec. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2140,12 +1965,12 @@ module Google end end - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -2154,15 +1979,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -2188,16 +2013,14 @@ module Google # @return [Array] attr_accessor :fleet_details - # The game server cluster name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. + # The game server cluster name. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm`/gameServerClusters/`cluster``. # Corresponds to the JSON property `gameServerClusterName` # @return [String] attr_accessor :game_server_cluster_name - # The game server deployment name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment_id`` - # . + # The game server deployment name. Uses the form: `projects/`project`/locations/` + # location`/gameServerDeployments/`deployment_id``. # Corresponds to the JSON property `gameServerDeploymentName` # @return [String] attr_accessor :game_server_deployment_name @@ -2312,10 +2135,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -2334,8 +2156,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/gameservices_v1/service.rb b/generated/google/apis/gameservices_v1/service.rb index a8e705ae4..af76d99a0 100644 --- a/generated/google/apis/gameservices_v1/service.rb +++ b/generated/google/apis/gameservices_v1/service.rb @@ -83,8 +83,7 @@ module Google # @param [String] filter # The standard list filter. # @param [Boolean] include_unrevealed_locations - # If true, the returned list will include locations which are not yet - # revealed. + # If true, the returned list will include locations which are not yet revealed. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token @@ -122,8 +121,8 @@ module Google # Creates a new game server deployment in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object # @param [String] deployment_id # Required. The ID of the game server delpoyment resource to be created. @@ -159,8 +158,8 @@ module Google # Deletes a single game server deployment. # @param [String] name - # Required. The name of the game server delpoyment to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -188,12 +187,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves information about the current state of the game server - # deployment. Gathers all the Agones fleets and Agones autoscalers, - # including fleets running an older version of the game server deployment. + # Retrieves information about the current state of the game server deployment. + # Gathers all the Agones fleets and Agones autoscalers, including fleets running + # an older version of the game server deployment. # @param [String] name - # Required. The name of the game server delpoyment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. # @param [Google::Apis::GameservicesV1::FetchDeploymentStateRequest] fetch_deployment_state_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -226,8 +225,8 @@ module Google # Gets details of a single game server deployment. # @param [String] name - # Required. The name of the game server delpoyment to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -255,22 +254,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -301,8 +297,8 @@ module Google # Gets details a single game server deployment rollout. # @param [String] name - # Required. The name of the game server delpoyment to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server delpoyment to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # rollout`. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -333,22 +329,21 @@ module Google # Lists game server deployments in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, the server + # Optional. The maximum number of items to return. If unspecified, the server # will pick an appropriate default. The server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to + # requested. A caller should only rely on response's next_page_token to # determine if there are more GameServerDeployments left to be queried. # @param [String] page_token - # Optional. The next_page_token value returned from a previous List request, - # if any. + # Optional. The next_page_token value returned from a previous List request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -382,17 +377,14 @@ module Google # Patches a game server deployment. # @param [String] name - # The resource name of the game server deployment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`. + # The resource name of the game server deployment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. For example, + # `projects/my-project/locations/global/gameServerDeployments/my-deployment`. # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -426,23 +418,18 @@ module Google # Previews the game server deployment rollout. This API does not mutate the # rollout resource. # @param [String] name - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. Defaults to the - # immediately - # after the proposed rollout completes. + # immediately after the proposed rollout completes. # @param [String] update_mask - # Optional. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Optional. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -475,11 +462,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::GameservicesV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -510,15 +497,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::GameservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -549,26 +535,21 @@ module Google execute_or_queue_command(command, &block) end - # Patches a single game server deployment rollout. - # The method will not return an error if the update does not affect any - # existing realms. For example - if the default_game_server_config is changed - # but all existing realms use the override, that is valid. Similarly, if a - # non existing realm is explicitly called out in game_server_config_overrides - # field, that will also not result in an error. + # Patches a single game server deployment rollout. The method will not return an + # error if the update does not affect any existing realms. For example - if the + # default_game_server_config is changed but all existing realms use the override, + # that is valid. Similarly, if a non existing realm is explicitly called out in + # game_server_config_overrides field, that will also not result in an error. # @param [String] name - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -599,12 +580,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new game server config in a given project, location, and game - # server deployment. Game server configs are immutable, and are not applied - # until referenced in the game server deployment rollout resource. + # Creates a new game server config in a given project, location, and game server + # deployment. Game server configs are immutable, and are not applied until + # referenced in the game server deployment rollout resource. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/`. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/gameServerDeployments/`deployment`/`. # @param [Google::Apis::GameservicesV1::GameServerConfig] game_server_config_object # @param [String] config_id # Required. The ID of the game server config resource to be created. @@ -638,11 +619,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a single game server config. The deletion will fail if the game - # server config is referenced in a game server deployment rollout. + # Deletes a single game server config. The deletion will fail if the game server + # config is referenced in a game server deployment rollout. # @param [String] name - # Required. The name of the game server config to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server config to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # configs/`config``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -673,8 +654,8 @@ module Google # Gets details of a single game server config. # @param [String] name - # Required. The name of the game server config to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server config to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # configs/`config``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -706,20 +687,18 @@ module Google # Lists game server configs in a given project, location, and game server # deployment. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # configs/*`. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/gameServerDeployments/`deployment`/configs/*`. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, server - # will pick an appropriate default. Server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to - # determine if there are more GameServerConfigs left to be queried. + # Optional. The maximum number of items to return. If unspecified, server will + # pick an appropriate default. Server may return fewer items than requested. A + # caller should only rely on response's next_page_token to determine if there + # are more GameServerConfigs left to be queried. # @param [String] page_token # Optional. The next_page_token value returned from a previous list request, if # any. @@ -754,15 +733,13 @@ module Google execute_or_queue_command(command, &block) end - # 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 server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # 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 + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -796,10 +773,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -829,9 +806,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. # @param [String] fields @@ -861,15 +837,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter @@ -910,8 +885,8 @@ module Google # Creates a new realm in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [String] realm_id # Required. The ID of the realm resource to be created. @@ -947,8 +922,8 @@ module Google # Deletes a single realm. # @param [String] name - # Required. The name of the realm to delete. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The name of the realm to delete. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -978,8 +953,8 @@ module Google # Gets details of a single realm. # @param [String] name - # Required. The name of the realm to retrieve. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The name of the realm to retrieve. Uses the form: `projects/`project` + # /locations/`location`/realms/`realm``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1009,22 +984,21 @@ module Google # Lists realms in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, server - # will pick an appropriate default. Server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to - # determine if there are more realms left to be queried. + # Optional. The maximum number of items to return. If unspecified, server will + # pick an appropriate default. Server may return fewer items than requested. A + # caller should only rely on response's next_page_token to determine if there + # are more realms left to be queried. # @param [String] page_token - # Optional. The next_page_token value returned from a previous List request, - # if any. + # Optional. The next_page_token value returned from a previous List request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1058,16 +1032,14 @@ module Google # Patches a single realm. # @param [String] name - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [String] update_mask # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # definition, see https: //developers.google.com/protocol-buffers // /docs/ + # reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1100,18 +1072,16 @@ module Google # Previews patches to a single realm. # @param [String] name - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] update_mask # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # definition, see https: //developers.google.com/protocol-buffers // /docs/ + # reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1145,8 +1115,8 @@ module Google # Creates a new game server cluster in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm-id``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm-id``. # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [String] game_server_cluster_id # Required. The ID of the game server cluster resource to be created. @@ -1182,8 +1152,8 @@ module Google # Deletes a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerClusters/`cluster``. + # Required. The name of the game server cluster to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerClusters/`cluster``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1213,8 +1183,8 @@ module Google # Gets details of a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to retrieve. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` + # Required. The name of the game server cluster to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` # cluster``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1245,18 +1215,17 @@ module Google # Lists game server clusters in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # "projects/`project`/locations/`location`/realms/`realm`". + # Required. The parent resource name. Uses the form: "projects/`project`/ + # locations/`location`/realms/`realm`". # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, the server + # Optional. The maximum number of items to return. If unspecified, the server # will pick an appropriate default. The server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to + # requested. A caller should only rely on response's next_page_token to # determine if there are more GameServerClusters left to be queried. # @param [String] page_token # Optional. The next_page_token value returned from a previous List request, if @@ -1294,19 +1263,15 @@ module Google # Patches a single game server cluster. # @param [String] name - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1337,11 +1302,10 @@ module Google execute_or_queue_command(command, &block) end - # Previews creation of a new game server cluster in a given project and - # location. + # Previews creation of a new game server cluster in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm``. # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [String] game_server_cluster_id # Required. The ID of the game server cluster resource to be created. @@ -1380,8 +1344,8 @@ module Google # Previews deletion of a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerClusters/`cluster``. + # Required. The name of the game server cluster to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerClusters/`cluster``. # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] fields @@ -1414,21 +1378,17 @@ module Google # Previews updating a GameServerCluster. # @param [String] name - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/gameservices_v1beta.rb b/generated/google/apis/gameservices_v1beta.rb index bf8ce6704..5e0d586b8 100644 --- a/generated/google/apis/gameservices_v1beta.rb +++ b/generated/google/apis/gameservices_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/solutions/gaming/ module GameservicesV1beta VERSION = 'V1beta' - REVISION = '20200630' + REVISION = '20200721' # 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/gameservices_v1beta/classes.rb b/generated/google/apis/gameservices_v1beta/classes.rb index 460845146..96111d323 100644 --- a/generated/google/apis/gameservices_v1beta/classes.rb +++ b/generated/google/apis/gameservices_v1beta/classes.rb @@ -22,53 +22,21 @@ module Google module Apis module GameservicesV1beta - # Specifies the audit configuration for a service. - # The configuration determines which permission types are logged, and what - # identities, if any, are exempted from logging. - # An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, - # the union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` - # "audit_configs": [ - # ` - # "service": "allServices", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # `, - # ` - # "log_type": "ADMIN_READ" - # ` - # ] - # `, - # ` - # "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ" - # `, - # ` - # "log_type": "DATA_WRITE", - # "exempted_members": [ - # "user:aliya@example.com" - # ] - # ` - # ] - # ` - # ] - # ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and - # aliya@example.com from DATA_WRITE logging. + # Specifies the audit configuration for a service. The configuration determines + # which permission types are logged, and what identities, if any, are exempted + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -82,9 +50,9 @@ module Google # @return [Array] attr_accessor :exempted_members - # Specifies a service that will be enabled for audit logging. - # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - # `allServices` is a special value that covers all services. + # Specifies a service that will be enabled for audit logging. For example, ` + # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special + # value that covers all services. # Corresponds to the JSON property `service` # @return [String] attr_accessor :service @@ -101,28 +69,15 @@ module Google end end - # Provides the configuration for logging a type of permissions. - # Example: - # ` - # "audit_log_configs": [ - # ` - # "log_type": "DATA_READ", - # "exempted_members": [ - # "user:jose@example.com" - # ] - # `, - # ` - # "log_type": "DATA_WRITE" - # ` - # ] - # ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting - # jose@example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable - # Specifies the identities that do not cause logging for this type of - # permission. + # Specifies the identities that do not cause logging for this type of permission. # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] @@ -174,69 +129,57 @@ module Google class Binding include Google::Apis::Core::Hashable - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::GameservicesV1beta::Expr] attr_accessor :condition - # Specifies the identities requesting access for a Cloud Platform resource. - # `members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is - # on the internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone - # who is authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google - # account. For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. - # For example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For - # example, `alice@example.com?uid=123456789012345678901`. If the user is - # recovered, this value reverts to `user:`emailid`` and the recovered user - # retains the role in the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, - # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to - # `serviceAccount:`emailid`` and the undeleted service account retains the - # role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently - # deleted. For example, `admins@example.com?uid=123456789012345678901`. If - # the group is recovered, this value reverts to `group:`emailid`` and the - # recovered group retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # Specifies the identities requesting access for a Cloud Platform resource. ` + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a Google group that has been recently deleted. For + # example, `admins@example.com?uid=123456789012345678901`. If the group is + # recovered, this value reverts to `group:`emailid`` and the recovered group + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members - # Role that is assigned to `members`. - # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` + # , or `roles/owner`. # Corresponds to the JSON property `role` # @return [String] attr_accessor :role @@ -310,8 +253,8 @@ module Google # @return [String] attr_accessor :svc - # Trusted attributes supplied by any service that owns resources and uses - # the IAM system for access control. + # Trusted attributes supplied by any service that owns resources and uses the + # IAM system for access control. # Corresponds to the JSON property `sys` # @return [String] attr_accessor :sys @@ -335,23 +278,18 @@ module Google end end - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # Supported field names: - # - "authority", which is "[token]" if IAMContext.token is present, - # otherwise the value of IAMContext.authority_selector if present, and - # otherwise a representation of IAMContext.principal; or - # - "iam_principal", a representation of IAMContext.principal even if a - # token or authority selector is present; or - # - "" (empty string), resulting in a counter with no fields. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/debug_access_count - # `iam_principal=[value of IAMContext.principal]` + # Increment a streamz counter with the specified metric and field names. Metric + # names should start with a '/', generally be lowercase-only, and end in "_count" + # . Field names should not contain an initial slash. The actual exported metric + # names will have "/iam/policy" prepended. Field names correspond to IAM request + # parameters and field values are their respective values. Supported field names: + # - "authority", which is "[token]" if IAMContext.token is present, otherwise + # the value of IAMContext.authority_selector if present, and otherwise a + # representation of IAMContext.principal; or - "iam_principal", a representation + # of IAMContext.principal even if a token or authority selector is present; or - + # "" (empty string), resulting in a counter with no fields. Examples: counter ` + # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / + # iam/policy/debug_access_count `iam_principal=[value of IAMContext.principal]` class CounterOptions include Google::Apis::Core::Hashable @@ -382,10 +320,8 @@ module Google end end - # Custom fields. - # These can be used to create a counter with arbitrary field/value - # pairs. - # See: go/rpcsp-custom-fields. + # Custom fields. These can be used to create a counter with arbitrary field/ + # value pairs. See: go/rpcsp-custom-fields. class CustomField include Google::Apis::Core::Hashable @@ -395,8 +331,8 @@ module Google attr_accessor :name # Value is the field value. It is important that in contrast to the - # CounterOptions.field, the value here is a constant that is not - # derived from the IAMContext. + # CounterOptions.field, the value here is a constant that is not derived from + # the IAMContext. # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -440,8 +376,8 @@ module Google # @return [String] attr_accessor :cluster - # The details about the Agones fleets and autoscalers created in the - # game server cluster. + # The details about the Agones fleets and autoscalers created in the game server + # cluster. # Corresponds to the JSON property `fleetDetails` # @return [Array] attr_accessor :fleet_details @@ -476,8 +412,8 @@ module Google # @return [Google::Apis::GameservicesV1beta::SpecSource] attr_accessor :spec_source - # DeployedFleetStatus has details about the Agones fleets such as how many - # are running, how many allocated, and so on. + # DeployedFleetStatus has details about the Agones fleets such as how many are + # running, how many allocated, and so on. # Corresponds to the JSON property `status` # @return [Google::Apis::GameservicesV1beta::DeployedFleetStatus] attr_accessor :status @@ -551,8 +487,8 @@ module Google end end - # DeployedFleetStatus has details about the Agones fleets such as how many - # are running, how many allocated, and so on. + # DeployedFleetStatus has details about the Agones fleets such as how many are + # running, how many allocated, and so on. class DeployedFleetStatus include Google::Apis::Core::Hashable @@ -572,8 +508,8 @@ module Google attr_accessor :replicas # The number of GameServer replicas in the RESERVED state in this fleet. - # Reserved instances won't be deleted on scale down, but won't cause - # an autoscaler to scale up. + # Reserved instances won't be deleted on scale down, but won't cause an + # autoscaler to scale up. # Corresponds to the JSON property `reservedReplicas` # @return [Fixnum] attr_accessor :reserved_replicas @@ -591,13 +527,11 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -610,52 +544,43 @@ module Google end end - # Represents a textual expression in the Common Expression Language (CEL) - # syntax. CEL is a C-like expression language. The syntax and semantics of CEL - # are documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" - # description: "Determines if a summary is less than 100 chars" - # expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" - # description: "Determines if requestor is the document owner" - # expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" - # description: "Determine whether the document should be publicly visible" - # expression: "document.type != 'private' && document.type != 'internal'" - # Example (Data Manipulation): - # title: "Notification string" - # description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service - # documentation for additional information. + # Represents a textual expression in the Common Expression Language (CEL) syntax. + # CEL is a C-like expression language. The syntax and semantics of CEL are + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable - # Optional. Description of the expression. This is a longer text which - # describes the expression, e.g. when hovered over it in a UI. + # Optional. Description of the expression. This is a longer text which describes + # the expression, e.g. when hovered over it in a UI. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Textual representation of an expression in Common Expression Language - # syntax. + # Textual representation of an expression in Common Expression Language syntax. # Corresponds to the JSON property `expression` # @return [String] attr_accessor :expression - # Optional. String indicating the location of the expression for error - # reporting, e.g. a file name and a position in the file. + # Optional. String indicating the location of the expression for error reporting, + # e.g. a file name and a position in the file. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location - # Optional. Title for the expression, i.e. a short string describing - # its purpose. This can be used e.g. in UIs which allow to enter the - # expression. + # Optional. Title for the expression, i.e. a short string describing its purpose. + # This can be used e.g. in UIs which allow to enter the expression. # Corresponds to the JSON property `title` # @return [String] attr_accessor :title @@ -715,8 +640,8 @@ module Google class FleetConfig include Google::Apis::Core::Hashable - # Agones fleet spec. Example spec: - # `https://agones.dev/site/docs/reference/fleet/`. + # Agones fleet spec. Example spec: `https://agones.dev/site/docs/reference/fleet/ + # `. # Corresponds to the JSON property `fleetSpec` # @return [String] attr_accessor :fleet_spec @@ -761,18 +686,16 @@ module Google # @return [String] attr_accessor :etag - # The labels associated with this game server cluster. Each label is a - # key-value pair. + # The labels associated with this game server cluster. Each label is a key-value + # pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -807,9 +730,9 @@ module Google # @return [Google::Apis::GameservicesV1beta::GkeClusterReference] attr_accessor :gke_cluster_reference - # Namespace designated on the game server cluster where the Agones game - # server instances will be created. Existence of the namespace will be - # validated during creation. + # Namespace designated on the game server cluster where the Agones game server + # instances will be created. Existence of the namespace will be validated during + # creation. # Corresponds to the JSON property `namespace` # @return [String] attr_accessor :namespace @@ -839,24 +762,22 @@ module Google # @return [String] attr_accessor :description - # FleetConfig contains a list of Agones fleet specs. Only one FleetConfig - # is allowed. + # FleetConfig contains a list of Agones fleet specs. Only one FleetConfig is + # allowed. # Corresponds to the JSON property `fleetConfigs` # @return [Array] attr_accessor :fleet_configs - # The labels associated with this game server config. Each label is a - # key-value pair. + # The labels associated with this game server config. Each label is a key-value + # pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The resource name of the game server config. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # configs/`config``. - # For example, - # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my- - # config`. + # The resource name of the game server config. Uses the form: `projects/`project` + # /locations/`location`/gameServerDeployments/`deployment`/configs/`config``. + # For example, `projects/my-project/locations/global/gameServerDeployments/my- + # game/configs/my-config`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -931,16 +852,15 @@ module Google # @return [String] attr_accessor :etag - # The labels associated with this game server deployment. Each label is a - # key-value pair. + # The labels associated with this game server deployment. Each label is a key- + # value pair. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # The resource name of the game server deployment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`. + # The resource name of the game server deployment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. For example, + # `projects/my-project/locations/global/gameServerDeployments/my-deployment`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -965,8 +885,7 @@ module Google end end - # The game server deployment rollout which represents the desired rollout - # state. + # The game server deployment rollout which represents the desired rollout state. class GameServerDeploymentRollout include Google::Apis::Core::Hashable @@ -975,10 +894,9 @@ module Google # @return [String] attr_accessor :create_time - # The default game server config is applied to all realms unless overridden - # in the rollout. For example, - # `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my- - # config`. + # The default game server config is applied to all realms unless overridden in + # the rollout. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-game/configs/my-config`. # Corresponds to the JSON property `defaultGameServerConfig` # @return [String] attr_accessor :default_game_server_config @@ -988,19 +906,17 @@ module Google # @return [String] attr_accessor :etag - # Contains the game server config rollout overrides. Overrides are processed - # in the order they are listed. Once a match is found for a realm, the rest - # of the list is not processed. + # Contains the game server config rollout overrides. Overrides are processed in + # the order they are listed. Once a match is found for a realm, the rest of the + # list is not processed. # Corresponds to the JSON property `gameServerConfigOverrides` # @return [Array] attr_accessor :game_server_config_overrides - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1029,14 +945,11 @@ module Google class GkeClusterReference include Google::Apis::Core::Hashable - # The full or partial name of a GKE cluster, using one of the following - # forms: - # * `projects/`project`/locations/`location`/clusters/`cluster`` - # * `locations/`location`/clusters/`cluster`` - # * ``cluster`` - # If project and location are not specified, the project and location of the - # GameServerCluster resource are used to generate the full name of the - # GKE cluster. + # The full or partial name of a GKE cluster, using one of the following forms: * + # `projects/`project`/locations/`location`/clusters/`cluster`` * `locations/` + # location`/clusters/`cluster`` * ``cluster`` If project and location are not + # specified, the project and location of the GameServerCluster resource are used + # to generate the full name of the GKE cluster. # Corresponds to the JSON property `cluster` # @return [String] attr_accessor :cluster @@ -1252,14 +1165,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1275,8 +1188,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1304,23 +1217,18 @@ module Google # @return [Google::Apis::GameservicesV1beta::CloudAuditOptions] attr_accessor :cloud_audit - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, - # and end in "_count". Field names should not contain an initial slash. - # The actual exported metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are - # their respective values. - # Supported field names: - # - "authority", which is "[token]" if IAMContext.token is present, - # otherwise the value of IAMContext.authority_selector if present, and - # otherwise a representation of IAMContext.principal; or - # - "iam_principal", a representation of IAMContext.principal even if a - # token or authority selector is present; or - # - "" (empty string), resulting in a counter with no fields. - # Examples: - # counter ` metric: "/debug_access_count" field: "iam_principal" ` - # ==> increment counter /iam/policy/debug_access_count - # `iam_principal=[value of IAMContext.principal]` + # Increment a streamz counter with the specified metric and field names. Metric + # names should start with a '/', generally be lowercase-only, and end in "_count" + # . Field names should not contain an initial slash. The actual exported metric + # names will have "/iam/policy" prepended. Field names correspond to IAM request + # parameters and field values are their respective values. Supported field names: + # - "authority", which is "[token]" if IAMContext.token is present, otherwise + # the value of IAMContext.authority_selector if present, and otherwise a + # representation of IAMContext.principal; or - "iam_principal", a representation + # of IAMContext.principal even if a token or authority selector is present; or - + # "" (empty string), resulting in a counter with no fields. Examples: counter ` + # metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter / + # iam/policy/debug_access_count `iam_principal=[value of IAMContext.principal]` # Corresponds to the JSON property `counter` # @return [Google::Apis::GameservicesV1beta::CounterOptions] attr_accessor :counter @@ -1347,47 +1255,45 @@ module Google class Operation include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done alias_method :done?, :done - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::GameservicesV1beta::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # 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 - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. + # 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 `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -1426,18 +1332,17 @@ module Google attr_accessor :end_time # Output only. Operation status for Game Services API operations. Operation - # status is in - # the form of key-value pairs where keys are resource IDs and the values show - # the status of the operation. In case of failures, the value includes an - # error code and error message. + # status is in the form of key-value pairs where keys are resource IDs and the + # values show the status of the operation. In case of failures, the value + # includes an error code and error message. # Corresponds to the JSON property `operationStatus` # @return [Hash] attr_accessor :operation_status - # Output only. Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # Output only. Identifies whether the user has requested cancellation of the + # operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. # Corresponds to the JSON property `requestedCancellation` # @return [Boolean] attr_accessor :requested_cancellation @@ -1514,66 +1419,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1582,24 +1453,24 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. Optionally, may specify a - # `condition` that determines how and when the `bindings` are applied. Each - # of the `bindings` must contain at least one member. + # Associates a list of `members` to a `role`. Optionally, may specify a ` + # condition` that determines how and when the `bindings` are applied. Each of + # the `bindings` must contain at least one member. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings - # `etag` is used for optimistic concurrency control as a way to help - # prevent simultaneous updates of a policy from overwriting each other. - # It is strongly suggested that systems make use of the `etag` in the - # read-modify-write cycle to perform policy updates in order to avoid race - # conditions: An `etag` is returned in the response to `getIamPolicy`, and - # systems are expected to put that etag in the request to `setIamPolicy` to - # ensure that their change will be applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. + # `etag` is used for optimistic concurrency control as a way to help prevent + # simultaneous updates of a policy from overwriting each other. It is strongly + # suggested that systems make use of the `etag` in the read-modify-write cycle + # to perform policy updates in order to avoid race conditions: An `etag` is + # returned in the response to `getIamPolicy`, and systems are expected to put + # that etag in the request to `setIamPolicy` to ensure that their change will be + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1612,37 +1483,31 @@ module Google alias_method :iam_owned?, :iam_owned # If more than one rule is specified, the rules are applied in the following - # manner: - # - All matching LOG rules are always applied. - # - If any DENY/DENY_WITH_LOG rule matches, permission is denied. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is - # granted. - # Logging will be applied if one or more matching rule requires logging. - # - Otherwise, if no rule applies, permission is denied. + # manner: - All matching LOG rules are always applied. - If any DENY/ + # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if + # one or more matching rule requires logging. - Otherwise, if any ALLOW/ + # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if + # one or more matching rule requires logging. - Otherwise, if no rule applies, + # permission is denied. # Corresponds to the JSON property `rules` # @return [Array] attr_accessor :rules - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value - # are rejected. - # Any operation that affects conditional role bindings must specify version - # `3`. This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding - # * Adding a conditional role binding to a policy - # * Changing a conditional role binding in a policy - # * Removing any role binding, with or without a condition, from a policy - # that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows - # you to overwrite a version `3` policy with a version `1` policy, and all of - # the conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field + # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you + # to overwrite a version `3` policy with a version `1` policy, and all of the + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1662,8 +1527,7 @@ module Google end end - # Response message for - # GameServerClustersService.PreviewCreateGameServerCluster. + # Response message for GameServerClustersService.PreviewCreateGameServerCluster. class PreviewCreateGameServerClusterResponse include Google::Apis::Core::Hashable @@ -1688,8 +1552,7 @@ module Google end end - # Response message for - # GameServerClustersService.PreviewDeleteGameServerCluster. + # Response message for GameServerClustersService.PreviewDeleteGameServerCluster. class PreviewDeleteGameServerClusterResponse include Google::Apis::Core::Hashable @@ -1714,8 +1577,8 @@ module Google end end - # Response message for PreviewGameServerDeploymentRollout. - # This has details about the Agones fleet and autoscaler to be actuated. + # Response message for PreviewGameServerDeploymentRollout. This has details + # about the Agones fleet and autoscaler to be actuated. class PreviewGameServerDeploymentRolloutResponse include Google::Apis::Core::Hashable @@ -1820,17 +1683,16 @@ module Google # @return [Hash] attr_accessor :labels - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Required. Time zone where all policies targeting this realm are evaluated. The - # value - # of this field must be from the IANA time zone database: - # https://www.iana.org/time-zones. + # value of this field must be from the IANA time zone database: https://www.iana. + # org/time-zones. # Corresponds to the JSON property `timeZone` # @return [String] attr_accessor :time_zone @@ -1895,8 +1757,8 @@ module Google # @return [String] attr_accessor :description - # If one or more 'in' clauses are specified, the rule matches if - # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ + # AUTHORITY_SELECTOR is in at least one of these entries. # Corresponds to the JSON property `in` # @return [Array] attr_accessor :in @@ -1907,17 +1769,17 @@ module Google # @return [Array] attr_accessor :log_config - # If one or more 'not_in' clauses are specified, the rule matches - # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # The format for in and not_in entries can be found at in the Local IAM - # documentation (see go/local-iam#features). + # If one or more 'not_in' clauses are specified, the rule matches if the + # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and + # not_in entries can be found at in the Local IAM documentation (see go/local- + # iam#features). # Corresponds to the JSON property `notIn` # @return [Array] attr_accessor :not_in - # A permission is a string of form '..' - # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions, - # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs. + # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value + # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. + # *') matches all verbs. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -1942,8 +1804,8 @@ module Google class ScalingConfig include Google::Apis::Core::Hashable - # Required. Agones fleet autoscaler spec. Example spec: - # https://agones.dev/site/docs/reference/fleetautoscaler/ + # Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/ + # docs/reference/fleetautoscaler/ # Corresponds to the JSON property `fleetAutoscalerSpec` # @return [String] attr_accessor :fleet_autoscaler_spec @@ -1958,9 +1820,9 @@ module Google # @return [Array] attr_accessor :schedules - # Labels used to identify the game server clusters to which this Agones - # scaling config applies. A game server cluster is subject to this Agones - # scaling config if its labels match any of the selector entries. + # Labels used to identify the game server clusters to which this Agones scaling + # config applies. A game server cluster is subject to this Agones scaling config + # if its labels match any of the selector entries. # Corresponds to the JSON property `selectors` # @return [Array] attr_accessor :selectors @@ -1980,8 +1842,8 @@ module Google # The schedule of a recurring or one time event. The event's time span is # specified by start_time and end_time. If the scheduled event's timespan is - # larger than the cron_spec + cron_job_duration, the event will be recurring. - # If only cron_spec + cron_job_duration are specified, the event is effective + # larger than the cron_spec + cron_job_duration, the event will be recurring. If + # only cron_spec + cron_job_duration are specified, the event is effective # starting at the local time specified by cron_spec, and is recurring. # start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time # cron job: cron spec start time + duration @@ -1994,9 +1856,8 @@ module Google # @return [String] attr_accessor :cron_job_duration - # The cron definition of the scheduled event. See - # https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as - # defined by the realm. + # The cron definition of the scheduled event. See https://en.wikipedia.org/wiki/ + # Cron. Cron spec specifies the local time as defined by the realm. # Corresponds to the JSON property `cronSpec` # @return [String] attr_accessor :cron_spec @@ -2029,74 +1890,39 @@ module Google include Google::Apis::Core::Hashable # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more - # `members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a - # `condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the - # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). - # **JSON example:** - # ` - # "bindings": [ - # ` - # "role": "roles/resourcemanager.organizationAdmin", - # "members": [ - # "user:mike@example.com", - # "group:admins@example.com", - # "domain:google.com", - # "serviceAccount:my-project-id@appspot.gserviceaccount.com" - # ] - # `, - # ` - # "role": "roles/resourcemanager.organizationViewer", - # "members": [ - # "user:eve@example.com" - # ], - # "condition": ` - # "title": "expirable access", - # "description": "Does not grant access after Sep 2020", - # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z') - # ", - # ` - # ` - # ], - # "etag": "BwWWja0YfJA=", - # "version": 3 - # ` - # **YAML example:** - # bindings: - # - members: - # - user:mike@example.com - # - group:admins@example.com - # - domain:google.com - # - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - # - members: - # - user:eve@example.com - # role: roles/resourcemanager.organizationViewer - # condition: - # title: expirable access - # description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - # - etag: BwWWja0YfJA= - # - version: 3 - # For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::GameservicesV1beta::Policy] attr_accessor :policy # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the - # following default mask is used: - # `paths: "bindings, etag"` + # the fields in the mask will be modified. If no mask is provided, the following + # default mask is used: `paths: "bindings, etag"` # Corresponds to the JSON property `updateMask` # @return [String] attr_accessor :update_mask @@ -2116,15 +1942,14 @@ module Google class SpecSource include Google::Apis::Core::Hashable - # The game server config resource. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment_id`/ - # configs/`config_id``. + # The game server config resource. Uses the form: `projects/`project`/locations/` + # location`/gameServerDeployments/`deployment_id`/configs/`config_id``. # Corresponds to the JSON property `gameServerConfigName` # @return [String] attr_accessor :game_server_config_name - # The name of the Agones leet config or Agones scaling config used to derive - # the Agones fleet or Agones autoscaler spec. + # The name of the Agones leet config or Agones scaling config used to derive the + # Agones fleet or Agones autoscaler spec. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2140,12 +1965,12 @@ module Google end end - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -2154,15 +1979,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message @@ -2188,16 +2013,14 @@ module Google # @return [Array] attr_accessor :fleet_details - # The game server cluster name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. + # The game server cluster name. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm`/gameServerClusters/`cluster``. # Corresponds to the JSON property `gameServerClusterName` # @return [String] attr_accessor :game_server_cluster_name - # The game server deployment name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment_id`` - # . + # The game server deployment name. Uses the form: `projects/`project`/locations/` + # location`/gameServerDeployments/`deployment_id``. # Corresponds to the JSON property `gameServerDeploymentName` # @return [String] attr_accessor :game_server_deployment_name @@ -2312,10 +2135,9 @@ module Google class TestIamPermissionsRequest include Google::Apis::Core::Hashable - # The set of permissions to check for the `resource`. Permissions with - # wildcards (such as '*' or 'storage.*') are not allowed. For more - # information see - # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + # The set of permissions to check for the `resource`. Permissions with wildcards + # (such as '*' or 'storage.*') are not allowed. For more information see [IAM + # Overview](https://cloud.google.com/iam/docs/overview#permissions). # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions @@ -2334,8 +2156,7 @@ module Google class TestIamPermissionsResponse include Google::Apis::Core::Hashable - # A subset of `TestPermissionsRequest.permissions` that the caller is - # allowed. + # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. # Corresponds to the JSON property `permissions` # @return [Array] attr_accessor :permissions diff --git a/generated/google/apis/gameservices_v1beta/service.rb b/generated/google/apis/gameservices_v1beta/service.rb index 1a8d8bd33..57ddfd03e 100644 --- a/generated/google/apis/gameservices_v1beta/service.rb +++ b/generated/google/apis/gameservices_v1beta/service.rb @@ -83,8 +83,7 @@ module Google # @param [String] filter # The standard list filter. # @param [Boolean] include_unrevealed_locations - # If true, the returned list will include locations which are not yet - # revealed. + # If true, the returned list will include locations which are not yet revealed. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token @@ -122,8 +121,8 @@ module Google # Creates a new game server deployment in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object # @param [String] deployment_id # Required. The ID of the game server delpoyment resource to be created. @@ -159,8 +158,8 @@ module Google # Deletes a single game server deployment. # @param [String] name - # Required. The name of the game server delpoyment to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -188,12 +187,12 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves information about the current state of the game server - # deployment. Gathers all the Agones fleets and Agones autoscalers, - # including fleets running an older version of the game server deployment. + # Retrieves information about the current state of the game server deployment. + # Gathers all the Agones fleets and Agones autoscalers, including fleets running + # an older version of the game server deployment. # @param [String] name - # Required. The name of the game server delpoyment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. # @param [Google::Apis::GameservicesV1beta::FetchDeploymentStateRequest] fetch_deployment_state_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -226,8 +225,8 @@ module Google # Gets details of a single game server deployment. # @param [String] name - # Required. The name of the game server delpoyment to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. + # Required. The name of the game server delpoyment to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -255,22 +254,19 @@ module Google execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. - # Returns an empty policy if the resource exists and does not have a policy - # set. + # Gets the access control policy for a resource. Returns an empty policy if the + # resource exists and does not have a policy set. # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. - # Requests for policies with any conditional bindings must specify version 3. - # Policies without any conditional bindings may specify any valid value or - # leave the field unset. - # To learn which resources support conditions in their IAM policies, see the - # [IAM - # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + # Optional. The policy format version to be returned. Valid values are 0, 1, and + # 3. Requests specifying an invalid value will be rejected. Requests for + # policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -301,8 +297,8 @@ module Google # Gets details a single game server deployment rollout. # @param [String] name - # Required. The name of the game server delpoyment to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server delpoyment to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # rollout`. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -333,22 +329,21 @@ module Google # Lists game server deployments in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, the server + # Optional. The maximum number of items to return. If unspecified, the server # will pick an appropriate default. The server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to + # requested. A caller should only rely on response's next_page_token to # determine if there are more GameServerDeployments left to be queried. # @param [String] page_token - # Optional. The next_page_token value returned from a previous List request, - # if any. + # Optional. The next_page_token value returned from a previous List request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -382,17 +377,14 @@ module Google # Patches a game server deployment. # @param [String] name - # The resource name of the game server deployment. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`. + # The resource name of the game server deployment. Uses the form: `projects/` + # project`/locations/`location`/gameServerDeployments/`deployment``. For example, + # `projects/my-project/locations/global/gameServerDeployments/my-deployment`. # @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -426,23 +418,18 @@ module Google # Previews the game server deployment rollout. This API does not mutate the # rollout resource. # @param [String] name - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. Defaults to the - # immediately - # after the proposed rollout completes. + # immediately after the proposed rollout completes. # @param [String] update_mask - # Optional. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Optional. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -475,11 +462,11 @@ module Google end # Sets the access control policy on the specified resource. Replaces any - # existing policy. - # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` + # PERMISSION_DENIED` errors. # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy is being specified. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::GameservicesV1beta::SetIamPolicyRequest] set_iam_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -510,15 +497,14 @@ module Google execute_or_queue_command(command, &block) end - # Returns permissions that a caller has on the specified resource. - # If the resource does not exist, this will return an empty set of - # permissions, not a `NOT_FOUND` error. - # Note: This operation is designed to be used for building permission-aware - # UIs and command-line tools, not for authorization checking. This operation - # may "fail open" without warning. + # Returns permissions that a caller has on the specified resource. If the + # resource does not exist, this will return an empty set of permissions, not a ` + # NOT_FOUND` error. Note: This operation is designed to be used for building + # permission-aware UIs and command-line tools, not for authorization checking. + # This operation may "fail open" without warning. # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. - # See the operation documentation for the appropriate value for this field. + # REQUIRED: The resource for which the policy detail is being requested. See the + # operation documentation for the appropriate value for this field. # @param [Google::Apis::GameservicesV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -549,26 +535,21 @@ module Google execute_or_queue_command(command, &block) end - # Patches a single game server deployment rollout. - # The method will not return an error if the update does not affect any - # existing realms. For example - if the default_game_server_config is changed - # but all existing realms use the override, that is valid. Similarly, if a - # non existing realm is explicitly called out in game_server_config_overrides - # field, that will also not result in an error. + # Patches a single game server deployment rollout. The method will not return an + # error if the update does not affect any existing realms. For example - if the + # default_game_server_config is changed but all existing realms use the override, + # that is valid. Similarly, if a non existing realm is explicitly called out in + # game_server_config_overrides field, that will also not result in an error. # @param [String] name - # The resource name of the game server deployment rollout. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # rollout`. - # For example, - # `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/ - # rollout`. + # The resource name of the game server deployment rollout. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # rollout`. For example, `projects/my-project/locations/global/ + # gameServerDeployments/my-deployment/rollout`. # @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -599,12 +580,12 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new game server config in a given project, location, and game - # server deployment. Game server configs are immutable, and are not applied - # until referenced in the game server deployment rollout resource. + # Creates a new game server config in a given project, location, and game server + # deployment. Game server configs are immutable, and are not applied until + # referenced in the game server deployment rollout resource. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/`. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/gameServerDeployments/`deployment`/`. # @param [Google::Apis::GameservicesV1beta::GameServerConfig] game_server_config_object # @param [String] config_id # Required. The ID of the game server config resource to be created. @@ -638,11 +619,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a single game server config. The deletion will fail if the game - # server config is referenced in a game server deployment rollout. + # Deletes a single game server config. The deletion will fail if the game server + # config is referenced in a game server deployment rollout. # @param [String] name - # Required. The name of the game server config to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server config to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # configs/`config``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -673,8 +654,8 @@ module Google # Gets details of a single game server config. # @param [String] name - # Required. The name of the game server config to retrieve. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ + # Required. The name of the game server config to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # configs/`config``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -706,20 +687,18 @@ module Google # Lists game server configs in a given project, location, and game server # deployment. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ - # configs/*`. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/gameServerDeployments/`deployment`/configs/*`. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, server - # will pick an appropriate default. Server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to - # determine if there are more GameServerConfigs left to be queried. + # Optional. The maximum number of items to return. If unspecified, server will + # pick an appropriate default. Server may return fewer items than requested. A + # caller should only rely on response's next_page_token to determine if there + # are more GameServerConfigs left to be queried. # @param [String] page_token # Optional. The next_page_token value returned from a previous list request, if # any. @@ -754,15 +733,13 @@ module Google execute_or_queue_command(command, &block) end - # 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 server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # 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 + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -796,10 +773,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -829,9 +806,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. # @param [String] fields @@ -861,15 +837,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter @@ -910,8 +885,8 @@ module Google # Creates a new realm in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [String] realm_id # Required. The ID of the realm resource to be created. @@ -947,8 +922,8 @@ module Google # Deletes a single realm. # @param [String] name - # Required. The name of the realm to delete. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The name of the realm to delete. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -978,8 +953,8 @@ module Google # Gets details of a single realm. # @param [String] name - # Required. The name of the realm to retrieve. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The name of the realm to retrieve. Uses the form: `projects/`project` + # /locations/`location`/realms/`realm``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1009,22 +984,21 @@ module Google # Lists realms in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location``. # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, server - # will pick an appropriate default. Server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to - # determine if there are more realms left to be queried. + # Optional. The maximum number of items to return. If unspecified, server will + # pick an appropriate default. Server may return fewer items than requested. A + # caller should only rely on response's next_page_token to determine if there + # are more realms left to be queried. # @param [String] page_token - # Optional. The next_page_token value returned from a previous List request, - # if any. + # Optional. The next_page_token value returned from a previous List request, if + # any. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1058,16 +1032,14 @@ module Google # Patches a single realm. # @param [String] name - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [String] update_mask # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # definition, see https: //developers.google.com/protocol-buffers // /docs/ + # reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1100,18 +1072,16 @@ module Google # Previews patches to a single realm. # @param [String] name - # The resource name of the realm. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. For - # example, `projects/my-project/locations/`location`/realms/my-realm`. + # The resource name of the realm. Uses the form: `projects/`project`/locations/` + # location`/realms/`realm``. For example, `projects/my-project/locations/` + # location`/realms/my-realm`. # @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] update_mask # Required. The update mask applies to the resource. For the `FieldMask` - # definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # definition, see https: //developers.google.com/protocol-buffers // /docs/ + # reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1145,8 +1115,8 @@ module Google # Creates a new game server cluster in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm-id``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm-id``. # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [String] game_server_cluster_id # Required. The ID of the game server cluster resource to be created. @@ -1182,8 +1152,8 @@ module Google # Deletes a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerClusters/`cluster``. + # Required. The name of the game server cluster to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerClusters/`cluster``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1213,8 +1183,8 @@ module Google # Gets details of a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to retrieve. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` + # Required. The name of the game server cluster to retrieve. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` # cluster``. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1245,18 +1215,17 @@ module Google # Lists game server clusters in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # "projects/`project`/locations/`location`/realms/`realm`". + # Required. The parent resource name. Uses the form: "projects/`project`/ + # locations/`location`/realms/`realm`". # @param [String] filter # Optional. The filter to apply to list results. # @param [String] order_by - # Optional. Specifies the ordering of results following syntax at - # https://cloud.google.com/apis/design/design_patterns#sorting_order. + # Optional. Specifies the ordering of results following syntax at https://cloud. + # google.com/apis/design/design_patterns#sorting_order. # @param [Fixnum] page_size - # Optional. The maximum number of items to return. If unspecified, the server + # Optional. The maximum number of items to return. If unspecified, the server # will pick an appropriate default. The server may return fewer items than - # requested. A caller should only rely on response's - # next_page_token to + # requested. A caller should only rely on response's next_page_token to # determine if there are more GameServerClusters left to be queried. # @param [String] page_token # Optional. The next_page_token value returned from a previous List request, if @@ -1294,19 +1263,15 @@ module Google # Patches a single game server cluster. # @param [String] name - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1337,11 +1302,10 @@ module Google execute_or_queue_command(command, &block) end - # Previews creation of a new game server cluster in a given project and - # location. + # Previews creation of a new game server cluster in a given project and location. # @param [String] parent - # Required. The parent resource name. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm``. + # Required. The parent resource name. Uses the form: `projects/`project`/ + # locations/`location`/realms/`realm``. # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [String] game_server_cluster_id # Required. The ID of the game server cluster resource to be created. @@ -1380,8 +1344,8 @@ module Google # Previews deletion of a single game server cluster. # @param [String] name - # Required. The name of the game server cluster to delete. Uses the form: - # `projects/`project`/locations/`location`/gameServerClusters/`cluster``. + # Required. The name of the game server cluster to delete. Uses the form: ` + # projects/`project`/locations/`location`/gameServerClusters/`cluster``. # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] fields @@ -1414,21 +1378,17 @@ module Google # Previews updating a GameServerCluster. # @param [String] name - # Required. The resource name of the game server cluster. Uses the form: - # `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` - # cluster``. - # For example, - # `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/ - # my-onprem-cluster`. + # Required. The resource name of the game server cluster. Uses the form: ` + # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` + # cluster``. For example, `projects/my-project/locations/`location`/realms/ + # zanzibar/gameServerClusters/my-onprem-cluster`. # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [String] preview_time # Optional. The target timestamp to compute the preview. # @param [String] update_mask - # Required. Mask of fields to update. At least one path must be supplied in - # this field. For the `FieldMask` definition, see - # https: - # //developers.google.com/protocol-buffers - # // /docs/reference/google.protobuf#fieldmask + # Required. Mask of fields to update. At least one path must be supplied in this + # field. For the `FieldMask` definition, see https: //developers.google.com/ + # protocol-buffers // /docs/reference/google.protobuf#fieldmask # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/tagmanager_v2.rb b/generated/google/apis/tagmanager_v2.rb index 3847a88ad..366a474e6 100644 --- a/generated/google/apis/tagmanager_v2.rb +++ b/generated/google/apis/tagmanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/tag-manager module TagmanagerV2 VERSION = 'V2' - REVISION = '20200504' + REVISION = '20200728' # Delete your Google Tag Manager containers AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' diff --git a/generated/google/apis/tagmanager_v2/classes.rb b/generated/google/apis/tagmanager_v2/classes.rb index 029584a3b..5760b58db 100644 --- a/generated/google/apis/tagmanager_v2/classes.rb +++ b/generated/google/apis/tagmanager_v2/classes.rb @@ -195,6 +195,11 @@ module Google # @return [Array] attr_accessor :parameter + # Parent folder id. + # Corresponds to the JSON property `parentFolderId` + # @return [String] + attr_accessor :parent_folder_id + # GTM client's API relative path. # Corresponds to the JSON property `path` # @return [String] @@ -236,6 +241,7 @@ module Google @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @parameter = args[:parameter] if args.key?(:parameter) + @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) @path = args[:path] if args.key?(:path) @priority = args[:priority] if args.key?(:priority) @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) diff --git a/generated/google/apis/tagmanager_v2/representations.rb b/generated/google/apis/tagmanager_v2/representations.rb index 90ca25011..01483f371 100644 --- a/generated/google/apis/tagmanager_v2/representations.rb +++ b/generated/google/apis/tagmanager_v2/representations.rb @@ -405,6 +405,7 @@ module Google property :name, as: 'name' collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation + property :parent_folder_id, as: 'parentFolderId' property :path, as: 'path' property :priority, as: 'priority' property :tag_manager_url, as: 'tagManagerUrl' diff --git a/generated/google/apis/tpu_v1.rb b/generated/google/apis/tpu_v1.rb index d7123ccd8..491d08618 100644 --- a/generated/google/apis/tpu_v1.rb +++ b/generated/google/apis/tpu_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1 VERSION = 'V1' - REVISION = '20200527' + REVISION = '20200728' # 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/tpu_v1/classes.rb b/generated/google/apis/tpu_v1/classes.rb index d42e9c189..a2b3d1382 100644 --- a/generated/google/apis/tpu_v1/classes.rb +++ b/generated/google/apis/tpu_v1/classes.rb @@ -47,13 +47,11 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -213,14 +211,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -236,8 +234,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -285,20 +283,18 @@ module Google class Node include Google::Apis::Core::Hashable - # The type of hardware accelerators associated with this node. - # Required. + # The type of hardware accelerators associated with this node. Required. # Corresponds to the JSON property `acceleratorType` # @return [String] attr_accessor :accelerator_type - # The CIDR block that the TPU node will use when selecting an IP address. - # This CIDR block must be a /29 block; the Compute Engine networks API - # forbids a smaller block, and using a larger block would be wasteful (a - # node can only consume one IP address). Errors will occur if the CIDR block - # has already been used for a currently existing TPU node, the CIDR block - # conflicts with any subnetworks in the user's provided network, or the - # provided network is peered with another network that is using that CIDR - # block. + # The CIDR block that the TPU node will use when selecting an IP address. This + # CIDR block must be a /29 block; the Compute Engine networks API forbids a + # smaller block, and using a larger block would be wasteful (a node can only + # consume one IP address). Errors will occur if the CIDR block has already been + # used for a currently existing TPU node, the CIDR block conflicts with any + # subnetworks in the user's provided network, or the provided network is peered + # with another network that is using that CIDR block. # Corresponds to the JSON property `cidrBlock` # @return [String] attr_accessor :cidr_block @@ -319,15 +315,13 @@ module Google attr_accessor :health # Output only. If this field is populated, it contains a description of why the - # TPU Node - # is unhealthy. + # TPU Node is unhealthy. # Corresponds to the JSON property `healthDescription` # @return [String] attr_accessor :health_description - # Output only. DEPRECATED! Use network_endpoints instead. - # The network address for the TPU Node as visible to Compute Engine - # instances. + # Output only. DEPRECATED! Use network_endpoints instead. The network address + # for the TPU Node as visible to Compute Engine instances. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -343,21 +337,21 @@ module Google attr_accessor :name # The name of a network they wish to peer the TPU node to. It must be a - # preexisting Compute Engine network inside of the project on which this API - # has been activated. If none is provided, "default" will be used. + # preexisting Compute Engine network inside of the project on which this API has + # been activated. If none is provided, "default" will be used. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # Output only. The network endpoints where TPU workers can be accessed and - # sent work. It is recommended that Tensorflow clients of the node reach out - # to the 0th entry in this map first. + # Output only. The network endpoints where TPU workers can be accessed and sent + # work. It is recommended that Tensorflow clients of the node reach out to the + # 0th entry in this map first. # Corresponds to the JSON property `networkEndpoints` # @return [Array] attr_accessor :network_endpoints - # Output only. DEPRECATED! Use network_endpoints instead. - # The network port for the TPU Node as visible to Compute Engine instances. + # Output only. DEPRECATED! Use network_endpoints instead. The network port for + # the TPU Node as visible to Compute Engine instances. # Corresponds to the JSON property `port` # @return [String] attr_accessor :port @@ -368,10 +362,9 @@ module Google attr_accessor :scheduling_config # Output only. The service account used to run the tensor flow services within - # the node. - # To share resources, including Google Cloud Storage data, with the - # Tensorflow job running in the Node, this account must have permissions to - # that data. + # the node. To share resources, including Google Cloud Storage data, with the + # Tensorflow job running in the Node, this account must have permissions to that + # data. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account @@ -381,8 +374,7 @@ module Google # @return [String] attr_accessor :state - # The version of Tensorflow running in the Node. - # Required. + # The version of Tensorflow running in the Node. Required. # Corresponds to the JSON property `tensorflowVersion` # @return [String] attr_accessor :tensorflow_version @@ -417,47 +409,45 @@ module Google class Operation include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done alias_method :done?, :done - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::TpuV1::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # 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 - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. + # 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 `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -485,10 +475,10 @@ module Google # @return [String] attr_accessor :api_version - # [Output only] Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # [Output only] Identifies whether the user has requested cancellation of the + # operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. # Corresponds to the JSON property `cancelRequested` # @return [Boolean] attr_accessor :cancel_requested @@ -594,12 +584,12 @@ module Google end end - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -608,15 +598,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message diff --git a/generated/google/apis/tpu_v1/service.rb b/generated/google/apis/tpu_v1/service.rb index 31aeb634e..c376faaf9 100644 --- a/generated/google/apis/tpu_v1/service.rb +++ b/generated/google/apis/tpu_v1/service.rb @@ -419,15 +419,13 @@ module Google execute_or_queue_command(command, &block) end - # 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 server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # 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 + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -458,10 +456,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -491,9 +489,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. # @param [String] fields @@ -523,15 +520,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter diff --git a/generated/google/apis/tpu_v1alpha1.rb b/generated/google/apis/tpu_v1alpha1.rb index 8e18de4fb..3b6b8c62f 100644 --- a/generated/google/apis/tpu_v1alpha1.rb +++ b/generated/google/apis/tpu_v1alpha1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tpu/ module TpuV1alpha1 VERSION = 'V1alpha1' - REVISION = '20200527' + REVISION = '20200728' # 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/tpu_v1alpha1/classes.rb b/generated/google/apis/tpu_v1alpha1/classes.rb index 9d485036c..22e79b9d1 100644 --- a/generated/google/apis/tpu_v1alpha1/classes.rb +++ b/generated/google/apis/tpu_v1alpha1/classes.rb @@ -47,13 +47,11 @@ module Google end end - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # service Foo ` - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # ` - # The JSON representation for `Empty` is empty JSON object ````. + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. class Empty include Google::Apis::Core::Hashable @@ -213,14 +211,14 @@ module Google class Location include Google::Apis::Core::Hashable - # The friendly name for this location, typically a nearby city name. - # For example, "Tokyo". + # The friendly name for this location, typically a nearby city name. For example, + # "Tokyo". # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Cross-service attributes for the location. For example - # `"cloud.googleapis.com/region": "us-east1"` + # Cross-service attributes for the location. For example `"cloud.googleapis.com/ + # region": "us-east1"` # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -236,8 +234,8 @@ module Google # @return [Hash] attr_accessor :metadata - # Resource name for the location, which may vary between implementations. - # For example: `"projects/example-project/locations/us-east1"` + # Resource name for the location, which may vary between implementations. For + # example: `"projects/example-project/locations/us-east1"` # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -285,20 +283,18 @@ module Google class Node include Google::Apis::Core::Hashable - # The type of hardware accelerators associated with this node. - # Required. + # The type of hardware accelerators associated with this node. Required. # Corresponds to the JSON property `acceleratorType` # @return [String] attr_accessor :accelerator_type - # The CIDR block that the TPU node will use when selecting an IP address. - # This CIDR block must be a /29 block; the Compute Engine networks API - # forbids a smaller block, and using a larger block would be wasteful (a - # node can only consume one IP address). Errors will occur if the CIDR block - # has already been used for a currently existing TPU node, the CIDR block - # conflicts with any subnetworks in the user's provided network, or the - # provided network is peered with another network that is using that CIDR - # block. + # The CIDR block that the TPU node will use when selecting an IP address. This + # CIDR block must be a /29 block; the Compute Engine networks API forbids a + # smaller block, and using a larger block would be wasteful (a node can only + # consume one IP address). Errors will occur if the CIDR block has already been + # used for a currently existing TPU node, the CIDR block conflicts with any + # subnetworks in the user's provided network, or the provided network is peered + # with another network that is using that CIDR block. # Corresponds to the JSON property `cidrBlock` # @return [String] attr_accessor :cidr_block @@ -319,15 +315,13 @@ module Google attr_accessor :health # Output only. If this field is populated, it contains a description of why the - # TPU Node - # is unhealthy. + # TPU Node is unhealthy. # Corresponds to the JSON property `healthDescription` # @return [String] attr_accessor :health_description - # Output only. DEPRECATED! Use network_endpoints instead. - # The network address for the TPU Node as visible to Compute Engine - # instances. + # Output only. DEPRECATED! Use network_endpoints instead. The network address + # for the TPU Node as visible to Compute Engine instances. # Corresponds to the JSON property `ipAddress` # @return [String] attr_accessor :ip_address @@ -343,21 +337,21 @@ module Google attr_accessor :name # The name of a network they wish to peer the TPU node to. It must be a - # preexisting Compute Engine network inside of the project on which this API - # has been activated. If none is provided, "default" will be used. + # preexisting Compute Engine network inside of the project on which this API has + # been activated. If none is provided, "default" will be used. # Corresponds to the JSON property `network` # @return [String] attr_accessor :network - # Output only. The network endpoints where TPU workers can be accessed and - # sent work. It is recommended that Tensorflow clients of the node reach out - # to the 0th entry in this map first. + # Output only. The network endpoints where TPU workers can be accessed and sent + # work. It is recommended that Tensorflow clients of the node reach out to the + # 0th entry in this map first. # Corresponds to the JSON property `networkEndpoints` # @return [Array] attr_accessor :network_endpoints - # Output only. DEPRECATED! Use network_endpoints instead. - # The network port for the TPU Node as visible to Compute Engine instances. + # Output only. DEPRECATED! Use network_endpoints instead. The network port for + # the TPU Node as visible to Compute Engine instances. # Corresponds to the JSON property `port` # @return [String] attr_accessor :port @@ -368,10 +362,9 @@ module Google attr_accessor :scheduling_config # Output only. The service account used to run the tensor flow services within - # the node. - # To share resources, including Google Cloud Storage data, with the - # Tensorflow job running in the Node, this account must have permissions to - # that data. + # the node. To share resources, including Google Cloud Storage data, with the + # Tensorflow job running in the Node, this account must have permissions to that + # data. # Corresponds to the JSON property `serviceAccount` # @return [String] attr_accessor :service_account @@ -381,8 +374,7 @@ module Google # @return [String] attr_accessor :state - # The version of Tensorflow running in the Node. - # Required. + # The version of Tensorflow running in the Node. Required. # Corresponds to the JSON property `tensorflowVersion` # @return [String] attr_accessor :tensorflow_version @@ -417,47 +409,45 @@ module Google class Operation include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. # Corresponds to the JSON property `done` # @return [Boolean] attr_accessor :done alias_method :done?, :done - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). # Corresponds to the JSON property `error` # @return [Google::Apis::TpuV1alpha1::Status] attr_accessor :error - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. # Corresponds to the JSON property `metadata` # @return [Hash] attr_accessor :metadata # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # 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 - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. + # 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 `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. # Corresponds to the JSON property `response` # @return [Hash] attr_accessor :response @@ -485,10 +475,10 @@ module Google # @return [String] attr_accessor :api_version - # [Output only] Identifies whether the user has requested cancellation - # of the operation. Operations that have successfully been cancelled - # have Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. + # [Output only] Identifies whether the user has requested cancellation of the + # operation. Operations that have successfully been cancelled have Operation. + # error value with a google.rpc.Status.code of 1, corresponding to `Code. + # CANCELLED`. # Corresponds to the JSON property `cancelRequested` # @return [Boolean] attr_accessor :cancel_requested @@ -594,12 +584,12 @@ module Google end end - # 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 [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). + # 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 [ + # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of + # data: error code, error message, and error details. You can find out more + # about this error model and how to work with it in the [API Design Guide](https: + # //cloud.google.com/apis/design/errors). class Status include Google::Apis::Core::Hashable @@ -608,15 +598,15 @@ module Google # @return [Fixnum] attr_accessor :code - # A list of messages that carry the error details. There is a common set of + # A list of messages that carry the error details. There is a common set of # message types for APIs to use. # Corresponds to the JSON property `details` # @return [Array>] attr_accessor :details - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. + # A developer-facing error message, which should be in English. Any user-facing + # error message should be localized and sent in the google.rpc.Status.details + # field, or localized by the client. # Corresponds to the JSON property `message` # @return [String] attr_accessor :message diff --git a/generated/google/apis/tpu_v1alpha1/service.rb b/generated/google/apis/tpu_v1alpha1/service.rb index a97ea867b..3083932af 100644 --- a/generated/google/apis/tpu_v1alpha1/service.rb +++ b/generated/google/apis/tpu_v1alpha1/service.rb @@ -419,15 +419,13 @@ module Google execute_or_queue_command(command, &block) end - # 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 server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an Operation.error value with a google.rpc.Status.code of 1, + # 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 + # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + # Clients can use Operations.GetOperation or other methods to check whether the + # cancellation succeeded or whether the operation completed despite cancellation. + # On successful cancellation, the operation is not deleted; instead, it becomes + # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. @@ -458,10 +456,10 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a long-running operation. This method indicates that the client is - # no longer interested in the operation result. It does not cancel the - # operation. If the server doesn't support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. + # Deletes a long-running operation. This method indicates that the client is no + # longer interested in the operation result. It does not cancel the operation. + # If the server doesn't support this method, it returns `google.rpc.Code. + # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields @@ -491,9 +489,8 @@ module Google execute_or_queue_command(command, &block) end - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. + # Gets the latest state of a long-running operation. Clients can use this method + # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. # @param [String] fields @@ -523,15 +520,14 @@ module Google execute_or_queue_command(command, &block) end - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. + # Lists operations that match the specified filter in the request. If the server + # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` + # binding allows API services to override the binding to use different resource + # name schemes, such as `users/*/operations`. To override the binding, API + # services can add a binding such as `"/v1/`name=users/*`/operations"` to their + # service configuration. For backwards compatibility, the default name includes + # the operations collection id, however overriding users must ensure the name + # binding is the parent resource, without the operations collection id. # @param [String] name # The name of the operation's parent resource. # @param [String] filter