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