Class: Google::Apis::AgentregistryV1alpha::GcsSource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#generationFixnum

Optional. Cloud Storage object generation ID. If not specified, the latest generation is used. Corresponds to the JSON property generation

Returns:

  • (Fixnum)


592
593
594
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 592

def generation
  @generation
end

#uriString

Required. Cloud Storage object URI. Format: gs://bucket_name/object_name` Corresponds to the JSON propertyuri`

Returns:

  • (String)


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