Class: Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeArtifactGcs
- 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 an artifact available as a Google Cloud Storage object.
Instance Attribute Summary collapse
-
#bucket ⇒ String
Bucket of the Google Cloud Storage object.
-
#generation ⇒ Fixnum
Must be provided if allow_insecure is false.
-
#object ⇒ String
Name of the Google Cloud Storage object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeArtifactGcs
constructor
A new instance of SoftwareRecipeArtifactGcs.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeArtifactGcs
Returns a new instance of SoftwareRecipeArtifactGcs.
1701 1702 1703 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1701 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
Bucket of the Google Cloud Storage object.
Given an example URL:
https://storage.googleapis.com/my-bucket/foo/bar#1234567
this value would be my-bucket
.
Corresponds to the JSON property bucket
1681 1682 1683 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1681 def bucket @bucket end |
#generation ⇒ Fixnum
Must be provided if allow_insecure is false.
Generation number of the Google Cloud Storage object.
https://storage.googleapis.com/my-bucket/foo/bar#1234567
this value would be 1234567
.
Corresponds to the JSON property generation
1689 1690 1691 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1689 def generation @generation end |
#object ⇒ String
Name of the Google Cloud Storage object.
As specified here
Given an example URL:
https://storage.googleapis.com/my-bucket/foo/bar#1234567
this value would be foo/bar
.
Corresponds to the JSON property object
1699 1700 1701 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1699 def object @object end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1706 1707 1708 1709 1710 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1706 def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @generation = args[:generation] if args.key?(:generation) @object = args[:object] if args.key?(:object) end |