Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepInstallMsi

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

Installs an MSI file.

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) ⇒ SoftwareRecipeStepInstallMsi

Returns a new instance of SoftwareRecipeStepInstallMsi.



1959
1960
1961
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1959

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

Instance Attribute Details

#allowed_exit_codesArray<Fixnum>

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0] Corresponds to the JSON property allowedExitCodes

Returns:

  • (Array<Fixnum>)


1946
1947
1948
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1946

def allowed_exit_codes
  @allowed_exit_codes
end

#artifact_idString

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

Returns:

  • (String)


1951
1952
1953
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1951

def artifact_id
  @artifact_id
end

#flagsArray<String>

The flags to use when installing the MSI defaults to "/i". Corresponds to the JSON property flags

Returns:

  • (Array<String>)


1957
1958
1959
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1957

def flags
  @flags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1964
1965
1966
1967
1968
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1964

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