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,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\Dns\Resource;
use Google\Service\Dns\Change;
use Google\Service\Dns\ChangesListResponse;
/**
* The "changes" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $changes = $dnsService->changes;
* </code>
*/
class Changes extends \Google\Service\Resource
{
/**
* Atomically updates the ResourceRecordSet collection. (changes.create)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param Change $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Change
* @throws \Google\Service\Exception
*/
public function create($project, $managedZone, Change $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Change::class);
}
/**
* Fetches the representation of an existing Change. (changes.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $changeId The identifier of the requested change, from a
* previous ResourceRecordSetsChangeResponse.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Change
* @throws \Google\Service\Exception
*/
public function get($project, $managedZone, $changeId, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Change::class);
}
/**
* Enumerates Changes to a ResourceRecordSet collection. (changes.listChanges)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param string sortBy Sorting criterion. The only supported value is
* change sequence.
* @opt_param string sortOrder Sorting order direction: 'ascending' or
* 'descending'.
* @return ChangesListResponse
* @throws \Google\Service\Exception
*/
public function listChanges($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ChangesListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Changes::class, 'Google_Service_Dns_Resource_Changes');
@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dns\Resource;
use Google\Service\Dns\DnsKey;
use Google\Service\Dns\DnsKeysListResponse;
/**
* The "dnsKeys" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $dnsKeys = $dnsService->dnsKeys;
* </code>
*/
class DnsKeys extends \Google\Service\Resource
{
/**
* Fetches the representation of an existing DnsKey. (dnsKeys.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $dnsKeyId The identifier of the requested DnsKey.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @opt_param string digestType An optional comma-separated list of digest types
* to compute and display for key signing keys. If omitted, the recommended
* digest type is computed and displayed.
* @return DnsKey
* @throws \Google\Service\Exception
*/
public function get($project, $managedZone, $dnsKeyId, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'dnsKeyId' => $dnsKeyId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DnsKey::class);
}
/**
* Enumerates DnsKeys to a ResourceRecordSet collection. (dnsKeys.listDnsKeys)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param array $optParams Optional parameters.
*
* @opt_param string digestType An optional comma-separated list of digest types
* to compute and display for key signing keys. If omitted, the recommended
* digest type is computed and displayed.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @return DnsKeysListResponse
* @throws \Google\Service\Exception
*/
public function listDnsKeys($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], DnsKeysListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DnsKeys::class, 'Google_Service_Dns_Resource_DnsKeys');
@@ -0,0 +1,84 @@
<?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\Dns\Resource;
use Google\Service\Dns\ManagedZoneOperationsListResponse;
use Google\Service\Dns\Operation;
/**
* The "managedZoneOperations" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $managedZoneOperations = $dnsService->managedZoneOperations;
* </code>
*/
class ManagedZoneOperations extends \Google\Service\Resource
{
/**
* Fetches the representation of an existing Operation.
* (managedZoneOperations.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request.
* @param string $operation Identifies the operation addressed by this request
* (ID of the operation).
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($project, $managedZone, $operation, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'operation' => $operation];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Enumerates Operations for the given ManagedZone.
* (managedZoneOperations.listManagedZoneOperations)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param string sortBy Sorting criterion. The only supported values are
* START_TIME and ID.
* @return ManagedZoneOperationsListResponse
* @throws \Google\Service\Exception
*/
public function listManagedZoneOperations($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedZoneOperationsListResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ManagedZoneOperations::class, 'Google_Service_Dns_Resource_ManagedZoneOperations');
@@ -0,0 +1,227 @@
<?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\Dns\Resource;
use Google\Service\Dns\GoogleIamV1GetIamPolicyRequest;
use Google\Service\Dns\GoogleIamV1Policy;
use Google\Service\Dns\GoogleIamV1SetIamPolicyRequest;
use Google\Service\Dns\GoogleIamV1TestIamPermissionsRequest;
use Google\Service\Dns\GoogleIamV1TestIamPermissionsResponse;
use Google\Service\Dns\ManagedZone;
use Google\Service\Dns\ManagedZonesListResponse;
use Google\Service\Dns\Operation;
/**
* The "managedZones" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $managedZones = $dnsService->managedZones;
* </code>
*/
class ManagedZones extends \Google\Service\Resource
{
/**
* Creates a new ManagedZone. (managedZones.create)
*
* @param string $project Identifies the project addressed by this request.
* @param ManagedZone $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ManagedZone
* @throws \Google\Service\Exception
*/
public function create($project, ManagedZone $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ManagedZone::class);
}
/**
* Deletes a previously created ManagedZone. (managedZones.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @throws \Google\Service\Exception
*/
public function delete($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Fetches the representation of an existing ManagedZone. (managedZones.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ManagedZone
* @throws \Google\Service\Exception
*/
public function get($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ManagedZone::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (managedZones.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 GoogleIamV1GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GoogleIamV1GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Enumerates ManagedZones that have been created but not yet deleted.
* (managedZones.listManagedZones)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string dnsName Restricts the list to return only zones with this
* domain name.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @return ManagedZonesListResponse
* @throws \Google\Service\Exception
*/
public function listManagedZones($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ManagedZonesListResponse::class);
}
/**
* Applies a partial update to an existing ManagedZone. (managedZones.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param ManagedZone $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($project, $managedZone, ManagedZone $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (managedZones.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 GoogleIamV1SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this returns 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.
* (managedZones.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 GoogleIamV1TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleIamV1TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class);
}
/**
* Updates an existing ManagedZone. (managedZones.update)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param ManagedZone $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Operation
* @throws \Google\Service\Exception
*/
public function update($project, $managedZone, ManagedZone $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, '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(ManagedZones::class, 'Google_Service_Dns_Resource_ManagedZones');
@@ -0,0 +1,159 @@
<?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\Dns\Resource;
use Google\Service\Dns\PoliciesListResponse;
use Google\Service\Dns\PoliciesPatchResponse;
use Google\Service\Dns\PoliciesUpdateResponse;
use Google\Service\Dns\Policy;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $policies = $dnsService->policies;
* </code>
*/
class Policies extends \Google\Service\Resource
{
/**
* Creates a new Policy. (policies.create)
*
* @param string $project Identifies the project addressed by this request.
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Policy
* @throws \Google\Service\Exception
*/
public function create($project, Policy $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Policy::class);
}
/**
* Deletes a previously created Policy. Fails if the policy is still being
* referenced by a network. (policies.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $policy User given friendly name of the policy addressed by
* this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @throws \Google\Service\Exception
*/
public function delete($project, $policy, $optParams = [])
{
$params = ['project' => $project, 'policy' => $policy];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Fetches the representation of an existing Policy. (policies.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $policy User given friendly name of the policy addressed by
* this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Policy
* @throws \Google\Service\Exception
*/
public function get($project, $policy, $optParams = [])
{
$params = ['project' => $project, 'policy' => $policy];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Policy::class);
}
/**
* Enumerates all Policies associated with a project. (policies.listPolicies)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @return PoliciesListResponse
* @throws \Google\Service\Exception
*/
public function listPolicies($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], PoliciesListResponse::class);
}
/**
* Applies a partial update to an existing Policy. (policies.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $policy User given friendly name of the policy addressed by
* this request.
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return PoliciesPatchResponse
* @throws \Google\Service\Exception
*/
public function patch($project, $policy, Policy $postBody, $optParams = [])
{
$params = ['project' => $project, 'policy' => $policy, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], PoliciesPatchResponse::class);
}
/**
* Updates an existing Policy. (policies.update)
*
* @param string $project Identifies the project addressed by this request.
* @param string $policy User given friendly name of the policy addressed by
* this request.
* @param Policy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return PoliciesUpdateResponse
* @throws \Google\Service\Exception
*/
public function update($project, $policy, Policy $postBody, $optParams = [])
{
$params = ['project' => $project, 'policy' => $policy, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], PoliciesUpdateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policies::class, 'Google_Service_Dns_Resource_Policies');
@@ -0,0 +1,53 @@
<?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\Dns\Resource;
use Google\Service\Dns\Project;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $projects = $dnsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Fetches the representation of an existing Project. (projects.get)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return Project
* @throws \Google\Service\Exception
*/
public function get($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Project::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Dns_Resource_Projects');
@@ -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\Dns\Resource;
/**
* The "managedZones" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $managedZones = $dnsService->managedZones;
* </code>
*/
class ProjectsManagedZones extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsManagedZones::class, 'Google_Service_Dns_Resource_ProjectsManagedZones');
@@ -0,0 +1,120 @@
<?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\Dns\Resource;
use Google\Service\Dns\ResourceRecordSet;
use Google\Service\Dns\ResourceRecordSetsDeleteResponse;
/**
* The "rrsets" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $rrsets = $dnsService->rrsets;
* </code>
*/
class ProjectsManagedZonesRrsets extends \Google\Service\Resource
{
/**
* Creates a new ResourceRecordSet. (rrsets.create)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param ResourceRecordSet $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
*/
public function create($project, $managedZone, ResourceRecordSet $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ResourceRecordSet::class);
}
/**
* Deletes a previously created ResourceRecordSet. (rrsets.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSetsDeleteResponse
*/
public function delete($project, $managedZone, $name, $type, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ResourceRecordSetsDeleteResponse::class);
}
/**
* Fetches the representation of an existing ResourceRecordSet. (rrsets.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
*/
public function get($project, $managedZone, $name, $type, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ResourceRecordSet::class);
}
/**
* Applies a partial update to an existing ResourceRecordSet. (rrsets.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param ResourceRecordSet $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
*/
public function patch($project, $managedZone, $name, $type, ResourceRecordSet $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ResourceRecordSet::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsManagedZonesRrsets::class, 'Google_Service_Dns_Resource_ProjectsManagedZonesRrsets');
@@ -0,0 +1,154 @@
<?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\Dns\Resource;
use Google\Service\Dns\ResourceRecordSet;
use Google\Service\Dns\ResourceRecordSetsDeleteResponse;
use Google\Service\Dns\ResourceRecordSetsListResponse;
/**
* The "resourceRecordSets" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $resourceRecordSets = $dnsService->resourceRecordSets;
* </code>
*/
class ResourceRecordSets extends \Google\Service\Resource
{
/**
* Creates a new ResourceRecordSet. (resourceRecordSets.create)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param ResourceRecordSet $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
* @throws \Google\Service\Exception
*/
public function create($project, $managedZone, ResourceRecordSet $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ResourceRecordSet::class);
}
/**
* Deletes a previously created ResourceRecordSet. (resourceRecordSets.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSetsDeleteResponse
* @throws \Google\Service\Exception
*/
public function delete($project, $managedZone, $name, $type, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ResourceRecordSetsDeleteResponse::class);
}
/**
* Fetches the representation of an existing ResourceRecordSet.
* (resourceRecordSets.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
* @throws \Google\Service\Exception
*/
public function get($project, $managedZone, $name, $type, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ResourceRecordSet::class);
}
/**
* Enumerates ResourceRecordSets that you have created but not yet deleted.
* (resourceRecordSets.listResourceRecordSets)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string name Restricts the list to return only records with this
* fully qualified domain name.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param string type Restricts the list to return only records of this
* type. If present, the "name" parameter must also be present.
* @return ResourceRecordSetsListResponse
* @throws \Google\Service\Exception
*/
public function listResourceRecordSets($project, $managedZone, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ResourceRecordSetsListResponse::class);
}
/**
* Applies a partial update to an existing ResourceRecordSet.
* (resourceRecordSets.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or ID.
* @param string $name Fully qualified domain name.
* @param string $type RRSet type.
* @param ResourceRecordSet $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResourceRecordSet
* @throws \Google\Service\Exception
*/
public function patch($project, $managedZone, $name, $type, ResourceRecordSet $postBody, $optParams = [])
{
$params = ['project' => $project, 'managedZone' => $managedZone, 'name' => $name, 'type' => $type, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ResourceRecordSet::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceRecordSets::class, 'Google_Service_Dns_Resource_ResourceRecordSets');
@@ -0,0 +1,162 @@
<?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\Dns\Resource;
use Google\Service\Dns\ResponsePoliciesListResponse;
use Google\Service\Dns\ResponsePoliciesPatchResponse;
use Google\Service\Dns\ResponsePoliciesUpdateResponse;
use Google\Service\Dns\ResponsePolicy;
/**
* The "responsePolicies" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $responsePolicies = $dnsService->responsePolicies;
* </code>
*/
class ResponsePolicies extends \Google\Service\Resource
{
/**
* Creates a new Response Policy (responsePolicies.create)
*
* @param string $project Identifies the project addressed by this request.
* @param ResponsePolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicy
* @throws \Google\Service\Exception
*/
public function create($project, ResponsePolicy $postBody, $optParams = [])
{
$params = ['project' => $project, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ResponsePolicy::class);
}
/**
* Deletes a previously created Response Policy. Fails if the response policy is
* non-empty or still being referenced by a network. (responsePolicies.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @throws \Google\Service\Exception
*/
public function delete($project, $responsePolicy, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Fetches the representation of an existing Response Policy.
* (responsePolicies.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicy
* @throws \Google\Service\Exception
*/
public function get($project, $responsePolicy, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ResponsePolicy::class);
}
/**
* Enumerates all Response Policies associated with a project.
* (responsePolicies.listResponsePolicies)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @return ResponsePoliciesListResponse
* @throws \Google\Service\Exception
*/
public function listResponsePolicies($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ResponsePoliciesListResponse::class);
}
/**
* Applies a partial update to an existing Response Policy.
* (responsePolicies.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the response policy
* addressed by this request.
* @param ResponsePolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePoliciesPatchResponse
* @throws \Google\Service\Exception
*/
public function patch($project, $responsePolicy, ResponsePolicy $postBody, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ResponsePoliciesPatchResponse::class);
}
/**
* Updates an existing Response Policy. (responsePolicies.update)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* addressed by this request.
* @param ResponsePolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePoliciesUpdateResponse
* @throws \Google\Service\Exception
*/
public function update($project, $responsePolicy, ResponsePolicy $postBody, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ResponsePoliciesUpdateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResponsePolicies::class, 'Google_Service_Dns_Resource_ResponsePolicies');
@@ -0,0 +1,174 @@
<?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\Dns\Resource;
use Google\Service\Dns\ResponsePolicyRule;
use Google\Service\Dns\ResponsePolicyRulesListResponse;
use Google\Service\Dns\ResponsePolicyRulesPatchResponse;
use Google\Service\Dns\ResponsePolicyRulesUpdateResponse;
/**
* The "responsePolicyRules" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google\Service\Dns(...);
* $responsePolicyRules = $dnsService->responsePolicyRules;
* </code>
*/
class ResponsePolicyRules extends \Google\Service\Resource
{
/**
* Creates a new Response Policy Rule. (responsePolicyRules.create)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* containing the Response Policy Rule.
* @param ResponsePolicyRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicyRule
* @throws \Google\Service\Exception
*/
public function create($project, $responsePolicy, ResponsePolicyRule $postBody, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ResponsePolicyRule::class);
}
/**
* Deletes a previously created Response Policy Rule.
* (responsePolicyRules.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* containing the Response Policy Rule.
* @param string $responsePolicyRule User assigned name of the Response Policy
* Rule addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @throws \Google\Service\Exception
*/
public function delete($project, $responsePolicy, $responsePolicyRule, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'responsePolicyRule' => $responsePolicyRule];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Fetches the representation of an existing Response Policy Rule.
* (responsePolicyRules.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* containing the Response Policy Rule.
* @param string $responsePolicyRule User assigned name of the Response Policy
* Rule addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicyRule
* @throws \Google\Service\Exception
*/
public function get($project, $responsePolicy, $responsePolicyRule, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'responsePolicyRule' => $responsePolicyRule];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ResponsePolicyRule::class);
}
/**
* Enumerates all Response Policy Rules associated with a project.
* (responsePolicyRules.listResponsePolicyRules)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy to
* list.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server decides how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @return ResponsePolicyRulesListResponse
* @throws \Google\Service\Exception
*/
public function listResponsePolicyRules($project, $responsePolicy, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ResponsePolicyRulesListResponse::class);
}
/**
* Applies a partial update to an existing Response Policy Rule.
* (responsePolicyRules.patch)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* containing the Response Policy Rule.
* @param string $responsePolicyRule User assigned name of the Response Policy
* Rule addressed by this request.
* @param ResponsePolicyRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicyRulesPatchResponse
* @throws \Google\Service\Exception
*/
public function patch($project, $responsePolicy, $responsePolicyRule, ResponsePolicyRule $postBody, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'responsePolicyRule' => $responsePolicyRule, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ResponsePolicyRulesPatchResponse::class);
}
/**
* Updates an existing Response Policy Rule. (responsePolicyRules.update)
*
* @param string $project Identifies the project addressed by this request.
* @param string $responsePolicy User assigned name of the Response Policy
* containing the Response Policy Rule.
* @param string $responsePolicyRule User assigned name of the Response Policy
* Rule addressed by this request.
* @param ResponsePolicyRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientOperationId For mutating operation requests only. An
* optional identifier specified by the client. Must be unique for operation
* resources in the Operations collection.
* @return ResponsePolicyRulesUpdateResponse
* @throws \Google\Service\Exception
*/
public function update($project, $responsePolicy, $responsePolicyRule, ResponsePolicyRule $postBody, $optParams = [])
{
$params = ['project' => $project, 'responsePolicy' => $responsePolicy, 'responsePolicyRule' => $responsePolicyRule, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ResponsePolicyRulesUpdateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResponsePolicyRules::class, 'Google_Service_Dns_Resource_ResponsePolicyRules');