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,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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\CancelOperationRequest;
use Google\Service\ServiceNetworking\ListOperationsResponse;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\ServicenetworkingEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $operations = $servicenetworkingService->operations;
* </code>
*/
class Operations 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 ServicenetworkingEmpty
* @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], ServicenetworkingEmpty::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 ServicenetworkingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ServicenetworkingEmpty::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.listOperations)
*
* @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 listOperations($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(Operations::class, 'Google_Service_ServiceNetworking_Resource_Operations');
@@ -0,0 +1,148 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\AddSubnetworkRequest;
use Google\Service\ServiceNetworking\DisableVpcServiceControlsRequest;
use Google\Service\ServiceNetworking\EnableVpcServiceControlsRequest;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\SearchRangeRequest;
use Google\Service\ServiceNetworking\ValidateConsumerConfigRequest;
use Google\Service\ServiceNetworking\ValidateConsumerConfigResponse;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $services = $servicenetworkingService->services;
* </code>
*/
class Services extends \Google\Service\Resource
{
/**
* For service producers, provisions a new subnet in a peered service's shared
* VPC network in the requested region and with the requested size that's
* expressed as a CIDR range (number of leading bits of ipV4 network mask). The
* method checks against the assigned allocated ranges to find a non-conflicting
* IP address range. The method will reuse a subnet if subsequent calls contain
* the same subnet name, region, and prefix length. This method will make
* producer's tenant project to be a shared VPC service project as needed.
* (services.addSubnetwork)
*
* @param string $parent Required. A tenant project in the service producer
* organization, in the following format: services/{service}/{collection-
* id}/{resource-id}. {collection-id} is the cloud resource collection type that
* represents the tenant project. Only `projects` are supported. {resource-id}
* is the tenant project numeric id, such as `123456`. {service} the name of the
* peering service, such as `service-peering.example.com`. This service must
* already be enabled in the service consumer's project.
* @param AddSubnetworkRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addSubnetwork($parent, AddSubnetworkRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addSubnetwork', [$params], Operation::class);
}
/**
* Disables VPC service controls for a connection.
* (services.disableVpcServiceControls)
*
* @param string $parent The service that is managing peering connectivity for a
* service producer's organization. For Google services that support this
* functionality, this value is `services/servicenetworking.googleapis.com`.
* @param DisableVpcServiceControlsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function disableVpcServiceControls($parent, DisableVpcServiceControlsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disableVpcServiceControls', [$params], Operation::class);
}
/**
* Enables VPC service controls for a connection.
* (services.enableVpcServiceControls)
*
* @param string $parent The service that is managing peering connectivity for a
* service producer's organization. For Google services that support this
* functionality, this value is `services/servicenetworking.googleapis.com`.
* @param EnableVpcServiceControlsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function enableVpcServiceControls($parent, EnableVpcServiceControlsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enableVpcServiceControls', [$params], Operation::class);
}
/**
* Service producers can use this method to find a currently unused range within
* consumer allocated ranges. This returned range is not reserved, and not
* guaranteed to remain unused. It will validate previously provided allocated
* ranges, find non-conflicting sub-range of requested size (expressed in number
* of leading bits of ipv4 network mask, as in CIDR range notation).
* (services.searchRange)
*
* @param string $parent Required. This is in a form services/{service}.
* {service} the name of the private access management service, for example
* 'service-peering.example.com'.
* @param SearchRangeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function searchRange($parent, SearchRangeRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('searchRange', [$params], Operation::class);
}
/**
* Service producers use this method to validate if the consumer provided
* network, project and requested range are valid. This allows them to use a
* fail-fast mechanism for consumer requests, and not have to wait for
* AddSubnetwork operation completion to determine if user request is invalid.
* (services.validate)
*
* @param string $parent Required. This is in a form services/{service} where
* {service} is the name of the private access management service. For example
* 'service-peering.example.com'.
* @param ValidateConsumerConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateConsumerConfigResponse
* @throws \Google\Service\Exception
*/
public function validate($parent, ValidateConsumerConfigRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validate', [$params], ValidateConsumerConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Services::class, 'Google_Service_ServiceNetworking_Resource_Services');
@@ -0,0 +1,135 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\Connection;
use Google\Service\ServiceNetworking\DeleteConnectionRequest;
use Google\Service\ServiceNetworking\ListConnectionsResponse;
use Google\Service\ServiceNetworking\Operation;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $connections = $servicenetworkingService->services_connections;
* </code>
*/
class ServicesConnections extends \Google\Service\Resource
{
/**
* Creates a private connection that establishes a VPC Network Peering
* connection to a VPC network in the service producer's organization. The
* administrator of the service consumer's VPC network invokes this method. The
* administrator must assign one or more allocated IP ranges for provisioning
* subnetworks in the service producer's VPC network. This connection is used
* for all supported services in the service producer's organization, so it only
* needs to be invoked once. (connections.create)
*
* @param string $parent The service that is managing peering connectivity for a
* service producer's organization. For Google services that support this
* functionality, this value is `services/servicenetworking.googleapis.com`.
* @param Connection $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Connection $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a private service access connection. (connections.deleteConnection)
*
* @param string $name Required. The private service connection that connects to
* a service producer organization. The name includes both the private service
* name and the VPC network peering name in the format of
* `services/{peering_service_name}/connections/{vpc_peering_name}`. For Google
* services that support this functionality, this is
* `services/servicenetworking.googleapis.com/connections/servicenetworking-
* googleapis-com`.
* @param DeleteConnectionRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function deleteConnection($name, DeleteConnectionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('deleteConnection', [$params], Operation::class);
}
/**
* List the private connections that are configured in a service consumer's VPC
* network. (connections.listServicesConnections)
*
* @param string $parent The service that is managing peering connectivity for a
* service producer's organization. For Google services that support this
* functionality, this value is `services/servicenetworking.googleapis.com`. If
* you specify `services/-` as the parameter value, all configured peering
* services are listed.
* @param array $optParams Optional parameters.
*
* @opt_param string network The name of service consumer's VPC network that's
* connected with service producer network through a private connection. The
* network name must be in the following format:
* `projects/{project}/global/networks/{network}`. {project} is a project
* number, such as in `12345` that includes the VPC service consumer's VPC
* network. {network} is the name of the service consumer's VPC network.
* @return ListConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listServicesConnections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectionsResponse::class);
}
/**
* Updates the allocated ranges that are assigned to a connection.
* (connections.patch)
*
* @param string $name The private service connection that connects to a service
* producer organization. The name includes both the private service name and
* the VPC network peering name in the format of
* `services/{peering_service_name}/connections/{vpc_peering_name}`. For Google
* services that support this functionality, this is
* `services/servicenetworking.googleapis.com/connections/servicenetworking-
* googleapis-com`.
* @param Connection $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool force If a previously defined allocated range is removed,
* force flag must be set to true.
* @opt_param string updateMask The update mask. If this is omitted, it defaults
* to "*". You can only update the listed peering ranges.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Connection $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(ServicesConnections::class, 'Google_Service_ServiceNetworking_Resource_ServicesConnections');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\DnsRecordSet;
/**
* The "dnsRecordSet" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsRecordSet = $servicenetworkingService->services_dnsRecordSet;
* </code>
*/
class ServicesDnsRecordSet extends \Google\Service\Resource
{
/**
* Producers can use this method to retrieve information about the DNS record
* set added to the private zone inside the shared tenant host project
* associated with a consumer network. (dnsRecordSet.get)
*
* @param string $parent Required. Parent resource identifying the connection
* which owns this collection of DNS zones in the format services/{service}.
* @param array $optParams Optional parameters.
*
* @opt_param string consumerNetwork Required. The consumer network containing
* the record set. Must be in the form of
* projects/{project}/global/networks/{network}
* @opt_param string domain Required. The domain name of the zone containing the
* recordset.
* @opt_param string type Required. RecordSet Type eg. type='A'. See the list of
* [Supported DNS Types](https://dns.corp.google.com/docs/overview).
* @opt_param string zone Required. The name of the zone containing the record
* set.
* @return DnsRecordSet
*/
public function get($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DnsRecordSet::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesDnsRecordSet::class, 'Google_Service_ServiceNetworking_Resource_ServicesDnsRecordSet');
@@ -0,0 +1,150 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\AddDnsRecordSetRequest;
use Google\Service\ServiceNetworking\DnsRecordSet;
use Google\Service\ServiceNetworking\ListDnsRecordSetsResponse;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\RemoveDnsRecordSetRequest;
use Google\Service\ServiceNetworking\UpdateDnsRecordSetRequest;
/**
* The "dnsRecordSets" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsRecordSets = $servicenetworkingService->services_dnsRecordSets;
* </code>
*/
class ServicesDnsRecordSets extends \Google\Service\Resource
{
/**
* Service producers can use this method to add DNS record sets to private DNS
* zones in the shared producer host project. (dnsRecordSets.add)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param AddDnsRecordSetRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function add($parent, AddDnsRecordSetRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('add', [$params], Operation::class);
}
/**
* Producers can use this method to retrieve information about the DNS record
* set added to the private zone inside the shared tenant host project
* associated with a consumer network. (dnsRecordSets.get)
*
* @param string $parent Required. Parent resource identifying the connection
* which owns this collection of DNS zones in the format services/{service}.
* @param array $optParams Optional parameters.
*
* @opt_param string consumerNetwork Required. The consumer network containing
* the record set. Must be in the form of
* projects/{project}/global/networks/{network}
* @opt_param string domain Required. The domain name of the zone containing the
* recordset.
* @opt_param string type Required. RecordSet Type eg. type='A'. See the list of
* [Supported DNS Types](https://cloud.google.com/dns/records/json-record).
* @opt_param string zone Required. The name of the zone containing the record
* set.
* @return DnsRecordSet
* @throws \Google\Service\Exception
*/
public function get($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DnsRecordSet::class);
}
/**
* Producers can use this method to retrieve a list of available DNS RecordSets
* available inside the private zone on the tenant host project accessible from
* their network. (dnsRecordSets.listServicesDnsRecordSets)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param array $optParams Optional parameters.
*
* @opt_param string consumerNetwork Required. The network that the consumer is
* using to connect with services. Must be in the form of
* projects/{project}/global/networks/{network} {project} is the project number,
* as in '12345' {network} is the network name.
* @opt_param string zone Required. The name of the private DNS zone in the
* shared producer host project from which the record set will be removed.
* @return ListDnsRecordSetsResponse
* @throws \Google\Service\Exception
*/
public function listServicesDnsRecordSets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDnsRecordSetsResponse::class);
}
/**
* Service producers can use this method to remove DNS record sets from private
* DNS zones in the shared producer host project. (dnsRecordSets.remove)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param RemoveDnsRecordSetRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function remove($parent, RemoveDnsRecordSetRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Operation::class);
}
/**
* Service producers can use this method to update DNS record sets from private
* DNS zones in the shared producer host project. (dnsRecordSets.update)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param UpdateDnsRecordSetRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($parent, UpdateDnsRecordSetRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesDnsRecordSets::class, 'Google_Service_ServiceNetworking_Resource_ServicesDnsRecordSets');
@@ -0,0 +1,56 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\GetDnsZoneResponse;
/**
* The "dnsZone" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsZone = $servicenetworkingService->services_dnsZone;
* </code>
*/
class ServicesDnsZone extends \Google\Service\Resource
{
/**
* Service producers can use this method to retrieve a DNS zone in the shared
* producer host project and the matching peering zones in consumer project
* (dnsZone.get)
*
* @param string $name Required. The network that the consumer is using to
* connect with services. Must be in the form of services/{service}/projects/{pr
* oject}/global/networks/{network}/zones/{zoneName} Where {service} is the
* peering service that is managing connectivity for the service producer's
* organization. For Google services that support this {project} is the project
* number, as in '12345' {network} is the network name. {zoneName} is the DNS
* zone name
* @param array $optParams Optional parameters.
* @return GetDnsZoneResponse
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetDnsZoneResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesDnsZone::class, 'Google_Service_ServiceNetworking_Resource_ServicesDnsZone');
@@ -0,0 +1,77 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\AddDnsZoneRequest;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\RemoveDnsZoneRequest;
/**
* The "dnsZones" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsZones = $servicenetworkingService->services_dnsZones;
* </code>
*/
class ServicesDnsZones extends \Google\Service\Resource
{
/**
* Service producers can use this method to add private DNS zones in the shared
* producer host project and matching peering zones in the consumer project.
* (dnsZones.add)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param AddDnsZoneRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function add($parent, AddDnsZoneRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('add', [$params], Operation::class);
}
/**
* Service producers can use this method to remove private DNS zones in the
* shared producer host project and matching peering zones in the consumer
* project. (dnsZones.remove)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param RemoveDnsZoneRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function remove($parent, RemoveDnsZoneRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('remove', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesDnsZones::class, 'Google_Service_ServiceNetworking_Resource_ServicesDnsZones');
@@ -0,0 +1,56 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\GetDnsZoneResponse;
/**
* The "dnsZone" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsZone = $servicenetworkingService->services_dnsZones_dnsZone;
* </code>
*/
class ServicesDnsZonesDnsZone extends \Google\Service\Resource
{
/**
* Service producers can use this method to retrieve a DNS zone in the shared
* producer host project and the matching peering zones in consumer project
* (dnsZone.get)
*
* @param string $name Required. The network that the consumer is using to
* connect with services. Must be in the form of services/{service}/projects/{pr
* oject}/global/networks/{network}/zones/{zoneName} Where {service} is the
* peering service that is managing connectivity for the service producer's
* organization. For Google services that support this {project} is the project
* number, as in '12345' {network} is the network name. {zoneName} is the DNS
* zone name
* @param array $optParams Optional parameters.
* @return GetDnsZoneResponse
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetDnsZoneResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesDnsZonesDnsZone::class, 'Google_Service_ServiceNetworking_Resource_ServicesDnsZonesDnsZone');
@@ -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\ServiceNetworking\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $projects = $servicenetworkingService->services_projects;
* </code>
*/
class ServicesProjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjects::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjects');
@@ -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\ServiceNetworking\Resource;
/**
* The "global" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $global = $servicenetworkingService->services_projects_global;
* </code>
*/
class ServicesProjectsServicenetworkingGlobal extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobal::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobal');
@@ -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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\ConsumerConfig;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\UpdateConsumerConfigRequest;
use Google\Service\ServiceNetworking\VpcServiceControls;
/**
* The "networks" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $networks = $servicenetworkingService->services_projects_global_networks;
* </code>
*/
class ServicesProjectsServicenetworkingGlobalNetworks extends \Google\Service\Resource
{
/**
* Service producers use this method to get the configuration of their
* connection including the import/export of custom routes and subnetwork routes
* with public IP. (networks.get)
*
* @param string $name Required. Name of the consumer config to retrieve in the
* format: `services/{service}/projects/{project}/global/networks/{network}`.
* {service} is the peering service that is managing connectivity for the
* service producer's organization. For Google services that support this
* functionality, this value is `servicenetworking.googleapis.com`. {project} is
* a project number e.g. `12345` that contains the service consumer's VPC
* network. {network} is the name of the service consumer's VPC network.
* @param array $optParams Optional parameters.
*
* @opt_param bool includeUsedIpRanges Optional. When true, include the used IP
* ranges as part of the GetConsumerConfig output. This includes routes created
* inside the service networking network, consumer network, peers of the
* consumer network, and reserved ranges inside the service networking network.
* By default, this is false
* @return ConsumerConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ConsumerConfig::class);
}
/**
* Consumers use this method to find out the state of VPC Service Controls. The
* controls could be enabled or disabled for a connection.
* (networks.getVpcServiceControls)
*
* @param string $name Required. Name of the VPC Service Controls config to
* retrieve in the format:
* `services/{service}/projects/{project}/global/networks/{network}`. {service}
* is the peering service that is managing connectivity for the service
* producer's organization. For Google services that support this functionality,
* this value is `servicenetworking.googleapis.com`. {project} is a project
* number e.g. `12345` that contains the service consumer's VPC network.
* {network} is the name of the service consumer's VPC network.
* @param array $optParams Optional parameters.
* @return VpcServiceControls
* @throws \Google\Service\Exception
*/
public function getVpcServiceControls($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getVpcServiceControls', [$params], VpcServiceControls::class);
}
/**
* Service producers use this method to update the configuration of their
* connection including the import/export of custom routes and subnetwork routes
* with public IP. (networks.updateConsumerConfig)
*
* @param string $parent Required. Parent resource identifying the connection
* for which the consumer config is being updated in the format:
* `services/{service}/projects/{project}/global/networks/{network}` {service}
* is the peering service that is managing connectivity for the service
* producer's organization. For Google services that support this functionality,
* this value is `servicenetworking.googleapis.com`. {project} is the number of
* the project that contains the service consumer's VPC network e.g. `12345`.
* {network} is the name of the service consumer's VPC network.
* @param UpdateConsumerConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateConsumerConfig($parent, UpdateConsumerConfigRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateConsumerConfig', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobalNetworks::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworks');
@@ -0,0 +1,82 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\GetDnsZoneResponse;
use Google\Service\ServiceNetworking\ListDnsZonesResponse;
/**
* The "dnsZones" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsZones = $servicenetworkingService->services_projects_global_networks_dnsZones;
* </code>
*/
class ServicesProjectsServicenetworkingGlobalNetworksDnsZones extends \Google\Service\Resource
{
/**
* Service producers can use this method to retrieve a DNS zone in the shared
* producer host project and the matching peering zones in consumer project
* (dnsZones.get)
*
* @param string $name Required. The network that the consumer is using to
* connect with services. Must be in the form of services/{service}/projects/{pr
* oject}/global/networks/{network}/zones/{zoneName} Where {service} is the
* peering service that is managing connectivity for the service producer's
* organization. For Google services that support this {project} is the project
* number, as in '12345' {network} is the network name. {zoneName} is the DNS
* zone name
* @param array $optParams Optional parameters.
* @return GetDnsZoneResponse
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GetDnsZoneResponse::class);
}
/**
* * Service producers can use this method to retrieve a list of available DNS
* zones in the shared producer host project and the matching peering zones in
* the consumer project. *
* (dnsZones.listServicesProjectsServicenetworkingGlobalNetworksDnsZones)
*
* @param string $parent Required. Parent resource identifying the connection
* which owns this collection of DNS zones in the format
* services/{service}/projects/{project}/global/networks/{network} Service: The
* service that is managing connectivity for the service producer's
* organization. For Google services that support this functionality, this value
* is `servicenetworking.googleapis.com`. Projects: the consumer project
* containing the consumer network. Network: The consumer network accessible
* from the tenant project.
* @param array $optParams Optional parameters.
* @return ListDnsZonesResponse
* @throws \Google\Service\Exception
*/
public function listServicesProjectsServicenetworkingGlobalNetworksDnsZones($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDnsZonesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobalNetworksDnsZones::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworksDnsZones');
@@ -0,0 +1,105 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\ListPeeredDnsDomainsResponse;
use Google\Service\ServiceNetworking\Operation;
use Google\Service\ServiceNetworking\PeeredDnsDomain;
/**
* The "peeredDnsDomains" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $peeredDnsDomains = $servicenetworkingService->services_projects_global_networks_peeredDnsDomains;
* </code>
*/
class ServicesProjectsServicenetworkingGlobalNetworksPeeredDnsDomains extends \Google\Service\Resource
{
/**
* Creates a peered DNS domain which sends requests for records in given
* namespace originating in the service producer VPC network to the consumer VPC
* network to be resolved. (peeredDnsDomains.create)
*
* @param string $parent Required. Parent resource identifying the connection
* for which the peered DNS domain will be created in the format:
* `services/{service}/projects/{project}/global/networks/{network}` {service}
* is the peering service that is managing connectivity for the service
* producer's organization. For Google services that support this functionality,
* this value is `servicenetworking.googleapis.com`. {project} is the number of
* the project that contains the service consumer's VPC network e.g. `12345`.
* {network} is the name of the service consumer's VPC network.
* @param PeeredDnsDomain $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, PeeredDnsDomain $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a peered DNS domain. (peeredDnsDomains.delete)
*
* @param string $name Required. The name of the peered DNS domain to delete in
* the format: `services/{service}/projects/{project}/global/networks/{network}/
* peeredDnsDomains/{name}`. {service} is the peering service that is managing
* connectivity for the service producer's organization. For Google services
* that support this functionality, this value is
* `servicenetworking.googleapis.com`. {project} is the number of the project
* that contains the service consumer's VPC network e.g. `12345`. {network} is
* the name of the service consumer's VPC network. {name} is the name of the
* peered DNS domain.
* @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);
}
/**
* Lists peered DNS domains for a connection. (peeredDnsDomains.listServicesProj
* ectsServicenetworkingGlobalNetworksPeeredDnsDomains)
*
* @param string $parent Required. Parent resource identifying the connection
* which owns this collection of peered DNS domains in the format:
* `services/{service}/projects/{project}/global/networks/{network}`. {service}
* is the peering service that is managing connectivity for the service
* producer's organization. For Google services that support this functionality,
* this value is `servicenetworking.googleapis.com`. {project} is a project
* number e.g. `12345` that contains the service consumer's VPC network.
* {network} is the name of the service consumer's VPC network.
* @param array $optParams Optional parameters.
* @return ListPeeredDnsDomainsResponse
* @throws \Google\Service\Exception
*/
public function listServicesProjectsServicenetworkingGlobalNetworksPeeredDnsDomains($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPeeredDnsDomainsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobalNetworksPeeredDnsDomains::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworksPeeredDnsDomains');
@@ -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\ServiceNetworking\Resource;
/**
* The "zones" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $zones = $servicenetworkingService->services_projects_global_networks_zones;
* </code>
*/
class ServicesProjectsServicenetworkingGlobalNetworksZones extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobalNetworksZones::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworksZones');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\ListDnsRecordSetsResponse;
/**
* The "dnsRecordSet" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $dnsRecordSet = $servicenetworkingService->services_projects_global_networks_zones_dnsRecordSet;
* </code>
*/
class ServicesProjectsServicenetworkingGlobalNetworksZonesDnsRecordSet extends \Google\Service\Resource
{
/**
* Producers can use this method to retrieve a list of available DNS RecordSets
* available inside the private zone on the tenant host project accessible from
* their network. (dnsRecordSet.lISTServicesProjectsServicenetworkingGlobalNetwo
* rksZonesDnsRecordSet)
*
* @param string $parent Required. The service that is managing peering
* connectivity for a service producer's organization. For Google services that
* support this functionality, this value is
* `services/servicenetworking.googleapis.com`.
* @param array $optParams Optional parameters.
*
* @opt_param string consumerNetwork Required. The network that the consumer is
* using to connect with services. Must be in the form of
* projects/{project}/global/networks/{network} {project} is the project number,
* as in '12345' {network} is the network name.
* @opt_param string zone Required. The name of the private DNS zone in the
* shared producer host project from which the record set will be removed.
* @return ListDnsRecordSetsResponse
*/
public function lISTServicesProjectsServicenetworkingGlobalNetworksZonesDnsRecordSet($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('lIST', [$params], ListDnsRecordSetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesProjectsServicenetworkingGlobalNetworksZonesDnsRecordSet::class, 'Google_Service_ServiceNetworking_Resource_ServicesProjectsServicenetworkingGlobalNetworksZonesDnsRecordSet');
@@ -0,0 +1,56 @@
<?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\ServiceNetworking\Resource;
use Google\Service\ServiceNetworking\AddRolesRequest;
use Google\Service\ServiceNetworking\Operation;
/**
* The "roles" collection of methods.
* Typical usage is:
* <code>
* $servicenetworkingService = new Google\Service\ServiceNetworking(...);
* $roles = $servicenetworkingService->services_roles;
* </code>
*/
class ServicesRoles extends \Google\Service\Resource
{
/**
* Service producers can use this method to add roles in the shared VPC host
* project. Each role is bound to the provided member. Each role must be
* selected from within an allowlisted set of roles. Each role is applied at
* only the granularity specified in the allowlist. (roles.add)
*
* @param string $parent Required. This is in a form services/{service} where
* {service} is the name of the private access management service. For example
* 'service-peering.example.com'.
* @param AddRolesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function add($parent, AddRolesRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('add', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicesRoles::class, 'Google_Service_ServiceNetworking_Resource_ServicesRoles');