Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb

Overview

Specifies a resource to be used in the recipe.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SoftwareRecipeArtifact

Returns a new instance of SoftwareRecipeArtifact.



1798
1799
1800
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1798

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

Instance Attribute Details

#allow_insecureBoolean 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

Returns:

  • (Boolean)


1779
1780
1781
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1779

def allow_insecure
  @allow_insecure
end

#gcsGoogle::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs

Specifies an artifact available as a Google Cloud Storage object. Corresponds to the JSON property gcs



1785
1786
1787
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1785

def gcs
  @gcs
end

#idString

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

Returns:

  • (String)


1791
1792
1793
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1791

def id
  @id
end

#remoteGoogle::Apis::OsconfigV1beta::SoftwareRecipeArtifactRemote

Specifies an artifact available via some URI. Corresponds to the JSON property remote



1796
1797
1798
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1796

def remote
  @remote
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1803
1804
1805
1806
1807
1808
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 1803

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