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.
141 142 143 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 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 141 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.
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.
141 142 143 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 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 141 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.
141 142 143 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 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 141 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.
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.
141 142 143 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 |
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 141 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 |