Class: Google::Apis::CloudassetV1p7beta1::CloudAssetService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::CloudassetV1p7beta1::CloudAssetService
- 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.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#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.
-
#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.
-
#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.
-
#delete_folder_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty
Deletes an export setting.
-
#delete_organization_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty
Deletes an export setting.
-
#delete_project_inventory_setting_export_setting(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::Empty
Deletes an export setting.
-
#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.
-
#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.
-
#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.
-
#get_folder_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings
Gets details about an inventory setting.
-
#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.
-
#get_organization_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings
Gets details about an inventory setting.
-
#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.
-
#get_project_inventory_settings(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudassetV1p7beta1::InventorySettings
Gets details about an inventory setting.
-
#initialize ⇒ CloudAssetService
constructor
A new instance of CloudAssetService.
-
#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.
-
#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].
-
#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].
-
#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].
-
#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.
-
#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.
-
#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.
Constructor Details
#initialize ⇒ CloudAssetService
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
#key ⇒ String
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.
38 39 40 |
# File 'lib/google/apis/cloudasset_v1p7beta1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
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.
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.
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', ) 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.
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', ) 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.
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', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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.
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', ) 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.
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', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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.
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', ) 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].
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', ) 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].
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', ) 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].
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', ) 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.
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}', ) 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.
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}', ) 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.
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}', ) 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 |