Class: Google::Apis::ResourceviewsV1beta2::ResourceviewsService

Inherits:
Core::BaseService show all
Defined in:
generated/google/apis/resourceviews_v1beta2/service.rb

Overview

Google Compute Engine Instance Groups API

The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.

Examples:

require 'google/apis/resourceviews_v1beta2'

Resourceviews = Google::Apis::ResourceviewsV1beta2 # Alias the module
service = Resourceviews::ResourceviewsService.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

#initializeResourceviewsService

Returns a new instance of ResourceviewsService



52
53
54
55
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 52

def initialize
  super('https://www.googleapis.com/', 'resourceviews/v1beta2/projects/')
  @batch_path = 'batch'
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.



39
40
41
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 39

def key
  @key
end

#quota_userString

Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

Returns:

  • (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.



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

def quota_user
  @quota_user
end

#user_ipString

Returns IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Returns:

  • (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.



50
51
52
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 50

def user_ip
  @user_ip
end

Instance Method Details

#add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::Operation

Add resources to the view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • add_resources_request_object (Google::Apis::ResourceviewsV1beta2::AddResourcesRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 176

def add_zone_view_resources(project, zone, resource_view, add_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/addResources', options)
  command.request_representation = Google::Apis::ResourceviewsV1beta2::AddResourcesRequest::Representation
  command.request_object = add_resources_request_object
  command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.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

#delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::Operation

Delete a resource view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



219
220
221
222
223
224
225
226
227
228
229
230
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 219

def delete_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
  command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.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::ResourceviewsV1beta2::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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



85
86
87
88
89
90
91
92
93
94
95
96
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 85

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::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::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

#get_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::ResourceView

Get the information of a zonal resource view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



260
261
262
263
264
265
266
267
268
269
270
271
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 260

def get_zone_view(project, zone, resource_view, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}', options)
  command.response_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::ResourceView
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.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_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::GetServiceResponse

Get the service information of a resource view or a resource.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • resource_name (String)

    The name of the resource if user wants to get the service information of the resource.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



304
305
306
307
308
309
310
311
312
313
314
315
316
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 304

def get_zone_view_service(project, zone, resource_view, resource_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/getService', options)
  command.response_representation = Google::Apis::ResourceviewsV1beta2::GetServiceResponse::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::GetServiceResponse
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.nil?
  command.query['resourceName'] = resource_name unless resource_name.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_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::Operation

Create a resource view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view_object (Google::Apis::ResourceviewsV1beta2::ResourceView) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



345
346
347
348
349
350
351
352
353
354
355
356
357
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 345

def insert_zone_view(project, zone, resource_view_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{project}/zones/{zone}/resourceViews', options)
  command.request_representation = Google::Apis::ResourceviewsV1beta2::ResourceView::Representation
  command.request_object = resource_view_object
  command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::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_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::ResourceviewsV1beta2::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)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 132

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::ResourceviewsV1beta2::OperationList::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::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

#list_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::ListResourcesResponse

List the resources of the resource view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • format (String)

    The requested format of the return value. It can be URL or URL_PORT. A JSON object will be included in the response based on the format. The default format is NONE, which results in no JSON in the response.

  • list_state (String)

    The state of the instance to list. By default, it lists all instances.

  • max_results (Fixnum)

    Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

  • page_token (String)

    Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

  • service_name (String)

    The service name to return in the response. It is optional and if it is not set, all the service end points will be returned.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 448

def list_zone_view_resources(project, zone, resource_view, format: nil, list_state: nil, max_results: nil, page_token: nil, service_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{project}/zones/{zone}/resourceViews/{resourceView}/resources', options)
  command.response_representation = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::ListResourcesResponse
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.nil?
  command.query['format'] = format unless format.nil?
  command.query['listState'] = list_state unless list_state.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['serviceName'] = service_name unless service_name.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_views(project, zone, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::ZoneViewsList

List resource views.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • max_results (Fixnum)

    Maximum count of results to be returned. Acceptable values are 0 to 5000, inclusive. (Default: 5000)

  • page_token (String)

    Specifies a nextPageToken returned by a previous list request. This token can be used to request the next page of results from a previous list request.

  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



391
392
393
394
395
396
397
398
399
400
401
402
403
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 391

def list_zone_views(project, zone, 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}/resourceViews', options)
  command.response_representation = Google::Apis::ResourceviewsV1beta2::ZoneViewsList::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::ZoneViewsList
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.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

#remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::Operation

Remove resources from the view.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • remove_resources_request_object (Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



495
496
497
498
499
500
501
502
503
504
505
506
507
508
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 495

def remove_zone_view_resources(project, zone, resource_view, remove_resources_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/removeResources', options)
  command.request_representation = Google::Apis::ResourceviewsV1beta2::RemoveResourcesRequest::Representation
  command.request_object = remove_resources_request_object
  command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.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

#set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ResourceviewsV1beta2::Operation

Update the service information of a resource view or a resource.

Parameters:

  • project (String)

    The project name of the resource view.

  • zone (String)

    The zone name of the resource view.

  • resource_view (String)

    The name of the resource view.

  • set_service_request_object (Google::Apis::ResourceviewsV1beta2::SetServiceRequest) (defaults to: nil)
  • fields (String)

    Selector specifying which fields to include in a partial response.

  • quota_user (String)

    Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

  • user_ip (String)

    IP address of the site where the request originates. Use this if you want to enforce per-user limits.

  • options (Google::Apis::RequestOptions)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:



539
540
541
542
543
544
545
546
547
548
549
550
551
552
# File 'generated/google/apis/resourceviews_v1beta2/service.rb', line 539

def set_zone_view_service(project, zone, resource_view, set_service_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{project}/zones/{zone}/resourceViews/{resourceView}/setService', options)
  command.request_representation = Google::Apis::ResourceviewsV1beta2::SetServiceRequest::Representation
  command.request_object = set_service_request_object
  command.response_representation = Google::Apis::ResourceviewsV1beta2::Operation::Representation
  command.response_class = Google::Apis::ResourceviewsV1beta2::Operation
  command.params['project'] = project unless project.nil?
  command.params['zone'] = zone unless zone.nil?
  command.params['resourceView'] = resource_view unless resource_view.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