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
This commit is contained in:
Google APIs 2020-07-30 00:38:07 +00:00
parent 30be83622a
commit 482f64818b
25 changed files with 1218 additions and 3827 deletions

View File

@ -132709,6 +132709,7 @@
"/tagmanager:v2/Client/name": name "/tagmanager:v2/Client/name": name
"/tagmanager:v2/Client/parameter": parameter "/tagmanager:v2/Client/parameter": parameter
"/tagmanager:v2/Client/parameter/parameter": parameter "/tagmanager:v2/Client/parameter/parameter": parameter
"/tagmanager:v2/Client/parentFolderId": parent_folder_id
"/tagmanager:v2/Client/path": path "/tagmanager:v2/Client/path": path
"/tagmanager:v2/Client/priority": priority "/tagmanager:v2/Client/priority": priority
"/tagmanager:v2/Client/tagManagerUrl": tag_manager_url "/tagmanager:v2/Client/tagManagerUrl": tag_manager_url

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/apps-marketplace # @see https://developers.google.com/apps-marketplace
module AppsmarketV2 module AppsmarketV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200720' REVISION = '20200727'
# View your installed application's licensing information # View your installed application's licensing information
AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license' AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-search/docs/guides/ # @see https://developers.google.com/cloud-search/docs/guides/
module CloudsearchV1 module CloudsearchV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200519' REVISION = '20200721'
# Index and serve your organization's data with Cloud Search # Index and serve your organization's data with Cloud Search
AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search' AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'

View File

@ -4117,8 +4117,7 @@ module Google
# The raw query string. # The raw query string.
# See supported search operators in the [Cloud search # See supported search operators in the [Cloud search
# Cheat # Cheat
# Sheet](https://gsuite.google.com/learning-center/products/cloudsearch/cheat- # Sheet](https://support.google.com/a/users/answer/9299929)
# sheet/)
# Corresponds to the JSON property `query` # Corresponds to the JSON property `query`
# @return [String] # @return [String]
attr_accessor :query attr_accessor :query

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/ # @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerAlpha module DeploymentmanagerAlpha
VERSION = 'Alpha' VERSION = 'Alpha'
REVISION = '20200512' REVISION = '20200519'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/deployment-manager/ # @see https://developers.google.com/deployment-manager/
module DeploymentmanagerV2beta module DeploymentmanagerV2beta
VERSION = 'V2beta' VERSION = 'V2beta'
REVISION = '20200512' REVISION = '20200519'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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 <code>dataStreamId</code>
# field should not be set when invoking this method. It
# will be automatically generated by the server with the correct format. If
# a <code>dataStreamId</code> 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 <em>custom data type</em>.
# Custom data types are only readable by the application that created them.
# Custom data types are <strong>deprecated</strong>; 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 <code>me</code> to
# indicate the authenticated user. Only <code>me</code> 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 <code>me</code> to
# indicate the authenticated user. Only <code>me</code> 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 <code>me</code> to
# indicate the authenticated user. Only <code>me</code> 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 <code>me</code> to
# indicate the authenticated user. Only <code>me</code> is supported at this
# time.
# @param [Array<String>, 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 <code>dataStreamId</code>,
# <code>dataType</code>, <code>type</code>, <code>dataStreamName</code>, and
# <code>device</code> properties with the exception of <code>version</code>,
# cannot be modified.
# Data sources are identified by their <code>dataStreamId</code>.
# @param [String] user_id
# Update the data source for the person identified. Use <code>me</code> to
# indicate the authenticated user. Only <code>me</code> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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
# <code>nextPageToken</code> 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
# <code>com.google.activity.segment</code>), 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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: "<var>startTime</var>-<var>endTime</var>"
# where <var>startTime</var> and <var>endTime</var> 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 <code>me</code> to
# indicate the authenticated user. Only <code>me</code> 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: "<var>startTime</var>-<var>endTime</var>"
# where <var>startTime</var> and <var>endTime</var> 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
# <code>nextPageToken</code> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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: "<var>startTime</var>-<var>endTime</var>"
# where <var>startTime</var> and <var>endTime</var> 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
# <code>minStartTimeNs</code> and <code>maxEndTimeNs</code> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> is supported at this time.
# @param [Array<Fixnum>, Fixnum] activity_type
# If non-empty, only sessions with these activity types should be returned.
# @param [String] end_time
# An <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
# Only sessions ending between the start and end times will be included in
# the response. If this time is omitted but <var>startTime</var> is
# specified, all sessions from <var>startTime</var> to the end of time will
# be returned.
# @param [Boolean] include_deleted
# If true, and if both <var>startTime</var> and <var>endTime</var> 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
# <code>nextPageToken</code> 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 <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
# Only sessions ending between the start and end times will be included in
# the response. If this time is omitted but <var>endTime</var> is specified,
# all sessions from the start of time up to <var>endTime</var> 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 <code>me</code> to indicate
# the authenticated user. Only <code>me</code> 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

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -83,8 +83,7 @@ module Google
# @param [String] filter # @param [String] filter
# The standard list filter. # The standard list filter.
# @param [Boolean] include_unrevealed_locations # @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet # If true, the returned list will include locations which are not yet revealed.
# revealed.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @param [String] page_token # @param [String] page_token
@ -122,8 +121,8 @@ module Google
# Creates a new game server deployment in a given project and location. # Creates a new game server deployment in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
# @param [String] deployment_id # @param [String] deployment_id
# Required. The ID of the game server delpoyment resource to be created. # Required. The ID of the game server delpoyment resource to be created.
@ -159,8 +158,8 @@ module Google
# Deletes a single game server deployment. # Deletes a single game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to delete. Uses the form: # Required. The name of the game server delpoyment to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -188,12 +187,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves information about the current state of the game server # Retrieves information about the current state of the game server deployment.
# deployment. Gathers all the Agones fleets and Agones autoscalers, # Gathers all the Agones fleets and Agones autoscalers, including fleets running
# including fleets running an older version of the game server deployment. # an older version of the game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment. Uses the form: # Required. The name of the game server delpoyment. Uses the form: `projects/`
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [Google::Apis::GameservicesV1::FetchDeploymentStateRequest] fetch_deployment_state_request_object # @param [Google::Apis::GameservicesV1::FetchDeploymentStateRequest] fetch_deployment_state_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -226,8 +225,8 @@ module Google
# Gets details of a single game server deployment. # Gets details of a single game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to retrieve. Uses the form: # Required. The name of the game server delpoyment to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -255,22 +254,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -301,8 +297,8 @@ module Google
# Gets details a single game server deployment rollout. # Gets details a single game server deployment rollout.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to retrieve. Uses the form: # Required. The name of the game server delpoyment to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -333,22 +329,21 @@ module Google
# Lists game server deployments in a given project and location. # Lists game server deployments in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @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 # will pick an appropriate default. The server may return fewer items than
# requested. A caller should only rely on response's # requested. A caller should only rely on response's next_page_token to
# next_page_token to
# determine if there are more GameServerDeployments left to be queried. # determine if there are more GameServerDeployments left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -382,17 +377,14 @@ module Google
# Patches a game server deployment. # Patches a game server deployment.
# @param [String] name # @param [String] name
# The resource name of the game server deployment. Uses the form: # The resource name of the game server deployment. Uses the form: `projects/`
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # project`/locations/`location`/gameServerDeployments/`deployment``. For example,
# For example, # `projects/my-project/locations/global/gameServerDeployments/my-deployment`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`.
# @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object # @param [Google::Apis::GameservicesV1::GameServerDeployment] game_server_deployment_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -426,23 +418,18 @@ module Google
# Previews the game server deployment rollout. This API does not mutate the # Previews the game server deployment rollout. This API does not mutate the
# rollout resource. # rollout resource.
# @param [String] name # @param [String] name
# The resource name of the game server deployment rollout. Uses the form: # The resource name of the game server deployment rollout. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`. For example, `projects/my-project/locations/global/
# For example, # gameServerDeployments/my-deployment/rollout`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
# rollout`.
# @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. Defaults to the # Optional. The target timestamp to compute the preview. Defaults to the
# immediately # immediately after the proposed rollout completes.
# after the proposed rollout completes.
# @param [String] update_mask # @param [String] update_mask
# Optional. Mask of fields to update. At least one path must be supplied in # Optional. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -475,11 +462,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::GameservicesV1::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::GameservicesV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -510,15 +497,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::GameservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::GameservicesV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -549,26 +535,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Patches a single game server deployment rollout. # Patches a single game server deployment rollout. The method will not return an
# The method will not return an error if the update does not affect any # error if the update does not affect any existing realms. For example - if the
# existing realms. For example - if the default_game_server_config is changed # default_game_server_config is changed but all existing realms use the override,
# but all existing realms use the override, that is valid. Similarly, if a # that is valid. Similarly, if a non existing realm is explicitly called out in
# non existing realm is explicitly called out in game_server_config_overrides # game_server_config_overrides field, that will also not result in an error.
# field, that will also not result in an error.
# @param [String] name # @param [String] name
# The resource name of the game server deployment rollout. Uses the form: # The resource name of the game server deployment rollout. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`. For example, `projects/my-project/locations/global/
# For example, # gameServerDeployments/my-deployment/rollout`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
# rollout`.
# @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [Google::Apis::GameservicesV1::GameServerDeploymentRollout] game_server_deployment_rollout_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -599,12 +580,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new game server config in a given project, location, and game # Creates a new game server config in a given project, location, and game server
# server deployment. Game server configs are immutable, and are not applied # deployment. Game server configs are immutable, and are not applied until
# until referenced in the game server deployment rollout resource. # referenced in the game server deployment rollout resource.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/`. # locations/`location`/gameServerDeployments/`deployment`/`.
# @param [Google::Apis::GameservicesV1::GameServerConfig] game_server_config_object # @param [Google::Apis::GameservicesV1::GameServerConfig] game_server_config_object
# @param [String] config_id # @param [String] config_id
# Required. The ID of the game server config resource to be created. # Required. The ID of the game server config resource to be created.
@ -638,11 +619,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a single game server config. The deletion will fail if the game # Deletes a single game server config. The deletion will fail if the game server
# server config is referenced in a game server deployment rollout. # config is referenced in a game server deployment rollout.
# @param [String] name # @param [String] name
# Required. The name of the game server config to delete. Uses the form: # Required. The name of the game server config to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# configs/`config``. # configs/`config``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -673,8 +654,8 @@ module Google
# Gets details of a single game server config. # Gets details of a single game server config.
# @param [String] name # @param [String] name
# Required. The name of the game server config to retrieve. Uses the form: # Required. The name of the game server config to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# configs/`config``. # configs/`config``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -706,20 +687,18 @@ module Google
# Lists game server configs in a given project, location, and game server # Lists game server configs in a given project, location, and game server
# deployment. # deployment.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # locations/`location`/gameServerDeployments/`deployment`/configs/*`.
# configs/*`.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. If unspecified, server # Optional. The maximum number of items to return. If unspecified, server will
# will pick an appropriate default. Server may return fewer items than # pick an appropriate default. Server may return fewer items than requested. A
# requested. A caller should only rely on response's # caller should only rely on response's next_page_token to determine if there
# next_page_token to # are more GameServerConfigs left to be queried.
# determine if there are more GameServerConfigs left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous list request, if # Optional. The next_page_token value returned from a previous list request, if
# any. # any.
@ -754,15 +733,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# 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`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -796,10 +773,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -829,9 +806,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -861,15 +837,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter
@ -910,8 +885,8 @@ module Google
# Creates a new realm in a given project and location. # Creates a new realm in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [Google::Apis::GameservicesV1::Realm] realm_object
# @param [String] realm_id # @param [String] realm_id
# Required. The ID of the realm resource to be created. # Required. The ID of the realm resource to be created.
@ -947,8 +922,8 @@ module Google
# Deletes a single realm. # Deletes a single realm.
# @param [String] name # @param [String] name
# Required. The name of the realm to delete. Uses the form: # Required. The name of the realm to delete. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm``. # locations/`location`/realms/`realm``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -978,8 +953,8 @@ module Google
# Gets details of a single realm. # Gets details of a single realm.
# @param [String] name # @param [String] name
# Required. The name of the realm to retrieve. Uses the form: # Required. The name of the realm to retrieve. Uses the form: `projects/`project`
# `projects/`project`/locations/`location`/realms/`realm``. # /locations/`location`/realms/`realm``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1009,22 +984,21 @@ module Google
# Lists realms in a given project and location. # Lists realms in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. If unspecified, server # Optional. The maximum number of items to return. If unspecified, server will
# will pick an appropriate default. Server may return fewer items than # pick an appropriate default. Server may return fewer items than requested. A
# requested. A caller should only rely on response's # caller should only rely on response's next_page_token to determine if there
# next_page_token to # are more realms left to be queried.
# determine if there are more realms left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1058,16 +1032,14 @@ module Google
# Patches a single realm. # Patches a single realm.
# @param [String] name # @param [String] name
# The resource name of the realm. Uses the form: # The resource name of the realm. Uses the form: `projects/`project`/locations/`
# `projects/`project`/locations/`location`/realms/`realm``. For # location`/realms/`realm``. For example, `projects/my-project/locations/`
# example, `projects/my-project/locations/`location`/realms/my-realm`. # location`/realms/my-realm`.
# @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [Google::Apis::GameservicesV1::Realm] realm_object
# @param [String] update_mask # @param [String] update_mask
# Required. The update mask applies to the resource. For the `FieldMask` # Required. The update mask applies to the resource. For the `FieldMask`
# definition, see # definition, see https: //developers.google.com/protocol-buffers // /docs/
# https: # reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1100,18 +1072,16 @@ module Google
# Previews patches to a single realm. # Previews patches to a single realm.
# @param [String] name # @param [String] name
# The resource name of the realm. Uses the form: # The resource name of the realm. Uses the form: `projects/`project`/locations/`
# `projects/`project`/locations/`location`/realms/`realm``. For # location`/realms/`realm``. For example, `projects/my-project/locations/`
# example, `projects/my-project/locations/`location`/realms/my-realm`. # location`/realms/my-realm`.
# @param [Google::Apis::GameservicesV1::Realm] realm_object # @param [Google::Apis::GameservicesV1::Realm] realm_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] update_mask # @param [String] update_mask
# Required. The update mask applies to the resource. For the `FieldMask` # Required. The update mask applies to the resource. For the `FieldMask`
# definition, see # definition, see https: //developers.google.com/protocol-buffers // /docs/
# https: # reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1145,8 +1115,8 @@ module Google
# Creates a new game server cluster in a given project and location. # Creates a new game server cluster in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm-id``. # locations/`location`/realms/`realm-id``.
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
# @param [String] game_server_cluster_id # @param [String] game_server_cluster_id
# Required. The ID of the game server cluster resource to be created. # Required. The ID of the game server cluster resource to be created.
@ -1182,8 +1152,8 @@ module Google
# Deletes a single game server cluster. # Deletes a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to delete. Uses the form: # Required. The name of the game server cluster to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerClusters/`cluster``. # projects/`project`/locations/`location`/gameServerClusters/`cluster``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1213,8 +1183,8 @@ module Google
# Gets details of a single game server cluster. # Gets details of a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to retrieve. Uses the form: # Required. The name of the game server cluster to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/`
# cluster``. # cluster``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1245,18 +1215,17 @@ module Google
# Lists game server clusters in a given project and location. # Lists game server clusters in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: "projects/`project`/
# "projects/`project`/locations/`location`/realms/`realm`". # locations/`location`/realms/`realm`".
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @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 # will pick an appropriate default. The server may return fewer items than
# requested. A caller should only rely on response's # requested. A caller should only rely on response's next_page_token to
# next_page_token to
# determine if there are more GameServerClusters left to be queried. # determine if there are more GameServerClusters left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, if # 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. # Patches a single game server cluster.
# @param [String] name # @param [String] name
# Required. The resource name of the game server cluster. Uses the form: # Required. The resource name of the game server cluster. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
# cluster``. # cluster``. For example, `projects/my-project/locations/`location`/realms/
# For example, # zanzibar/gameServerClusters/my-onprem-cluster`.
# `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
# my-onprem-cluster`.
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1337,11 +1302,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Previews creation of a new game server cluster in a given project and # Previews creation of a new game server cluster in a given project and location.
# location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm``. # locations/`location`/realms/`realm``.
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
# @param [String] game_server_cluster_id # @param [String] game_server_cluster_id
# Required. The ID of the game server cluster resource to be created. # 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. # Previews deletion of a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to delete. Uses the form: # Required. The name of the game server cluster to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerClusters/`cluster``. # projects/`project`/locations/`location`/gameServerClusters/`cluster``.
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] fields # @param [String] fields
@ -1414,21 +1378,17 @@ module Google
# Previews updating a GameServerCluster. # Previews updating a GameServerCluster.
# @param [String] name # @param [String] name
# Required. The resource name of the game server cluster. Uses the form: # Required. The resource name of the game server cluster. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
# cluster``. # cluster``. For example, `projects/my-project/locations/`location`/realms/
# For example, # zanzibar/gameServerClusters/my-onprem-cluster`.
# `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
# my-onprem-cluster`.
# @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1::GameServerCluster] game_server_cluster_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/solutions/gaming/ # @see https://cloud.google.com/solutions/gaming/
module GameservicesV1beta module GameservicesV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200630' REVISION = '20200721'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

@ -83,8 +83,7 @@ module Google
# @param [String] filter # @param [String] filter
# The standard list filter. # The standard list filter.
# @param [Boolean] include_unrevealed_locations # @param [Boolean] include_unrevealed_locations
# If true, the returned list will include locations which are not yet # If true, the returned list will include locations which are not yet revealed.
# revealed.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The standard list page size. # The standard list page size.
# @param [String] page_token # @param [String] page_token
@ -122,8 +121,8 @@ module Google
# Creates a new game server deployment in a given project and location. # Creates a new game server deployment in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object # @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object
# @param [String] deployment_id # @param [String] deployment_id
# Required. The ID of the game server delpoyment resource to be created. # Required. The ID of the game server delpoyment resource to be created.
@ -159,8 +158,8 @@ module Google
# Deletes a single game server deployment. # Deletes a single game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to delete. Uses the form: # Required. The name of the game server delpoyment to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -188,12 +187,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Retrieves information about the current state of the game server # Retrieves information about the current state of the game server deployment.
# deployment. Gathers all the Agones fleets and Agones autoscalers, # Gathers all the Agones fleets and Agones autoscalers, including fleets running
# including fleets running an older version of the game server deployment. # an older version of the game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment. Uses the form: # Required. The name of the game server delpoyment. Uses the form: `projects/`
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [Google::Apis::GameservicesV1beta::FetchDeploymentStateRequest] fetch_deployment_state_request_object # @param [Google::Apis::GameservicesV1beta::FetchDeploymentStateRequest] fetch_deployment_state_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -226,8 +225,8 @@ module Google
# Gets details of a single game server deployment. # Gets details of a single game server deployment.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to retrieve. Uses the form: # Required. The name of the game server delpoyment to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # projects/`project`/locations/`location`/gameServerDeployments/`deployment``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -255,22 +254,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource. # Gets the access control policy for a resource. Returns an empty policy if the
# Returns an empty policy if the resource exists and does not have a policy # resource exists and does not have a policy set.
# set.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being requested. # REQUIRED: The resource for which the policy is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version # @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. # Optional. The policy format version to be returned. Valid values are 0, 1, and
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # 3. Requests specifying an invalid value will be rejected. Requests for
# rejected. # policies with any conditional bindings must specify version 3. Policies
# Requests for policies with any conditional bindings must specify version 3. # without any conditional bindings may specify any valid value or leave the
# Policies without any conditional bindings may specify any valid value or # field unset. To learn which resources support conditions in their IAM policies,
# leave the field unset. # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
# To learn which resources support conditions in their IAM policies, see the # resource-policies).
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -301,8 +297,8 @@ module Google
# Gets details a single game server deployment rollout. # Gets details a single game server deployment rollout.
# @param [String] name # @param [String] name
# Required. The name of the game server delpoyment to retrieve. Uses the form: # Required. The name of the game server delpoyment to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -333,22 +329,21 @@ module Google
# Lists game server deployments in a given project and location. # Lists game server deployments in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @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 # will pick an appropriate default. The server may return fewer items than
# requested. A caller should only rely on response's # requested. A caller should only rely on response's next_page_token to
# next_page_token to
# determine if there are more GameServerDeployments left to be queried. # determine if there are more GameServerDeployments left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -382,17 +377,14 @@ module Google
# Patches a game server deployment. # Patches a game server deployment.
# @param [String] name # @param [String] name
# The resource name of the game server deployment. Uses the form: # The resource name of the game server deployment. Uses the form: `projects/`
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment``. # project`/locations/`location`/gameServerDeployments/`deployment``. For example,
# For example, # `projects/my-project/locations/global/gameServerDeployments/my-deployment`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment`.
# @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object # @param [Google::Apis::GameservicesV1beta::GameServerDeployment] game_server_deployment_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -426,23 +418,18 @@ module Google
# Previews the game server deployment rollout. This API does not mutate the # Previews the game server deployment rollout. This API does not mutate the
# rollout resource. # rollout resource.
# @param [String] name # @param [String] name
# The resource name of the game server deployment rollout. Uses the form: # The resource name of the game server deployment rollout. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`. For example, `projects/my-project/locations/global/
# For example, # gameServerDeployments/my-deployment/rollout`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
# rollout`.
# @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. Defaults to the # Optional. The target timestamp to compute the preview. Defaults to the
# immediately # immediately after the proposed rollout completes.
# after the proposed rollout completes.
# @param [String] update_mask # @param [String] update_mask
# Optional. Mask of fields to update. At least one path must be supplied in # Optional. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -475,11 +462,11 @@ module Google
end end
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # PERMISSION_DENIED` errors.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::GameservicesV1beta::SetIamPolicyRequest] set_iam_policy_request_object # @param [Google::Apis::GameservicesV1beta::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -510,15 +497,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Returns permissions that a caller has on the specified resource. # Returns permissions that a caller has on the specified resource. If the
# If the resource does not exist, this will return an empty set of # resource does not exist, this will return an empty set of permissions, not a `
# permissions, not a `NOT_FOUND` error. # NOT_FOUND` error. Note: This operation is designed to be used for building
# Note: This operation is designed to be used for building permission-aware # permission-aware UIs and command-line tools, not for authorization checking.
# UIs and command-line tools, not for authorization checking. This operation # This operation may "fail open" without warning.
# may "fail open" without warning.
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. # REQUIRED: The resource for which the policy detail is being requested. See the
# See the operation documentation for the appropriate value for this field. # operation documentation for the appropriate value for this field.
# @param [Google::Apis::GameservicesV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object # @param [Google::Apis::GameservicesV1beta::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -549,26 +535,21 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Patches a single game server deployment rollout. # Patches a single game server deployment rollout. The method will not return an
# The method will not return an error if the update does not affect any # error if the update does not affect any existing realms. For example - if the
# existing realms. For example - if the default_game_server_config is changed # default_game_server_config is changed but all existing realms use the override,
# but all existing realms use the override, that is valid. Similarly, if a # that is valid. Similarly, if a non existing realm is explicitly called out in
# non existing realm is explicitly called out in game_server_config_overrides # game_server_config_overrides field, that will also not result in an error.
# field, that will also not result in an error.
# @param [String] name # @param [String] name
# The resource name of the game server deployment rollout. Uses the form: # The resource name of the game server deployment rollout. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# rollout`. # rollout`. For example, `projects/my-project/locations/global/
# For example, # gameServerDeployments/my-deployment/rollout`.
# `projects/my-project/locations/`location`/gameServerDeployments/my-deployment/
# rollout`.
# @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object # @param [Google::Apis::GameservicesV1beta::GameServerDeploymentRollout] game_server_deployment_rollout_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -599,12 +580,12 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new game server config in a given project, location, and game # Creates a new game server config in a given project, location, and game server
# server deployment. Game server configs are immutable, and are not applied # deployment. Game server configs are immutable, and are not applied until
# until referenced in the game server deployment rollout resource. # referenced in the game server deployment rollout resource.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/`. # locations/`location`/gameServerDeployments/`deployment`/`.
# @param [Google::Apis::GameservicesV1beta::GameServerConfig] game_server_config_object # @param [Google::Apis::GameservicesV1beta::GameServerConfig] game_server_config_object
# @param [String] config_id # @param [String] config_id
# Required. The ID of the game server config resource to be created. # Required. The ID of the game server config resource to be created.
@ -638,11 +619,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a single game server config. The deletion will fail if the game # Deletes a single game server config. The deletion will fail if the game server
# server config is referenced in a game server deployment rollout. # config is referenced in a game server deployment rollout.
# @param [String] name # @param [String] name
# Required. The name of the game server config to delete. Uses the form: # Required. The name of the game server config to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# configs/`config``. # configs/`config``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -673,8 +654,8 @@ module Google
# Gets details of a single game server config. # Gets details of a single game server config.
# @param [String] name # @param [String] name
# Required. The name of the game server config to retrieve. Uses the form: # Required. The name of the game server config to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # projects/`project`/locations/`location`/gameServerDeployments/`deployment`/
# configs/`config``. # configs/`config``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -706,20 +687,18 @@ module Google
# Lists game server configs in a given project, location, and game server # Lists game server configs in a given project, location, and game server
# deployment. # deployment.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/gameServerDeployments/`deployment`/ # locations/`location`/gameServerDeployments/`deployment`/configs/*`.
# configs/*`.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. If unspecified, server # Optional. The maximum number of items to return. If unspecified, server will
# will pick an appropriate default. Server may return fewer items than # pick an appropriate default. Server may return fewer items than requested. A
# requested. A caller should only rely on response's # caller should only rely on response's next_page_token to determine if there
# next_page_token to # are more GameServerConfigs left to be queried.
# determine if there are more GameServerConfigs left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous list request, if # Optional. The next_page_token value returned from a previous list request, if
# any. # any.
@ -754,15 +733,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# 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`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -796,10 +773,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -829,9 +806,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -861,15 +837,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter
@ -910,8 +885,8 @@ module Google
# Creates a new realm in a given project and location. # Creates a new realm in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [Google::Apis::GameservicesV1beta::Realm] realm_object
# @param [String] realm_id # @param [String] realm_id
# Required. The ID of the realm resource to be created. # Required. The ID of the realm resource to be created.
@ -947,8 +922,8 @@ module Google
# Deletes a single realm. # Deletes a single realm.
# @param [String] name # @param [String] name
# Required. The name of the realm to delete. Uses the form: # Required. The name of the realm to delete. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm``. # locations/`location`/realms/`realm``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -978,8 +953,8 @@ module Google
# Gets details of a single realm. # Gets details of a single realm.
# @param [String] name # @param [String] name
# Required. The name of the realm to retrieve. Uses the form: # Required. The name of the realm to retrieve. Uses the form: `projects/`project`
# `projects/`project`/locations/`location`/realms/`realm``. # /locations/`location`/realms/`realm``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1009,22 +984,21 @@ module Google
# Lists realms in a given project and location. # Lists realms in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location``. # locations/`location``.
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The maximum number of items to return. If unspecified, server # Optional. The maximum number of items to return. If unspecified, server will
# will pick an appropriate default. Server may return fewer items than # pick an appropriate default. Server may return fewer items than requested. A
# requested. A caller should only rely on response's # caller should only rely on response's next_page_token to determine if there
# next_page_token to # are more realms left to be queried.
# determine if there are more realms left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, # Optional. The next_page_token value returned from a previous List request, if
# if any. # any.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1058,16 +1032,14 @@ module Google
# Patches a single realm. # Patches a single realm.
# @param [String] name # @param [String] name
# The resource name of the realm. Uses the form: # The resource name of the realm. Uses the form: `projects/`project`/locations/`
# `projects/`project`/locations/`location`/realms/`realm``. For # location`/realms/`realm``. For example, `projects/my-project/locations/`
# example, `projects/my-project/locations/`location`/realms/my-realm`. # location`/realms/my-realm`.
# @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [Google::Apis::GameservicesV1beta::Realm] realm_object
# @param [String] update_mask # @param [String] update_mask
# Required. The update mask applies to the resource. For the `FieldMask` # Required. The update mask applies to the resource. For the `FieldMask`
# definition, see # definition, see https: //developers.google.com/protocol-buffers // /docs/
# https: # reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1100,18 +1072,16 @@ module Google
# Previews patches to a single realm. # Previews patches to a single realm.
# @param [String] name # @param [String] name
# The resource name of the realm. Uses the form: # The resource name of the realm. Uses the form: `projects/`project`/locations/`
# `projects/`project`/locations/`location`/realms/`realm``. For # location`/realms/`realm``. For example, `projects/my-project/locations/`
# example, `projects/my-project/locations/`location`/realms/my-realm`. # location`/realms/my-realm`.
# @param [Google::Apis::GameservicesV1beta::Realm] realm_object # @param [Google::Apis::GameservicesV1beta::Realm] realm_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] update_mask # @param [String] update_mask
# Required. The update mask applies to the resource. For the `FieldMask` # Required. The update mask applies to the resource. For the `FieldMask`
# definition, see # definition, see https: //developers.google.com/protocol-buffers // /docs/
# https: # reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1145,8 +1115,8 @@ module Google
# Creates a new game server cluster in a given project and location. # Creates a new game server cluster in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm-id``. # locations/`location`/realms/`realm-id``.
# @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object
# @param [String] game_server_cluster_id # @param [String] game_server_cluster_id
# Required. The ID of the game server cluster resource to be created. # Required. The ID of the game server cluster resource to be created.
@ -1182,8 +1152,8 @@ module Google
# Deletes a single game server cluster. # Deletes a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to delete. Uses the form: # Required. The name of the game server cluster to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerClusters/`cluster``. # projects/`project`/locations/`location`/gameServerClusters/`cluster``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1213,8 +1183,8 @@ module Google
# Gets details of a single game server cluster. # Gets details of a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to retrieve. Uses the form: # Required. The name of the game server cluster to retrieve. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm-id`/gameServerClusters/`
# cluster``. # cluster``.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -1245,18 +1215,17 @@ module Google
# Lists game server clusters in a given project and location. # Lists game server clusters in a given project and location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: "projects/`project`/
# "projects/`project`/locations/`location`/realms/`realm`". # locations/`location`/realms/`realm`".
# @param [String] filter # @param [String] filter
# Optional. The filter to apply to list results. # Optional. The filter to apply to list results.
# @param [String] order_by # @param [String] order_by
# Optional. Specifies the ordering of results following syntax at # Optional. Specifies the ordering of results following syntax at https://cloud.
# https://cloud.google.com/apis/design/design_patterns#sorting_order. # google.com/apis/design/design_patterns#sorting_order.
# @param [Fixnum] page_size # @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 # will pick an appropriate default. The server may return fewer items than
# requested. A caller should only rely on response's # requested. A caller should only rely on response's next_page_token to
# next_page_token to
# determine if there are more GameServerClusters left to be queried. # determine if there are more GameServerClusters left to be queried.
# @param [String] page_token # @param [String] page_token
# Optional. The next_page_token value returned from a previous List request, if # 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. # Patches a single game server cluster.
# @param [String] name # @param [String] name
# Required. The resource name of the game server cluster. Uses the form: # Required. The resource name of the game server cluster. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
# cluster``. # cluster``. For example, `projects/my-project/locations/`location`/realms/
# For example, # zanzibar/gameServerClusters/my-onprem-cluster`.
# `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
# my-onprem-cluster`.
# @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1337,11 +1302,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Previews creation of a new game server cluster in a given project and # Previews creation of a new game server cluster in a given project and location.
# location.
# @param [String] parent # @param [String] parent
# Required. The parent resource name. Uses the form: # Required. The parent resource name. Uses the form: `projects/`project`/
# `projects/`project`/locations/`location`/realms/`realm``. # locations/`location`/realms/`realm``.
# @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object
# @param [String] game_server_cluster_id # @param [String] game_server_cluster_id
# Required. The ID of the game server cluster resource to be created. # 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. # Previews deletion of a single game server cluster.
# @param [String] name # @param [String] name
# Required. The name of the game server cluster to delete. Uses the form: # Required. The name of the game server cluster to delete. Uses the form: `
# `projects/`project`/locations/`location`/gameServerClusters/`cluster``. # projects/`project`/locations/`location`/gameServerClusters/`cluster``.
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] fields # @param [String] fields
@ -1414,21 +1378,17 @@ module Google
# Previews updating a GameServerCluster. # Previews updating a GameServerCluster.
# @param [String] name # @param [String] name
# Required. The resource name of the game server cluster. Uses the form: # Required. The resource name of the game server cluster. Uses the form: `
# `projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/` # projects/`project`/locations/`location`/realms/`realm`/gameServerClusters/`
# cluster``. # cluster``. For example, `projects/my-project/locations/`location`/realms/
# For example, # zanzibar/gameServerClusters/my-onprem-cluster`.
# `projects/my-project/locations/`location`/realms/zanzibar/gameServerClusters/
# my-onprem-cluster`.
# @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object # @param [Google::Apis::GameservicesV1beta::GameServerCluster] game_server_cluster_object
# @param [String] preview_time # @param [String] preview_time
# Optional. The target timestamp to compute the preview. # Optional. The target timestamp to compute the preview.
# @param [String] update_mask # @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in # Required. Mask of fields to update. At least one path must be supplied in this
# this field. For the `FieldMask` definition, see # field. For the `FieldMask` definition, see https: //developers.google.com/
# https: # protocol-buffers // /docs/reference/google.protobuf#fieldmask
# //developers.google.com/protocol-buffers
# // /docs/reference/google.protobuf#fieldmask
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/tag-manager # @see https://developers.google.com/tag-manager
module TagmanagerV2 module TagmanagerV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20200504' REVISION = '20200728'
# Delete your Google Tag Manager containers # Delete your Google Tag Manager containers
AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers' AUTH_TAGMANAGER_DELETE_CONTAINERS = 'https://www.googleapis.com/auth/tagmanager.delete.containers'

View File

@ -195,6 +195,11 @@ module Google
# @return [Array<Google::Apis::TagmanagerV2::Parameter>] # @return [Array<Google::Apis::TagmanagerV2::Parameter>]
attr_accessor :parameter 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. # GTM client's API relative path.
# Corresponds to the JSON property `path` # Corresponds to the JSON property `path`
# @return [String] # @return [String]
@ -236,6 +241,7 @@ module Google
@fingerprint = args[:fingerprint] if args.key?(:fingerprint) @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@parameter = args[:parameter] if args.key?(:parameter) @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) @path = args[:path] if args.key?(:path)
@priority = args[:priority] if args.key?(:priority) @priority = args[:priority] if args.key?(:priority)
@tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url)

View File

@ -405,6 +405,7 @@ module Google
property :name, as: 'name' property :name, as: 'name'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation 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 :path, as: 'path'
property :priority, as: 'priority' property :priority, as: 'priority'
property :tag_manager_url, as: 'tagManagerUrl' property :tag_manager_url, as: 'tagManagerUrl'

View File

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

View File

@ -47,13 +47,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -213,14 +211,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -236,8 +234,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -285,20 +283,18 @@ module Google
class Node class Node
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The type of hardware accelerators associated with this node. # The type of hardware accelerators associated with this node. Required.
# Required.
# Corresponds to the JSON property `acceleratorType` # Corresponds to the JSON property `acceleratorType`
# @return [String] # @return [String]
attr_accessor :accelerator_type attr_accessor :accelerator_type
# The CIDR block that the TPU node will use when selecting an IP address. # The CIDR block that the TPU node will use when selecting an IP address. This
# This CIDR block must be a /29 block; the Compute Engine networks API # CIDR block must be a /29 block; the Compute Engine networks API forbids a
# forbids a smaller block, and using a larger block would be wasteful (a # smaller block, and using a larger block would be wasteful (a node can only
# node can only consume one IP address). Errors will occur if the CIDR block # consume one IP address). Errors will occur if the CIDR block has already been
# has already been used for a currently existing TPU node, the CIDR block # used for a currently existing TPU node, the CIDR block conflicts with any
# conflicts with any subnetworks in the user's provided network, or the # subnetworks in the user's provided network, or the provided network is peered
# provided network is peered with another network that is using that CIDR # with another network that is using that CIDR block.
# block.
# Corresponds to the JSON property `cidrBlock` # Corresponds to the JSON property `cidrBlock`
# @return [String] # @return [String]
attr_accessor :cidr_block attr_accessor :cidr_block
@ -319,15 +315,13 @@ module Google
attr_accessor :health attr_accessor :health
# Output only. If this field is populated, it contains a description of why the # Output only. If this field is populated, it contains a description of why the
# TPU Node # TPU Node is unhealthy.
# is unhealthy.
# Corresponds to the JSON property `healthDescription` # Corresponds to the JSON property `healthDescription`
# @return [String] # @return [String]
attr_accessor :health_description attr_accessor :health_description
# Output only. DEPRECATED! Use network_endpoints instead. # Output only. DEPRECATED! Use network_endpoints instead. The network address
# The network address for the TPU Node as visible to Compute Engine # for the TPU Node as visible to Compute Engine instances.
# instances.
# Corresponds to the JSON property `ipAddress` # Corresponds to the JSON property `ipAddress`
# @return [String] # @return [String]
attr_accessor :ip_address attr_accessor :ip_address
@ -343,21 +337,21 @@ module Google
attr_accessor :name attr_accessor :name
# The name of a network they wish to peer the TPU node to. It must be a # 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 # preexisting Compute Engine network inside of the project on which this API has
# has been activated. If none is provided, "default" will be used. # been activated. If none is provided, "default" will be used.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# Output only. The network endpoints where TPU workers can be accessed and # Output only. The network endpoints where TPU workers can be accessed and sent
# sent work. It is recommended that Tensorflow clients of the node reach out # work. It is recommended that Tensorflow clients of the node reach out to the
# to the 0th entry in this map first. # 0th entry in this map first.
# Corresponds to the JSON property `networkEndpoints` # Corresponds to the JSON property `networkEndpoints`
# @return [Array<Google::Apis::TpuV1::NetworkEndpoint>] # @return [Array<Google::Apis::TpuV1::NetworkEndpoint>]
attr_accessor :network_endpoints attr_accessor :network_endpoints
# Output only. DEPRECATED! Use network_endpoints instead. # Output only. DEPRECATED! Use network_endpoints instead. The network port for
# The network port for the TPU Node as visible to Compute Engine instances. # the TPU Node as visible to Compute Engine instances.
# Corresponds to the JSON property `port` # Corresponds to the JSON property `port`
# @return [String] # @return [String]
attr_accessor :port attr_accessor :port
@ -368,10 +362,9 @@ module Google
attr_accessor :scheduling_config attr_accessor :scheduling_config
# Output only. The service account used to run the tensor flow services within # Output only. The service account used to run the tensor flow services within
# the node. # the node. To share resources, including Google Cloud Storage data, with the
# To share resources, including Google Cloud Storage data, with the # Tensorflow job running in the Node, this account must have permissions to that
# Tensorflow job running in the Node, this account must have permissions to # data.
# that data.
# Corresponds to the JSON property `serviceAccount` # Corresponds to the JSON property `serviceAccount`
# @return [String] # @return [String]
attr_accessor :service_account attr_accessor :service_account
@ -381,8 +374,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# The version of Tensorflow running in the Node. # The version of Tensorflow running in the Node. Required.
# Required.
# Corresponds to the JSON property `tensorflowVersion` # Corresponds to the JSON property `tensorflowVersion`
# @return [String] # @return [String]
attr_accessor :tensorflow_version attr_accessor :tensorflow_version
@ -417,47 +409,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::TpuV1::Status] # @return [Google::Apis::TpuV1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -485,10 +475,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :api_version attr_accessor :api_version
# [Output only] Identifies whether the user has requested cancellation # [Output only] Identifies whether the user has requested cancellation of the
# of the operation. Operations that have successfully been cancelled # operation. Operations that have successfully been cancelled have Operation.
# have Operation.error value with a google.rpc.Status.code of 1, # error value with a google.rpc.Status.code of 1, corresponding to `Code.
# corresponding to `Code.CANCELLED`. # CANCELLED`.
# Corresponds to the JSON property `cancelRequested` # Corresponds to the JSON property `cancelRequested`
# @return [Boolean] # @return [Boolean]
attr_accessor :cancel_requested attr_accessor :cancel_requested
@ -594,12 +584,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -608,15 +598,15 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :code 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. # message types for APIs to use.
# Corresponds to the JSON property `details` # Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -419,15 +419,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# 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`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -458,10 +456,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -491,9 +489,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -523,15 +520,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/tpu/ # @see https://cloud.google.com/tpu/
module TpuV1alpha1 module TpuV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20200527' REVISION = '20200728'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -47,13 +47,11 @@ module Google
end end
end end
# A generic empty message that you can re-use to avoid defining duplicated # A generic empty message that you can re-use to avoid defining duplicated empty
# empty messages in your APIs. A typical example is to use it as the request # messages in your APIs. A typical example is to use it as the request or the
# or the response type of an API method. For instance: # response type of an API method. For instance: service Foo ` rpc Bar(google.
# service Foo ` # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); # `Empty` is empty JSON object ````.
# `
# The JSON representation for `Empty` is empty JSON object ````.
class Empty class Empty
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -213,14 +211,14 @@ module Google
class Location class Location
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The friendly name for this location, typically a nearby city name. # The friendly name for this location, typically a nearby city name. For example,
# For example, "Tokyo". # "Tokyo".
# Corresponds to the JSON property `displayName` # Corresponds to the JSON property `displayName`
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# Cross-service attributes for the location. For example # Cross-service attributes for the location. For example `"cloud.googleapis.com/
# `"cloud.googleapis.com/region": "us-east1"` # region": "us-east1"`
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`
# @return [Hash<String,String>] # @return [Hash<String,String>]
attr_accessor :labels attr_accessor :labels
@ -236,8 +234,8 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# Resource name for the location, which may vary between implementations. # Resource name for the location, which may vary between implementations. For
# For example: `"projects/example-project/locations/us-east1"` # example: `"projects/example-project/locations/us-east1"`
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -285,20 +283,18 @@ module Google
class Node class Node
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The type of hardware accelerators associated with this node. # The type of hardware accelerators associated with this node. Required.
# Required.
# Corresponds to the JSON property `acceleratorType` # Corresponds to the JSON property `acceleratorType`
# @return [String] # @return [String]
attr_accessor :accelerator_type attr_accessor :accelerator_type
# The CIDR block that the TPU node will use when selecting an IP address. # The CIDR block that the TPU node will use when selecting an IP address. This
# This CIDR block must be a /29 block; the Compute Engine networks API # CIDR block must be a /29 block; the Compute Engine networks API forbids a
# forbids a smaller block, and using a larger block would be wasteful (a # smaller block, and using a larger block would be wasteful (a node can only
# node can only consume one IP address). Errors will occur if the CIDR block # consume one IP address). Errors will occur if the CIDR block has already been
# has already been used for a currently existing TPU node, the CIDR block # used for a currently existing TPU node, the CIDR block conflicts with any
# conflicts with any subnetworks in the user's provided network, or the # subnetworks in the user's provided network, or the provided network is peered
# provided network is peered with another network that is using that CIDR # with another network that is using that CIDR block.
# block.
# Corresponds to the JSON property `cidrBlock` # Corresponds to the JSON property `cidrBlock`
# @return [String] # @return [String]
attr_accessor :cidr_block attr_accessor :cidr_block
@ -319,15 +315,13 @@ module Google
attr_accessor :health attr_accessor :health
# Output only. If this field is populated, it contains a description of why the # Output only. If this field is populated, it contains a description of why the
# TPU Node # TPU Node is unhealthy.
# is unhealthy.
# Corresponds to the JSON property `healthDescription` # Corresponds to the JSON property `healthDescription`
# @return [String] # @return [String]
attr_accessor :health_description attr_accessor :health_description
# Output only. DEPRECATED! Use network_endpoints instead. # Output only. DEPRECATED! Use network_endpoints instead. The network address
# The network address for the TPU Node as visible to Compute Engine # for the TPU Node as visible to Compute Engine instances.
# instances.
# Corresponds to the JSON property `ipAddress` # Corresponds to the JSON property `ipAddress`
# @return [String] # @return [String]
attr_accessor :ip_address attr_accessor :ip_address
@ -343,21 +337,21 @@ module Google
attr_accessor :name attr_accessor :name
# The name of a network they wish to peer the TPU node to. It must be a # 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 # preexisting Compute Engine network inside of the project on which this API has
# has been activated. If none is provided, "default" will be used. # been activated. If none is provided, "default" will be used.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
# Output only. The network endpoints where TPU workers can be accessed and # Output only. The network endpoints where TPU workers can be accessed and sent
# sent work. It is recommended that Tensorflow clients of the node reach out # work. It is recommended that Tensorflow clients of the node reach out to the
# to the 0th entry in this map first. # 0th entry in this map first.
# Corresponds to the JSON property `networkEndpoints` # Corresponds to the JSON property `networkEndpoints`
# @return [Array<Google::Apis::TpuV1alpha1::NetworkEndpoint>] # @return [Array<Google::Apis::TpuV1alpha1::NetworkEndpoint>]
attr_accessor :network_endpoints attr_accessor :network_endpoints
# Output only. DEPRECATED! Use network_endpoints instead. # Output only. DEPRECATED! Use network_endpoints instead. The network port for
# The network port for the TPU Node as visible to Compute Engine instances. # the TPU Node as visible to Compute Engine instances.
# Corresponds to the JSON property `port` # Corresponds to the JSON property `port`
# @return [String] # @return [String]
attr_accessor :port attr_accessor :port
@ -368,10 +362,9 @@ module Google
attr_accessor :scheduling_config attr_accessor :scheduling_config
# Output only. The service account used to run the tensor flow services within # Output only. The service account used to run the tensor flow services within
# the node. # the node. To share resources, including Google Cloud Storage data, with the
# To share resources, including Google Cloud Storage data, with the # Tensorflow job running in the Node, this account must have permissions to that
# Tensorflow job running in the Node, this account must have permissions to # data.
# that data.
# Corresponds to the JSON property `serviceAccount` # Corresponds to the JSON property `serviceAccount`
# @return [String] # @return [String]
attr_accessor :service_account attr_accessor :service_account
@ -381,8 +374,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :state attr_accessor :state
# The version of Tensorflow running in the Node. # The version of Tensorflow running in the Node. Required.
# Required.
# Corresponds to the JSON property `tensorflowVersion` # Corresponds to the JSON property `tensorflowVersion`
# @return [String] # @return [String]
attr_accessor :tensorflow_version attr_accessor :tensorflow_version
@ -417,47 +409,45 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the value is `false`, it means the operation is still in progress. # If the value is `false`, it means the operation is still in progress. If `true`
# If `true`, the operation is completed, and either `error` or `response` is # , the operation is completed, and either `error` or `response` is available.
# available.
# Corresponds to the JSON property `done` # Corresponds to the JSON property `done`
# @return [Boolean] # @return [Boolean]
attr_accessor :done attr_accessor :done
alias_method :done?, :done alias_method :done?, :done
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::TpuV1alpha1::Status] # @return [Google::Apis::TpuV1alpha1::Status]
attr_accessor :error attr_accessor :error
# Service-specific metadata associated with the operation. It typically # Service-specific metadata associated with the operation. It typically contains
# contains progress information and common metadata such as create time. # progress information and common metadata such as create time. Some services
# Some services might not provide such metadata. Any method that returns a # might not provide such metadata. Any method that returns a long-running
# long-running operation should document the metadata type, if any. # operation should document the metadata type, if any.
# Corresponds to the JSON property `metadata` # Corresponds to the JSON property `metadata`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :metadata attr_accessor :metadata
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # originally returns it. If you use the default HTTP mapping, the `name` should
# `name` should be a resource name ending with `operations/`unique_id``. # be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# The normal response of the operation in case of success. If the original # The normal response of the operation in case of success. If the original
# method returns no data on success, such as `Delete`, the response is # method returns no data on success, such as `Delete`, the response is `google.
# `google.protobuf.Empty`. If the original method is standard # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
# `Get`/`Create`/`Update`, the response should be the resource. For other # the response should be the resource. For other methods, the response should
# methods, the response should have the type `XxxResponse`, where `Xxx` # have the type `XxxResponse`, where `Xxx` is the original method name. For
# is the original method name. For example, if the original method name # example, if the original method name is `TakeSnapshot()`, the inferred
# is `TakeSnapshot()`, the inferred response type is # response type is `TakeSnapshotResponse`.
# `TakeSnapshotResponse`.
# Corresponds to the JSON property `response` # Corresponds to the JSON property `response`
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :response attr_accessor :response
@ -485,10 +475,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :api_version attr_accessor :api_version
# [Output only] Identifies whether the user has requested cancellation # [Output only] Identifies whether the user has requested cancellation of the
# of the operation. Operations that have successfully been cancelled # operation. Operations that have successfully been cancelled have Operation.
# have Operation.error value with a google.rpc.Status.code of 1, # error value with a google.rpc.Status.code of 1, corresponding to `Code.
# corresponding to `Code.CANCELLED`. # CANCELLED`.
# Corresponds to the JSON property `cancelRequested` # Corresponds to the JSON property `cancelRequested`
# @return [Boolean] # @return [Boolean]
attr_accessor :cancel_requested attr_accessor :cancel_requested
@ -594,12 +584,12 @@ module Google
end end
end end
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for different
# different programming environments, including REST APIs and RPC APIs. It is # programming environments, including REST APIs and RPC APIs. It is used by [
# used by [gRPC](https://github.com/grpc). Each `Status` message contains # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
# three pieces of data: error code, error message, and error details. # data: error code, error message, and error details. You can find out more
# You can find out more about this error model and how to work with it in the # about this error model and how to work with it in the [API Design Guide](https:
# [API Design Guide](https://cloud.google.com/apis/design/errors). # //cloud.google.com/apis/design/errors).
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -608,15 +598,15 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :code 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. # message types for APIs to use.
# Corresponds to the JSON property `details` # Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>] # @return [Array<Hash<String,Object>>]
attr_accessor :details attr_accessor :details
# A developer-facing error message, which should be in English. Any # A developer-facing error message, which should be in English. Any user-facing
# user-facing error message should be localized and sent in the # error message should be localized and sent in the google.rpc.Status.details
# google.rpc.Status.details field, or localized by the client. # field, or localized by the client.
# Corresponds to the JSON property `message` # Corresponds to the JSON property `message`
# @return [String] # @return [String]
attr_accessor :message attr_accessor :message

View File

@ -419,15 +419,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Starts asynchronous cancellation on a long-running operation. The server # Starts asynchronous cancellation on a long-running operation. The server makes
# makes a best effort to cancel the operation, but success is not # a best effort to cancel the operation, but success is not guaranteed. If the
# guaranteed. If the server doesn't support this method, it returns # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use # Clients can use Operations.GetOperation or other methods to check whether the
# Operations.GetOperation or # cancellation succeeded or whether the operation completed despite cancellation.
# other methods to check whether the cancellation succeeded or whether the # On successful cancellation, the operation is not deleted; instead, it becomes
# operation completed despite cancellation. On successful cancellation, # an operation with an Operation.error value with a google.rpc.Status.code of 1,
# 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`. # corresponding to `Code.CANCELLED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be cancelled. # The name of the operation resource to be cancelled.
@ -458,10 +456,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes a long-running operation. This method indicates that the client is # Deletes a long-running operation. This method indicates that the client is no
# no longer interested in the operation result. It does not cancel the # longer interested in the operation result. It does not cancel the operation.
# operation. If the server doesn't support this method, it returns # If the server doesn't support this method, it returns `google.rpc.Code.
# `google.rpc.Code.UNIMPLEMENTED`. # UNIMPLEMENTED`.
# @param [String] name # @param [String] name
# The name of the operation resource to be deleted. # The name of the operation resource to be deleted.
# @param [String] fields # @param [String] fields
@ -491,9 +489,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the latest state of a long-running operation. Clients can use this # Gets the latest state of a long-running operation. Clients can use this method
# method to poll the operation result at intervals as recommended by the API # to poll the operation result at intervals as recommended by the API service.
# service.
# @param [String] name # @param [String] name
# The name of the operation resource. # The name of the operation resource.
# @param [String] fields # @param [String] fields
@ -523,15 +520,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists operations that match the specified filter in the request. If the # Lists operations that match the specified filter in the request. If the server
# server doesn't support this method, it returns `UNIMPLEMENTED`. # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
# NOTE: the `name` binding allows API services to override the binding # binding allows API services to override the binding to use different resource
# to use different resource name schemes, such as `users/*/operations`. To # name schemes, such as `users/*/operations`. To override the binding, API
# override the binding, API services can add a binding such as # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
# `"/v1/`name=users/*`/operations"` to their service configuration. # service configuration. For backwards compatibility, the default name includes
# For backwards compatibility, the default name includes the operations # the operations collection id, however overriding users must ensure the name
# collection id, however overriding users must ensure the name binding # binding is the parent resource, without the operations collection id.
# is the parent resource, without the operations collection id.
# @param [String] name # @param [String] name
# The name of the operation's parent resource. # The name of the operation's parent resource.
# @param [String] filter # @param [String] filter