Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote
- 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 via some URI.
Instance Attribute Summary collapse
-
#checksum ⇒ String
Must be provided if
allow_insecureisfalse. -
#uri ⇒ String
URI from which to fetch the object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeArtifactRemote
constructor
A new instance of SoftwareRecipeArtifactRemote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeArtifactRemote
Returns a new instance of SoftwareRecipeArtifactRemote.
1868 1869 1870 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1868 def initialize(**args) update!(**args) end |
Instance Attribute Details
#checksum ⇒ String
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
1860 1861 1862 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1860 def checksum @checksum end |
#uri ⇒ String
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
1866 1867 1868 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1866 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1873 1874 1875 1876 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1873 def update!(**args) @checksum = args[:checksum] if args.key?(:checksum) @uri = args[:uri] if args.key?(:uri) end |