Class: Google::Apis::CloudassetV1p7beta1::CloudAssetService

Inherits:
Google::Apis::Core::BaseService
  • Object
show all
Defined in:
lib/google/apis/cloudasset_v1p7beta1/service.rb

Overview

Cloud Asset API

The cloud asset API manages the history and inventory of cloud resources.

Examples:

require 'google/apis/cloudasset_v1p7beta1'

Cloudasset = Google::Apis::CloudassetV1p7beta1 # Alias the module
service = Cloudasset::CloudAssetService.new

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCloudAssetService

Returns a new instance of CloudAssetService.



45
46
47
48
49
50
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 45

def initialize
  super('https://cloudasset.googleapis.com/', '',
        client_name: 'google-apis-cloudasset_v1p7beta1',
        client_version: Google::Apis::CloudassetV1p7beta1::GEM_VERSION)
  @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.



38
39
40
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 38

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.

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.



43
44
45
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 43

def quota_user
  @quota_user
end

Instance Method Details

#create_folder_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Creates an export setting.

Parameters:

  • parent (String)

    Required. Name of the inventory settings where this export setting should be created in. The format will be: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/inventorySettings organizations/ORGANIZATION_NUMBER/ inventorySettings Currently a maximum of 100 export setting can be created under each [InventorySettings].

  • create_export_setting_request_object (Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



186
187
188
189
190
191
192
193
194
195
196
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 186

def create_folder_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1p7beta1/{+parent}/exportSettings', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest::Representation
  command.request_object = create_export_setting_request_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_organization_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Creates an export setting.

Parameters:

  • parent (String)

    Required. Name of the inventory settings where this export setting should be created in. The format will be: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/inventorySettings organizations/ORGANIZATION_NUMBER/ inventorySettings Currently a maximum of 100 export setting can be created under each [InventorySettings].

  • create_export_setting_request_object (Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



407
408
409
410
411
412
413
414
415
416
417
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 407

def create_organization_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1p7beta1/{+parent}/exportSettings', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest::Representation
  command.request_object = create_export_setting_request_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#create_project_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Creates an export setting.

Parameters:

  • parent (String)

    Required. Name of the inventory settings where this export setting should be created in. The format will be: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/inventorySettings organizations/ORGANIZATION_NUMBER/ inventorySettings Currently a maximum of 100 export setting can be created under each [InventorySettings].

  • create_export_setting_request_object (Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



628
629
630
631
632
633
634
635
636
637
638
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 628

def create_project_inventory_setting_export_setting(parent, create_export_setting_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1p7beta1/{+parent}/exportSettings', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::CreateExportSettingRequest::Representation
  command.request_object = create_export_setting_request_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_folder_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty

Deletes an export setting.

Parameters:

  • name (String)

    Required. The name of the export setting and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



222
223
224
225
226
227
228
229
230
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 222

def delete_folder_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::Empty::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::Empty
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_organization_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty

Deletes an export setting.

Parameters:

  • name (String)

    Required. The name of the export setting and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



443
444
445
446
447
448
449
450
451
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 443

def delete_organization_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::Empty::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::Empty
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#delete_project_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty

Deletes an export setting.

Parameters:

  • name (String)

    Required. The name of the export setting and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



664
665
666
667
668
669
670
671
672
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 664

def delete_project_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:delete, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::Empty::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::Empty
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#export_asset_updates(parent, export_asset_updates_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Operation

Exports asset updates within a time window to a given Cloud Storage location/ BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a google.cloud.asset.v1p7beta1. Asset in the JSON format; for BigQuery table destinations, the output table stores the fields in asset proto as columns. This API implements the google. longrunning.Operation API , which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.

Parameters:

  • parent (String)

    Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as " projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").

  • export_asset_updates_request_object (Google::Apis::CloudassetV1p7beta1::ExportAssetUpdatesRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



824
825
826
827
828
829
830
831
832
833
834
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 824

def export_asset_updates(parent, export_asset_updates_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1p7beta1/{+parent}:exportAssetUpdates', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::ExportAssetUpdatesRequest::Representation
  command.request_object = export_asset_updates_request_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::Operation::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Operation

Exports assets with time and resource types to a given Cloud Storage location/ BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a google.cloud.asset.v1p7beta1. Asset in the JSON format; for BigQuery table destinations, the output table stores the fields in asset proto as columns. This API implements the google. longrunning.Operation API , which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.

Parameters:

  • parent (String)

    Required. The relative name of the root asset. This can only be an organization number (such as "organizations/123"), a project ID (such as " projects/my-project-id"), or a project number (such as "projects/12345"), or a folder number (such as "folders/123").

  • export_assets_request_object (Google::Apis::CloudassetV1p7beta1::ExportAssetsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



868
869
870
871
872
873
874
875
876
877
878
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 868

def export_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:post, 'v1p7beta1/{+parent}:exportAssets', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::ExportAssetsRequest::Representation
  command.request_object = export_assets_request_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::Operation::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::Operation
  command.params['parent'] = parent unless parent.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Gets details about an export setting.

Parameters:

  • name (String)

    Required. The name of the [ExportSetting] and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



256
257
258
259
260
261
262
263
264
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 256

def get_folder_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_folder_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings

Gets details about an inventory setting.

Parameters:

  • name (String)

    Required. The name of the [InventorySettings] which has the format of: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/ inventorySettings organizations/ORGANIZATION_NUMBER/inventorySettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



151
152
153
154
155
156
157
158
159
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 151

def get_folder_inventory_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::InventorySettings::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::InventorySettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Gets details about an export setting.

Parameters:

  • name (String)

    Required. The name of the [ExportSetting] and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



477
478
479
480
481
482
483
484
485
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 477

def get_organization_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_organization_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings

Gets details about an inventory setting.

Parameters:

  • name (String)

    Required. The name of the [InventorySettings] which has the format of: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/ inventorySettings organizations/ORGANIZATION_NUMBER/inventorySettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



372
373
374
375
376
377
378
379
380
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 372

def get_organization_inventory_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::InventorySettings::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::InventorySettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Gets details about an export setting.

Parameters:

  • name (String)

    Required. The name of the [ExportSetting] and it must be in the format of: projects/PROJECT_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID folders/FOLDER_NUMBER/inventorySettings/exportSettings/EXPORT_SETTING_ID organizations/ORGANIZATION_NUMBER/inventorySettings/exportSettings/ EXPORT_SETTING_ID

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



698
699
700
701
702
703
704
705
706
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 698

def get_project_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#get_project_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings

Gets details about an inventory setting.

Parameters:

  • name (String)

    Required. The name of the [InventorySettings] which has the format of: projects/PROJECT_NUMBER/inventorySettings folders/FOLDER_NUMBER/ inventorySettings organizations/ORGANIZATION_NUMBER/inventorySettings

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



593
594
595
596
597
598
599
600
601
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 593

def get_project_inventory_settings(name, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+name}', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::InventorySettings::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::InventorySettings
  command.params['name'] = name unless name.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_asset_updates(parent, asset_names: nil, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, update_time_window_time_window_end_time: nil, update_time_window_time_window_start_time: nil, update_time_window_type: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ListAssetUpdatesResponse

Lists asset updates within a time window and returns paged results in response.

Parameters:

  • parent (String)

    Required. Name of the organization or project the assets belong to. Format: " organizations/[organization-number]" (such as "organizations/123"), "projects/[ project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

  • asset_names (Array<String>, String) (defaults to: nil)

    A list of the full names of the assets to list the updates for. See: https:// cloud.google.com/asset-inventory/docs/resource-name-format Example: //compute. googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. If specified, only assets in the list will be returned. At most one of asset_types and asset_names should be specified. If neither is specified, all assets under the parent will be returned.

  • asset_types (Array<String>, String) (defaults to: nil)

    A list of asset types to list the updates for. For example: "compute. googleapis.com/Disk". Regular expression is also supported. For example: * " compute.googleapis.com." snapshots resources whose asset type starts with " compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance." snapshots resources whose asset type contains "Instance". See RE2 for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned. At most one of asset_types and asset_names should be specified. If neither is specified, all assets under the parent will be returned.

  • content_type (String) (defaults to: nil)

    Asset content type. If not specified, no content but the asset name will be returned.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.

  • page_token (String) (defaults to: nil)

    The next_page_token returned from the previous ListAssetsResponse, or unspecified for the first ListAssetsRequest. It is a continuation of a prior ListAssets call, and the API should return the next page of assets.

  • update_time_window_time_window_end_time (String) (defaults to: nil)

    End time of the time window (inclusive). If not specified, the current timestamp is used instead.

  • update_time_window_time_window_start_time (String) (defaults to: nil)

    Start time of the time window (exclusive).

  • update_time_window_type (String) (defaults to: nil)

    The type of the time in time_window.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 111

def list_asset_updates(parent, asset_names: nil, asset_types: nil, content_type: nil, page_size: nil, page_token: nil, update_time_window_time_window_end_time: nil, update_time_window_time_window_start_time: nil, update_time_window_type: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+parent}/assetUpdates', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ListAssetUpdatesResponse::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ListAssetUpdatesResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['assetNames'] = asset_names unless asset_names.nil?
  command.query['assetTypes'] = asset_types unless asset_types.nil?
  command.query['contentType'] = content_type unless content_type.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['updateTimeWindow.timeWindow.endTime'] = update_time_window_time_window_end_time unless update_time_window_time_window_end_time.nil?
  command.query['updateTimeWindow.timeWindow.startTime'] = update_time_window_time_window_start_time unless update_time_window_time_window_start_time.nil?
  command.query['updateTimeWindow.type'] = update_time_window_type unless update_time_window_type.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_folder_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse

Lists all export settings under a [InventorySettings].

Parameters:

  • parent (String)

    Required. The parent [InventorySettings] whose export settings are to be listed.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of export settings to return. The service may return fewer than this value. If unspecified, at most 100 export settings will be returned. The maximum value is 100, as currently only a maximum of 100 export settings can be created under each parent.

  • page_token (String) (defaults to: nil)

    A page token, received from a previous ListExportSettings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListExportSettings must match the call that provided the page token.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



297
298
299
300
301
302
303
304
305
306
307
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 297

def list_folder_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+parent}/exportSettings', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_organization_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse

Lists all export settings under a [InventorySettings].

Parameters:

  • parent (String)

    Required. The parent [InventorySettings] whose export settings are to be listed.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of export settings to return. The service may return fewer than this value. If unspecified, at most 100 export settings will be returned. The maximum value is 100, as currently only a maximum of 100 export settings can be created under each parent.

  • page_token (String) (defaults to: nil)

    A page token, received from a previous ListExportSettings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListExportSettings must match the call that provided the page token.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



518
519
520
521
522
523
524
525
526
527
528
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 518

def list_organization_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+parent}/exportSettings', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#list_project_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse

Lists all export settings under a [InventorySettings].

Parameters:

  • parent (String)

    Required. The parent [InventorySettings] whose export settings are to be listed.

  • page_size (Fixnum) (defaults to: nil)

    The maximum number of export settings to return. The service may return fewer than this value. If unspecified, at most 100 export settings will be returned. The maximum value is 100, as currently only a maximum of 100 export settings can be created under each parent.

  • page_token (String) (defaults to: nil)

    A page token, received from a previous ListExportSettings call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListExportSettings must match the call that provided the page token.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



739
740
741
742
743
744
745
746
747
748
749
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 739

def list_project_inventory_setting_export_settings(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:get, 'v1p7beta1/{+parent}/exportSettings', options)
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ListExportSettingsResponse
  command.params['parent'] = parent unless parent.nil?
  command.query['pageSize'] = page_size unless page_size.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_folder_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Updates an export setting.

Parameters:

  • name (String)

    The format will be: organizations/ORGANIZATION_NUMBER/inventorySettings/ exportSettings/exportSetting or folders/FOLDER_NUMBER/inventorySettings/ exportSettings/exportSetting or projects/PROJECT_NUMBER/inventorySettings/ exportSettings/exportSetting

  • export_setting_object (Google::Apis::CloudassetV1p7beta1::ExportSetting) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Required. Only updates the export_setting fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



337
338
339
340
341
342
343
344
345
346
347
348
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 337

def patch_folder_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1p7beta1/{+name}', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.request_object = export_setting_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_organization_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Updates an export setting.

Parameters:

  • name (String)

    The format will be: organizations/ORGANIZATION_NUMBER/inventorySettings/ exportSettings/exportSetting or folders/FOLDER_NUMBER/inventorySettings/ exportSettings/exportSetting or projects/PROJECT_NUMBER/inventorySettings/ exportSettings/exportSetting

  • export_setting_object (Google::Apis::CloudassetV1p7beta1::ExportSetting) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Required. Only updates the export_setting fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



558
559
560
561
562
563
564
565
566
567
568
569
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 558

def patch_organization_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1p7beta1/{+name}', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.request_object = export_setting_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end

#patch_project_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::ExportSetting

Updates an export setting.

Parameters:

  • name (String)

    The format will be: organizations/ORGANIZATION_NUMBER/inventorySettings/ exportSettings/exportSetting or folders/FOLDER_NUMBER/inventorySettings/ exportSettings/exportSetting or projects/PROJECT_NUMBER/inventorySettings/ exportSettings/exportSetting

  • export_setting_object (Google::Apis::CloudassetV1p7beta1::ExportSetting) (defaults to: nil)
  • update_mask (String) (defaults to: nil)

    Required. Only updates the export_setting fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    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.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:

  • (Google::Apis::ServerError)

    An error occurred on the server and the request can be retried

  • (Google::Apis::ClientError)

    The request is invalid and should not be retried without modification

  • (Google::Apis::AuthorizationError)

    Authorization is required



779
780
781
782
783
784
785
786
787
788
789
790
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 779

def patch_project_inventory_setting_export_setting(name, export_setting_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
  command = make_simple_command(:patch, 'v1p7beta1/{+name}', options)
  command.request_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.request_object = export_setting_object
  command.response_representation = Google::Apis::CloudassetV1p7beta1::ExportSetting::Representation
  command.response_class = Google::Apis::CloudassetV1p7beta1::ExportSetting
  command.params['name'] = name unless name.nil?
  command.query['updateMask'] = update_mask unless update_mask.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  execute_or_queue_command(command, &block)
end