Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Create snapshot of the specified Volume
Delete specific named snapshot.
Get details for a specific named snapshot.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
List the Snapshots for the specified Volume
list_next(previous_request, previous_response)
Retrieves the next page of results.
restore(name, body=None, x__xgafv=None)
Restore a VolumeSnapshot.
close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Create snapshot of the specified Volume Args: parent: string, Required. The Volume containing the VolumeSnapshots. (required) body: object, The request body. The object takes the form of: { # VolumeSnapshot registered for given Volume "description": "A String", # The description of this Snapshot. "name": "A String", # Output only. The name of this Snapshot. "sizeBytes": "A String", # The real size of this Snapshot, in bytes. "state": "A String", # The state of this Snapshot. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # VolumeSnapshot registered for given Volume "description": "A String", # The description of this Snapshot. "name": "A String", # Output only. The name of this Snapshot. "sizeBytes": "A String", # The real size of this Snapshot, in bytes. "state": "A String", # The state of this Snapshot. }
delete(name, x__xgafv=None)
Delete specific named snapshot. Args: name: string, Required. The name of the snapshot to delete. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. }
get(name, x__xgafv=None)
Get details for a specific named snapshot. Args: name: string, Required. The name of the snapshot to retrieve. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # VolumeSnapshot registered for given Volume "description": "A String", # The description of this Snapshot. "name": "A String", # Output only. The name of this Snapshot. "sizeBytes": "A String", # The real size of this Snapshot, in bytes. "state": "A String", # The state of this Snapshot. }
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
List the Snapshots for the specified Volume Args: parent: string, Required. The Volume containing the VolumeSnapshots. (required) pageSize: integer, The maximum number of items to return. pageToken: string, The next_page_token value returned from a previous List request, if any. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response for ListVolumeSnapshots. "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. "volumeSnapshots": [ # The VolumeSnapshots for the volume. { # VolumeSnapshot registered for given Volume "description": "A String", # The description of this Snapshot. "name": "A String", # Output only. The name of this Snapshot. "sizeBytes": "A String", # The real size of this Snapshot, in bytes. "state": "A String", # The state of this Snapshot. }, ], }
list_next(previous_request, previous_response)
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
restore(name, body=None, x__xgafv=None)
Restore a VolumeSnapshot. Args: name: string, Required. Name of the VolumeSnapshot to restore. (required) body: object, The request body. The object takes the form of: { # Request for RestoreVolumeSnapshot. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. }