Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeStepCopyFile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Copies the artifact to the specified path on the instance.
Instance Attribute Summary collapse
-
#artifact_id ⇒ String
Required.
-
#destination ⇒ String
Required.
-
#overwrite ⇒ Boolean
(also: #overwrite?)
Whether to allow this step to overwrite existing files.
-
#permissions ⇒ String
Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeStepCopyFile
constructor
A new instance of SoftwareRecipeStepCopyFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeStepCopyFile
Returns a new instance of SoftwareRecipeStepCopyFile.
1836 1837 1838 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1836 def initialize(**args) update!(**args) end |
Instance Attribute Details
#artifact_id ⇒ String
Required. The id of the relevant artifact in the recipe.
Corresponds to the JSON property artifactId
1805 1806 1807 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1805 def artifact_id @artifact_id end |
#destination ⇒ String
Required. The absolute path on the instance to put the file.
Corresponds to the JSON property destination
1810 1811 1812 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1810 def destination @destination end |
#overwrite ⇒ Boolean Also known as: overwrite?
Whether to allow this step to overwrite existing files. If this is
false and the file already exists the file is not overwritten
and the step is considered a success. Defaults to false.
Corresponds to the JSON property overwrite
1817 1818 1819 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1817 def overwrite @overwrite end |
#permissions ⇒ String
Consists of three octal digits which represent, in
order, the permissions of the owner, group, and other users for the
file (similarly to the numeric mode used in the linux chmod utility).
Each digit represents a three bit number with the 4 bit
corresponding to the read permissions, the 2 bit corresponds to the
write bit, and the one bit corresponds to the execute permission.
Default behavior is 755.
Below are some examples of permissions and their associated values:
read, write, and execute: 7
read and execute: 5
read and write: 6
read only: 4
Corresponds to the JSON property permissions
1834 1835 1836 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1834 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1841 1842 1843 1844 1845 1846 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1841 def update!(**args) @artifact_id = args[:artifact_id] if args.key?(:artifact_id) @destination = args[:destination] if args.key?(:destination) @overwrite = args[:overwrite] if args.key?(:overwrite) @permissions = args[:permissions] if args.key?(:permissions) end |