Class: Google::Apis::CloudassetV1p7beta1::ExportAssetUpdatesRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1p7beta1/classes.rb,
lib/google/apis/cloudasset_v1p7beta1/representations.rb,
lib/google/apis/cloudasset_v1p7beta1/representations.rb

Overview

Export asset updates request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExportAssetUpdatesRequest

Returns a new instance of ExportAssetUpdatesRequest.



502
503
504
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 502

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#asset_namesArray<String>

A list of the full names of the assets to export 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. Corresponds to the JSON property assetNames

Returns:

  • (Array<String>)


467
468
469
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 467

def asset_names
  @asset_names
end

#asset_typesArray<String>

A list of asset types to export the updates for. For example: "compute. googleapis.com/Disk". Regular expressions are 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. See Introduction to Cloud Asset Inventory for all supported asset types. At most one of asset_types and asset_names should be specified. If neither is specified, all assets under the parent will be returned. Corresponds to the JSON property assetTypes

Returns:

  • (Array<String>)


484
485
486
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 484

def asset_types
  @asset_types
end

#content_typeString

Asset content type. If not specified, no content but the asset name will be returned. Corresponds to the JSON property contentType

Returns:

  • (String)


490
491
492
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 490

def content_type
  @content_type
end

#output_configGoogle::Apis::CloudassetV1p7beta1::OutputConfig

Output configuration for export assets destination. Corresponds to the JSON property outputConfig



495
496
497
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 495

def output_config
  @output_config
end

#update_time_windowGoogle::Apis::CloudassetV1p7beta1::UpdateTimeWindow

Time window configuration for asset updates requests. Corresponds to the JSON property updateTimeWindow



500
501
502
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 500

def update_time_window
  @update_time_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



507
508
509
510
511
512
513
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 507

def update!(**args)
  @asset_names = args[:asset_names] if args.key?(:asset_names)
  @asset_types = args[:asset_types] if args.key?(:asset_types)
  @content_type = args[:content_type] if args.key?(:content_type)
  @output_config = args[:output_config] if args.key?(:output_config)
  @update_time_window = args[:update_time_window] if args.key?(:update_time_window)
end