/var/www/flurhymez/vendor/google/apiclient-services/src/Dns/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/Dns/Resource/ResponsePolicies.php (6530B)
* $dnsService = new Google\Service\Dns(...);
* $responsePolicies = $dnsService->responsePolicies;
*
*/
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
*/
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.
*/
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
*/
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
*/
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 Respones 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
*/
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
*/
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');