Class: Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
- Inherits:
-
Object
- Object
- Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/osconfig/v1/os_policy.rb
Overview
A remote or local file.
Defined Under Namespace
Instance Attribute Summary collapse
-
#allow_insecure ⇒ ::Boolean
Defaults to false.
-
#gcs ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Gcs
A Cloud Storage object.
-
#local_path ⇒ ::String
A local path within the VM to use.
-
#remote ⇒ ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File::Remote
A generic remote file.
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.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 127 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::V1::OSPolicy::Resource::File::Gcs
Returns A Cloud Storage object.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 127 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.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 127 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::V1::OSPolicy::Resource::File::Remote
Returns A generic remote file.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 127 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 |