Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 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\NetworkServices\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $projects = $networkservicesService->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_NetworkServices_Resource_Projects');
@@ -0,0 +1,74 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListLocationsResponse;
use Google\Service\NetworkServices\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $locations = $networkservicesService->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 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);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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_NetworkServices_Resource_ProjectsLocations');
@@ -0,0 +1,173 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\AuthzExtension;
use Google\Service\NetworkServices\ListAuthzExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "authzExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $authzExtensions = $networkservicesService->projects_locations_authzExtensions;
* </code>
*/
class ProjectsLocationsAuthzExtensions extends \Google\Service\Resource
{
/**
* Creates a new `AuthzExtension` resource in a given project and location.
* (authzExtensions.create)
*
* @param string $parent Required. The parent resource of the `AuthzExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param AuthzExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string authzExtensionId Required. User-provided ID of the
* `AuthzExtension` resource to be created.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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, AuthzExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `AuthzExtension` resource. (authzExtensions.delete)
*
* @param string $name Required. The name of the `AuthzExtension` resource to
* delete. Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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 details of the specified `AuthzExtension` resource.
* (authzExtensions.get)
*
* @param string $name Required. A name of the `AuthzExtension` resource to get.
* Must be in the format
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param array $optParams Optional parameters.
* @return AuthzExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AuthzExtension::class);
}
/**
* Lists `AuthzExtension` resources in a given project and location.
* (authzExtensions.listProjectsLocationsAuthzExtensions)
*
* @param string $parent Required. The project and location from which the
* `AuthzExtension` resources are listed, specified in the following 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. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListAuthzExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthzExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAuthzExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `AuthzExtension` resource.
* (authzExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `AuthzExtension`
* resource in the following format:
* `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.
* @param AuthzExtension $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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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. Used to specify the fields to be
* overwritten in the `AuthzExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, AuthzExtension $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(ProjectsLocationsAuthzExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsAuthzExtensions');
@@ -0,0 +1,113 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheKeysets" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheKeysets = $networkservicesService->projects_locations_edgeCacheKeysets;
* </code>
*/
class ProjectsLocationsEdgeCacheKeysets extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheKeysets.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheKeysets.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.
* (edgeCacheKeysets.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(ProjectsLocationsEdgeCacheKeysets::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheKeysets');
@@ -0,0 +1,113 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheOrigins" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheOrigins = $networkservicesService->projects_locations_edgeCacheOrigins;
* </code>
*/
class ProjectsLocationsEdgeCacheOrigins extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheOrigins.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheOrigins.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.
* (edgeCacheOrigins.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(ProjectsLocationsEdgeCacheOrigins::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheOrigins');
@@ -0,0 +1,113 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "edgeCacheServices" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $edgeCacheServices = $networkservicesService->projects_locations_edgeCacheServices;
* </code>
*/
class ProjectsLocationsEdgeCacheServices extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (edgeCacheServices.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);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (edgeCacheServices.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.
* (edgeCacheServices.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(ProjectsLocationsEdgeCacheServices::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEdgeCacheServices');
@@ -0,0 +1,134 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\EndpointPolicy;
use Google\Service\NetworkServices\ListEndpointPoliciesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "endpointPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $endpointPolicies = $networkservicesService->projects_locations_endpointPolicies;
* </code>
*/
class ProjectsLocationsEndpointPolicies extends \Google\Service\Resource
{
/**
* Creates a new EndpointPolicy in a given project and location.
* (endpointPolicies.create)
*
* @param string $parent Required. The parent resource of the EndpointPolicy.
* Must be in the format `projects/locations/global`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string endpointPolicyId Required. Short name of the EndpointPolicy
* resource to be created. E.g. "CustomECS".
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, EndpointPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single EndpointPolicy. (endpointPolicies.delete)
*
* @param string $name Required. A name of the EndpointPolicy to delete. Must be
* in the format `projects/locations/global/endpointPolicies`.
* @param array $optParams Optional parameters.
* @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 details of a single EndpointPolicy. (endpointPolicies.get)
*
* @param string $name Required. A name of the EndpointPolicy to get. Must be in
* the format `projects/locations/global/endpointPolicies`.
* @param array $optParams Optional parameters.
* @return EndpointPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], EndpointPolicy::class);
}
/**
* Lists EndpointPolicies in a given project and location.
* (endpointPolicies.listProjectsLocationsEndpointPolicies)
*
* @param string $parent Required. The project and location from which the
* EndpointPolicies should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of EndpointPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListEndpointPoliciesResponse` Indicates that this is a continuation of a
* prior `ListEndpointPolicies` call, and that the system should return the next
* page of data.
* @return ListEndpointPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsEndpointPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEndpointPoliciesResponse::class);
}
/**
* Updates the parameters of a single EndpointPolicy. (endpointPolicies.patch)
*
* @param string $name Identifier. Name of the EndpointPolicy resource. It
* matches pattern
* `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
* @param EndpointPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the EndpointPolicy 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 patch($name, EndpointPolicy $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(ProjectsLocationsEndpointPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsEndpointPolicies');
@@ -0,0 +1,129 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Gateway;
use Google\Service\NetworkServices\ListGatewaysResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "gateways" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $gateways = $networkservicesService->projects_locations_gateways;
* </code>
*/
class ProjectsLocationsGateways extends \Google\Service\Resource
{
/**
* Creates a new Gateway in a given project and location. (gateways.create)
*
* @param string $parent Required. The parent resource of the Gateway. Must be
* in the format `projects/locations`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string gatewayId Required. Short name of the Gateway resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Gateway $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Gateway. (gateways.delete)
*
* @param string $name Required. A name of the Gateway to delete. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @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 details of a single Gateway. (gateways.get)
*
* @param string $name Required. A name of the Gateway to get. Must be in the
* format `projects/locations/gateways`.
* @param array $optParams Optional parameters.
* @return Gateway
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Gateway::class);
}
/**
* Lists Gateways in a given project and location.
* (gateways.listProjectsLocationsGateways)
*
* @param string $parent Required. The project and location from which the
* Gateways should be listed, specified in the format `projects/locations`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Gateways to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGatewaysResponse` Indicates that this is a continuation of a prior
* `ListGateways` call, and that the system should return the next page of data.
* @return ListGatewaysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGateways($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewaysResponse::class);
}
/**
* Updates the parameters of a single Gateway. (gateways.patch)
*
* @param string $name Identifier. Name of the Gateway resource. It matches
* pattern `projects/locations/gateways/`.
* @param Gateway $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Gateway 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 patch($name, Gateway $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(ProjectsLocationsGateways::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGateways');
@@ -0,0 +1,75 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\GatewayRouteView;
use Google\Service\NetworkServices\ListGatewayRouteViewsResponse;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_gateways_routeViews;
* </code>
*/
class ProjectsLocationsGatewaysRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Gateway. (routeViews.get)
*
* @param string $name Required. Name of the GatewayRouteView resource. Formats:
* projects/{project_number}/locations/{location}/gateways/{gateway_name}/routeV
* iews/{route_view_name}
* @param array $optParams Optional parameters.
* @return GatewayRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GatewayRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsGatewaysRouteViews)
*
* @param string $parent Required. The Gateway to which a Route is associated.
* Formats:
* projects/{project_number}/locations/{location}/gateways/{gateway_name}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GatewayRouteViews to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListGatewayRouteViewsResponse` Indicates that this is a continuation of a
* prior `ListGatewayRouteViews` call, and that the system should return the
* next page of data.
* @return ListGatewayRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGatewaysRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGatewayRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsGatewaysRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGatewaysRouteViews');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\GrpcRoute;
use Google\Service\NetworkServices\ListGrpcRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "grpcRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $grpcRoutes = $networkservicesService->projects_locations_grpcRoutes;
* </code>
*/
class ProjectsLocationsGrpcRoutes extends \Google\Service\Resource
{
/**
* Creates a new GrpcRoute in a given project and location. (grpcRoutes.create)
*
* @param string $parent Required. The parent resource of the GrpcRoute. Must be
* in the format `projects/locations/global`.
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string grpcRouteId Required. Short name of the GrpcRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, GrpcRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single GrpcRoute. (grpcRoutes.delete)
*
* @param string $name Required. A name of the GrpcRoute to delete. Must be in
* the format `projects/locations/global/grpcRoutes`.
* @param array $optParams Optional parameters.
* @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 details of a single GrpcRoute. (grpcRoutes.get)
*
* @param string $name Required. A name of the GrpcRoute to get. Must be in the
* format `projects/locations/global/grpcRoutes`.
* @param array $optParams Optional parameters.
* @return GrpcRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GrpcRoute::class);
}
/**
* Lists GrpcRoutes in a given project and location.
* (grpcRoutes.listProjectsLocationsGrpcRoutes)
*
* @param string $parent Required. The project and location from which the
* GrpcRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of GrpcRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior
* `ListGrpcRoutes` call, and that the system should return the next page of
* data.
* @return ListGrpcRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsGrpcRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListGrpcRoutesResponse::class);
}
/**
* Updates the parameters of a single GrpcRoute. (grpcRoutes.patch)
*
* @param string $name Identifier. Name of the GrpcRoute resource. It matches
* pattern `projects/locations/global/grpcRoutes/`
* @param GrpcRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the GrpcRoute 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 patch($name, GrpcRoute $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(ProjectsLocationsGrpcRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsGrpcRoutes');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\HttpRoute;
use Google\Service\NetworkServices\ListHttpRoutesResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "httpRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $httpRoutes = $networkservicesService->projects_locations_httpRoutes;
* </code>
*/
class ProjectsLocationsHttpRoutes extends \Google\Service\Resource
{
/**
* Creates a new HttpRoute in a given project and location. (httpRoutes.create)
*
* @param string $parent Required. The parent resource of the HttpRoute. Must be
* in the format `projects/locations/global`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string httpRouteId Required. Short name of the HttpRoute resource
* to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, HttpRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single HttpRoute. (httpRoutes.delete)
*
* @param string $name Required. A name of the HttpRoute to delete. Must be in
* the format `projects/locations/global/httpRoutes`.
* @param array $optParams Optional parameters.
* @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 details of a single HttpRoute. (httpRoutes.get)
*
* @param string $name Required. A name of the HttpRoute to get. Must be in the
* format `projects/locations/global/httpRoutes`.
* @param array $optParams Optional parameters.
* @return HttpRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HttpRoute::class);
}
/**
* Lists HttpRoute in a given project and location.
* (httpRoutes.listProjectsLocationsHttpRoutes)
*
* @param string $parent Required. The project and location from which the
* HttpRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of HttpRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListHttpRoutesResponse` Indicates that this is a continuation of a prior
* `ListHttpRoutes` call, and that the system should return the next page of
* data.
* @return ListHttpRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsHttpRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHttpRoutesResponse::class);
}
/**
* Updates the parameters of a single HttpRoute. (httpRoutes.patch)
*
* @param string $name Identifier. Name of the HttpRoute resource. It matches
* pattern `projects/locations/global/httpRoutes/http_route_name>`.
* @param HttpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the HttpRoute 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 patch($name, HttpRoute $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(ProjectsLocationsHttpRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsHttpRoutes');
@@ -0,0 +1,173 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\LbRouteExtension;
use Google\Service\NetworkServices\ListLbRouteExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbRouteExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbRouteExtensions = $networkservicesService->projects_locations_lbRouteExtensions;
* </code>
*/
class ProjectsLocationsLbRouteExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbRouteExtension` resource in a given project and location.
* (lbRouteExtensions.create)
*
* @param string $parent Required. The parent resource of the `LbRouteExtension`
* resource. Must be in the format `projects/{project}/locations/{location}`.
* @param LbRouteExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbRouteExtensionId Required. User-provided ID of the
* `LbRouteExtension` resource to be created.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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, LbRouteExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbRouteExtension` resource. (lbRouteExtensions.delete)
*
* @param string $name Required. The name of the `LbRouteExtension` resource to
* delete. Must be in the format `projects/{project}/locations/{location}/lbRout
* eExtensions/{lb_route_extension}`.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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 details of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.get)
*
* @param string $name Required. A name of the `LbRouteExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbRouteEx
* tensions/{lb_route_extension}`.
* @param array $optParams Optional parameters.
* @return LbRouteExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbRouteExtension::class);
}
/**
* Lists `LbRouteExtension` resources in a given project and location.
* (lbRouteExtensions.listProjectsLocationsLbRouteExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbRouteExtension` resources are listed, specified in the following 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. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbRouteExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbRouteExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbRouteExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbRouteExtension` resource.
* (lbRouteExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbRouteExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* RouteExtensions/{lb_route_extension}`.
* @param LbRouteExtension $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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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 Optional. Used to specify the fields to be
* overwritten in the `LbRouteExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbRouteExtension $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(ProjectsLocationsLbRouteExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbRouteExtensions');
@@ -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\NetworkServices\Resource;
use Google\Service\NetworkServices\LbTrafficExtension;
use Google\Service\NetworkServices\ListLbTrafficExtensionsResponse;
use Google\Service\NetworkServices\Operation;
/**
* The "lbTrafficExtensions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $lbTrafficExtensions = $networkservicesService->projects_locations_lbTrafficExtensions;
* </code>
*/
class ProjectsLocationsLbTrafficExtensions extends \Google\Service\Resource
{
/**
* Creates a new `LbTrafficExtension` resource in a given project and location.
* (lbTrafficExtensions.create)
*
* @param string $parent Required. The parent resource of the
* `LbTrafficExtension` resource. Must be in the format
* `projects/{project}/locations/{location}`.
* @param LbTrafficExtension $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string lbTrafficExtensionId Required. User-provided ID of the
* `LbTrafficExtension` resource to be created.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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, LbTrafficExtension $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.delete)
*
* @param string $name Required. The name of the `LbTrafficExtension` resource
* to delete. Must be in the format `projects/{project}/locations/{location}/lbT
* rafficExtensions/{lb_traffic_extension}`.
* @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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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 details of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.get)
*
* @param string $name Required. A name of the `LbTrafficExtension` resource to
* get. Must be in the format `projects/{project}/locations/{location}/lbTraffic
* Extensions/{lb_traffic_extension}`.
* @param array $optParams Optional parameters.
* @return LbTrafficExtension
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LbTrafficExtension::class);
}
/**
* Lists `LbTrafficExtension` resources in a given project and location.
* (lbTrafficExtensions.listProjectsLocationsLbTrafficExtensions)
*
* @param string $parent Required. The project and location from which the
* `LbTrafficExtension` resources are listed, specified in the following 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. The server might
* return fewer items than requested. If unspecified, the server picks an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* that the server returns.
* @return ListLbTrafficExtensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsLbTrafficExtensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLbTrafficExtensionsResponse::class);
}
/**
* Updates the parameters of the specified `LbTrafficExtension` resource.
* (lbTrafficExtensions.patch)
*
* @param string $name Required. Identifier. Name of the `LbTrafficExtension`
* resource in the following format: `projects/{project}/locations/{location}/lb
* TrafficExtensions/{lb_traffic_extension}`.
* @param LbTrafficExtension $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 can ignore the request if it has already been completed. The
* server guarantees 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, ignores 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 Optional. Used to specify the fields to be
* overwritten in the `LbTrafficExtension` resource by the update. The fields
* specified in the `update_mask` are relative to the resource, not the full
* request. A field is overwritten if it is in the mask. If the user does not
* specify a mask, then all fields are overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, LbTrafficExtension $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(ProjectsLocationsLbTrafficExtensions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsLbTrafficExtensions');
@@ -0,0 +1,129 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshesResponse;
use Google\Service\NetworkServices\Mesh;
use Google\Service\NetworkServices\Operation;
/**
* The "meshes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $meshes = $networkservicesService->projects_locations_meshes;
* </code>
*/
class ProjectsLocationsMeshes extends \Google\Service\Resource
{
/**
* Creates a new Mesh in a given project and location. (meshes.create)
*
* @param string $parent Required. The parent resource of the Mesh. Must be in
* the format `projects/locations/global`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string meshId Required. Short name of the Mesh resource to be
* created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Mesh $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Mesh. (meshes.delete)
*
* @param string $name Required. A name of the Mesh to delete. Must be in the
* format `projects/locations/global/meshes`.
* @param array $optParams Optional parameters.
* @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 details of a single Mesh. (meshes.get)
*
* @param string $name Required. A name of the Mesh to get. Must be in the
* format `projects/locations/global/meshes`.
* @param array $optParams Optional parameters.
* @return Mesh
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Mesh::class);
}
/**
* Lists Meshes in a given project and location.
* (meshes.listProjectsLocationsMeshes)
*
* @param string $parent Required. The project and location from which the
* Meshes should be listed, specified in the format `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of Meshes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshesResponse` Indicates that this is a continuation of a prior
* `ListMeshes` call, and that the system should return the next page of data.
* @return ListMeshesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshesResponse::class);
}
/**
* Updates the parameters of a single Mesh. (meshes.patch)
*
* @param string $name Identifier. Name of the Mesh resource. It matches pattern
* `projects/locations/global/meshes/`.
* @param Mesh $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Mesh 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 patch($name, Mesh $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(ProjectsLocationsMeshes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshes');
@@ -0,0 +1,73 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListMeshRouteViewsResponse;
use Google\Service\NetworkServices\MeshRouteView;
/**
* The "routeViews" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $routeViews = $networkservicesService->projects_locations_meshes_routeViews;
* </code>
*/
class ProjectsLocationsMeshesRouteViews extends \Google\Service\Resource
{
/**
* Get a single RouteView of a Mesh. (routeViews.get)
*
* @param string $name Required. Name of the MeshRouteView resource. Format: pro
* jects/{project_number}/locations/{location}/meshes/{mesh_name}/routeViews/{ro
* ute_view_name}
* @param array $optParams Optional parameters.
* @return MeshRouteView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], MeshRouteView::class);
}
/**
* Lists RouteViews (routeViews.listProjectsLocationsMeshesRouteViews)
*
* @param string $parent Required. The Mesh to which a Route is associated.
* Format: projects/{project_number}/locations/{location}/meshes/{mesh_name}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of MeshRouteViews to return per call.
* @opt_param string pageToken The value returned by the last
* `ListMeshRouteViewsResponse` Indicates that this is a continuation of a prior
* `ListMeshRouteViews` call, and that the system should return the next page of
* data.
* @return ListMeshRouteViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsMeshesRouteViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListMeshRouteViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMeshesRouteViews::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMeshesRouteViews');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastConsumerAssociations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastConsumerAssociations = $networkservicesService->projects_locations_multicastConsumerAssociations;
* </code>
*/
class ProjectsLocationsMulticastConsumerAssociations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastConsumerAssociations.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastConsumerAssociations.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that 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.
* (multicastConsumerAssociations.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastConsumerAssociations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastConsumerAssociations');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomainActivations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomainActivations = $networkservicesService->projects_locations_multicastDomainActivations;
* </code>
*/
class ProjectsLocationsMulticastDomainActivations extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomainActivations.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomainActivations.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that 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.
* (multicastDomainActivations.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastDomainActivations::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomainActivations');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastDomains" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastDomains = $networkservicesService->projects_locations_multicastDomains;
* </code>
*/
class ProjectsLocationsMulticastDomains extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastDomains.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastDomains.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that 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.
* (multicastDomains.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastDomains::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastDomains');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroupDefinitions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroupDefinitions = $networkservicesService->projects_locations_multicastGroupDefinitions;
* </code>
*/
class ProjectsLocationsMulticastGroupDefinitions extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroupDefinitions.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroupDefinitions.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that 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.
* (multicastGroupDefinitions.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastGroupDefinitions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroupDefinitions');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\Policy;
use Google\Service\NetworkServices\SetIamPolicyRequest;
use Google\Service\NetworkServices\TestIamPermissionsRequest;
use Google\Service\NetworkServices\TestIamPermissionsResponse;
/**
* The "multicastGroups" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $multicastGroups = $networkservicesService->projects_locations_multicastGroups;
* </code>
*/
class ProjectsLocationsMulticastGroups extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (multicastGroups.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
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (multicastGroups.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that 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.
* (multicastGroups.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsMulticastGroups::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsMulticastGroups');
@@ -0,0 +1,114 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\CancelOperationRequest;
use Google\Service\NetworkServices\ListOperationsResponse;
use Google\Service\NetworkServices\NetworkservicesEmpty;
use Google\Service\NetworkServices\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $operations = $networkservicesService->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 NetworkservicesEmpty
* @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], NetworkservicesEmpty::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 NetworkservicesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworkservicesEmpty::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.
* @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_NetworkServices_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,110 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceBindingsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceBinding;
/**
* The "serviceBindings" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceBindings = $networkservicesService->projects_locations_serviceBindings;
* </code>
*/
class ProjectsLocationsServiceBindings extends \Google\Service\Resource
{
/**
* Creates a new ServiceBinding in a given project and location.
* (serviceBindings.create)
*
* @param string $parent Required. The parent resource of the ServiceBinding.
* Must be in the format `projects/locations/global`.
* @param ServiceBinding $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceBindingId Required. Short name of the ServiceBinding
* resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceBinding $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceBinding. (serviceBindings.delete)
*
* @param string $name Required. A name of the ServiceBinding to delete. Must be
* in the format `projects/locations/global/serviceBindings`.
* @param array $optParams Optional parameters.
* @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 details of a single ServiceBinding. (serviceBindings.get)
*
* @param string $name Required. A name of the ServiceBinding to get. Must be in
* the format `projects/locations/global/serviceBindings`.
* @param array $optParams Optional parameters.
* @return ServiceBinding
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceBinding::class);
}
/**
* Lists ServiceBinding in a given project and location.
* (serviceBindings.listProjectsLocationsServiceBindings)
*
* @param string $parent Required. The project and location from which the
* ServiceBindings should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceBindings to return per call.
* @opt_param string pageToken The value returned by the last
* `ListServiceBindingsResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceBindingsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceBindings($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceBindingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsServiceBindings::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceBindings');
@@ -0,0 +1,136 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListServiceLbPoliciesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\ServiceLbPolicy;
/**
* The "serviceLbPolicies" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $serviceLbPolicies = $networkservicesService->projects_locations_serviceLbPolicies;
* </code>
*/
class ProjectsLocationsServiceLbPolicies extends \Google\Service\Resource
{
/**
* Creates a new ServiceLbPolicy in a given project and location.
* (serviceLbPolicies.create)
*
* @param string $parent Required. The parent resource of the ServiceLbPolicy.
* Must be in the format `projects/{project}/locations/{location}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceLbPolicyId Required. Short name of the
* ServiceLbPolicy resource to be created. E.g. for resource name `projects/{pro
* ject}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}`. the
* id is value of {service_lb_policy_name}
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ServiceLbPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single ServiceLbPolicy. (serviceLbPolicies.delete)
*
* @param string $name Required. A name of the ServiceLbPolicy to delete. Must
* be in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @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 details of a single ServiceLbPolicy. (serviceLbPolicies.get)
*
* @param string $name Required. A name of the ServiceLbPolicy to get. Must be
* in the format `projects/{project}/locations/{location}/serviceLbPolicies`.
* @param array $optParams Optional parameters.
* @return ServiceLbPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServiceLbPolicy::class);
}
/**
* Lists ServiceLbPolicies in a given project and location.
* (serviceLbPolicies.listProjectsLocationsServiceLbPolicies)
*
* @param string $parent Required. The project and location from which the
* ServiceLbPolicies should be listed, specified in the format
* `projects/{project}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of ServiceLbPolicies to return per
* call.
* @opt_param string pageToken The value returned by the last
* `ListServiceLbPoliciesResponse` Indicates that this is a continuation of a
* prior `ListRouters` call, and that the system should return the next page of
* data.
* @return ListServiceLbPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsServiceLbPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServiceLbPoliciesResponse::class);
}
/**
* Updates the parameters of a single ServiceLbPolicy. (serviceLbPolicies.patch)
*
* @param string $name Identifier. Name of the ServiceLbPolicy resource. It
* matches pattern `projects/{project}/locations/{location}/serviceLbPolicies/{s
* ervice_lb_policy_name}`.
* @param ServiceLbPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the ServiceLbPolicy 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 patch($name, ServiceLbPolicy $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(ProjectsLocationsServiceLbPolicies::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceLbPolicies');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListTcpRoutesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\TcpRoute;
/**
* The "tcpRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $tcpRoutes = $networkservicesService->projects_locations_tcpRoutes;
* </code>
*/
class ProjectsLocationsTcpRoutes extends \Google\Service\Resource
{
/**
* Creates a new TcpRoute in a given project and location. (tcpRoutes.create)
*
* @param string $parent Required. The parent resource of the TcpRoute. Must be
* in the format `projects/locations/global`.
* @param TcpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tcpRouteId Required. Short name of the TcpRoute resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TcpRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TcpRoute. (tcpRoutes.delete)
*
* @param string $name Required. A name of the TcpRoute to delete. Must be in
* the format `projects/locations/global/tcpRoutes`.
* @param array $optParams Optional parameters.
* @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 details of a single TcpRoute. (tcpRoutes.get)
*
* @param string $name Required. A name of the TcpRoute to get. Must be in the
* format `projects/locations/global/tcpRoutes`.
* @param array $optParams Optional parameters.
* @return TcpRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TcpRoute::class);
}
/**
* Lists TcpRoute in a given project and location.
* (tcpRoutes.listProjectsLocationsTcpRoutes)
*
* @param string $parent Required. The project and location from which the
* TcpRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of TcpRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListTcpRoutesResponse` Indicates that this is a continuation of a prior
* `ListTcpRoutes` call, and that the system should return the next page of
* data.
* @return ListTcpRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTcpRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTcpRoutesResponse::class);
}
/**
* Updates the parameters of a single TcpRoute. (tcpRoutes.patch)
*
* @param string $name Identifier. Name of the TcpRoute resource. It matches
* pattern `projects/locations/global/tcpRoutes/tcp_route_name>`.
* @param TcpRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the TcpRoute 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 patch($name, TcpRoute $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(ProjectsLocationsTcpRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsTcpRoutes');
@@ -0,0 +1,131 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListTlsRoutesResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\TlsRoute;
/**
* The "tlsRoutes" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $tlsRoutes = $networkservicesService->projects_locations_tlsRoutes;
* </code>
*/
class ProjectsLocationsTlsRoutes extends \Google\Service\Resource
{
/**
* Creates a new TlsRoute in a given project and location. (tlsRoutes.create)
*
* @param string $parent Required. The parent resource of the TlsRoute. Must be
* in the format `projects/locations/global`.
* @param TlsRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tlsRouteId Required. Short name of the TlsRoute resource to
* be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, TlsRoute $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single TlsRoute. (tlsRoutes.delete)
*
* @param string $name Required. A name of the TlsRoute to delete. Must be in
* the format `projects/locations/global/tlsRoutes`.
* @param array $optParams Optional parameters.
* @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 details of a single TlsRoute. (tlsRoutes.get)
*
* @param string $name Required. A name of the TlsRoute to get. Must be in the
* format `projects/locations/global/tlsRoutes`.
* @param array $optParams Optional parameters.
* @return TlsRoute
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TlsRoute::class);
}
/**
* Lists TlsRoute in a given project and location.
* (tlsRoutes.listProjectsLocationsTlsRoutes)
*
* @param string $parent Required. The project and location from which the
* TlsRoutes should be listed, specified in the format
* `projects/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of TlsRoutes to return per call.
* @opt_param string pageToken The value returned by the last
* `ListTlsRoutesResponse` Indicates that this is a continuation of a prior
* `ListTlsRoutes` call, and that the system should return the next page of
* data.
* @return ListTlsRoutesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTlsRoutes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTlsRoutesResponse::class);
}
/**
* Updates the parameters of a single TlsRoute. (tlsRoutes.patch)
*
* @param string $name Identifier. Name of the TlsRoute resource. It matches
* pattern `projects/locations/global/tlsRoutes/tls_route_name>`.
* @param TlsRoute $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the TlsRoute 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 patch($name, TlsRoute $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(ProjectsLocationsTlsRoutes::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsTlsRoutes');
@@ -0,0 +1,144 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListWasmPluginsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\WasmPlugin;
/**
* The "wasmPlugins" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $wasmPlugins = $networkservicesService->projects_locations_wasmPlugins;
* </code>
*/
class ProjectsLocationsWasmPlugins extends \Google\Service\Resource
{
/**
* Creates a new `WasmPlugin` resource in a given project and location.
* (wasmPlugins.create)
*
* @param string $parent Required. The parent resource of the `WasmPlugin`
* resource. Must be in the format `projects/{project}/locations/global`.
* @param WasmPlugin $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string wasmPluginId Required. User-provided ID of the `WasmPlugin`
* resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WasmPlugin $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `WasmPlugin` resource. (wasmPlugins.delete)
*
* @param string $name Required. A name of the `WasmPlugin` resource to delete.
* Must be in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param array $optParams Optional parameters.
* @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 details of the specified `WasmPlugin` resource. (wasmPlugins.get)
*
* @param string $name Required. A name of the `WasmPlugin` resource to get.
* Must be in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view Determines how much data must be returned in the
* response. See [AIP-157](https://google.aip.dev/157).
* @return WasmPlugin
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WasmPlugin::class);
}
/**
* Lists `WasmPlugin` resources in a given project and location.
* (wasmPlugins.listProjectsLocationsWasmPlugins)
*
* @param string $parent Required. The project and location from which the
* `WasmPlugin` resources are listed, specified in the following format:
* `projects/{project}/locations/global`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of `WasmPlugin` resources to return
* per call. If not specified, at most 50 `WasmPlugin` resources are returned.
* The maximum value is 1000; values above 1000 are coerced to 1000.
* @opt_param string pageToken The value returned by the last
* `ListWasmPluginsResponse` call. Indicates that this is a continuation of a
* prior `ListWasmPlugins` call, and that the next page of data is to be
* returned.
* @return ListWasmPluginsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWasmPlugins($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWasmPluginsResponse::class);
}
/**
* Updates the parameters of the specified `WasmPlugin` resource.
* (wasmPlugins.patch)
*
* @param string $name Identifier. Name of the `WasmPlugin` resource in the
* following format:
* `projects/{project}/locations/{location}/wasmPlugins/{wasm_plugin}`.
* @param WasmPlugin $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Used to specify the fields to be
* overwritten in the `WasmPlugin` resource by the update. The fields specified
* in the `update_mask` field are relative to the resource, not the full
* request. An omitted `update_mask` field is treated as an implied
* `update_mask` field equivalent to all fields that are populated (that have a
* non-empty value). The `update_mask` field supports a special value `*`, which
* means that each field in the given `WasmPlugin` resource (including the empty
* ones) replaces the current value.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, WasmPlugin $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(ProjectsLocationsWasmPlugins::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsWasmPlugins');
@@ -0,0 +1,116 @@
<?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\NetworkServices\Resource;
use Google\Service\NetworkServices\ListWasmPluginVersionsResponse;
use Google\Service\NetworkServices\Operation;
use Google\Service\NetworkServices\WasmPluginVersion;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $networkservicesService = new Google\Service\NetworkServices(...);
* $versions = $networkservicesService->projects_locations_wasmPlugins_versions;
* </code>
*/
class ProjectsLocationsWasmPluginsVersions extends \Google\Service\Resource
{
/**
* Creates a new `WasmPluginVersion` resource in a given project and location.
* (versions.create)
*
* @param string $parent Required. The parent resource of the
* `WasmPluginVersion` resource. Must be in the format
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param WasmPluginVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string wasmPluginVersionId Required. User-provided ID of the
* `WasmPluginVersion` resource to be created.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, WasmPluginVersion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes the specified `WasmPluginVersion` resource. (versions.delete)
*
* @param string $name Required. A name of the `WasmPluginVersion` resource to
* delete. Must be in the format `projects/{project}/locations/global/wasmPlugin
* s/{wasm_plugin}/versions/{wasm_plugin_version}`.
* @param array $optParams Optional parameters.
* @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 details of the specified `WasmPluginVersion` resource. (versions.get)
*
* @param string $name Required. A name of the `WasmPluginVersion` resource to
* get. Must be in the format `projects/{project}/locations/global/wasmPlugins/{
* wasm_plugin}/versions/{wasm_plugin_version}`.
* @param array $optParams Optional parameters.
* @return WasmPluginVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], WasmPluginVersion::class);
}
/**
* Lists `WasmPluginVersion` resources in a given project and location.
* (versions.listProjectsLocationsWasmPluginsVersions)
*
* @param string $parent Required. The `WasmPlugin` resource whose
* `WasmPluginVersion`s are listed, specified in the following format:
* `projects/{project}/locations/global/wasmPlugins/{wasm_plugin}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of `WasmPluginVersion` resources to
* return per call. If not specified, at most 50 `WasmPluginVersion` resources
* are returned. The maximum value is 1000; values above 1000 are coerced to
* 1000.
* @opt_param string pageToken The value returned by the last
* `ListWasmPluginVersionsResponse` call. Indicates that this is a continuation
* of a prior `ListWasmPluginVersions` call, and that the next page of data is
* to be returned.
* @return ListWasmPluginVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsWasmPluginsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWasmPluginVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsWasmPluginsVersions::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsWasmPluginsVersions');