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

View File

@@ -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\NetworkManagement\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $projects = $networkmanagementService->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_NetworkManagement_Resource_Projects');

View File

@@ -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\NetworkManagement\Resource;
use Google\Service\NetworkManagement\ListLocationsResponse;
use Google\Service\NetworkManagement\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $locations = $networkmanagementService->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_NetworkManagement_Resource_ProjectsLocations');

View File

@@ -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\NetworkManagement\Resource;
/**
* The "global" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $global = $networkmanagementService->projects_locations_global;
* </code>
*/
class ProjectsLocationsNetworkmanagementGlobal extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworkmanagementGlobal::class, 'Google_Service_NetworkManagement_Resource_ProjectsLocationsNetworkmanagementGlobal');

View File

@@ -0,0 +1,262 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetworkManagement\Resource;
use Google\Service\NetworkManagement\ConnectivityTest;
use Google\Service\NetworkManagement\ListConnectivityTestsResponse;
use Google\Service\NetworkManagement\Operation;
use Google\Service\NetworkManagement\Policy;
use Google\Service\NetworkManagement\RerunConnectivityTestRequest;
use Google\Service\NetworkManagement\SetIamPolicyRequest;
use Google\Service\NetworkManagement\TestIamPermissionsRequest;
use Google\Service\NetworkManagement\TestIamPermissionsResponse;
/**
* The "connectivityTests" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $connectivityTests = $networkmanagementService->projects_locations_global_connectivityTests;
* </code>
*/
class ProjectsLocationsNetworkmanagementGlobalConnectivityTests extends \Google\Service\Resource
{
/**
* Creates a new Connectivity Test. After you create a test, the reachability
* analysis is performed as part of the long running operation, which completes
* when the analysis completes. If the endpoint specifications in
* `ConnectivityTest` are invalid (for example, containing non-existent
* resources in the network, or you don't have read permissions to the network
* configurations of listed projects), then the reachability result returns a
* value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are
* incomplete, the reachability result returns a value of AMBIGUOUS. For more
* information, see the Connectivity Test documentation.
* (connectivityTests.create)
*
* @param string $parent Required. The parent resource of the Connectivity Test
* to create: `projects/{project_id}/locations/global`
* @param ConnectivityTest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string testId Required. The logical name of the Connectivity Test
* in your project with the following restrictions: * Must contain only
* lowercase letters, numbers, and hyphens. * Must start with a letter. * Must
* be between 1-40 characters. * Must end with a number or a letter. * Must be
* unique within the customer project
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ConnectivityTest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a specific `ConnectivityTest`. (connectivityTests.delete)
*
* @param string $name Required. Connectivity Test resource name using the form:
* `projects/{project_id}/locations/global/connectivityTests/{test_id}`
* @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 the details of a specific Connectivity Test. (connectivityTests.get)
*
* @param string $name Required. `ConnectivityTest` resource name using the
* form: `projects/{project_id}/locations/global/connectivityTests/{test_id}`
* @param array $optParams Optional parameters.
* @return ConnectivityTest
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ConnectivityTest::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set.
* (connectivityTests.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all Connectivity Tests owned by a project. (connectivityTests.listProje
* ctsLocationsNetworkmanagementGlobalConnectivityTests)
*
* @param string $parent Required. The parent resource of the Connectivity
* Tests: `projects/{project_id}/locations/global`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Lists the `ConnectivityTests` that match the filter
* expression. A filter expression filters the resources listed in the response.
* The expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`,
* `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
* roughly synonymous with equality). can refer to a proto or JSON field, or a
* synthetic field. Field names can be camelCase or snake_case. Examples: -
* Filter by name: name =
* "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by
* labels: - Resources that have a key called `foo` labels.foo:* - Resources
* that have a key called `foo` whose value is `bar` labels.foo = bar
* @opt_param string orderBy Field to use to sort the list.
* @opt_param int pageSize Number of `ConnectivityTests` to return.
* @opt_param string pageToken Page token from an earlier query, as returned in
* `next_page_token`.
* @return ListConnectivityTestsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworkmanagementGlobalConnectivityTests($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectivityTestsResponse::class);
}
/**
* Updates the configuration of an existing `ConnectivityTest`. After you update
* a test, the reachability analysis is performed as part of the long running
* operation, which completes when the analysis completes. The Reachability
* state in the test resource is updated with the new result. If the endpoint
* specifications in `ConnectivityTest` are invalid (for example, they contain
* non-existent resources in the network, or the user does not have read
* permissions to the network configurations of listed projects), then the
* reachability result returns a value of UNKNOWN. If the endpoint
* specifications in `ConnectivityTest` are incomplete, the reachability result
* returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest`
* for more details. (connectivityTests.patch)
*
* @param string $name Identifier. Unique name of the resource using the form:
* `projects/{project_id}/locations/global/connectivityTests/{test_id}`
* @param ConnectivityTest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, ConnectivityTest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the
* reachability analysis is performed as part of the long running operation,
* which completes when the analysis completes. Even though the test
* configuration remains the same, the reachability result may change due to
* underlying network configuration changes. If the endpoint specifications in
* `ConnectivityTest` become invalid (for example, specified resources are
* deleted in the network, or you lost read permissions to the network
* configurations of listed projects), then the reachability result returns a
* value of `UNKNOWN`. (connectivityTests.rerun)
*
* @param string $name Required. Connectivity Test resource name using the form:
* `projects/{project_id}/locations/global/connectivityTests/{test_id}`
* @param RerunConnectivityTestRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function rerun($name, RerunConnectivityTestRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rerun', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (connectivityTests.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.
* (connectivityTests.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(ProjectsLocationsNetworkmanagementGlobalConnectivityTests::class, 'Google_Service_NetworkManagement_Resource_ProjectsLocationsNetworkmanagementGlobalConnectivityTests');

View File

@@ -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\NetworkManagement\Resource;
use Google\Service\NetworkManagement\CancelOperationRequest;
use Google\Service\NetworkManagement\ListOperationsResponse;
use Google\Service\NetworkManagement\NetworkmanagementEmpty;
use Google\Service\NetworkManagement\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $operations = $networkmanagementService->projects_locations_global_operations;
* </code>
*/
class ProjectsLocationsNetworkmanagementGlobalOperations 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 NetworkmanagementEmpty
* @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], NetworkmanagementEmpty::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 NetworkmanagementEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], NetworkmanagementEmpty::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.listProjectsLocationsNetworkmanagementGlobalOperations)
*
* @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 listProjectsLocationsNetworkmanagementGlobalOperations($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(ProjectsLocationsNetworkmanagementGlobalOperations::class, 'Google_Service_NetworkManagement_Resource_ProjectsLocationsNetworkmanagementGlobalOperations');

View File

@@ -0,0 +1,147 @@
<?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\NetworkManagement\Resource;
use Google\Service\NetworkManagement\ListVpcFlowLogsConfigsResponse;
use Google\Service\NetworkManagement\Operation;
use Google\Service\NetworkManagement\VpcFlowLogsConfig;
/**
* The "vpcFlowLogsConfigs" collection of methods.
* Typical usage is:
* <code>
* $networkmanagementService = new Google\Service\NetworkManagement(...);
* $vpcFlowLogsConfigs = $networkmanagementService->projects_locations_vpcFlowLogsConfigs;
* </code>
*/
class ProjectsLocationsVpcFlowLogsConfigs extends \Google\Service\Resource
{
/**
* Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same
* settings already exists (even if the ID is different), the creation fails.
* Notes: 1. Creating a configuration with state=DISABLED will fail 2. The
* following fields are not considered as `settings` for the purpose of the
* check mentioned above, therefore - creating another configuration with the
* same fields but different values for the following fields will fail as well:
* * name * create_time * update_time * labels * description
* (vpcFlowLogsConfigs.create)
*
* @param string $parent Required. The parent resource of the VPC Flow Logs
* configuration to create: `projects/{project_id}/locations/global`
* @param VpcFlowLogsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string vpcFlowLogsConfigId Required. ID of the
* `VpcFlowLogsConfig`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, VpcFlowLogsConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a specific `VpcFlowLogsConfig`. (vpcFlowLogsConfigs.delete)
*
* @param string $name Required. `VpcFlowLogsConfig` resource name using the
* form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_lo
* gs_config}`
* @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 the details of a specific `VpcFlowLogsConfig`. (vpcFlowLogsConfigs.get)
*
* @param string $name Required. `VpcFlowLogsConfig` resource name using the
* form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_lo
* gs_config}`
* @param array $optParams Optional parameters.
* @return VpcFlowLogsConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], VpcFlowLogsConfig::class);
}
/**
* Lists all `VpcFlowLogsConfigs` in a given project.
* (vpcFlowLogsConfigs.listProjectsLocationsVpcFlowLogsConfigs)
*
* @param string $parent Required. The parent resource of the VpcFlowLogsConfig:
* `projects/{project_id}/locations/global`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Lists the `VpcFlowLogsConfigs` that match
* the filter expression. A filter expression must use the supported [CEL logic
* operators] (https://cloud.google.com/vpc/docs/about-flow-logs-
* records#supported_cel_logic_operators).
* @opt_param string orderBy Optional. Field to use to sort the list.
* @opt_param int pageSize Optional. Number of `VpcFlowLogsConfigs` to return.
* @opt_param string pageToken Optional. Page token from an earlier query, as
* returned in `next_page_token`.
* @return ListVpcFlowLogsConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVpcFlowLogsConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVpcFlowLogsConfigsResponse::class);
}
/**
* Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact
* same settings already exists (even if the ID is different), the creation
* fails. Notes: 1. Updating a configuration with state=DISABLED will fail. 2.
* The following fields are not considered as `settings` for the purpose of the
* check mentioned above, therefore - updating another configuration with the
* same fields but different values for the following fields will fail as well:
* * name * create_time * update_time * labels * description
* (vpcFlowLogsConfigs.patch)
*
* @param string $name Identifier. Unique name of the configuration using the
* form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_lo
* gs_config_id}`
* @param VpcFlowLogsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, VpcFlowLogsConfig $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(ProjectsLocationsVpcFlowLogsConfigs::class, 'Google_Service_NetworkManagement_Resource_ProjectsLocationsVpcFlowLogsConfigs');