Class: Google::Apis::ReplicapoolupdaterV1beta1::ReplicapoolupdaterService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
generated/google/apis/replicapoolupdater_v1beta1/service.rb

Overview

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.

Examples:

require 'google/apis/replicapoolupdater_v1beta1'

Replicapoolupdater = Google::Apis::ReplicapoolupdaterV1beta1 # Alias the module
service = Replicapoolupdater::ReplicapoolupdaterService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeReplicapoolupdaterService

Returns a new instance of ReplicapoolupdaterService



51
52
53
54
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 51

def initialize
  super('https://www.googleapis.com/', 'replicapoolupdater/v1beta1/projects/')
  @batch_path = 'batch/replicapoolupdater/v1beta1'
end

Instance Attribute Details

#keyString

Returns 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.

Returns:

  • (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.



40
41
42
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 40

def key
  @key
end

#quota_userString

Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

Returns:

  • (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.



45
46
47
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 45

def quota_user
  @quota_user
end

#user_ipString

Returns Deprecated. Please use quotaUser instead.

Returns:

  • (String)

    Deprecated. Please use quotaUser instead.



49
50
51
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 49

def user_ip
  @user_ip
end

Instance Method Details

#cancel_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

Cancels an update. The update must be PAUSED before it can be cancelled. This has no effect if the update is already CANCELLED.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



83
84
85
86
87
88
89
90
91
92
93
94
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 83

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

#get_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate

Returns information about an update.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



122
123
124
125
126
127
128
129
130
131
132
133
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 122

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

#get_zone_operation(project, zone, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

Retrieves the specified zone-specific operation resource.

Parameters:

  • project (String)

    Name of the project scoping this request.

  • zone (String)

    Name of the zone scoping this request.

  • operation (String)

    Name of the operation resource to return.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



418
419
420
421
422
423
424
425
426
427
428
429
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 418

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

#insert_rolling_update(project, zone, rolling_update_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

Inserts and starts a new update.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update_object (Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 160

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

#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) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::InstanceUpdateList

Lists the current status for each instance within a given update.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • filter (String)

    Optional. Filter expression for filtering listed resources.

  • max_results (Fixnum)

    Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.

  • page_token (String)

    Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 256

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

#list_rolling_updates(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdateList

Lists recent updates for a given managed instance group, in reverse chronological order and paginated format.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • filter (String)

    Optional. Filter expression for filtering listed resources.

  • max_results (Fixnum)

    Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.

  • page_token (String)

    Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



207
208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 207

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

#list_zone_operations(project, zone, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::OperationList

Retrieves the list of Operation resources contained within the specified zone.

Parameters:

  • project (String)

    Name of the project scoping this request.

  • zone (String)

    Name of the zone scoping this request.

  • filter (String)

    Optional. Filter expression for filtering listed resources.

  • max_results (Fixnum)

    Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.

  • page_token (String)

    Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



463
464
465
466
467
468
469
470
471
472
473
474
475
476
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 463

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

#pause_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no effect if invoked when the state of the update is PAUSED.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



299
300
301
302
303
304
305
306
307
308
309
310
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 299

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

#resume_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

Continues an update in PAUSED state. Has no effect if invoked when the state of the update is ROLLED_OUT.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



339
340
341
342
343
344
345
346
347
348
349
350
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 339

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

#rollback_rolling_update(project, zone, rolling_update, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ReplicapoolupdaterV1beta1::Operation

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.

Parameters:

  • project (String)

    The Google Developers Console project name.

  • zone (String)

    The name of the zone in which the update's target resides.

  • rolling_update (String)

    The name of the update.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



379
380
381
382
383
384
385
386
387
388
389
390
# File 'generated/google/apis/replicapoolupdater_v1beta1/service.rb', line 379

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