Skip to content

Commit

Permalink
Refresh Dlp (#1001)
Browse files Browse the repository at this point in the history
* Refresh Dlp

* Revert oneof documentation

* Fix missing *
  • Loading branch information
michaelbausor authored and dwsupplee committed Apr 11, 2018
1 parent c59c768 commit d92bc04
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 20 deletions.
42 changes: 22 additions & 20 deletions Dlp/src/V2/Gapic/DlpServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
use Grpc\ChannelCredentials;

/**
* Service Description: The DLP API is a service that allows clients
* Service Description: The Cloud Data Loss Prevention (DLP) API is a service that allows clients
* to detect the presence of Personally Identifiable Information (PII) and other
* privacy-sensitive data in user-supplied, unstructured data streams, like text
* blocks or images.
Expand Down Expand Up @@ -480,7 +480,7 @@ public static function parseName($formattedName, $template = null)
* @type CredentialsLoader $credentialsLoader
* A CredentialsLoader object created using the Google\Auth library.
* @type string[] $scopes A string array of scopes to use when acquiring credentials.
* Defaults to the scopes for the DLP API.
* Defaults to the scopes for the Cloud Data Loss Prevention (DLP) API.
* @type string $clientConfigPath
* Path to a JSON file containing client method configuration, including retry settings.
* Specify this setting to specify the retry behavior of all methods on the client.
Expand Down Expand Up @@ -722,7 +722,7 @@ public function deidentifyContent($parent, $optionalArgs = [])
}

/**
* Re-identify content that has been de-identified.
* Re-identifies content that has been de-identified.
*
* Sample code:
* ```
Expand Down Expand Up @@ -807,7 +807,9 @@ public function reidentifyContent($parent, $optionalArgs = [])
}

/**
* Returns sensitive information types DLP supports.
* Returns a list of the sensitive information types that the DLP API
* supports. For more information, see [Listing supported predefined
* infoTypes](https://cloud.google.com/dlp/docs/listing-infotypes).
*
* Sample code:
* ```
Expand Down Expand Up @@ -861,7 +863,7 @@ public function listInfoTypes($optionalArgs = [])
}

/**
* Creates an inspect template for re-using frequently used configuration
* Creates an InspectTemplate for re-using frequently used configuration
* for inspecting content, images, and storage.
*
* Sample code:
Expand Down Expand Up @@ -919,7 +921,7 @@ public function createInspectTemplate($parent, $optionalArgs = [])
}

/**
* Updates the inspect template.
* Updates the InspectTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -974,7 +976,7 @@ public function updateInspectTemplate($name, $optionalArgs = [])
}

/**
* Gets an inspect template.
* Gets an InspectTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1022,7 +1024,7 @@ public function getInspectTemplate($optionalArgs = [])
}

/**
* Lists inspect templates.
* Lists InspectTemplates.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1093,7 +1095,7 @@ public function listInspectTemplates($parent, $optionalArgs = [])
}

/**
* Deletes inspect templates.
* Deletes an InspectTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1136,8 +1138,8 @@ public function deleteInspectTemplate($name, $optionalArgs = [])
}

/**
* Creates an Deidentify template for re-using frequently used configuration
* for Deidentifying content, images, and storage.
* Creates a DeidentifyTemplate for re-using frequently used configuration
* for de-identifying content, images, and storage.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1194,7 +1196,7 @@ public function createDeidentifyTemplate($parent, $optionalArgs = [])
}

/**
* Updates the inspect template.
* Updates the DeidentifyTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1249,7 +1251,7 @@ public function updateDeidentifyTemplate($name, $optionalArgs = [])
}

/**
* Gets an inspect template.
* Gets a DeidentifyTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1294,7 +1296,7 @@ public function getDeidentifyTemplate($name, $optionalArgs = [])
}

/**
* Lists inspect templates.
* Lists DeidentifyTemplates.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1365,7 +1367,7 @@ public function listDeidentifyTemplates($parent, $optionalArgs = [])
}

/**
* Deletes inspect templates.
* Deletes a DeidentifyTemplate.
*
* Sample code:
* ```
Expand Down Expand Up @@ -1408,8 +1410,8 @@ public function deleteDeidentifyTemplate($name, $optionalArgs = [])
}

/**
* Create a new job to inspect storage or calculate risk metrics [How-to
* guide](https://cloud.google.com/dlp/docs/compute-risk-analysis).
* Creates a new job to inspect storage or calculate risk metrics.
* [How-to guide](https://cloud.google.com/dlp/docs/compute-risk-analysis).
*
* Sample code:
* ```
Expand Down Expand Up @@ -1661,7 +1663,7 @@ public function deleteDlpJob($name, $optionalArgs = [])
}

/**
* Starts asynchronous cancellation on a long-running DlpJob. The server
* Starts asynchronous cancellation on a long-running DlpJob. The server
* makes a best effort to cancel the DlpJob, but success is not
* guaranteed.
*
Expand Down Expand Up @@ -1931,8 +1933,8 @@ public function updateJobTrigger($name, $optionalArgs = [])
}

/**
* Creates a job to run DLP actions such as scanning storage for sensitive
* information on a set schedule.
* Creates a job trigger to run DLP actions such as scanning storage for
* sensitive information on a set schedule.
*
* Sample code:
* ```
Expand Down
89 changes: 89 additions & 0 deletions Dlp/src/V2/resources/dlp_service_rest_client_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,95 @@

return [
'interfaces' => [
'google.longrunning.Operations' => [
'ListOperations' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=inspect/operations}',
'additionalBindings' => [
[
'method' => 'get',
'uriTemplate' => '/v2beta1/{name=inspect/operations}',
],
[
'method' => 'get',
'uriTemplate' => '/v2beta1/{name=riskAnalysis/operations}',
],
],
'placeholders' => [
'name' => [
'getters' => [
'getName',
],
],
],
],
'GetOperation' => [
'method' => 'get',
'uriTemplate' => '/v1/{name=inspect/operations/*}',
'additionalBindings' => [
[
'method' => 'get',
'uriTemplate' => '/v2beta1/{name=inspect/operations/*}',
],
[
'method' => 'get',
'uriTemplate' => '/v2beta1/{name=riskAnalysis/operations/*}',
],
],
'placeholders' => [
'name' => [
'getters' => [
'getName',
],
],
],
],
'DeleteOperation' => [
'method' => 'delete',
'uriTemplate' => '/v1/{name=inspect/operations/*}',
'additionalBindings' => [
[
'method' => 'delete',
'uriTemplate' => '/v2beta1/{name=inspect/operations/*}',
],
[
'method' => 'delete',
'uriTemplate' => '/v2beta1/{name=riskAnalysis/operations/*}',
],
],
'placeholders' => [
'name' => [
'getters' => [
'getName',
],
],
],
],
'CancelOperation' => [
'method' => 'post',
'uriTemplate' => '/v1/{name=inspect/operations/*}:cancel',
'body' => '*',
'additionalBindings' => [
[
'method' => 'post',
'uriTemplate' => '/v2beta1/{name=inspect/operations/*}:cancel',
'body' => '*',
],
[
'method' => 'post',
'uriTemplate' => '/v2beta1/{name=riskAnalysis/operations/*}:cancel',
'body' => '*',
],
],
'placeholders' => [
'name' => [
'getters' => [
'getName',
],
],
],
],
],
'google.privacy.dlp.v2.DlpService' => [
'InspectContent' => [
'method' => 'post',
Expand Down

0 comments on commit d92bc04

Please sign in to comment.