Class: Google::Apis::OsconfigV1alpha::OsPolicyResourceFile
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1alpha::OsPolicyResourceFile
- 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
A remote or local file.
Instance Attribute Summary collapse
-
#allow_insecure ⇒ Boolean
(also: #allow_insecure?)
Defaults to false.
-
#gcs ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceFileGcs
Specifies a file available as a Cloud Storage Object.
-
#local_path ⇒ String
A local path within the VM to use.
-
#remote ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceFileRemote
Specifies a file available via some URI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsPolicyResourceFile
constructor
A new instance of OsPolicyResourceFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OsPolicyResourceFile
Returns a new instance of OsPolicyResourceFile.
1921 1922 1923 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1921 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_insecure ⇒ Boolean Also known as: allow_insecure?
Defaults to false. When false, files are subject to validations based on the
file type: Remote: A checksum must be specified. Cloud Storage: An object
generation number must be specified.
Corresponds to the JSON property allowInsecure
1903 1904 1905 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1903 def allow_insecure @allow_insecure end |
#gcs ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceFileGcs
Specifies a file available as a Cloud Storage Object.
Corresponds to the JSON property gcs
1909 1910 1911 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1909 def gcs @gcs end |
#local_path ⇒ String
A local path within the VM to use.
Corresponds to the JSON property localPath
1914 1915 1916 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1914 def local_path @local_path end |
#remote ⇒ Google::Apis::OsconfigV1alpha::OsPolicyResourceFileRemote
Specifies a file available via some URI.
Corresponds to the JSON property remote
1919 1920 1921 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1919 def remote @remote end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1926 1927 1928 1929 1930 1931 |
# File 'lib/google/apis/osconfig_v1alpha/classes.rb', line 1926 def update!(**args) @allow_insecure = args[:allow_insecure] if args.key?(:allow_insecure) @gcs = args[:gcs] if args.key?(:gcs) @local_path = args[:local_path] if args.key?(:local_path) @remote = args[:remote] if args.key?(:remote) end |