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.



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 158

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.

Note: The following fields are mutually exclusive: gcs, remote, local_path. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 158

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.

Note: The following fields are mutually exclusive: local_path, remote, gcs. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    A local path within the VM to use.

    Note: The following fields are mutually exclusive: local_path, remote, gcs. If a field in that set is populated, all other fields in the set will automatically be cleared.



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 158

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.

Note: The following fields are mutually exclusive: remote, gcs, local_path. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 158

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