Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifact
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeArtifact
- 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
Specifies a resource to be used in the recipe.
Instance Attribute Summary collapse
-
#allow_insecure ⇒ Boolean
(also: #allow_insecure?)
Defaults to false.
-
#gcs ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs
Specifies an artifact available as a Google Cloud Storage object.
-
#id ⇒ String
Required.
-
#remote ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote
Specifies an artifact available via some URI.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeArtifact
constructor
A new instance of SoftwareRecipeArtifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeArtifact
Returns a new instance of SoftwareRecipeArtifact.
1658 1659 1660 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1658 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_insecure ⇒ Boolean Also known as: allow_insecure?
Defaults to false. When false, recipes are subject to validations
based on the artifact type:
Remote: A checksum must be specified, and only protocols with
transport-layer security are permitted.
GCS: An object generation number must be specified.
Corresponds to the JSON property allowInsecure
1639 1640 1641 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1639 def allow_insecure @allow_insecure end |
#gcs ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs
Specifies an artifact available as a Google Cloud Storage object.
Corresponds to the JSON property gcs
1645 1646 1647 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1645 def gcs @gcs end |
#id ⇒ String
Required. Id of the artifact, which the installation and update steps of this
recipe can reference. Artifacts in a recipe cannot have the same id.
Corresponds to the JSON property id
1651 1652 1653 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1651 def id @id end |
#remote ⇒ Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote
Specifies an artifact available via some URI.
Corresponds to the JSON property remote
1656 1657 1658 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1656 def remote @remote end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1663 1664 1665 1666 1667 1668 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1663 def update!(**args) @allow_insecure = args[:allow_insecure] if args.key?(:allow_insecure) @gcs = args[:gcs] if args.key?(:gcs) @id = args[:id] if args.key?(:id) @remote = args[:remote] if args.key?(:remote) end |