Class: Google::Apis::CloudassetV1::Feed
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::Feed
- Defined in:
- generated/google/apis/cloudasset_v1/classes.rb,
generated/google/apis/cloudasset_v1/representations.rb,
generated/google/apis/cloudasset_v1/representations.rb
Overview
An asset feed used to export asset updates to a destinations. An asset feed filter controls what updates are exported. The asset feed must be created within a project, organization, or folder. Supported destinations are: Cloud Pub/Sub topics.
Instance Attribute Summary collapse
-
#asset_names ⇒ Array<String>
A list of the full names of the assets to receive updates.
-
#asset_types ⇒ Array<String>
A list of types of the assets to receive updates.
-
#content_type ⇒ String
Asset content type.
-
#feed_output_config ⇒ Google::Apis::CloudassetV1::FeedOutputConfig
Output configuration for asset feed destination.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Feed
constructor
A new instance of Feed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Feed
Returns a new instance of Feed.
643 644 645 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 643 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_names ⇒ Array<String>
A list of the full names of the assets to receive updates. You must specify
either or both of asset_names and asset_types. Only asset updates matching
specified asset_names and asset_types are exported to the feed. For
example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
instance1
.
See Resource
Names
for more info.
Corresponds to the JSON property assetNames
609 610 611 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 609 def asset_names @asset_names end |
#asset_types ⇒ Array<String>
A list of types of the assets to receive updates. You must specify either
or both of asset_names and asset_types. Only asset updates matching
specified asset_names and asset_types are exported to the feed.
For example: "compute.googleapis.com/Disk"
See this
topic
for a list of all supported asset types.
Corresponds to the JSON property assetTypes
620 621 622 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 620 def asset_types @asset_types end |
#content_type ⇒ String
Asset content type. If not specified, no content but the asset name and
type will be returned.
Corresponds to the JSON property contentType
626 627 628 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 626 def content_type @content_type end |
#feed_output_config ⇒ Google::Apis::CloudassetV1::FeedOutputConfig
Output configuration for asset feed destination.
Corresponds to the JSON property feedOutputConfig
631 632 633 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 631 def feed_output_config @feed_output_config end |
#name ⇒ String
Required. The format will be
projects/project_number
/feeds/client-assigned_feed_identifier
or
folders/folder_number
/feeds/client-assigned_feed_identifier
or
organizations/organization_number
/feeds/client-assigned_feed_identifier
The client-assigned feed identifier must be unique within the parent
project/folder/organization.
Corresponds to the JSON property name
641 642 643 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 641 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
648 649 650 651 652 653 654 |
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 648 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) @feed_output_config = args[:feed_output_config] if args.key?(:feed_output_config) @name = args[:name] if args.key?(:name) end |