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/parameter": parameter
"/tagmanager:v2/Client/parameter/parameter": parameter
"/tagmanager:v2/Client/parentFolderId": parent_folder_id
"/tagmanager:v2/Client/path": path
"/tagmanager:v2/Client/priority": priority
"/tagmanager:v2/Client/tagManagerUrl": tag_manager_url

View File

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

View File

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

View File

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

View File

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

View File

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

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/
module GameservicesV1
VERSION = 'V1'
REVISION = '20200630'
REVISION = '20200721'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

File diff suppressed because it is too large Load Diff

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

@ -405,6 +405,7 @@ module Google
property :name, as: 'name'
collection :parameter, as: 'parameter', class: Google::Apis::TagmanagerV2::Parameter, decorator: Google::Apis::TagmanagerV2::Parameter::Representation
property :parent_folder_id, as: 'parentFolderId'
property :path, as: 'path'
property :priority, as: 'priority'
property :tag_manager_url, as: 'tagManagerUrl'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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