otcextensions.sdk.cbr.v3.member

The CBR Memnber Class

The Member class inherits from Resource.

class otcextensions.sdk.cbr.v3.member.Member

CBR Member Resource

The base resource

Parameters:
  • _synchronized – This is not intended to be used directly. See new() and existing().

  • connection – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of self._connection in Resource code should protect itself with a check for None.

resource_key: str | None = 'member'

Singular form of key for resource.

resources_key: str | None = 'members'

Plural form of key for resource.

base_path: str = '/backups/%(backup_id)s/members'

The base part of the URI for this resource.

allow_create = True

Allow create operation for this resource.

allow_list = True

Allow list operation for this resource.

allow_fetch = True

Allow get operation for this resource.

allow_delete = True

Allow delete operation for this resource.

allow_commit = True

Allow update operation for this resource.

backup_id

Properties Backup ID

created_at

Backup sharing time Example: 2020-02-05T10:38:34.209782

dest_project_id

Destination project ID which the backup is shared

image_id

ID of the image created by using the accepted shared backup_id

status

Backup sharing values values: pending, accepted, rejected

updated_at

Update time Example: 2020-02-05T10:38:34.209782

vault_id

ID of the vault where the shared backup is stored

commit(session, prepend_key=False, has_body=True, retry_on_conflict=None, base_path=None, **kwargs)

Commit the state of the instance to the remote resource.

Parameters:
  • session – The session to use for making this request.

  • prepend_key – Whether the resource_key should be prepended in a resource creation request. Default to True.

  • retry_on_conflict – Whether to enable retries on HTTP CONFLICT (409). Value of None leaves the Adapter defaults.

  • base_path – Base part of the URI for modifying resources, if different from base_path.

  • microversion – API version to override the negotiated one.

  • attrs – Attributes to pass when updating the resource. These should correspond to either Body or Header values on the resource.

Returns:

This Resource instance.

Raises:

MethodNotSupported if Resource.allow_commit is not set to True.