2015-06-23 23:05:46 +00:00
|
|
|
# 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
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class InstanceUpdateList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Warning
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
|
|
|
|
class Datum
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Policy
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class RollingUpdateList
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class InstanceUpdate
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :code, as: 'code'
|
|
|
|
property :location, as: 'location'
|
|
|
|
property :message, as: 'message'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class InstanceUpdateList
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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, 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, 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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :code, as: 'code'
|
|
|
|
property :location, as: 'location'
|
|
|
|
property :message, as: 'message'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Warning
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :key, as: 'key'
|
|
|
|
property :value, as: 'value'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class RollingUpdate
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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'
|
2015-07-31 00:05:47 +00:00
|
|
|
property :old_instance_template, as: 'oldInstanceTemplate'
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
|
|
property :code, as: 'code'
|
|
|
|
property :location, as: 'location'
|
|
|
|
property :message, as: 'message'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Policy
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|
2015-06-25 23:12:26 +00:00
|
|
|
# @private
|
2015-06-23 23:05:46 +00:00
|
|
|
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
|