* $dnsService = new Google\Service\Dns(...); * $rrsets = $dnsService->rrsets; * */ 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');