Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceFileRemote

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

Overview

Specifies a file available via some URI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsPolicyResourceFileRemote

Returns a new instance of OsPolicyResourceFileRemote.



1984
1985
1986
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1984

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

Instance Attribute Details

#sha256_checksumString

SHA256 checksum of the remote file. Corresponds to the JSON property sha256Checksum

Returns:

  • (String)


1976
1977
1978
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1976

def sha256_checksum
  @sha256_checksum
end

#uriString

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

Returns:

  • (String)


1982
1983
1984
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1982

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1989
1990
1991
1992
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1989

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