diff --git a/BareMetalSolution/src/V2/CreateSnapshotSchedulePolicyRequest.php b/BareMetalSolution/src/V2/CreateSnapshotSchedulePolicyRequest.php deleted file mode 100644 index 43d2134e1bcd..000000000000 --- a/BareMetalSolution/src/V2/CreateSnapshotSchedulePolicyRequest.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.baremetalsolution.v2.CreateSnapshotSchedulePolicyRequest - */ -class CreateSnapshotSchedulePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent project and location containing the SnapshotSchedulePolicy. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Required. The SnapshotSchedulePolicy to create. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $snapshot_schedule_policy = null; - /** - * Required. Snapshot policy ID - * - * Generated from protobuf field string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $snapshot_schedule_policy_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent project and location containing the SnapshotSchedulePolicy. - * @type \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $snapshot_schedule_policy - * Required. The SnapshotSchedulePolicy to create. - * @type string $snapshot_schedule_policy_id - * Required. Snapshot policy ID - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent project and location containing the SnapshotSchedulePolicy. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent project and location containing the SnapshotSchedulePolicy. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The SnapshotSchedulePolicy to create. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy|null - */ - public function getSnapshotSchedulePolicy() - { - return $this->snapshot_schedule_policy; - } - - public function hasSnapshotSchedulePolicy() - { - return isset($this->snapshot_schedule_policy); - } - - public function clearSnapshotSchedulePolicy() - { - unset($this->snapshot_schedule_policy); - } - - /** - * Required. The SnapshotSchedulePolicy to create. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $var - * @return $this - */ - public function setSnapshotSchedulePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy::class); - $this->snapshot_schedule_policy = $var; - - return $this; - } - - /** - * Required. Snapshot policy ID - * - * Generated from protobuf field string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSnapshotSchedulePolicyId() - { - return $this->snapshot_schedule_policy_id; - } - - /** - * Required. Snapshot policy ID - * - * Generated from protobuf field string snapshot_schedule_policy_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSnapshotSchedulePolicyId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_schedule_policy_id = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/CreateVolumeSnapshotRequest.php b/BareMetalSolution/src/V2/CreateVolumeSnapshotRequest.php deleted file mode 100644 index 9a00159f7b8f..000000000000 --- a/BareMetalSolution/src/V2/CreateVolumeSnapshotRequest.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.baremetalsolution.v2.CreateVolumeSnapshotRequest - */ -class CreateVolumeSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The volume to snapshot. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Required. The volume snapshot to create. Only the description field may be specified. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $volume_snapshot = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The volume to snapshot. - * @type \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot $volume_snapshot - * Required. The volume snapshot to create. Only the description field may be specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The volume to snapshot. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The volume to snapshot. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The volume snapshot to create. Only the description field may be specified. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot|null - */ - public function getVolumeSnapshot() - { - return $this->volume_snapshot; - } - - public function hasVolumeSnapshot() - { - return isset($this->volume_snapshot); - } - - public function clearVolumeSnapshot() - { - unset($this->volume_snapshot); - } - - /** - * Required. The volume snapshot to create. Only the description field may be specified. - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot $var - * @return $this - */ - public function setVolumeSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot::class); - $this->volume_snapshot = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/DeleteSnapshotSchedulePolicyRequest.php b/BareMetalSolution/src/V2/DeleteSnapshotSchedulePolicyRequest.php deleted file mode 100644 index 944068d9e769..000000000000 --- a/BareMetalSolution/src/V2/DeleteSnapshotSchedulePolicyRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.baremetalsolution.v2.DeleteSnapshotSchedulePolicyRequest - */ -class DeleteSnapshotSchedulePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the snapshot schedule policy to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the snapshot schedule policy to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the snapshot schedule policy to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the snapshot schedule policy to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/DeleteVolumeSnapshotRequest.php b/BareMetalSolution/src/V2/DeleteVolumeSnapshotRequest.php deleted file mode 100644 index 86b56fe1eb32..000000000000 --- a/BareMetalSolution/src/V2/DeleteVolumeSnapshotRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.baremetalsolution.v2.DeleteVolumeSnapshotRequest - */ -class DeleteVolumeSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the snapshot to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the snapshot to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the snapshot to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the snapshot to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/GetSnapshotSchedulePolicyRequest.php b/BareMetalSolution/src/V2/GetSnapshotSchedulePolicyRequest.php deleted file mode 100644 index 202ba5107f52..000000000000 --- a/BareMetalSolution/src/V2/GetSnapshotSchedulePolicyRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.baremetalsolution.v2.GetSnapshotSchedulePolicyRequest - */ -class GetSnapshotSchedulePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/GetVolumeSnapshotRequest.php b/BareMetalSolution/src/V2/GetVolumeSnapshotRequest.php deleted file mode 100644 index 29d021d3a560..000000000000 --- a/BareMetalSolution/src/V2/GetVolumeSnapshotRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.baremetalsolution.v2.GetVolumeSnapshotRequest - */ -class GetVolumeSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesRequest.php b/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesRequest.php deleted file mode 100644 index 59962849f970..000000000000 --- a/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesRequest - */ -class ListSnapshotSchedulePoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent project containing the Snapshot Schedule Policies. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * The maximum number of items to return. - * - * Generated from protobuf field int32 page_size = 2; - */ - private $page_size = 0; - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - private $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent project containing the Snapshot Schedule Policies. - * @type int $page_size - * The maximum number of items to return. - * @type string $page_token - * The next_page_token value returned from a previous List request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent project containing the Snapshot Schedule Policies. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent project containing the Snapshot Schedule Policies. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of items to return. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesResponse.php b/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesResponse.php deleted file mode 100644 index d9a0712cebc7..000000000000 --- a/BareMetalSolution/src/V2/ListSnapshotSchedulePoliciesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.baremetalsolution.v2.ListSnapshotSchedulePoliciesResponse - */ -class ListSnapshotSchedulePoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The snapshot schedule policies registered in this project. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - */ - private $snapshot_schedule_policies; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - private $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy[]|\Google\Protobuf\Internal\RepeatedField $snapshot_schedule_policies - * The snapshot schedule policies registered in this project. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * The snapshot schedule policies registered in this project. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSnapshotSchedulePolicies() - { - return $this->snapshot_schedule_policies; - } - - /** - * The snapshot schedule policies registered in this project. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policies = 1; - * @param \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSnapshotSchedulePolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy::class); - $this->snapshot_schedule_policies = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/ListVolumeSnapshotsRequest.php b/BareMetalSolution/src/V2/ListVolumeSnapshotsRequest.php deleted file mode 100644 index 18ffb8acd973..000000000000 --- a/BareMetalSolution/src/V2/ListVolumeSnapshotsRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.baremetalsolution.v2.ListVolumeSnapshotsRequest - */ -class ListVolumeSnapshotsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListVolumesRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $parent = ''; - /** - * Requested page size. The server might return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - private $page_size = 0; - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string page_token = 3; - */ - private $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListVolumesRequest. - * @type int $page_size - * Requested page size. The server might return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results from the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListVolumesRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListVolumesRequest. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. The server might return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. The server might return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/ListVolumeSnapshotsResponse.php b/BareMetalSolution/src/V2/ListVolumeSnapshotsResponse.php deleted file mode 100644 index 9079601829c2..000000000000 --- a/BareMetalSolution/src/V2/ListVolumeSnapshotsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse - */ -class ListVolumeSnapshotsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of storage volumes. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - */ - private $volume_snapshots; - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string next_page_token = 2; - */ - private $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot[]|\Google\Protobuf\Internal\RepeatedField $volume_snapshots - * The list of storage volumes. - * @type string $next_page_token - * A token identifying a page of results from the server. - * @type string[]|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * The list of storage volumes. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVolumeSnapshots() - { - return $this->volume_snapshots; - } - - /** - * The list of storage volumes. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1; - * @param \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVolumeSnapshots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BaremetalSolution\V2\VolumeSnapshot::class); - $this->volume_snapshots = $arr; - - return $this; - } - - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results from the server. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/RestoreVolumeSnapshotRequest.php b/BareMetalSolution/src/V2/RestoreVolumeSnapshotRequest.php deleted file mode 100644 index 1d847c77a02b..000000000000 --- a/BareMetalSolution/src/V2/RestoreVolumeSnapshotRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.baremetalsolution.v2.RestoreVolumeSnapshotRequest - */ -class RestoreVolumeSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource. - * - * Generated from protobuf field string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $volume_snapshot = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $volume_snapshot - * Required. Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getVolumeSnapshot() - { - return $this->volume_snapshot; - } - - /** - * Required. Name of the resource. - * - * Generated from protobuf field string volume_snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setVolumeSnapshot($var) - { - GPBUtil::checkString($var, True); - $this->volume_snapshot = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/SnapshotSchedulePolicy.php b/BareMetalSolution/src/V2/SnapshotSchedulePolicy.php deleted file mode 100644 index 7ee402692ac5..000000000000 --- a/BareMetalSolution/src/V2/SnapshotSchedulePolicy.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy - */ -class SnapshotSchedulePolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the snapshot schedule policy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $name = ''; - /** - * The description of the snapshot schedule policy. - * - * Generated from protobuf field string description = 2; - */ - private $description = ''; - /** - * The snapshot schedules contained in this policy. You can specify a maximum - * of 5 schedules. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - */ - private $schedules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the snapshot schedule policy. - * @type string $description - * The description of the snapshot schedule policy. - * @type \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy\Schedule[]|\Google\Protobuf\Internal\RepeatedField $schedules - * The snapshot schedules contained in this policy. You can specify a maximum - * of 5 schedules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the snapshot schedule policy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the snapshot schedule policy. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The description of the snapshot schedule policy. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the snapshot schedule policy. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The snapshot schedules contained in this policy. You can specify a maximum - * of 5 schedules. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSchedules() - { - return $this->schedules; - } - - /** - * The snapshot schedules contained in this policy. You can specify a maximum - * of 5 schedules. - * - * Generated from protobuf field repeated .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy.Schedule schedules = 3; - * @param \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy\Schedule[]|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSchedules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy\Schedule::class); - $this->schedules = $arr; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/SnapshotSchedulePolicy/Schedule.php b/BareMetalSolution/src/V2/SnapshotSchedulePolicy/Schedule.php index 62fb60e184c5..b7e773e3981a 100644 --- a/BareMetalSolution/src/V2/SnapshotSchedulePolicy/Schedule.php +++ b/BareMetalSolution/src/V2/SnapshotSchedulePolicy/Schedule.php @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/baremetalsolution/v2/baremetalsolution.proto -namespace Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy; +namespace Google\Cloud\BareMetalSolution\V2\SnapshotSchedulePolicy; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; diff --git a/BareMetalSolution/src/V2/UpdateSnapshotSchedulePolicyRequest.php b/BareMetalSolution/src/V2/UpdateSnapshotSchedulePolicyRequest.php deleted file mode 100644 index a7a81ee71d60..000000000000 --- a/BareMetalSolution/src/V2/UpdateSnapshotSchedulePolicyRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.cloud.baremetalsolution.v2.UpdateSnapshotSchedulePolicyRequest - */ -class UpdateSnapshotSchedulePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The snapshot schedule policy to update. - * The `name` field is used to identify the snapshot schedule policy to - * update. Format: - * projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $snapshot_schedule_policy = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $update_mask = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $snapshot_schedule_policy - * Required. The snapshot schedule policy to update. - * The `name` field is used to identify the snapshot schedule policy to - * update. Format: - * projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Required. The snapshot schedule policy to update. - * The `name` field is used to identify the snapshot schedule policy to - * update. Format: - * projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy|null - */ - public function getSnapshotSchedulePolicy() - { - return $this->snapshot_schedule_policy; - } - - public function hasSnapshotSchedulePolicy() - { - return isset($this->snapshot_schedule_policy); - } - - public function clearSnapshotSchedulePolicy() - { - unset($this->snapshot_schedule_policy); - } - - /** - * Required. The snapshot schedule policy to update. - * The `name` field is used to identify the snapshot schedule policy to - * update. Format: - * projects/{project}/locations/global/snapshotSchedulePolicies/{policy} - * - * Generated from protobuf field .google.cloud.baremetalsolution.v2.SnapshotSchedulePolicy snapshot_schedule_policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy $var - * @return $this - */ - public function setSnapshotSchedulePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\BaremetalSolution\V2\SnapshotSchedulePolicy::class); - $this->snapshot_schedule_policy = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/BareMetalSolution/src/V2/VolumeSnapshot.php b/BareMetalSolution/src/V2/VolumeSnapshot.php deleted file mode 100644 index 94278f54c18a..000000000000 --- a/BareMetalSolution/src/V2/VolumeSnapshot.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.baremetalsolution.v2.VolumeSnapshot - */ -class VolumeSnapshot extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the storage volume snapshot. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $name = ''; - /** - * The description of the storage volume snapshot. - * - * Generated from protobuf field string description = 2; - */ - private $description = ''; - /** - * The size of the storage volume snapshot, in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - */ - private $size_bytes = 0; - /** - * Optional. The creation time of the storage volume snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $create_time = null; - /** - * The storage volume this snapshot belongs to. - * - * Generated from protobuf field string storage_volume = 5 [(.google.api.resource_reference) = { - */ - private $storage_volume = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the storage volume snapshot. - * @type string $description - * The description of the storage volume snapshot. - * @type int|string $size_bytes - * The size of the storage volume snapshot, in bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Optional. The creation time of the storage volume snapshot. - * @type string $storage_volume - * The storage volume this snapshot belongs to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Baremetalsolution\V2\Baremetalsolution::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the storage volume snapshot. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The name of the storage volume snapshot. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The description of the storage volume snapshot. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the storage volume snapshot. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The size of the storage volume snapshot, in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * The size of the storage volume snapshot, in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Optional. The creation time of the storage volume snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Optional. The creation time of the storage volume snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The storage volume this snapshot belongs to. - * - * Generated from protobuf field string storage_volume = 5 [(.google.api.resource_reference) = { - * @return string - */ - public function getStorageVolume() - { - return $this->storage_volume; - } - - /** - * The storage volume this snapshot belongs to. - * - * Generated from protobuf field string storage_volume = 5 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setStorageVolume($var) - { - GPBUtil::checkString($var, True); - $this->storage_volume = $var; - - return $this; - } - -} -