Class: Google::Apis::FileV1beta1::AcquireShareRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_gbFixnum

Required. Requested size of the share in GiB. Corresponds to the JSON property capacityGb

Returns:

  • (Fixnum)


32
33
34
# File 'lib/google/apis/file_v1beta1/classes.rb', line 32

def capacity_gb
  @capacity_gb
end

#request_idString

Required. Unique string generated by the CSI driver for exact retry idempotency. Corresponds to the JSON property requestId

Returns:

  • (String)


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