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,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\SaaSServiceManagement\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $projects = $saasservicemgmtService->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_SaaSServiceManagement_Resource_Projects');
@@ -0,0 +1,85 @@
<?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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\GoogleCloudLocationLocation;
use Google\Service\SaaSServiceManagement\ListLocationsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $locations = $saasservicemgmtService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return GoogleCloudLocationLocation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudLocationLocation::class);
}
/**
* 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_SaaSServiceManagement_Resource_ProjectsLocations');
@@ -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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListReleasesResponse;
use Google\Service\SaaSServiceManagement\Release;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $releases = $saasservicemgmtService->projects_locations_releases;
* </code>
*/
class ProjectsLocationsReleases extends \Google\Service\Resource
{
/**
* Create a new release. (releases.create)
*
* @param string $parent Required. The parent of the release.
* @param Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string releaseId Required. The ID value for the new release.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Release
* @throws \Google\Service\Exception
*/
public function create($parent, Release $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Release::class);
}
/**
* Delete a single release. (releases.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the release. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the release. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single release. (releases.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Release::class);
}
/**
* Retrieve a collection of releases. (releases.listProjectsLocationsReleases)
*
* @param string $parent Required. The parent of the release.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of releases to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReleases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReleasesResponse::class);
}
/**
* Update a single release. (releases.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/releases/{release}"
* @param Release $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the Release resource by the update. The fields specified in
* the update_mask are relative to the resource, not the full request. A field
* will be overwritten if it is in the mask. If the user does not provide a mask
* then all fields in the Release will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Release
* @throws \Google\Service\Exception
*/
public function patch($name, Release $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Release::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReleases::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsReleases');
@@ -0,0 +1,190 @@
<?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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListReplicationsInternalResponse;
use Google\Service\SaaSServiceManagement\ReplicationInternal;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "replicationsInternal" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $replicationsInternal = $saasservicemgmtService->projects_locations_replicationsInternal;
* </code>
*/
class ProjectsLocationsReplicationsInternal extends \Google\Service\Resource
{
/**
* Create a new replication internal. (replicationsInternal.create)
*
* @param string $parent Required. The parent of the replication internal.
* @param ReplicationInternal $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string replicationInternalId Required. The ID value for the new
* replication internal.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function create($parent, ReplicationInternal $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ReplicationInternal::class);
}
/**
* Delete a single replication internal. (replicationsInternal.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the replication internal. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the replication internal. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single replication internal. (replicationsInternal.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ReplicationInternal::class);
}
/**
* Retrieve a collection of replication internals.
* (replicationsInternal.listProjectsLocationsReplicationsInternal)
*
* @param string $parent Required. The parent of the replication internal.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of replication internals to send
* per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListReplicationsInternalResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReplicationsInternal($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReplicationsInternalResponse::class);
}
/**
* Update a single replication internal. (replicationsInternal.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme: "projects/{project}/locations/{location
* }/replicationInternal/{replication_internal_id}"
* @param ReplicationInternal $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the replication internal. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the replication internal. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the ReplicationInternal resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields in the ReplicationInternal will be
* overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return ReplicationInternal
* @throws \Google\Service\Exception
*/
public function patch($name, ReplicationInternal $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ReplicationInternal::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReplicationsInternal::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsReplicationsInternal');
@@ -0,0 +1,181 @@
<?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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListRolloutKindsResponse;
use Google\Service\SaaSServiceManagement\RolloutKind;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "rolloutKinds" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $rolloutKinds = $saasservicemgmtService->projects_locations_rolloutKinds;
* </code>
*/
class ProjectsLocationsRolloutKinds extends \Google\Service\Resource
{
/**
* Create a new rollout kind. (rolloutKinds.create)
*
* @param string $parent Required. The parent of the rollout kind.
* @param RolloutKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string rolloutKindId Required. The ID value for the new rollout
* kind.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function create($parent, RolloutKind $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], RolloutKind::class);
}
/**
* Delete a single rollout kind. (rolloutKinds.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the rollout kind. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the rollout kind. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single rollout kind. (rolloutKinds.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], RolloutKind::class);
}
/**
* Retrieve a collection of rollout kinds.
* (rolloutKinds.listProjectsLocationsRolloutKinds)
*
* @param string $parent Required. The parent of the rollout kind.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of rollout kinds to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListRolloutKindsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRolloutKinds($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolloutKindsResponse::class);
}
/**
* Update a single rollout kind. (rolloutKinds.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
* @param RolloutKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the RolloutKind resource by the update. The fields specified
* in the update_mask are relative to the resource, not the full request. A
* field will be overwritten if it is in the mask. If the user does not provide
* a mask then all fields in the RolloutKind will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return RolloutKind
* @throws \Google\Service\Exception
*/
public function patch($name, RolloutKind $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], RolloutKind::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRolloutKinds::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsRolloutKinds');
@@ -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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListRolloutsResponse;
use Google\Service\SaaSServiceManagement\Rollout;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "rollouts" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $rollouts = $saasservicemgmtService->projects_locations_rollouts;
* </code>
*/
class ProjectsLocationsRollouts extends \Google\Service\Resource
{
/**
* Create a new rollout. (rollouts.create)
*
* @param string $parent Required. The parent of the rollout.
* @param Rollout $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string rolloutId Required. The ID value for the new rollout.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function create($parent, Rollout $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Rollout::class);
}
/**
* Delete a single rollout. (rollouts.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the rollout. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the rollout. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single rollout. (rollouts.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Rollout::class);
}
/**
* Retrieve a collection of rollouts. (rollouts.listProjectsLocationsRollouts)
*
* @param string $parent Required. The parent of the rollout.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of rollouts to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListRolloutsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRollouts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRolloutsResponse::class);
}
/**
* Update a single rollout. (rollouts.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/rollout/{rollout_id}"
* @param Rollout $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the Rollout resource by the update. The fields specified in
* the update_mask are relative to the resource, not the full request. A field
* will be overwritten if it is in the mask. If the user does not provide a mask
* then all fields in the Rollout will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Rollout
* @throws \Google\Service\Exception
*/
public function patch($name, Rollout $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Rollout::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRollouts::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsRollouts');
@@ -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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListSaasResponse;
use Google\Service\SaaSServiceManagement\Saas;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
/**
* The "saas" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $saas = $saasservicemgmtService->projects_locations_saas;
* </code>
*/
class ProjectsLocationsSaas extends \Google\Service\Resource
{
/**
* Create a new saas. (saas.create)
*
* @param string $parent Required. The parent of the saas.
* @param Saas $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string saasId Required. The ID value for the new saas.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Saas
* @throws \Google\Service\Exception
*/
public function create($parent, Saas $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Saas::class);
}
/**
* Delete a single saas. (saas.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the saas. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the saas. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single saas. (saas.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Saas
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Saas::class);
}
/**
* Retrieve a collection of saas. (saas.listProjectsLocationsSaas)
*
* @param string $parent Required. The parent of the saas.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of saas to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListSaasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSaas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSaasResponse::class);
}
/**
* Update a single saas. (saas.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/saas/{saas}"
* @param Saas $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the Saas resource by the update. The fields specified in the
* update_mask are relative to the resource, not the full request. A field will
* be overwritten if it is in the mask. If the user does not provide a mask then
* all fields in the Saas will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Saas
* @throws \Google\Service\Exception
*/
public function patch($name, Saas $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Saas::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSaas::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsSaas');
@@ -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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListTenantsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\Tenant;
/**
* The "tenants" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $tenants = $saasservicemgmtService->projects_locations_tenants;
* </code>
*/
class ProjectsLocationsTenants extends \Google\Service\Resource
{
/**
* Create a new tenant. (tenants.create)
*
* @param string $parent Required. The parent of the tenant.
* @param Tenant $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string tenantId Required. The ID value for the new tenant.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function create($parent, Tenant $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Tenant::class);
}
/**
* Delete a single tenant. (tenants.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the tenant. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the tenant. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single tenant. (tenants.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Tenant::class);
}
/**
* Retrieve a collection of tenants. (tenants.listProjectsLocationsTenants)
*
* @param string $parent Required. The parent of the tenant.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of tenants to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListTenantsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTenants($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTenantsResponse::class);
}
/**
* Update a single tenant. (tenants.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/tenants/{tenant}"
* @param Tenant $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the Tenant resource by the update. The fields specified in the
* update_mask are relative to the resource, not the full request. A field will
* be overwritten if it is in the mask. If the user does not provide a mask then
* all fields in the Tenant will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Tenant
* @throws \Google\Service\Exception
*/
public function patch($name, Tenant $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Tenant::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTenants::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsTenants');
@@ -0,0 +1,180 @@
<?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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitKindsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\UnitKind;
/**
* The "unitKinds" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $unitKinds = $saasservicemgmtService->projects_locations_unitKinds;
* </code>
*/
class ProjectsLocationsUnitKinds extends \Google\Service\Resource
{
/**
* Create a new unit kind. (unitKinds.create)
*
* @param string $parent Required. The parent of the unit kind.
* @param UnitKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string unitKindId Required. The ID value for the new unit kind.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function create($parent, UnitKind $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UnitKind::class);
}
/**
* Delete a single unit kind. (unitKinds.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit kind. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the unit kind. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit kind. (unitKinds.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UnitKind::class);
}
/**
* Retrieve a collection of unit kinds.
* (unitKinds.listProjectsLocationsUnitKinds)
*
* @param string $parent Required. The parent of the unit kind.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of unit kinds to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitKindsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnitKinds($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitKindsResponse::class);
}
/**
* Update a single unit kind. (unitKinds.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/unitKinds/{unitKind}"
* @param UnitKind $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the UnitKind resource by the update. The fields specified in
* the update_mask are relative to the resource, not the full request. A field
* will be overwritten if it is in the mask. If the user does not provide a mask
* then all fields in the UnitKind will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitKind
* @throws \Google\Service\Exception
*/
public function patch($name, UnitKind $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], UnitKind::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnitKinds::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnitKinds');
@@ -0,0 +1,182 @@
<?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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitOperationsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\UnitOperation;
/**
* The "unitOperations" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $unitOperations = $saasservicemgmtService->projects_locations_unitOperations;
* </code>
*/
class ProjectsLocationsUnitOperations extends \Google\Service\Resource
{
/**
* Create a new unit operation. (unitOperations.create)
*
* @param string $parent Required. The parent of the unit operation.
* @param UnitOperation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string unitOperationId Required. The ID value for the new unit
* operation.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function create($parent, UnitOperation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], UnitOperation::class);
}
/**
* Delete a single unit operation. (unitOperations.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit operation. This is used with state-changing methods to prevent
* accidental overwrites when multiple user agents might be acting in parallel
* on the same resource. An etag wildcard provide optimistic concurrency based
* on the expected existence of the unit operation. The Any wildcard (`*`)
* requires that the resource must already exists, and the Not Any wildcard
* (`!*`) requires that it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit operation. (unitOperations.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], UnitOperation::class);
}
/**
* Retrieve a collection of unit operations.
* (unitOperations.listProjectsLocationsUnitOperations)
*
* @param string $parent Required. The parent of the unit operation.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of unit operations to send per
* page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnitOperations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitOperationsResponse::class);
}
/**
* Update a single unit operation. (unitOperations.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
* @param UnitOperation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the UnitOperation resource by the update. The fields specified
* in the update_mask are relative to the resource, not the full request. A
* field will be overwritten if it is in the mask. If the user does not provide
* a mask then all fields in the UnitOperation will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return UnitOperation
* @throws \Google\Service\Exception
*/
public function patch($name, UnitOperation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], UnitOperation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnitOperations::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnitOperations');
@@ -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\SaaSServiceManagement\Resource;
use Google\Service\SaaSServiceManagement\ListUnitsResponse;
use Google\Service\SaaSServiceManagement\SaasservicemgmtEmpty;
use Google\Service\SaaSServiceManagement\Unit;
/**
* The "units" collection of methods.
* Typical usage is:
* <code>
* $saasservicemgmtService = new Google\Service\SaaSServiceManagement(...);
* $units = $saasservicemgmtService->projects_locations_units;
* </code>
*/
class ProjectsLocationsUnits extends \Google\Service\Resource
{
/**
* Create a new unit. (units.create)
*
* @param string $parent Required. The parent of the unit.
* @param Unit $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string unitId Required. The ID value for the new unit.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Unit
* @throws \Google\Service\Exception
*/
public function create($parent, Unit $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Unit::class);
}
/**
* Delete a single unit. (units.delete)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
*
* @opt_param string etag The etag known to the client for the expected state of
* the unit. This is used with state-changing methods to prevent accidental
* overwrites when multiple user agents might be acting in parallel on the same
* resource. An etag wildcard provide optimistic concurrency based on the
* expected existence of the unit. The Any wildcard (`*`) requires that the
* resource must already exists, and the Not Any wildcard (`!*`) requires that
* it must not.
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return SaasservicemgmtEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SaasservicemgmtEmpty::class);
}
/**
* Retrieve a single unit. (units.get)
*
* @param string $name Required. The resource name of the resource within a
* service.
* @param array $optParams Optional parameters.
* @return Unit
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Unit::class);
}
/**
* Retrieve a collection of units. (units.listProjectsLocationsUnits)
*
* @param string $parent Required. The parent of the unit.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter the list as specified in
* https://google.aip.dev/160.
* @opt_param string orderBy Order results as specified in
* https://google.aip.dev/132.
* @opt_param int pageSize The maximum number of units to send per page.
* @opt_param string pageToken The page token: If the next_page_token from a
* previous response is provided, this request will send the subsequent page.
* @return ListUnitsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsUnits($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListUnitsResponse::class);
}
/**
* Update a single unit. (units.patch)
*
* @param string $name Identifier. The resource name (full URI of the resource)
* following the standard naming scheme:
* "projects/{project}/locations/{location}/units/{unit}"
* @param Unit $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional request ID to identify requests.
* Specify a unique request ID so that if you must retry your request, the
* server will know to ignore the request if it has already been completed. The
* server will guarantee that for at least 60 minutes since the first request.
* For example, consider a situation where you make an initial request and the
* request times out. If you make the request again with the same request ID,
* the server can check if original operation with the same request ID was
* received, and if so, will ignore the second request. This prevents clients
* from accidentally creating duplicate commitments. The request ID must be a
* valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @opt_param string updateMask Field mask is used to specify the fields to be
* overwritten in the Unit resource by the update. The fields specified in the
* update_mask are relative to the resource, not the full request. A field will
* be overwritten if it is in the mask. If the user does not provide a mask then
* all fields in the Unit will be overwritten.
* @opt_param bool validateOnly If "validate_only" is set to true, the service
* will try to validate that this request would succeed, but will not actually
* make changes.
* @return Unit
* @throws \Google\Service\Exception
*/
public function patch($name, Unit $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Unit::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsUnits::class, 'Google_Service_SaaSServiceManagement_Resource_ProjectsLocationsUnits');