Class: Google::Apis::CloudbuildV2::VolumeClaim

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

Overview

VolumeClaim is a user's request for a volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VolumeClaim

Returns a new instance of VolumeClaim.



2905
2906
2907
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2905

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

Instance Attribute Details

#storageString

Volume size, e.g. 1gb. Corresponds to the JSON property storage

Returns:

  • (String)


2903
2904
2905
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2903

def storage
  @storage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2910
2911
2912
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2910

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