Class: Google::Apis::AgentregistryV1alpha::GcsSource
- Inherits:
-
Object
- Object
- Google::Apis::AgentregistryV1alpha::GcsSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb
Overview
Specifications for Cloud Storage objects.
Instance Attribute Summary collapse
-
#generation ⇒ Fixnum
Optional.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GcsSource
constructor
A new instance of GcsSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GcsSource
Returns a new instance of GcsSource.
599 600 601 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 599 def initialize(**args) update!(**args) end |
Instance Attribute Details
#generation ⇒ Fixnum
Optional. Cloud Storage object generation ID. If not specified, the latest
generation is used.
Corresponds to the JSON property generation
592 593 594 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 592 def generation @generation end |
#uri ⇒ String
Required. Cloud Storage object URI. Format: gs://bucket_name/object_name`
Corresponds to the JSON propertyuri`
597 598 599 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 597 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
604 605 606 607 |
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 604 def update!(**args) @generation = args[:generation] if args.key?(:generation) @uri = args[:uri] if args.key?(:uri) end |