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\AppHub\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $projects = $apphubService->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_AppHub_Resource_Projects');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\Boundary;
use Google\Service\AppHub\DetachServiceProjectAttachmentRequest;
use Google\Service\AppHub\DetachServiceProjectAttachmentResponse;
use Google\Service\AppHub\ListLocationsResponse;
use Google\Service\AppHub\Location;
use Google\Service\AppHub\LookupServiceProjectAttachmentResponse;
use Google\Service\AppHub\Operation;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $locations = $apphubService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Detaches a service project from a host project. You can call this API from
* any service project without needing access to the host project that it is
* attached to. (locations.detachServiceProjectAttachment)
*
* @param string $name Required. Service project id and location to detach from
* a host project. Only global location is supported. Expected format:
* `projects/{project}/locations/{location}`.
* @param DetachServiceProjectAttachmentRequest $postBody
* @param array $optParams Optional parameters.
* @return DetachServiceProjectAttachmentResponse
* @throws \Google\Service\Exception
*/
public function detachServiceProjectAttachment($name, DetachServiceProjectAttachmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('detachServiceProjectAttachment', [$params], DetachServiceProjectAttachmentResponse::class);
}
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Gets a Boundary. (locations.getBoundary)
*
* @param string $name Required. The name of the boundary to retrieve. Format:
* `projects/{project}/locations/{location}/boundary`.
* @param array $optParams Optional parameters.
* @return Boundary
* @throws \Google\Service\Exception
*/
public function getBoundary($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getBoundary', [$params], Boundary::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);
}
/**
* Lists a service project attachment for a given service project. You can call
* this API from any project to find if it is attached to a host project.
* (locations.lookupServiceProjectAttachment)
*
* @param string $name Required. Service project ID and location to lookup
* service project attachment for. Only global location is supported. Expected
* format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
* @return LookupServiceProjectAttachmentResponse
* @throws \Google\Service\Exception
*/
public function lookupServiceProjectAttachment($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('lookupServiceProjectAttachment', [$params], LookupServiceProjectAttachmentResponse::class);
}
/**
* Updates a Boundary. (locations.updateBoundary)
*
* @param string $name Identifier. The resource name of the boundary. Format:
* "projects/{project}/locations/{location}/boundary"
* @param Boundary $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 Required. Field mask is used to specify the
* fields to be overwritten in the Boundary 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 will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateBoundary($name, Boundary $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBoundary', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_AppHub_Resource_ProjectsLocations');
@@ -0,0 +1,251 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\Application;
use Google\Service\AppHub\ListApplicationsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Policy;
use Google\Service\AppHub\SetIamPolicyRequest;
use Google\Service\AppHub\TestIamPermissionsRequest;
use Google\Service\AppHub\TestIamPermissionsResponse;
/**
* The "applications" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $applications = $apphubService->projects_locations_applications;
* </code>
*/
class ProjectsLocationsApplications extends \Google\Service\Resource
{
/**
* Creates an Application in a host project and location. (applications.create)
*
* @param string $parent Required. Project and location to create Application
* in. Expected format: `projects/{project}/locations/{location}`.
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string applicationId Required. The Application identifier. Must
* contain only lowercase letters, numbers or hyphens, with the first character
* a letter, the last a letter or a number, and a 63 character maximum.
* @opt_param string requestId Optional. 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Application $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an Application in a host project and location. (applications.delete)
*
* @param string $name Required. Fully qualified name of the Application to
* delete. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 after 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets an Application in a host project and location. (applications.get)
*
* @param string $name Required. Fully qualified name of the Application to
* fetch. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
* @return Application
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Application::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (applications.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 array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Applications in a host project and location.
* (applications.listProjectsLocationsApplications)
*
* @param string $parent Required. Project and location to list Applications on.
* Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListApplicationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListApplicationsResponse::class);
}
/**
* Updates an Application in a host project and location. (applications.patch)
*
* @param string $name Identifier. The resource name of an Application. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}"`
* @param Application $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 Required. Field mask is used to specify the
* fields to be overwritten in the Application resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Application $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 the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (applications.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 a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (applications.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(ProjectsLocationsApplications::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplications');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListServicesResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Service;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $services = $apphubService->projects_locations_applications_services;
* </code>
*/
class ProjectsLocationsApplicationsServices extends \Google\Service\Resource
{
/**
* Creates a Service in an Application. (services.create)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to create the Service in. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 serviceId Required. The Service identifier. Must contain
* only lowercase letters, numbers or hyphens, with the first character a
* letter, the last a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Service $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Service from an Application. (services.delete)
*
* @param string $name Required. Fully qualified name of the Service to delete
* from an Application. Expected format: `projects/{project}/locations/{location
* }/applications/{application}/services/{service}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 after 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a Service in an Application. (services.get)
*
* @param string $name Required. Fully qualified name of the Service to fetch.
* Expected format: `projects/{project}/locations/{location}/applications/{appli
* cation}/services/{service}`.
* @param array $optParams Optional parameters.
* @return Service
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Service::class);
}
/**
* Lists Services in an Application.
* (services.listProjectsLocationsApplicationsServices)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to list Services for. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListServicesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsServices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServicesResponse::class);
}
/**
* Updates a Service in an Application. (services.patch)
*
* @param string $name Identifier. The resource name of a Service. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}/services/{service-id}"`
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 Required. Field mask is used to specify the
* fields to be overwritten in the Service resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Service $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(ProjectsLocationsApplicationsServices::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplicationsServices');
@@ -0,0 +1,175 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListWorkloadsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\Workload;
/**
* The "workloads" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $workloads = $apphubService->projects_locations_applications_workloads;
* </code>
*/
class ProjectsLocationsApplicationsWorkloads extends \Google\Service\Resource
{
/**
* Creates a Workload in an Application. (workloads.create)
*
* @param string $parent Required. Fully qualified name of the Application to
* create Workload in. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param Workload $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 workloadId Required. The Workload identifier. Must contain
* only lowercase letters, numbers or hyphens, with the first character a
* letter, the last a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Workload $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Workload from an Application. (workloads.delete)
*
* @param string $name Required. Fully qualified name of the Workload to delete
* from an Application. Expected format: `projects/{project}/locations/{location
* }/applications/{application}/workloads/{workload}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 after 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a Workload in an Application. (workloads.get)
*
* @param string $name Required. Fully qualified name of the Workload to fetch.
* Expected format: `projects/{project}/locations/{location}/applications/{appli
* cation}/workloads/{workload}`.
* @param array $optParams Optional parameters.
* @return Workload
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Workload::class);
}
/**
* Lists Workloads in an Application.
* (workloads.listProjectsLocationsApplicationsWorkloads)
*
* @param string $parent Required. Fully qualified name of the parent
* Application to list Workloads for. Expected format:
* `projects/{project}/locations/{location}/applications/{application}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListWorkloadsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsApplicationsWorkloads($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkloadsResponse::class);
}
/**
* Updates a Workload in an Application. (workloads.patch)
*
* @param string $name Identifier. The resource name of the Workload. Format:
* `"projects/{host-project-id}/locations/{location}/applications/{application-
* id}/workloads/{workload-id}"`
* @param Workload $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 Required. Field mask is used to specify the
* fields to be overwritten in the Workload resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. The API changes the values of the fields as specified in the
* update_mask. The API ignores the values of all fields not covered by the
* update_mask. You can also unset a field by not specifying it in the updated
* message, but adding the field to the mask. This clears whatever value the
* field previously had.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Workload $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(ProjectsLocationsApplicationsWorkloads::class, 'Google_Service_AppHub_Resource_ProjectsLocationsApplicationsWorkloads');
@@ -0,0 +1,99 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\DiscoveredService;
use Google\Service\AppHub\ListDiscoveredServicesResponse;
use Google\Service\AppHub\LookupDiscoveredServiceResponse;
/**
* The "discoveredServices" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $discoveredServices = $apphubService->projects_locations_discoveredServices;
* </code>
*/
class ProjectsLocationsDiscoveredServices extends \Google\Service\Resource
{
/**
* Gets a Discovered Service in a host project and location.
* (discoveredServices.get)
*
* @param string $name Required. Fully qualified name of the Discovered Service
* to fetch. Expected format: `projects/{project}/locations/{location}/discovere
* dServices/{discoveredService}`.
* @param array $optParams Optional parameters.
* @return DiscoveredService
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DiscoveredService::class);
}
/**
* Lists Discovered Services that can be added to an Application in a host
* project and location.
* (discoveredServices.listProjectsLocationsDiscoveredServices)
*
* @param string $parent Required. Project and location to list Discovered
* Services on. Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListDiscoveredServicesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDiscoveredServices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDiscoveredServicesResponse::class);
}
/**
* Lists a Discovered Service in a host project and location, with a given
* resource URI. (discoveredServices.lookup)
*
* @param string $parent Required. Host project ID and location to lookup
* Discovered Service in. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string uri Required. Resource URI to find DiscoveredService for.
* Accepts both project number and project ID and does translation when needed.
* @return LookupDiscoveredServiceResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupDiscoveredServiceResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredServices::class, 'Google_Service_AppHub_Resource_ProjectsLocationsDiscoveredServices');
@@ -0,0 +1,99 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\DiscoveredWorkload;
use Google\Service\AppHub\ListDiscoveredWorkloadsResponse;
use Google\Service\AppHub\LookupDiscoveredWorkloadResponse;
/**
* The "discoveredWorkloads" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $discoveredWorkloads = $apphubService->projects_locations_discoveredWorkloads;
* </code>
*/
class ProjectsLocationsDiscoveredWorkloads extends \Google\Service\Resource
{
/**
* Gets a Discovered Workload in a host project and location.
* (discoveredWorkloads.get)
*
* @param string $name Required. Fully qualified name of the Discovered Workload
* to fetch. Expected format: `projects/{project}/locations/{location}/discovere
* dWorkloads/{discoveredWorkload}`.
* @param array $optParams Optional parameters.
* @return DiscoveredWorkload
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DiscoveredWorkload::class);
}
/**
* Lists Discovered Workloads that can be added to an Application in a host
* project and location.
* (discoveredWorkloads.listProjectsLocationsDiscoveredWorkloads)
*
* @param string $parent Required. Project and location to list Discovered
* Workloads on. Expected format: `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListDiscoveredWorkloadsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsDiscoveredWorkloads($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDiscoveredWorkloadsResponse::class);
}
/**
* Lists a Discovered Workload in a host project and location, with a given
* resource URI. (discoveredWorkloads.lookup)
*
* @param string $parent Required. Host project ID and location to lookup
* Discovered Workload in. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string uri Required. Resource URI to find Discovered Workload for.
* Accepts both project number and project ID and does translation when needed.
* @return LookupDiscoveredWorkloadResponse
* @throws \Google\Service\Exception
*/
public function lookup($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupDiscoveredWorkloadResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsDiscoveredWorkloads::class, 'Google_Service_AppHub_Resource_ProjectsLocationsDiscoveredWorkloads');
@@ -0,0 +1,76 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ExtendedMetadataSchema;
use Google\Service\AppHub\ListExtendedMetadataSchemasResponse;
/**
* The "extendedMetadataSchemas" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $extendedMetadataSchemas = $apphubService->projects_locations_extendedMetadataSchemas;
* </code>
*/
class ProjectsLocationsExtendedMetadataSchemas extends \Google\Service\Resource
{
/**
* Gets an Extended Metadata Schema. (extendedMetadataSchemas.get)
*
* @param string $name Required. Schema resource name. Format: `projects/{projec
* t}/locations/{location}/extendedMetadataSchemas/{extended_metadata_schema}`.
* `{extended_metadata_schema}` has the format
* `"apphub.googleapis.com/{SchemaName}"`.
* @param array $optParams Optional parameters.
* @return ExtendedMetadataSchema
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ExtendedMetadataSchema::class);
}
/**
* Lists Extended Metadata Schemas available in a host project and location.
* (extendedMetadataSchemas.listProjectsLocationsExtendedMetadataSchemas)
*
* @param string $parent Required. Project and location to list Extended
* Metadata Schemas on. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListExtendedMetadataSchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsExtendedMetadataSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExtendedMetadataSchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsExtendedMetadataSchemas::class, 'Google_Service_AppHub_Resource_ProjectsLocationsExtendedMetadataSchemas');
@@ -0,0 +1,121 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ApphubEmpty;
use Google\Service\AppHub\CancelOperationRequest;
use Google\Service\AppHub\ListOperationsResponse;
use Google\Service\AppHub\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $operations = $apphubService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ApphubEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ApphubEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ApphubEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ApphubEmpty::class);
}
/**
* 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);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @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 listProjectsLocationsOperations($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(ProjectsLocationsOperations::class, 'Google_Service_AppHub_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,139 @@
<?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\AppHub\Resource;
use Google\Service\AppHub\ListServiceProjectAttachmentsResponse;
use Google\Service\AppHub\Operation;
use Google\Service\AppHub\ServiceProjectAttachment;
/**
* The "serviceProjectAttachments" collection of methods.
* Typical usage is:
* <code>
* $apphubService = new Google\Service\AppHub(...);
* $serviceProjectAttachments = $apphubService->projects_locations_serviceProjectAttachments;
* </code>
*/
class ProjectsLocationsServiceProjectAttachments extends \Google\Service\Resource
{
/**
* Attaches a service project to the host project.
* (serviceProjectAttachments.create)
*
* @param string $parent Required. Host project ID and location to which service
* project is being attached. Only global location is supported. Expected
* format: `projects/{project}/locations/{location}`.
* @param ServiceProjectAttachment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 serviceProjectAttachmentId Required. The service project
* attachment identifier must contain the project id of the service project
* specified in the service_project_attachment.service_project field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceProjectAttachment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a service project attachment. (serviceProjectAttachments.delete)
*
* @param string $name Required. Fully qualified name of the service project
* attachment to delete. Expected format: `projects/{project}/locations/{locatio
* n}/serviceProjectAttachments/{serviceProjectAttachment}`.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. 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 after 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).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets a service project attachment. (serviceProjectAttachments.get)
*
* @param string $name Required. Fully qualified name of the service project
* attachment to retrieve. Expected format: `projects/{project}/locations/{locat
* ion}/serviceProjectAttachments/{serviceProjectAttachment}`.
* @param array $optParams Optional parameters.
* @return ServiceProjectAttachment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceProjectAttachment::class);
}
/**
* Lists service projects attached to the host project.
* (serviceProjectAttachments.listProjectsLocationsServiceProjectAttachments)
*
* @param string $parent Required. Host project ID and location to list service
* project attachments. Only global location is supported. Expected format:
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results.
* @opt_param string orderBy Optional. Hint for how to order the results.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListServiceProjectAttachmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceProjectAttachments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceProjectAttachmentsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceProjectAttachments::class, 'Google_Service_AppHub_Resource_ProjectsLocationsServiceProjectAttachments');