Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExtractArchive

Inherits:
Object
  • Object
show all
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

Extracts an archive of the type specified in the specified directory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SoftwareRecipeStepExtractArchive

Returns a new instance of SoftwareRecipeStepExtractArchive.



1907
1908
1909
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1907

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#artifact_idString

Required. The id of the relevant artifact in the recipe. Corresponds to the JSON property artifactId

Returns:

  • (String)


1894
1895
1896
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1894

def artifact_id
  @artifact_id
end

#destinationString

Directory to extract archive to. Defaults to / on Linux or C:\ on Windows. Corresponds to the JSON property destination

Returns:

  • (String)


1900
1901
1902
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1900

def destination
  @destination
end

#typeString

Required. The type of the archive to extract. Corresponds to the JSON property type

Returns:

  • (String)


1905
1906
1907
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1905

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1912
1913
1914
1915
1916
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1912

def update!(**args)
  @artifact_id = args[:artifact_id] if args.key?(:artifact_id)
  @destination = args[:destination] if args.key?(:destination)
  @type = args[:type] if args.key?(:type)
end