Class: Google::Apis::FileV1beta1::AcquireShareRequest
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::AcquireShareRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1beta1/classes.rb,
lib/google/apis/file_v1beta1/representations.rb,
lib/google/apis/file_v1beta1/representations.rb
Overview
Request message for AcquireShare.
Instance Attribute Summary collapse
-
#capacity_gb ⇒ Fixnum
Required.
-
#request_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcquireShareRequest
constructor
A new instance of AcquireShareRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcquireShareRequest
Returns a new instance of AcquireShareRequest.
40 41 42 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_gb ⇒ Fixnum
Required. Requested size of the share in GiB.
Corresponds to the JSON property capacityGb
32 33 34 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 32 def capacity_gb @capacity_gb end |
#request_id ⇒ String
Required. Unique string generated by the CSI driver for exact retry
idempotency.
Corresponds to the JSON property requestId
38 39 40 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 38 def request_id @request_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 48 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 45 def update!(**args) @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb) @request_id = args[:request_id] if args.key?(:request_id) end |