Class: Google::Apis::OsconfigV1::OsPolicyResourceFileRemote
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::OsPolicyResourceFileRemote
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
Specifies a file available via some URI.
Instance Attribute Summary collapse
-
#sha256_checksum ⇒ String
SHA256 checksum of the remote file.
-
#uri ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceFileRemote
constructor
A new instance of OsPolicyResourceFileRemote.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceFileRemote
Returns a new instance of OsPolicyResourceFileRemote.
2093 2094 2095 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2093 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sha256_checksum ⇒ String
SHA256 checksum of the remote file.
Corresponds to the JSON property sha256Checksum
2085 2086 2087 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2085 def sha256_checksum @sha256_checksum end |
#uri ⇒ String
Required. 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
2091 2092 2093 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2091 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2098 2099 2100 2101 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 2098 def update!(**args) @sha256_checksum = args[:sha256_checksum] if args.key?(:sha256_checksum) @uri = args[:uri] if args.key?(:uri) end |