Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb

Overview

Specifies an artifact available as a Google Cloud Storage object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SoftwareRecipeArtifactGcs

Returns a new instance of SoftwareRecipeArtifactGcs.



1837
1838
1839
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1837

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

Instance Attribute Details

#bucketString

Bucket of the Google Cloud Storage object. Given an example URL: https:// storage.googleapis.com/my-bucket/foo/bar#1234567 this value would be my- bucket. Corresponds to the JSON property bucket

Returns:

  • (String)


1820
1821
1822
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1820

def bucket
  @bucket
end

#generationFixnum

Must be provided if allow_insecure is false. Generation number of the Google Cloud Storage object. https://storage.googleapis.com/my-bucket/foo/bar# 1234567 this value would be 1234567. Corresponds to the JSON property generation

Returns:

  • (Fixnum)


1827
1828
1829
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1827

def generation
  @generation
end

#objectString

Name of the Google Cloud Storage object. As specified here Given an example URL: https:// storage.googleapis.com/my-bucket/foo/bar#1234567 this value would be foo/bar . Corresponds to the JSON property object

Returns:

  • (String)


1835
1836
1837
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1835

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1842
1843
1844
1845
1846
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1842

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @generation = args[:generation] if args.key?(:generation)
  @object = args[:object] if args.key?(:object)
end