Class: Google::Apis::CloudassetV1p7beta1::ExportSetting
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p7beta1::ExportSetting
- 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
Settings that configure CAI to export assets on given schedules. An [ InventorySettings] might have multiple [ExportSetting], each with a unique identifier.
Instance Attribute Summary collapse
-
#asset_types ⇒ Array<String>
Asset types of resources that will be exported on schedule.
-
#bigquery_setting ⇒ Google::Apis::CloudassetV1p7beta1::BigQuerySetting
Setting for scheduled export to BigQuery.
-
#content_type ⇒ String
Required.
-
#gcs_setting ⇒ Google::Apis::CloudassetV1p7beta1::GcsSetting
Setting for scheduled export to GCS.
-
#name ⇒ String
The format will be: organizations/
ORGANIZATION_NUMBER/inventorySettings/ exportSettings/exportSettingor folders/FOLDER_NUMBER/inventorySettings/ exportSettings/exportSettingor projects/PROJECT_NUMBER/inventorySettings/ exportSettings/exportSettingCorresponds to the JSON propertyname.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExportSetting
constructor
A new instance of ExportSetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExportSetting
Returns a new instance of ExportSetting.
613 614 615 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_types ⇒ Array<String>
Asset types of resources that will be exported on schedule. 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.
Corresponds to the JSON property assetTypes
587 588 589 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 587 def asset_types @asset_types end |
#bigquery_setting ⇒ Google::Apis::CloudassetV1p7beta1::BigQuerySetting
Setting for scheduled export to BigQuery.
Corresponds to the JSON property bigquerySetting
592 593 594 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 592 def bigquery_setting @bigquery_setting end |
#content_type ⇒ String
Required. Asset content type. Currently only RESOURCE, IAM_POLICY,
ORG_POLICY, ACCESS_POLICY are supported.
Corresponds to the JSON property contentType
598 599 600 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 598 def content_type @content_type end |
#gcs_setting ⇒ Google::Apis::CloudassetV1p7beta1::GcsSetting
Setting for scheduled export to GCS.
Corresponds to the JSON property gcsSetting
603 604 605 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 603 def gcs_setting @gcs_setting end |
#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
Corresponds to the JSON property name
611 612 613 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 611 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
618 619 620 621 622 623 624 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 618 def update!(**args) @asset_types = args[:asset_types] if args.key?(:asset_types) @bigquery_setting = args[:bigquery_setting] if args.key?(:bigquery_setting) @content_type = args[:content_type] if args.key?(:content_type) @gcs_setting = args[:gcs_setting] if args.key?(:gcs_setting) @name = args[:name] if args.key?(:name) end |