acquireShare(parent, body=None, x__xgafv=None)
Acquires a share synchronously from the pre-provisioned share pool.
Close httplib2 connections.
releaseShare(parent, body=None, x__xgafv=None)
Releases a share synchronously, marking it for background scrubbing.
acquireShare(parent, body=None, x__xgafv=None)
Acquires a share synchronously from the pre-provisioned share pool.
Args:
parent: string, Required. The parent share pool path, in the format `projects/{project}/locations/{location}/sharePools/{share_pool}`. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for AcquireShare.
"capacityGb": 42, # Required. Requested size of the share in GiB.
"requestId": "A String", # Required. Unique string generated by the CSI driver for exact retry idempotency.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Output message for AcquireShare.
"ipAddress": "A String", # The IP address of the physical Filestore instance hosting the share.
"shareId": "A String", # The specific share identifier on the instance.
}
close()
Close httplib2 connections.
releaseShare(parent, body=None, x__xgafv=None)
Releases a share synchronously, marking it for background scrubbing.
Args:
parent: string, Required. The parent share pool path, in the format `projects/{project}/locations/{location}/sharePools/{share_pool}`. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for ReleaseShare.
"ipAddress": "A String", # Required. The IP address of the physical Filestore instance hosting the share.
"shareId": "A String", # Required. The specific share ID on the instance.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response message for ReleaseShare.
}