Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote

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

Overview

Specifies an artifact available via some URI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SoftwareRecipeArtifactRemote

Returns a new instance of SoftwareRecipeArtifactRemote.



1732
1733
1734
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1732

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

Instance Attribute Details

#checksumString

Must be provided if allow_insecure is false. SHA256 checksum in hex format, to compare to the checksum of the artifact. If the checksum is not empty and it doesn't match the artifact then the recipe installation fails before running any of the steps. Corresponds to the JSON property checksum

Returns:

  • (String)


1724
1725
1726
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1724

def checksum
  @checksum
end

#uriString

URI from which to fetch the object. It should contain both the protocol and path following the format protocol://location. Corresponds to the JSON property uri

Returns:

  • (String)


1730
1731
1732
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1730

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1737
1738
1739
1740
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1737

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