Class: Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb

Overview

A remote or local file.

Defined Under Namespace

Classes: Gcs, Remote

Instance Attribute Summary collapse

Instance Attribute Details

#allow_insecure::Boolean

Returns 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.

Returns:

  • (::Boolean)

    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.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 144

class File
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a file available via some URI.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Required. URI from which to fetch the object. It should contain both the
  #     protocol and path following the format `{protocol}://{location}`.
  # @!attribute [rw] sha256_checksum
  #   @return [::String]
  #     SHA256 checksum of the remote file.
  class Remote
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies a file available as a Cloud Storage Object.
  # @!attribute [rw] bucket
  #   @return [::String]
  #     Required. Bucket of the Cloud Storage object.
  # @!attribute [rw] object
  #   @return [::String]
  #     Required. Name of the Cloud Storage object.
  # @!attribute [rw] generation
  #   @return [::Integer]
  #     Generation number of the Cloud Storage object.
  class Gcs
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#gcs::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File::Gcs

Returns A Cloud Storage object.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 144

class File
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a file available via some URI.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Required. URI from which to fetch the object. It should contain both the
  #     protocol and path following the format `{protocol}://{location}`.
  # @!attribute [rw] sha256_checksum
  #   @return [::String]
  #     SHA256 checksum of the remote file.
  class Remote
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies a file available as a Cloud Storage Object.
  # @!attribute [rw] bucket
  #   @return [::String]
  #     Required. Bucket of the Cloud Storage object.
  # @!attribute [rw] object
  #   @return [::String]
  #     Required. Name of the Cloud Storage object.
  # @!attribute [rw] generation
  #   @return [::Integer]
  #     Generation number of the Cloud Storage object.
  class Gcs
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#local_path::String

Returns A local path within the VM to use.

Returns:

  • (::String)

    A local path within the VM to use.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 144

class File
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a file available via some URI.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Required. URI from which to fetch the object. It should contain both the
  #     protocol and path following the format `{protocol}://{location}`.
  # @!attribute [rw] sha256_checksum
  #   @return [::String]
  #     SHA256 checksum of the remote file.
  class Remote
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies a file available as a Cloud Storage Object.
  # @!attribute [rw] bucket
  #   @return [::String]
  #     Required. Bucket of the Cloud Storage object.
  # @!attribute [rw] object
  #   @return [::String]
  #     Required. Name of the Cloud Storage object.
  # @!attribute [rw] generation
  #   @return [::Integer]
  #     Generation number of the Cloud Storage object.
  class Gcs
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#remote::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File::Remote

Returns A generic remote file.



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 144

class File
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a file available via some URI.
  # @!attribute [rw] uri
  #   @return [::String]
  #     Required. URI from which to fetch the object. It should contain both the
  #     protocol and path following the format `{protocol}://{location}`.
  # @!attribute [rw] sha256_checksum
  #   @return [::String]
  #     SHA256 checksum of the remote file.
  class Remote
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies a file available as a Cloud Storage Object.
  # @!attribute [rw] bucket
  #   @return [::String]
  #     Required. Bucket of the Cloud Storage object.
  # @!attribute [rw] object
  #   @return [::String]
  #     Required. Name of the Cloud Storage object.
  # @!attribute [rw] generation
  #   @return [::Integer]
  #     Generation number of the Cloud Storage object.
  class Gcs
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end