gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $operations = $bigtableadminService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_BigtableAdmin_Resource_Operations');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $projects = $bigtableadminService->operations_projects;
* </code>
*/
class OperationsProjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationsProjects::class, 'Google_Service_BigtableAdmin_Resource_OperationsProjects');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\ListOperationsResponse;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $operations = $bigtableadminService->operations_projects_operations;
* </code>
*/
class OperationsProjectsOperations extends \Google\Service\Resource
{
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperationsProjectsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperationsProjectsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationsProjectsOperations::class, 'Google_Service_BigtableAdmin_Resource_OperationsProjectsOperations');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $projects = $bigtableadminService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BigtableAdmin_Resource_Projects');
@@ -0,0 +1,209 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\CreateInstanceRequest;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\Instance;
use Google\Service\BigtableAdmin\ListInstancesResponse;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $instances = $bigtableadminService->projects_instances;
* </code>
*/
class ProjectsInstances extends \Google\Service\Resource
{
/**
* Create an instance within a project. Note that exactly one of
* Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can
* be set. If serve_nodes is set to non-zero, then the cluster is manually
* scaled. If cluster_config.cluster_autoscaling_config is non-empty, then
* autoscaling is enabled. (instances.create)
*
* @param string $parent Required. The unique name of the project in which to
* create the new instance. Values are of the form `projects/{project}`.
* @param CreateInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, CreateInstanceRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Delete an instance from a project. (instances.delete)
*
* @param string $name Required. The unique name of the instance to be deleted.
* Values are of the form `projects/{project}/instances/{instance}`.
* @param array $optParams Optional parameters.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information about an instance. (instances.get)
*
* @param string $name Required. The unique name of the requested instance.
* Values are of the form `projects/{project}/instances/{instance}`.
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Gets the access control policy for an instance resource. Returns an empty
* policy if an instance exists but does not have a policy set.
* (instances.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists information about instances in a project.
* (instances.listProjectsInstances)
*
* @param string $parent Required. The unique name of the project for which a
* list of instances is requested. Values are of the form `projects/{project}`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken DEPRECATED: This field is unused and ignored.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Partially updates an instance within a project. This method can modify all
* fields of an Instance and is the preferred way to update an Instance.
* (instances.partialUpdateInstance)
*
* @param string $name The unique name of the instance. Values are of the form
* `projects/{project}/instances/a-z+[a-z0-9]`.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The subset of Instance fields which
* should be replaced. Must be explicitly set.
* @return Operation
* @throws \Google\Service\Exception
*/
public function partialUpdateInstance($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('partialUpdateInstance', [$params], Operation::class);
}
/**
* Sets the access control policy on an instance resource. Replaces any existing
* policy. (instances.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified instance resource.
* (instances.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Updates an instance within a project. This method updates only the display
* name and type for an Instance. To update other Instance properties, such as
* labels, use PartialUpdateInstance. (instances.update)
*
* @param string $name The unique name of the instance. Values are of the form
* `projects/{project}/instances/a-z+[a-z0-9]`.
* @param Instance $postBody
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function update($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Instance::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstances::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstances');
@@ -0,0 +1,146 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\AppProfile;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\ListAppProfilesResponse;
use Google\Service\BigtableAdmin\Operation;
/**
* The "appProfiles" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $appProfiles = $bigtableadminService->projects_instances_appProfiles;
* </code>
*/
class ProjectsInstancesAppProfiles extends \Google\Service\Resource
{
/**
* Creates an app profile within an instance. (appProfiles.create)
*
* @param string $parent Required. The unique name of the instance in which to
* create the new app profile. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param AppProfile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string appProfileId Required. The ID to be used when referring to
* the new app profile within its instance, e.g., just `myprofile` rather than
* `projects/myproject/instances/myinstance/appProfiles/myprofile`.
* @opt_param bool ignoreWarnings If true, ignore safety checks when creating
* the app profile.
* @return AppProfile
* @throws \Google\Service\Exception
*/
public function create($parent, AppProfile $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AppProfile::class);
}
/**
* Deletes an app profile from an instance. (appProfiles.delete)
*
* @param string $name Required. The unique name of the app profile to be
* deleted. Values are of the form
* `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreWarnings Required. If true, ignore safety checks when
* deleting the app profile.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information about an app profile. (appProfiles.get)
*
* @param string $name Required. The unique name of the requested app profile.
* Values are of the form
* `projects/{project}/instances/{instance}/appProfiles/{app_profile}`.
* @param array $optParams Optional parameters.
* @return AppProfile
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AppProfile::class);
}
/**
* Lists information about app profiles in an instance.
* (appProfiles.listProjectsInstancesAppProfiles)
*
* @param string $parent Required. The unique name of the instance for which a
* list of app profiles is requested. Values are of the form
* `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list
* AppProfiles for all Instances in a project, e.g.,
* `projects/myproject/instances/-`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of results per page. A page_size of
* zero lets the server choose the number of items to return. A page_size which
* is strictly positive will return at most that many items. A negative
* page_size will cause an error. Following the first request, subsequent
* paginated calls are not required to pass a page_size. If a page_size is set
* in subsequent calls, it must match the page_size given in the first request.
* @opt_param string pageToken The value of `next_page_token` returned by a
* previous call.
* @return ListAppProfilesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesAppProfiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAppProfilesResponse::class);
}
/**
* Updates an app profile within an instance. (appProfiles.patch)
*
* @param string $name The unique name of the app profile, up to 50 characters
* long. Values are of the form
* `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`.
* @param AppProfile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreWarnings If true, ignore safety checks when updating
* the app profile.
* @opt_param string updateMask Required. The subset of app profile fields which
* should be replaced. If unset, all fields will be replaced.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AppProfile $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesAppProfiles::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesAppProfiles');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\Cluster;
use Google\Service\BigtableAdmin\ListClustersResponse;
use Google\Service\BigtableAdmin\MemoryLayer;
use Google\Service\BigtableAdmin\Operation;
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $clusters = $bigtableadminService->projects_instances_clusters;
* </code>
*/
class ProjectsInstancesClusters extends \Google\Service\Resource
{
/**
* Creates a cluster within an instance. Note that exactly one of
* Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can
* be set. If serve_nodes is set to non-zero, then the cluster is manually
* scaled. If cluster_config.cluster_autoscaling_config is non-empty, then
* autoscaling is enabled. (clusters.create)
*
* @param string $parent Required. The unique name of the instance in which to
* create the new cluster. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clusterId Required. The ID to be used when referring to the
* new cluster within its instance, e.g., just `mycluster` rather than
* `projects/myproject/instances/myinstance/clusters/mycluster`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Cluster $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a cluster from an instance. (clusters.delete)
*
* @param string $name Required. The unique name of the cluster to be deleted.
* Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param array $optParams Optional parameters.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information about a cluster. (clusters.get)
*
* @param string $name Required. The unique name of the requested cluster.
* Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param array $optParams Optional parameters.
* @return Cluster
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Cluster::class);
}
/**
* Gets information about the memory layer of a cluster.
* (clusters.getMemoryLayer)
*
* @param string $name Required. The unique name of the requested cluster's
* memory layer. Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}/memoryLayer`.
* @param array $optParams Optional parameters.
* @return MemoryLayer
* @throws \Google\Service\Exception
*/
public function getMemoryLayer($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getMemoryLayer', [$params], MemoryLayer::class);
}
/**
* Lists information about clusters in an instance.
* (clusters.listProjectsInstancesClusters)
*
* @param string $parent Required. The unique name of the instance for which a
* list of clusters is requested. Values are of the form
* `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list
* Clusters for all Instances in a project, e.g.,
* `projects/myproject/instances/-`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken DEPRECATED: This field is unused and ignored.
* @return ListClustersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesClusters($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListClustersResponse::class);
}
/**
* Partially updates a cluster within a project. This method is the preferred
* way to update a Cluster. To enable and update autoscaling, set
* cluster_config.cluster_autoscaling_config. When autoscaling is enabled,
* serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it
* are ignored. Note that an update cannot simultaneously set serve_nodes to
* non-zero and cluster_config.cluster_autoscaling_config to non-empty, and also
* specify both in the update_mask. To disable autoscaling, clear
* cluster_config.cluster_autoscaling_config, and explicitly set a serve_node
* count via the update_mask. (clusters.partialUpdateCluster)
*
* @param string $name The unique name of the cluster. Values are of the form
* `projects/{project}/instances/{instance}/clusters/a-z*`.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The subset of Cluster fields which
* should be replaced.
* @return Operation
* @throws \Google\Service\Exception
*/
public function partialUpdateCluster($name, Cluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('partialUpdateCluster', [$params], Operation::class);
}
/**
* Updates a cluster within an instance. Note that UpdateCluster does not
* support updating cluster_config.cluster_autoscaling_config. In order to
* update it, you must use PartialUpdateCluster. (clusters.update)
*
* @param string $name The unique name of the cluster. Values are of the form
* `projects/{project}/instances/{instance}/clusters/a-z*`.
* @param Cluster $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($name, Cluster $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesClusters::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesClusters');
@@ -0,0 +1,262 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\Backup;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\CopyBackupRequest;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListBackupsResponse;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $backups = $bigtableadminService->projects_instances_clusters_backups;
* </code>
*/
class ProjectsInstancesClustersBackups extends \Google\Service\Resource
{
/**
* Copy a Cloud Bigtable backup to a new backup in the destination cluster
* located in the destination instance and project. (backups.copy)
*
* @param string $parent Required. The name of the destination cluster that will
* contain the backup copy. The cluster must already exist. Values are of the
* form: `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param CopyBackupRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function copy($parent, CopyBackupRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('copy', [$params], Operation::class);
}
/**
* Starts creating a new Cloud Bigtable Backup. The returned backup long-running
* operation can be used to track creation of the backup. The metadata field
* type is CreateBackupMetadata. The response field type is Backup, if
* successful. Cancelling the returned operation will stop the creation and
* delete the backup. (backups.create)
*
* @param string $parent Required. This must be one of the clusters in the
* instance in which this table is located. The backup will be stored in this
* cluster. Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Required. The id of the backup to be created. The
* `backup_id` along with the parent `parent` are combined as
* {parent}/backups/{backup_id} to create the full backup name, of the form: `pr
* ojects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`
* . This string must be between 1 and 50 characters in length and match the
* regex _a-zA-Z0-9*.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a pending or completed Cloud Bigtable backup. (backups.delete)
*
* @param string $name Required. Name of the backup to delete. Values are of the
* form `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{bac
* kup}`.
* @param array $optParams Optional parameters.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets metadata on a pending or completed Cloud Bigtable Backup. (backups.get)
*
* @param string $name Required. Name of the backup. Values are of the form `pro
* jects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`.
* @param array $optParams Optional parameters.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Gets the access control policy for a Bigtable resource. Returns an empty
* policy if the resource exists but does not have a policy set.
* (backups.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Cloud Bigtable backups. Returns both completed and pending backups.
* (backups.listProjectsInstancesClustersBackups)
*
* @param string $parent Required. The cluster to list backups from. Values are
* of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. Use
* `{cluster} = '-'` to list backups for all clusters in an instance, e.g.,
* `projects/{project}/instances/{instance}/clusters/-`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter expression that filters backups listed in
* the response. The expression must specify the field name, a comparison
* operator, and the value that you want to use for filtering. The value must be
* a string, a number, or a boolean. The comparison operator must be <, >, <=,
* >=, !=, =, or :. Colon ':' represents a HAS operator which is roughly
* synonymous with equality. Filter rules are case insensitive. The fields
* eligible for filtering are: * `name` * `source_table` * `state` *
* `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `end_time`
* (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `expire_time` (and
* values are of the format YYYY-MM-DDTHH:MM:SSZ) * `size_bytes` To filter on
* multiple expressions, provide each separate expression within parentheses. By
* default, each expression is an AND expression. However, you can include AND,
* OR, and NOT expressions explicitly. Some examples of using filters are: *
* `name:"exact"` --> The backup's name is the string "exact". * `name:howl` -->
* The backup's name contains the string "howl". * `source_table:prod` --> The
* source_table's name contains the string "prod". * `state:CREATING` --> The
* backup is pending creation. * `state:READY` --> The backup is fully created
* and ready for use. * `(name:howl) AND (start_time <
* \"2018-03-28T14:50:00Z\")` --> The backup name contains the string "howl" and
* start_time of the backup is before 2018-03-28T14:50:00Z. * `size_bytes >
* 10000000000` --> The backup's size is greater than 10GB
* @opt_param string orderBy An expression for specifying the sort order of the
* results of the request. The string value should specify one or more fields in
* Backup. The full syntax is described at https://aip.dev/132#ordering. Fields
* supported are: * name * source_table * expire_time * start_time * end_time *
* size_bytes * state For example, "start_time". The default sorting order is
* ascending. To specify descending order for the field, a suffix " desc" should
* be appended to the field name. For example, "start_time desc". Redundant
* space characters in the syntax are insigificant. If order_by is empty,
* results will be sorted by `start_time` in descending order starting from the
* most recently created backup.
* @opt_param int pageSize Number of backups to be returned in the response. If
* 0 or less, defaults to the server's maximum allowed page size.
* @opt_param string pageToken If non-empty, `page_token` should contain a
* next_page_token from a previous ListBackupsResponse to the same `parent` and
* with the same `filter`.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesClustersBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Updates a pending or completed Cloud Bigtable Backup. (backups.patch)
*
* @param string $name A globally unique identifier for the backup which cannot
* be changed. Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-
* zA-Z0-9*` The final segment of the name must be between 1 and 50 characters
* in length. The backup is stored in the cluster identified by the prefix of
* the backup name of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A mask specifying which fields (e.g.
* `expire_time`) in the Backup resource should be updated. This mask is
* relative to the Backup resource, not to the request message. The field mask
* must always be specified; this prevents any future fields from being erased
* accidentally by clients that do not know about them.
* @return Backup
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Backup::class);
}
/**
* Sets the access control policy on a Bigtable resource. Replaces any existing
* policy. (backups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified Bigtable resource.
* (backups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesClustersBackups::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesClustersBackups');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\ListHotTabletsResponse;
/**
* The "hotTablets" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $hotTablets = $bigtableadminService->projects_instances_clusters_hotTablets;
* </code>
*/
class ProjectsInstancesClustersHotTablets extends \Google\Service\Resource
{
/**
* Lists hot tablets in a cluster, within the time range provided. Hot tablets
* are ordered based on CPU usage.
* (hotTablets.listProjectsInstancesClustersHotTablets)
*
* @param string $parent Required. The cluster name to list hot tablets. Value
* is in the following form:
* `projects/{project}/instances/{instance}/clusters/{cluster}`.
* @param array $optParams Optional parameters.
*
* @opt_param string endTime The end time to list hot tablets.
* @opt_param int pageSize Maximum number of results per page. A page_size that
* is empty or zero lets the server choose the number of items to return. A
* page_size which is strictly positive will return at most that many items. A
* negative page_size will cause an error. Following the first request,
* subsequent paginated calls do not need a page_size field. If a page_size is
* set in subsequent calls, it must match the page_size given in the first
* request.
* @opt_param string pageToken The value of `next_page_token` returned by a
* previous call.
* @opt_param string startTime The start time to list hot tablets. The hot
* tablets in the response will have start times between the requested start
* time and end time. Start time defaults to Now if it is unset, and end time
* defaults to Now - 24 hours if it is unset. The start time should be less than
* the end time, and the maximum allowed time range between start time and end
* time is 48 hours. Start time and end time should have values between Now and
* Now - 14 days.
* @return ListHotTabletsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesClustersHotTablets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHotTabletsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesClustersHotTablets::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesClustersHotTablets');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\ListMemoryLayersResponse;
/**
* The "memoryLayers" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $memoryLayers = $bigtableadminService->projects_instances_clusters_memoryLayers;
* </code>
*/
class ProjectsInstancesClustersMemoryLayers extends \Google\Service\Resource
{
/**
* Lists information about memory layers.
* (memoryLayers.listProjectsInstancesClustersMemoryLayers)
*
* @param string $parent Required. The unique name of the cluster for which a
* list of memory layers is requested. Values are of the form
* `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster}
* = '-'` to list MemoryLayers for all Clusters in an instance, e.g.,
* `projects/myproject/instances/myinstance/clusters/-`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of memory layers to
* return. The service may return fewer than this value.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListMemoryLayers` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListMemoryLayers` must match
* the call that provided the page token.
* @return ListMemoryLayersResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesClustersMemoryLayers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMemoryLayersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesClustersMemoryLayers::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesClustersMemoryLayers');
@@ -0,0 +1,198 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListLogicalViewsResponse;
use Google\Service\BigtableAdmin\LogicalView;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "logicalViews" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $logicalViews = $bigtableadminService->projects_instances_logicalViews;
* </code>
*/
class ProjectsInstancesLogicalViews extends \Google\Service\Resource
{
/**
* Creates a logical view within an instance. (logicalViews.create)
*
* @param string $parent Required. The parent instance where this logical view
* will be created. Format: `projects/{project}/instances/{instance}`.
* @param LogicalView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string logicalViewId Required. The ID to use for the logical view,
* which will become the final component of the logical view's resource name.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, LogicalView $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a logical view from an instance. (logicalViews.delete)
*
* @param string $name Required. The unique name of the logical view to be
* deleted. Format:
* `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the logical view. If an
* etag is provided and does not match the current etag of the logical view,
* deletion will be blocked and an ABORTED error will be returned.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information about a logical view. (logicalViews.get)
*
* @param string $name Required. The unique name of the requested logical view.
* Values are of the form
* `projects/{project}/instances/{instance}/logicalViews/{logical_view}`.
* @param array $optParams Optional parameters.
* @return LogicalView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogicalView::class);
}
/**
* Gets the access control policy for an instance resource. Returns an empty
* policy if an instance exists but does not have a policy set.
* (logicalViews.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists information about logical views in an instance.
* (logicalViews.listProjectsInstancesLogicalViews)
*
* @param string $parent Required. The unique name of the instance for which the
* list of logical views is requested. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of logical views to
* return. The service may return fewer than this value
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListLogicalViews` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListLogicalViews` must match
* the call that provided the page token.
* @return ListLogicalViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesLogicalViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogicalViewsResponse::class);
}
/**
* Updates a logical view within an instance. (logicalViews.patch)
*
* @param string $name Identifier. The unique name of the logical view. Format:
* `projects/{project}/instances/{instance}/logicalViews/{logical_view}`
* @param LogicalView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LogicalView $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on an instance resource. Replaces any existing
* policy. (logicalViews.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified instance resource.
* (logicalViews.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesLogicalViews::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesLogicalViews');
@@ -0,0 +1,207 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListMaterializedViewsResponse;
use Google\Service\BigtableAdmin\MaterializedView;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "materializedViews" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $materializedViews = $bigtableadminService->projects_instances_materializedViews;
* </code>
*/
class ProjectsInstancesMaterializedViews extends \Google\Service\Resource
{
/**
* Creates a materialized view within an instance. (materializedViews.create)
*
* @param string $parent Required. The parent instance where this materialized
* view will be created. Format: `projects/{project}/instances/{instance}`.
* @param MaterializedView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string materializedViewId Required. The ID to use for the
* materialized view, which will become the final component of the materialized
* view's resource name.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, MaterializedView $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a materialized view from an instance. (materializedViews.delete)
*
* @param string $name Required. The unique name of the materialized view to be
* deleted. Format: `projects/{project}/instances/{instance}/materializedViews/{
* materialized_view}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the materialized view.
* If an etag is provided and does not match the current etag of the
* materialized view, deletion will be blocked and an ABORTED error will be
* returned.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information about a materialized view. (materializedViews.get)
*
* @param string $name Required. The unique name of the requested materialized
* view. Values are of the form `projects/{project}/instances/{instance}/materia
* lizedViews/{materialized_view}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. Describes which of the materialized view's
* fields should be populated in the response. Defaults to SCHEMA_VIEW.
* @return MaterializedView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MaterializedView::class);
}
/**
* Gets the access control policy for an instance resource. Returns an empty
* policy if an instance exists but does not have a policy set.
* (materializedViews.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists information about materialized views in an instance.
* (materializedViews.listProjectsInstancesMaterializedViews)
*
* @param string $parent Required. The unique name of the instance for which the
* list of materialized views is requested. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of materialized views to
* return. The service may return fewer than this value
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListMaterializedViews` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListMaterializedViews`
* must match the call that provided the page token.
* @opt_param string view Optional. Describes which of the materialized view's
* fields should be populated in the response. For now, only the default value
* SCHEMA_VIEW is supported.
* @return ListMaterializedViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesMaterializedViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMaterializedViewsResponse::class);
}
/**
* Updates a materialized view within an instance. (materializedViews.patch)
*
* @param string $name Identifier. The unique name of the materialized view.
* Format: `projects/{project}/instances/{instance}/materializedViews/{materiali
* zed_view}` Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.
* @param MaterializedView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, MaterializedView $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on an instance resource. Replaces any existing
* policy. (materializedViews.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified instance resource.
* (materializedViews.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesMaterializedViews::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesMaterializedViews');
@@ -0,0 +1,339 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\CheckConsistencyRequest;
use Google\Service\BigtableAdmin\CheckConsistencyResponse;
use Google\Service\BigtableAdmin\CreateTableRequest;
use Google\Service\BigtableAdmin\DropRowRangeRequest;
use Google\Service\BigtableAdmin\GenerateConsistencyTokenRequest;
use Google\Service\BigtableAdmin\GenerateConsistencyTokenResponse;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListTablesResponse;
use Google\Service\BigtableAdmin\ModifyColumnFamiliesRequest;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\RestoreTableRequest;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\Table;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
use Google\Service\BigtableAdmin\UndeleteTableRequest;
/**
* The "tables" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $tables = $bigtableadminService->projects_instances_tables;
* </code>
*/
class ProjectsInstancesTables extends \Google\Service\Resource
{
/**
* Checks replication consistency based on a consistency token, that is, if
* replication has caught up based on the conditions specified in the token and
* the check request. (tables.checkConsistency)
*
* @param string $name Required. The unique name of the Table for which to check
* replication consistency. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param CheckConsistencyRequest $postBody
* @param array $optParams Optional parameters.
* @return CheckConsistencyResponse
* @throws \Google\Service\Exception
*/
public function checkConsistency($name, CheckConsistencyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('checkConsistency', [$params], CheckConsistencyResponse::class);
}
/**
* Creates a new table in the specified instance. The table can be created with
* a full set of initial column families, specified in the request.
* (tables.create)
*
* @param string $parent Required. The unique name of the instance in which to
* create the table. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param CreateTableRequest $postBody
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function create($parent, CreateTableRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Table::class);
}
/**
* Permanently deletes a specified table and all of its data. (tables.delete)
*
* @param string $name Required. The unique name of the table to be deleted.
* Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param array $optParams Optional parameters.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Permanently drop/delete a row range from a specified table. The request can
* specify whether to delete all rows in a table, or only those that match a
* particular prefix. Note that row key prefixes used here are treated as
* service data. For more information about how service data is handled, see the
* [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-
* notice). (tables.dropRowRange)
*
* @param string $name Required. The unique name of the table on which to drop a
* range of rows. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param DropRowRangeRequest $postBody
* @param array $optParams Optional parameters.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function dropRowRange($name, DropRowRangeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('dropRowRange', [$params], BigtableadminEmpty::class);
}
/**
* Generates a consistency token for a Table, which can be used in
* CheckConsistency to check whether mutations to the table that finished before
* this call started have been replicated. The tokens will be available for 90
* days. (tables.generateConsistencyToken)
*
* @param string $name Required. The unique name of the Table for which to
* create a consistency token. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param GenerateConsistencyTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return GenerateConsistencyTokenResponse
* @throws \Google\Service\Exception
*/
public function generateConsistencyToken($name, GenerateConsistencyTokenRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateConsistencyToken', [$params], GenerateConsistencyTokenResponse::class);
}
/**
* Gets metadata information about the specified table. (tables.get)
*
* @param string $name Required. The unique name of the requested table. Values
* are of the form `projects/{project}/instances/{instance}/tables/{table}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view The view to be applied to the returned table's fields.
* Defaults to `SCHEMA_VIEW` if unspecified.
* @return Table
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Table::class);
}
/**
* Gets the access control policy for a Bigtable resource. Returns an empty
* policy if the resource exists but does not have a policy set.
* (tables.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all tables served from a specified instance.
* (tables.listProjectsInstancesTables)
*
* @param string $parent Required. The unique name of the instance for which
* tables should be listed. Values are of the form
* `projects/{project}/instances/{instance}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of results per page. A page_size of
* zero lets the server choose the number of items to return. A page_size which
* is strictly positive will return at most that many items. A negative
* page_size will cause an error. Following the first request, subsequent
* paginated calls are not required to pass a page_size. If a page_size is set
* in subsequent calls, it must match the page_size given in the first request.
* @opt_param string pageToken The value of `next_page_token` returned by a
* previous call.
* @opt_param string view The view to be applied to the returned tables' fields.
* Only NAME_ONLY view (default), REPLICATION_VIEW and ENCRYPTION_VIEW are
* supported.
* @return ListTablesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesTables($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTablesResponse::class);
}
/**
* Performs a series of column family modifications on the specified table.
* Either all or none of the modifications will occur before this method
* returns, but data requests received prior to that point may see a table where
* only some modifications have taken effect. (tables.modifyColumnFamilies)
*
* @param string $name Required. The unique name of the table whose families
* should be modified. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param ModifyColumnFamiliesRequest $postBody
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function modifyColumnFamilies($name, ModifyColumnFamiliesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyColumnFamilies', [$params], Table::class);
}
/**
* Updates a specified table. (tables.patch)
*
* @param string $name The unique name of the table. Values are of the form
* `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views:
* `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL`
* @param Table $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreWarnings Optional. If true, ignore safety checks when
* updating the table.
* @opt_param string updateMask Required. The list of fields to update. A mask
* specifying which fields (e.g. `change_stream_config`) in the `table` field
* should be updated. This mask is relative to the `table` field, not to the
* request message. The wildcard (*) path is currently not supported. Currently
* UpdateTable is only supported for the following fields: *
* `change_stream_config` * `change_stream_config.retention_period` *
* `deletion_protection` * `automated_backup_policy` *
* `automated_backup_policy.retention_period` *
* `automated_backup_policy.frequency` * `row_key_schema` If `column_families`
* is set in `update_mask`, it will return an UNIMPLEMENTED error.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Table $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Create a new table by restoring from a completed backup. The returned table
* long-running operation can be used to track the progress of the operation,
* and to cancel it. The metadata field type is RestoreTableMetadata. The
* response type is Table, if successful. (tables.restore)
*
* @param string $parent Required. The name of the instance in which to create
* the restored table. Values are of the form `projects//instances/`.
* @param RestoreTableRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restore($parent, RestoreTableRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Operation::class);
}
/**
* Sets the access control policy on a Bigtable resource. Replaces any existing
* policy. (tables.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified Bigtable resource.
* (tables.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Restores a specified table which was accidentally deleted. (tables.undelete)
*
* @param string $name Required. The unique name of the table to be restored.
* Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param UndeleteTableRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteTableRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesTables::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesTables');
@@ -0,0 +1,219 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\AuthorizedView;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListAuthorizedViewsResponse;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "authorizedViews" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $authorizedViews = $bigtableadminService->projects_instances_tables_authorizedViews;
* </code>
*/
class ProjectsInstancesTablesAuthorizedViews extends \Google\Service\Resource
{
/**
* Creates a new AuthorizedView in a table. (authorizedViews.create)
*
* @param string $parent Required. This is the name of the table the
* AuthorizedView belongs to. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param AuthorizedView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authorizedViewId Required. The id of the AuthorizedView to
* create. This AuthorizedView must not already exist. The `authorized_view_id`
* appended to `parent` forms the full AuthorizedView name of the form `projects
* /{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_vie
* w}`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, AuthorizedView $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Permanently deletes a specified AuthorizedView. (authorizedViews.delete)
*
* @param string $name Required. The unique name of the AuthorizedView to be
* deleted. Values are of the form `projects/{project}/instances/{instance}/tabl
* es/{table}/authorizedViews/{authorized_view}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the AuthorizedView. If
* an etag is provided and does not match the current etag of the
* AuthorizedView, deletion will be blocked and an ABORTED error will be
* returned.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets information from a specified AuthorizedView. (authorizedViews.get)
*
* @param string $name Required. The unique name of the requested
* AuthorizedView. Values are of the form `projects/{project}/instances/{instanc
* e}/tables/{table}/authorizedViews/{authorized_view}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. The resource_view to be applied to the
* returned AuthorizedView's fields. Default to BASIC.
* @return AuthorizedView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthorizedView::class);
}
/**
* Gets the access control policy for a Bigtable resource. Returns an empty
* policy if the resource exists but does not have a policy set.
* (authorizedViews.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all AuthorizedViews from a specific table.
* (authorizedViews.listProjectsInstancesTablesAuthorizedViews)
*
* @param string $parent Required. The unique name of the table for which
* AuthorizedViews should be listed. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of results per page. A
* page_size of zero lets the server choose the number of items to return. A
* page_size which is strictly positive will return at most that many items. A
* negative page_size will cause an error. Following the first request,
* subsequent paginated calls are not required to pass a page_size. If a
* page_size is set in subsequent calls, it must match the page_size given in
* the first request.
* @opt_param string pageToken Optional. The value of `next_page_token` returned
* by a previous call.
* @opt_param string view Optional. The resource_view to be applied to the
* returned AuthorizedViews' fields. Default to NAME_ONLY.
* @return ListAuthorizedViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesTablesAuthorizedViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthorizedViewsResponse::class);
}
/**
* Updates an AuthorizedView in a table. (authorizedViews.patch)
*
* @param string $name Identifier. The name of this AuthorizedView. Values are
* of the form `projects/{project}/instances/{instance}/tables/{table}/authorize
* dViews/{authorized_view}`
* @param AuthorizedView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreWarnings Optional. If true, ignore the safety checks
* when updating the AuthorizedView.
* @opt_param string updateMask Optional. The list of fields to update. A mask
* specifying which fields in the AuthorizedView resource should be updated.
* This mask is relative to the AuthorizedView resource, not to the request
* message. A field will be overwritten if it is in the mask. If empty, all
* fields set in the request will be overwritten. A special value `*` means to
* overwrite all fields (including fields not set in the request).
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AuthorizedView $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on a Bigtable resource. Replaces any existing
* policy. (authorizedViews.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified Bigtable resource.
* (authorizedViews.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesTablesAuthorizedViews::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesTablesAuthorizedViews');
@@ -0,0 +1,208 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\BigtableadminEmpty;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\ListSchemaBundlesResponse;
use Google\Service\BigtableAdmin\Operation;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SchemaBundle;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "schemaBundles" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $schemaBundles = $bigtableadminService->projects_instances_tables_schemaBundles;
* </code>
*/
class ProjectsInstancesTablesSchemaBundles extends \Google\Service\Resource
{
/**
* Creates a new schema bundle in the specified table. (schemaBundles.create)
*
* @param string $parent Required. The parent resource where this schema bundle
* will be created. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param SchemaBundle $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string schemaBundleId Required. The unique ID to use for the
* schema bundle, which will become the final component of the schema bundle's
* resource name.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, SchemaBundle $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a schema bundle in the specified table. (schemaBundles.delete)
*
* @param string $name Required. The unique name of the schema bundle to delete.
* Values are of the form `projects/{project}/instances/{instance}/tables/{table
* }/schemaBundles/{schema_bundle}`
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag of the schema bundle. If this is
* provided, it must match the server's etag. The server returns an ABORTED
* error on a mismatched etag.
* @return BigtableadminEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigtableadminEmpty::class);
}
/**
* Gets metadata information about the specified schema bundle.
* (schemaBundles.get)
*
* @param string $name Required. The unique name of the schema bundle to
* retrieve. Values are of the form `projects/{project}/instances/{instance}/tab
* les/{table}/schemaBundles/{schema_bundle}`
* @param array $optParams Optional parameters.
* @return SchemaBundle
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SchemaBundle::class);
}
/**
* Gets the access control policy for a Bigtable resource. Returns an empty
* policy if the resource exists but does not have a policy set.
* (schemaBundles.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all schema bundles associated with the specified table.
* (schemaBundles.listProjectsInstancesTablesSchemaBundles)
*
* @param string $parent Required. The parent, which owns this collection of
* schema bundles. Values are of the form
* `projects/{project}/instances/{instance}/tables/{table}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of schema bundles to return. If
* the value is positive, the server may return at most this value. If
* unspecified, the server will return the maximum allowed page size.
* @opt_param string pageToken A page token, received from a previous
* `ListSchemaBundles` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListSchemaBundles` must match
* the call that provided the page token.
* @opt_param string view Optional. The resource_view to be applied to the
* returned SchemaBundles' fields. Defaults to NAME_ONLY.
* @return ListSchemaBundlesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsInstancesTablesSchemaBundles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSchemaBundlesResponse::class);
}
/**
* Updates a schema bundle in the specified table. (schemaBundles.patch)
*
* @param string $name Identifier. The unique name identifying this schema
* bundle. Values are of the form `projects/{project}/instances/{instance}/table
* s/{table}/schemaBundles/{schema_bundle}`
* @param SchemaBundle $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool ignoreWarnings Optional. If set, ignore the safety checks
* when updating the Schema Bundle. The safety checks are: - The new Schema
* Bundle is backwards compatible with the existing Schema Bundle.
* @opt_param string updateMask Optional. The list of fields to update.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, SchemaBundle $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on a Bigtable resource. Replaces any existing
* policy. (schemaBundles.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified Bigtable resource.
* (schemaBundles.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesTablesSchemaBundles::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesTablesSchemaBundles');
@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\GetIamPolicyRequest;
use Google\Service\BigtableAdmin\Policy;
use Google\Service\BigtableAdmin\SetIamPolicyRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsRequest;
use Google\Service\BigtableAdmin\TestIamPermissionsResponse;
/**
* The "views" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $views = $bigtableadminService->projects_instances_tables_views;
* </code>
*/
class ProjectsInstancesTablesViews extends \Google\Service\Resource
{
/**
* Gets the access control policy for a Table resource. Returns an empty policy
* if the resource exists but does not have a policy set. (views.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on a Table resource. Replaces any existing
* policy. (views.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that the caller has on the specified table resource.
* (views.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsInstancesTablesViews::class, 'Google_Service_BigtableAdmin_Resource_ProjectsInstancesTablesViews');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigtableAdmin\Resource;
use Google\Service\BigtableAdmin\ListLocationsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $bigtableadminService = new Google\Service\BigtableAdmin(...);
* $locations = $bigtableadminService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BigtableAdmin_Resource_ProjectsLocations');