Autogenerated update (2018-12-13)

Delete:
- replicapoolupdater_v1beta1

Update:
- androidenterprise_v1
- bigquerydatatransfer_v1
- dialogflow_v2
- dialogflow_v2beta1
- runtimeconfig_v1beta1
- testing_v1
This commit is contained in:
Google APIs 2018-12-13 00:36:30 +00:00
parent 6ea1630e2e
commit 71debeb588
20 changed files with 288 additions and 1808 deletions

View File

@ -6214,6 +6214,16 @@
"/androidenterprise:v1/AuthenticationToken": authentication_token
"/androidenterprise:v1/AuthenticationToken/kind": kind
"/androidenterprise:v1/AuthenticationToken/token": token
"/androidenterprise:v1/AutoInstallConstraint": auto_install_constraint
"/androidenterprise:v1/AutoInstallConstraint/chargingStateConstraint": charging_state_constraint
"/androidenterprise:v1/AutoInstallConstraint/deviceIdleStateConstraint": device_idle_state_constraint
"/androidenterprise:v1/AutoInstallConstraint/networkTypeConstraint": network_type_constraint
"/androidenterprise:v1/AutoInstallPolicy": auto_install_policy
"/androidenterprise:v1/AutoInstallPolicy/autoInstallConstraint": auto_install_constraint
"/androidenterprise:v1/AutoInstallPolicy/autoInstallConstraint/auto_install_constraint": auto_install_constraint
"/androidenterprise:v1/AutoInstallPolicy/autoInstallMode": auto_install_mode
"/androidenterprise:v1/AutoInstallPolicy/autoInstallPriority": auto_install_priority
"/androidenterprise:v1/AutoInstallPolicy/minimumVersionCode": minimum_version_code
"/androidenterprise:v1/CollectionViewersListResponse": list_collection_viewers_response
"/androidenterprise:v1/CollectionsListResponse": list_collections_response
"/androidenterprise:v1/ConfigurationVariables": configuration_variables
@ -6421,6 +6431,7 @@
"/androidenterprise:v1/ProductPermissions/permission/permission": permission
"/androidenterprise:v1/ProductPermissions/productId": product_id
"/androidenterprise:v1/ProductPolicy": product_policy
"/androidenterprise:v1/ProductPolicy/autoInstallPolicy": auto_install_policy
"/androidenterprise:v1/ProductPolicy/productId": product_id
"/androidenterprise:v1/ProductPolicy/trackIds": track_ids
"/androidenterprise:v1/ProductPolicy/trackIds/track_id": track_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20181120'
REVISION = '20181205'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -529,6 +529,78 @@ module Google
end
end
# The Auto install constraint. Defines a set of restrictions for installation.
# At least one of the fields must be set.
class AutoInstallConstraint
include Google::Apis::Core::Hashable
# Charging state to constrain on.
# Corresponds to the JSON property `chargingStateConstraint`
# @return [String]
attr_accessor :charging_state_constraint
# The idle state of the device to constrain on.
# Corresponds to the JSON property `deviceIdleStateConstraint`
# @return [String]
attr_accessor :device_idle_state_constraint
# Network type to constrain on.
# Corresponds to the JSON property `networkTypeConstraint`
# @return [String]
attr_accessor :network_type_constraint
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charging_state_constraint = args[:charging_state_constraint] if args.key?(:charging_state_constraint)
@device_idle_state_constraint = args[:device_idle_state_constraint] if args.key?(:device_idle_state_constraint)
@network_type_constraint = args[:network_type_constraint] if args.key?(:network_type_constraint)
end
end
#
class AutoInstallPolicy
include Google::Apis::Core::Hashable
# The constraints for the install. Currently there can be at most one constraint.
# Corresponds to the JSON property `autoInstallConstraint`
# @return [Array<Google::Apis::AndroidenterpriseV1::AutoInstallConstraint>]
attr_accessor :auto_install_constraint
# The auto install mode. If unset defaults to AVAILABLE.
# Corresponds to the JSON property `autoInstallMode`
# @return [String]
attr_accessor :auto_install_mode
# The priority of the install, as an unsigned integer. Lower number means higher
# priority.
# Corresponds to the JSON property `autoInstallPriority`
# @return [Fixnum]
attr_accessor :auto_install_priority
# The minimum version of the app. If a lower version of the app is installed
# then the app will be auto-updated according to the auto-install constraints,
# instead of waiting for the regular auto-update.
# Corresponds to the JSON property `minimumVersionCode`
# @return [Fixnum]
attr_accessor :minimum_version_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_install_constraint = args[:auto_install_constraint] if args.key?(:auto_install_constraint)
@auto_install_mode = args[:auto_install_mode] if args.key?(:auto_install_mode)
@auto_install_priority = args[:auto_install_priority] if args.key?(:auto_install_priority)
@minimum_version_code = args[:minimum_version_code] if args.key?(:minimum_version_code)
end
end
# A configuration variables resource contains the managed configuration settings
# ID to be applied to a single user, as well as the variable set that is
# attributed to the user. The variable set will be used to replace placeholders
@ -2078,6 +2150,11 @@ module Google
class ProductPolicy
include Google::Apis::Core::Hashable
# The auto install policy for the product.
# Corresponds to the JSON property `autoInstallPolicy`
# @return [Google::Apis::AndroidenterpriseV1::AutoInstallPolicy]
attr_accessor :auto_install_policy
# The ID of the product. For example, "app:com.google.android.gm".
# Corresponds to the JSON property `productId`
# @return [String]
@ -2101,6 +2178,7 @@ module Google
# Update properties of this object
def update!(**args)
@auto_install_policy = args[:auto_install_policy] if args.key?(:auto_install_policy)
@product_id = args[:product_id] if args.key?(:product_id)
@track_ids = args[:track_ids] if args.key?(:track_ids)
@tracks = args[:tracks] if args.key?(:tracks)

View File

@ -118,6 +118,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AutoInstallConstraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoInstallPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConfigurationVariables
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -636,6 +648,26 @@ module Google
end
end
class AutoInstallConstraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charging_state_constraint, as: 'chargingStateConstraint'
property :device_idle_state_constraint, as: 'deviceIdleStateConstraint'
property :network_type_constraint, as: 'networkTypeConstraint'
end
end
class AutoInstallPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auto_install_constraint, as: 'autoInstallConstraint', class: Google::Apis::AndroidenterpriseV1::AutoInstallConstraint, decorator: Google::Apis::AndroidenterpriseV1::AutoInstallConstraint::Representation
property :auto_install_mode, as: 'autoInstallMode'
property :auto_install_priority, as: 'autoInstallPriority'
property :minimum_version_code, as: 'minimumVersionCode'
end
end
class ConfigurationVariables
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1034,6 +1066,8 @@ module Google
class ProductPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_install_policy, as: 'autoInstallPolicy', class: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy, decorator: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy::Representation
property :product_id, as: 'productId'
collection :track_ids, as: 'trackIds'
collection :tracks, as: 'tracks'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigquerydatatransferV1
VERSION = 'V1'
REVISION = '20181027'
REVISION = '20181211'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -681,7 +681,7 @@ module Google
# The resource name of the transfer config.
# Transfer config names have the form of
# `projects/`project_id`/location/`region`/transferConfigs/`config_id``.
# `projects/`project_id`/locations/`region`/transferConfigs/`config_id``.
# The name is automatically generated based on the config_id specified in
# CreateTransferConfigRequest along with project_id and region. If config_id
# is not provided, usually a uuid, even though it is not guaranteed or
@ -727,11 +727,7 @@ module Google
# @return [String]
attr_accessor :update_time
# Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used.
# May be negative. Note, that this identifier is not stable.
# It may change over time even for the same user.
# Deprecated. Unique ID of the user on whose behalf transfer is done.
# Corresponds to the JSON property `userId`
# @return [Fixnum]
attr_accessor :user_id
@ -902,11 +898,7 @@ module Google
# @return [String]
attr_accessor :update_time
# Output only. Unique ID of the user on whose behalf transfer is done.
# Applicable only to data sources that do not support service accounts.
# When set to 0, the data source service account credentials are used.
# May be negative. Note, that this identifier is not stable.
# It may change over time even for the same user.
# Deprecated. Unique ID of the user on whose behalf transfer is done.
# Corresponds to the JSON property `userId`
# @return [Fixnum]
attr_accessor :user_id

View File

@ -509,7 +509,7 @@ module Google
# @param [String] name
# The resource name of the transfer config.
# Transfer config names have the form of
# `projects/`project_id`/location/`region`/transferConfigs/`config_id``.
# `projects/`project_id`/locations/`region`/transferConfigs/`config_id``.
# The name is automatically generated based on the config_id specified in
# CreateTransferConfigRequest along with project_id and region. If config_id
# is not provided, usually a uuid, even though it is not guaranteed or
@ -923,7 +923,7 @@ module Google
# @param [String] name
# The resource name of the transfer config.
# Transfer config names have the form of
# `projects/`project_id`/location/`region`/transferConfigs/`config_id``.
# `projects/`project_id`/locations/`region`/transferConfigs/`config_id``.
# The name is automatically generated based on the config_id specified in
# CreateTransferConfigRequest along with project_id and region. If config_id
# is not provided, usually a uuid, even though it is not guaranteed or

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2
VERSION = 'V2'
REVISION = '20181121'
REVISION = '20181207'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3840,11 +3840,11 @@ module Google
attr_accessor :faq_question
# The system's confidence score that this Knowledge answer is a good match
# for this converstational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# for this conversational query.
# The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
# Note: The confidence score is likely to vary somewhat (possibly even for
# identical requests), as the underlying model is under constant
# improvement, we may deprecate it in the future. We recommend using
# improvement. It may be deprecated in the future. We recommend using
# `match_confidence_level` which should be generally more stable.
# Corresponds to the JSON property `matchConfidence`
# @return [Float]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow-enterprise/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20181121'
REVISION = '20181207'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -3602,11 +3602,11 @@ module Google
attr_accessor :faq_question
# The system's confidence score that this Knowledge answer is a good match
# for this converstational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# for this conversational query.
# The range is from 0.0 (completely uncertain) to 1.0 (completely certain).
# Note: The confidence score is likely to vary somewhat (possibly even for
# identical requests), as the underlying model is under constant
# improvement, we may deprecate it in the future. We recommend using
# improvement. It may be deprecated in the future. We recommend using
# `match_confidence_level` which should be generally more stable.
# Corresponds to the JSON property `matchConfidence`
# @return [Float]

View File

@ -1,45 +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/replicapoolupdater_v1beta1/service.rb'
require 'google/apis/replicapoolupdater_v1beta1/classes.rb'
require 'google/apis/replicapoolupdater_v1beta1/representations.rb'
module Google
module Apis
# Google Compute Engine Instance Group Updater API
#
# [Deprecated. Please use compute.instanceGroupManagers.update method.
# replicapoolupdater API will be disabled after December 30th, 2016] Updates
# groups of Compute Engine instances.
#
# @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
module ReplicapoolupdaterV1beta1
VERSION = 'V1beta1'
REVISION = '20161003'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
# View and manage replica pools
AUTH_REPLICAPOOL = 'https://www.googleapis.com/auth/replicapool'
# View replica pools
AUTH_REPLICAPOOL_READONLY = 'https://www.googleapis.com/auth/replicapool.readonly'
end
end
end

View File

@ -1,733 +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 ReplicapoolupdaterV1beta1
# Update of a single instance.
class InstanceUpdate
include Google::Apis::Core::Hashable
# Errors that occurred during the instance update.
# Corresponds to the JSON property `error`
# @return [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error]
attr_accessor :error
# Fully-qualified URL of the instance being updated.
# Corresponds to the JSON property `instance`
# @return [String]
attr_accessor :instance
# Status of the instance update. Possible values are:
# - "PENDING": The instance update is pending execution.
# - "ROLLING_FORWARD": The instance update is going forward.
# - "ROLLING_BACK": The instance update is being rolled back.
# - "PAUSED": The instance update is temporarily paused (inactive).
# - "ROLLED_OUT": The instance update is finished, the instance is running the
# new template.
# - "ROLLED_BACK": The instance update is finished, the instance has been
# reverted to the previous template.
# - "CANCELLED": The instance update is paused and no longer can be resumed,
# undefined in which template the instance is running.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@instance = args[:instance] if args.key?(:instance)
@status = args[:status] if args.key?(:status)
end
# Errors that occurred during the instance update.
class Error
include Google::Apis::Core::Hashable
# [Output Only] The array of errors encountered while processing this operation.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Error>]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
end
#
class Error
include Google::Apis::Core::Hashable
# [Output Only] The error type identifier for this error.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Indicates the field in the request that caused the error. This
# property is optional.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# [Output Only] An optional, human-readable error message.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
end
# Response returned by ListInstanceUpdates method.
class InstanceUpdateList
include Google::Apis::Core::Hashable
# Collection of requested instance updates.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate>]
attr_accessor :items
# [Output Only] Type of the resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# An operation resource, used to manage asynchronous API requests.
class Operation
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientOperationId`
# @return [String]
attr_accessor :client_operation_id
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
#
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# [Output Only] If errors occurred during processing of this operation, this
# field will be populated.
# Corresponds to the JSON property `error`
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error]
attr_accessor :error
#
# Corresponds to the JSON property `httpErrorMessage`
# @return [String]
attr_accessor :http_error_message
#
# Corresponds to the JSON property `httpErrorStatusCode`
# @return [Fixnum]
attr_accessor :http_error_status_code
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] The time that this operation was requested. This is in RFC 3339
# format.
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always replicapoolupdater#operation for
# Operation resources.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] Name of the resource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
#
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
#
# Corresponds to the JSON property `progress`
# @return [Fixnum]
attr_accessor :progress
# [Output Only] URL of the region where the operation resides.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] The time that this operation was started by the server. This is
# in RFC 3339 format.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# [Output Only] Status of the operation. Can be one of the following: "PENDING",
# "RUNNING", or "DONE".
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# [Output Only] An optional textual description of the current status of the
# operation.
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
# [Output Only] Unique target id which identifies a particular incarnation of
# the target.
# Corresponds to the JSON property `targetId`
# @return [Fixnum]
attr_accessor :target_id
# [Output Only] URL of the resource the operation is mutating.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
#
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
#
# Corresponds to the JSON property `warnings`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning>]
attr_accessor :warnings
# [Output Only] URL of the zone where the operation resides.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@end_time = args[:end_time] if args.key?(:end_time)
@error = args[:error] if args.key?(:error)
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
@http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
@id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@progress = args[:progress] if args.key?(:progress)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@start_time = args[:start_time] if args.key?(:start_time)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@target_id = args[:target_id] if args.key?(:target_id)
@target_link = args[:target_link] if args.key?(:target_link)
@user = args[:user] if args.key?(:user)
@warnings = args[:warnings] if args.key?(:warnings)
@zone = args[:zone] if args.key?(:zone)
end
# [Output Only] If errors occurred during processing of this operation, this
# field will be populated.
class Error
include Google::Apis::Core::Hashable
# [Output Only] The array of errors encountered while processing this operation.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Error>]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
end
#
class Error
include Google::Apis::Core::Hashable
# [Output Only] The error type identifier for this error.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Indicates the field in the request that caused the error. This
# property is optional.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# [Output Only] An optional, human-readable error message.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
#
class Warning
include Google::Apis::Core::Hashable
# [Output only] The warning type identifier for this warning.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output only] Metadata for this warning in key:value format.
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Datum>]
attr_accessor :data
# [Output only] Optional human-readable details for this warning.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] Metadata key for this warning.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] Metadata value for this warning.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
# Contains a list of Operation resources.
class OperationList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] The Operation resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::Operation>]
attr_accessor :items
# [Output Only] Type of resource. Always replicapoolupdater#operationList for
# OperationList resources.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncate.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# The following represents a resource describing a single update (rollout) of a
# group of instances to the given template.
class RollingUpdate
include Google::Apis::Core::Hashable
# Specifies the action to take for each instance within the instance group. This
# can be RECREATE which will recreate each instance and is only available for
# managed instance groups. It can also be REBOOT which performs a soft reboot
# for each instance and is only available for regular (non-managed) instance
# groups.
# Corresponds to the JSON property `actionType`
# @return [String]
attr_accessor :action_type
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional textual description of the resource; provided by the client when
# the resource is created.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] Errors that occurred during the rolling update.
# Corresponds to the JSON property `error`
# @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error]
attr_accessor :error
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Fully-qualified URL of an instance group being updated. Exactly one of
# instanceGroupManager and instanceGroup must be set.
# Corresponds to the JSON property `instanceGroup`
# @return [String]
attr_accessor :instance_group
# Fully-qualified URL of an instance group manager being updated. Exactly one of
# instanceGroupManager and instanceGroup must be set.
# Corresponds to the JSON property `instanceGroupManager`
# @return [String]
attr_accessor :instance_group_manager
# Fully-qualified URL of an instance template to apply.
# Corresponds to the JSON property `instanceTemplate`
# @return [String]
attr_accessor :instance_template
# [Output Only] Type of the resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Fully-qualified URL of the instance template encountered while starting the
# update.
# Corresponds to the JSON property `oldInstanceTemplate`
# @return [String]
attr_accessor :old_instance_template
# Parameters of the update process.
# Corresponds to the JSON property `policy`
# @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy]
attr_accessor :policy
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
# is no requirement that this be linear or support any granularity of operations.
# This should not be used to guess at when the update will be complete. This
# number should be monotonically increasing as the update progresses.
# Corresponds to the JSON property `progress`
# @return [Fixnum]
attr_accessor :progress
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Status of the update. Possible values are:
# - "ROLLING_FORWARD": The update is going forward.
# - "ROLLING_BACK": The update is being rolled back.
# - "PAUSED": The update is temporarily paused (inactive).
# - "ROLLED_OUT": The update is finished, all instances have been updated
# successfully.
# - "ROLLED_BACK": The update is finished, all instances have been reverted to
# the previous template.
# - "CANCELLED": The update is paused and no longer can be resumed, undefined
# how many instances are running in which template.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# [Output Only] An optional textual description of the current status of the
# update.
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
# [Output Only] User who requested the update, for example: user@example.com.
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action_type = args[:action_type] if args.key?(:action_type)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@error = args[:error] if args.key?(:error)
@id = args[:id] if args.key?(:id)
@instance_group = args[:instance_group] if args.key?(:instance_group)
@instance_group_manager = args[:instance_group_manager] if args.key?(:instance_group_manager)
@instance_template = args[:instance_template] if args.key?(:instance_template)
@kind = args[:kind] if args.key?(:kind)
@old_instance_template = args[:old_instance_template] if args.key?(:old_instance_template)
@policy = args[:policy] if args.key?(:policy)
@progress = args[:progress] if args.key?(:progress)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
@status_message = args[:status_message] if args.key?(:status_message)
@user = args[:user] if args.key?(:user)
end
# [Output Only] Errors that occurred during the rolling update.
class Error
include Google::Apis::Core::Hashable
# [Output Only] The array of errors encountered while processing this operation.
# Corresponds to the JSON property `errors`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Error>]
attr_accessor :errors
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@errors = args[:errors] if args.key?(:errors)
end
#
class Error
include Google::Apis::Core::Hashable
# [Output Only] The error type identifier for this error.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Indicates the field in the request that caused the error. This
# property is optional.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# [Output Only] An optional, human-readable error message.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@location = args[:location] if args.key?(:location)
@message = args[:message] if args.key?(:message)
end
end
end
# Parameters of the update process.
class Policy
include Google::Apis::Core::Hashable
# Number of instances to update before the updater pauses the rolling update.
# Corresponds to the JSON property `autoPauseAfterInstances`
# @return [Fixnum]
attr_accessor :auto_pause_after_instances
# The maximum amount of time that the updater waits for a HEALTHY state after
# all of the update steps are complete. If the HEALTHY state is not received
# before the deadline, the instance update is considered a failure.
# Corresponds to the JSON property `instanceStartupTimeoutSec`
# @return [Fixnum]
attr_accessor :instance_startup_timeout_sec
# The maximum number of instances that can be updated simultaneously. An
# instance update is considered complete only after the instance is restarted
# and initialized.
# Corresponds to the JSON property `maxNumConcurrentInstances`
# @return [Fixnum]
attr_accessor :max_num_concurrent_instances
# The maximum number of instance updates that can fail before the group update
# is considered a failure. An instance update is considered failed if any of its
# update actions (e.g. Stop call on Instance resource in Rolling Reboot) failed
# with permanent failure, or if the instance is in an UNHEALTHY state after it
# finishes all of the update actions.
# Corresponds to the JSON property `maxNumFailedInstances`
# @return [Fixnum]
attr_accessor :max_num_failed_instances
# The minimum amount of time that the updater spends to update each instance.
# Update time is the time it takes to complete all update actions (e.g. Stop
# call on Instance resource in Rolling Reboot), reboot, and initialize. If the
# instance update finishes early, the updater pauses for the remainder of the
# time before it starts the next instance update.
# Corresponds to the JSON property `minInstanceUpdateTimeSec`
# @return [Fixnum]
attr_accessor :min_instance_update_time_sec
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_pause_after_instances = args[:auto_pause_after_instances] if args.key?(:auto_pause_after_instances)
@instance_startup_timeout_sec = args[:instance_startup_timeout_sec] if args.key?(:instance_startup_timeout_sec)
@max_num_concurrent_instances = args[:max_num_concurrent_instances] if args.key?(:max_num_concurrent_instances)
@max_num_failed_instances = args[:max_num_failed_instances] if args.key?(:max_num_failed_instances)
@min_instance_update_time_sec = args[:min_instance_update_time_sec] if args.key?(:min_instance_update_time_sec)
end
end
end
# Response returned by List method.
class RollingUpdateList
include Google::Apis::Core::Hashable
# Collection of requested updates.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate>]
attr_accessor :items
# [Output Only] Type of the resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] The fully qualified URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
end
end
end

View File

@ -1,294 +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 ReplicapoolupdaterV1beta1
class InstanceUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceUpdateList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class OperationList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RollingUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class RollingUpdateList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Representation
property :instance, as: 'instance'
property :status, as: 'status'
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Error::Error::Representation
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :location, as: 'location'
property :message, as: 'message'
end
end
end
end
class InstanceUpdateList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate, decorator: Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdate::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_operation_id, as: 'clientOperationId'
property :creation_timestamp, as: 'creationTimestamp'
property :end_time, as: 'endTime'
property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Representation
property :http_error_message, as: 'httpErrorMessage'
property :http_error_status_code, as: 'httpErrorStatusCode'
property :id, :numeric_string => true, as: 'id'
property :insert_time, as: 'insertTime'
property :kind, as: 'kind'
property :name, as: 'name'
property :operation_type, as: 'operationType'
property :progress, as: 'progress'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :start_time, as: 'startTime'
property :status, as: 'status'
property :status_message, as: 'statusMessage'
property :target_id, :numeric_string => true, as: 'targetId'
property :target_link, as: 'targetLink'
property :user, as: 'user'
collection :warnings, as: 'warnings', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Representation
property :zone, as: 'zone'
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Error::Error::Representation
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :location, as: 'location'
property :message, as: 'message'
end
end
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Datum, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class OperationList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::Operation, decorator: Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class RollingUpdate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action_type, as: 'actionType'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :error, as: 'error', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Representation
property :id, as: 'id'
property :instance_group, as: 'instanceGroup'
property :instance_group_manager, as: 'instanceGroupManager'
property :instance_template, as: 'instanceTemplate'
property :kind, as: 'kind'
property :old_instance_template, as: 'oldInstanceTemplate'
property :policy, as: 'policy', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy::Representation
property :progress, as: 'progress'
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :status_message, as: 'statusMessage'
property :user, as: 'user'
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :errors, as: 'errors', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Error, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Error::Error::Representation
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :location, as: 'location'
property :message, as: 'message'
end
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_pause_after_instances, as: 'autoPauseAfterInstances'
property :instance_startup_timeout_sec, as: 'instanceStartupTimeoutSec'
property :max_num_concurrent_instances, as: 'maxNumConcurrentInstances'
property :max_num_failed_instances, as: 'maxNumFailedInstances'
property :min_instance_update_time_sec, as: 'minInstanceUpdateTimeSec'
end
end
end
class RollingUpdateList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate, decorator: Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
end
end
end

View File

@ -1,488 +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 ReplicapoolupdaterV1beta1
# Google Compute Engine Instance Group Updater API
#
# [Deprecated. Please use compute.instanceGroupManagers.update method.
# replicapoolupdater API will be disabled after December 30th, 2016] Updates
# groups of Compute Engine instances.
#
# @example
# require 'google/apis/replicapoolupdater_v1beta1'
#
# Replicapoolupdater = Google::Apis::ReplicapoolupdaterV1beta1 # Alias the module
# service = Replicapoolupdater::ReplicapoolupdaterService.new
#
# @see https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
class ReplicapoolupdaterService < 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]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'replicapoolupdater/v1beta1/projects/')
@batch_path = 'batch/replicapoolupdater/v1beta1'
end
# Cancels an update. The update must be PAUSED before it can be cancelled. This
# has no effect if the update is already CANCELLED.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/cancel', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns information about an update.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate]
#
# @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_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Inserts and starts a new update.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate] rolling_update_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_rolling_update(project, zone, rolling_update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates', options)
command.request_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Representation
command.request_object = rolling_update_object
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists recent updates for a given managed instance group, in reverse
# chronological order and paginated format.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] filter
# Optional. Filter expression for filtering listed resources.
# @param [Fixnum] max_results
# Optional. Maximum count of results to be returned. Maximum value is 500 and
# default value is 500.
# @param [String] page_token
# Optional. Tag returned by a previous list request truncated by maxResults.
# Used to continue a previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList]
#
# @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_rolling_updates(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Lists the current status for each instance within a given update.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] filter
# Optional. Filter expression for filtering listed resources.
# @param [Fixnum] max_results
# Optional. Maximum count of results to be returned. Maximum value is 500 and
# default value is 500.
# @param [String] page_token
# Optional. Tag returned by a previous list request truncated by maxResults.
# Used to continue a previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_instance_updates(project, zone, rolling_update, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/instanceUpdates', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no effect
# if invoked when the state of the update is PAUSED.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def pause_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/pause', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Continues an update in PAUSED state. Has no effect if invoked when the state
# of the update is ROLLED_OUT.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def resume_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/resume', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect
# if invoked when the state of the update is ROLLED_BACK.
# @param [String] project
# The Google Developers Console project name.
# @param [String] zone
# The name of the zone in which the update's target resides.
# @param [String] rolling_update
# The name of the update.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def rollback_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/rollingUpdates/{rollingUpdate}/rollback', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['rollingUpdate'] = rolling_update unless rolling_update.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified zone-specific operation resource.
# @param [String] project
# Name of the project scoping this request.
# @param [String] zone
# Name of the zone scoping this request.
# @param [String] operation
# Name of the operation resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/operations/{operation}', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::Operation::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['operation'] = operation unless operation.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the list of Operation resources contained within the specified zone.
# @param [String] project
# Name of the project scoping this request.
# @param [String] zone
# Name of the zone scoping this request.
# @param [String] filter
# Optional. Filter expression for filtering listed resources.
# @param [Fixnum] max_results
# Optional. Maximum count of results to be returned. Maximum value is 500 and
# default value is 500.
# @param [String] page_token
# Optional. Tag returned by a previous list request truncated by maxResults.
# Used to continue a previous list request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ReplicapoolupdaterV1beta1::OperationList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ReplicapoolupdaterV1beta1::OperationList]
#
# @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_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/zones/{zone}/operations', options)
command.response_representation = Google::Apis::ReplicapoolupdaterV1beta1::OperationList::Representation
command.response_class = Google::Apis::ReplicapoolupdaterV1beta1::OperationList
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.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?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end
end
end

View File

@ -28,7 +28,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
module RuntimeconfigV1beta1
VERSION = 'V1beta1'
REVISION = '20181105'
REVISION = '20181210'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -719,7 +719,9 @@ module Google
# The binary value of the variable. The length of the value must be less
# than 4096 bytes. Empty values are also accepted. The value must be
# base64 encoded. Only one of `value` or `text` can be set.
# base64 encoded, and must comply with IETF RFC4648
# (https://www.ietf.org/rfc/rfc4648.txt). Only one of `value` or `text`
# can be set.
# Corresponds to the JSON property `value`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20181127'
REVISION = '20181211'
# 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

@ -48,7 +48,7 @@ module Google
@batch_path = 'batch'
end
# Request the details of an Android application APK.
# Gets the details of an Android application APK.
# @param [Google::Apis::TestingV1::FileReference] file_reference_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -117,7 +117,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Request to run a matrix of tests according to the given specifications.
# Creates and runs a matrix of tests according to the given specifications.
# Unsupported environments will be returned in the state UNSUPPORTED.
# Matrices are limited to at most 200 supported executions.
# May return any of the following canonical error codes:
@ -163,7 +163,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Check the status of a test matrix.
# Checks the status of a test matrix.
# May return any of the following canonical error codes:
# - PERMISSION_DENIED - if the user is not authorized to read project
# - INVALID_ARGUMENT - if the request is malformed
@ -200,17 +200,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Get the catalog of supported test environments.
# Gets the catalog of supported test environments.
# May return any of the following canonical error codes:
# - INVALID_ARGUMENT - if the request is malformed
# - NOT_FOUND - if the environment type does not exist
# - INTERNAL - if an internal error occurred
# @param [String] environment_type
# The type of environment that should be listed.
# Required
# Required. The type of environment that should be listed.
# @param [String] project_id
# For authorization, the cloud project requesting the TestEnvironmentCatalog.
# Optional
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user