Google\Cloud\Logging\V2\ConfigServiceV2Client::deleteSink PHP Method

deleteSink() public method

Sample code: try { $configServiceV2Client = new ConfigServiceV2Client(); $formattedSinkName = ConfigServiceV2Client::formatSinkName("[PROJECT]", "[SINK]"); $configServiceV2Client->deleteSink($formattedSinkName); } finally { if (isset($configServiceV2Client)) { $configServiceV2Client->close(); } }
public deleteSink ( string $sinkName, array $optionalArgs = [] )
$sinkName string Required. The resource name of the sink to delete, including the parent resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" It is an error if the sink does not exist.
$optionalArgs array { Optional. @type \Google\GAX\RetrySettings $retrySettings Retry settings to use for this call. If present, then $timeoutMillis is ignored. @type int $timeoutMillis Timeout to use for this call. Only used if $retrySettings is not set. }
    public function deleteSink($sinkName, $optionalArgs = [])
    {
        $request = new DeleteSinkRequest();
        $request->setSinkName($sinkName);
        $mergedSettings = $this->defaultCallSettings['deleteSink']->merge(new CallSettings($optionalArgs));
        $callable = ApiCallable::createApiCall($this->configServiceV2Stub, 'DeleteSink', $mergedSettings, $this->descriptors['deleteSink']);
        return $callable($request, [], ['call_credentials_callback' => $this->createCredentialsCallback()]);
    }