Class: Google::Apis::CloudassetV1::CreateFeedRequest

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

Overview

Create asset feed request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateFeedRequest

Returns a new instance of CreateFeedRequest.


374
375
376
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 374

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

Instance Attribute Details

#feedGoogle::Apis::CloudassetV1::Feed

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: Pub/Sub topics. Corresponds to the JSON property feed


366
367
368
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 366

def feed
  @feed
end

#feed_idString

Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization. Corresponds to the JSON property feedId

Returns:

  • (String)

372
373
374
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 372

def feed_id
  @feed_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


379
380
381
382
# File 'generated/google/apis/cloudasset_v1/classes.rb', line 379

def update!(**args)
  @feed = args[:feed] if args.key?(:feed)
  @feed_id = args[:feed_id] if args.key?(:feed_id)
end