Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh GAPIcs #715

Merged
merged 3 commits into from
Oct 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"monolog/monolog": "~1",
"psr/http-message": "1.0.*",
"ramsey/uuid": "~3",
"google/proto-client": "^0.24",
"google/gax": "^0.24"
"google/proto-client": "^0.25",
"google/gax": "^0.25"
},
"require-dev": {
"phpunit/phpunit": "4.8.*",
Expand Down Expand Up @@ -117,4 +117,4 @@
]
}
}
}
}
262 changes: 199 additions & 63 deletions src/Dlp/V2beta1/Gapic/DlpServiceGapicClient.php

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/Dlp/V2beta1/resources/dlp_service_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
}
},
"methods": {
"DeidentifyContent": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"AnalyzeDataSourceRisk": {
"timeout_millis": 60000,
"retry_codes_name": "idempotent",
"retry_params_name": "default"
},
"InspectContent": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* ```
* try {
* $errorGroupServiceClient = new ErrorGroupServiceClient();
* $formattedGroupName = $errorGroupServiceClient->groupName("[PROJECT]", "[GROUP]");
* $formattedGroupName = $errorGroupServiceClient->groupName('[PROJECT]', '[GROUP]');
* $response = $errorGroupServiceClient->getGroup($formattedGroupName);
* } finally {
* $errorGroupServiceClient->close();
Expand Down Expand Up @@ -143,7 +143,7 @@ private static function getGapicVersion()
* @param string $project
* @param string $group
*
* @return string The formatted group resource.
* @return string the formatted group resource
* @experimental
*/
public static function groupName($project, $group)
Expand All @@ -168,9 +168,9 @@ public static function groupName($project, $group)
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
* @return array an associative array from name component IDs to component values
*
* @throws ValidationException If $formattedName could not be matched.
* @throws ValidationException if $formattedName could not be matched
* @experimental
*/
public static function parseName($formattedName, $template = null)
Expand Down Expand Up @@ -298,7 +298,7 @@ public function __construct($options = [])
* ```
* try {
* $errorGroupServiceClient = new ErrorGroupServiceClient();
* $formattedGroupName = $errorGroupServiceClient->groupName("[PROJECT]", "[GROUP]");
* $formattedGroupName = $errorGroupServiceClient->groupName('[PROJECT]', '[GROUP]');
* $response = $errorGroupServiceClient->getGroup($formattedGroupName);
* } finally {
* $errorGroupServiceClient->close();
Expand All @@ -314,7 +314,7 @@ public function __construct($options = [])
*
* Example: <code>projects/my-project-123/groups/my-group</code>
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type \Google\GAX\RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
Expand Down Expand Up @@ -368,9 +368,9 @@ public function getGroup($groupName, $optionalArgs = [])
* }
* ```
*
* @param ErrorGroup $group [Required] The group which replaces the resource on the server.
* @param errorGroup $group [Required] The group which replaces the resource on the server
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type \Google\GAX\RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
Expand Down
37 changes: 19 additions & 18 deletions src/ErrorReporting/V1beta1/Gapic/ErrorStatsServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@
* ```
* try {
* $errorStatsServiceClient = new ErrorStatsServiceClient();
* $formattedProjectName = $errorStatsServiceClient->projectName("[PROJECT]");
* $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]');
* $timeRange = new QueryTimeRange();
* // Iterate through all elements
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements, with the maximum page size set to 5
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange, ['pageSize' => 5]);
* // OR iterate over pages of elements
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
Expand Down Expand Up @@ -140,6 +140,7 @@ private static function getPathTemplateMap()

return self::$pathTemplateMap;
}

private static function getPageStreamingDescriptors()
{
$listGroupStatsPageStreamingDescriptor =
Expand Down Expand Up @@ -189,7 +190,7 @@ private static function getGapicVersion()
*
* @param string $project
*
* @return string The formatted project resource.
* @return string the formatted project resource
* @experimental
*/
public static function projectName($project)
Expand All @@ -213,9 +214,9 @@ public static function projectName($project)
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
* @return array an associative array from name component IDs to component values
*
* @throws ValidationException If $formattedName could not be matched.
* @throws ValidationException if $formattedName could not be matched
* @experimental
*/
public static function parseName($formattedName, $template = null)
Expand Down Expand Up @@ -348,16 +349,16 @@ public function __construct($options = [])
* ```
* try {
* $errorStatsServiceClient = new ErrorStatsServiceClient();
* $formattedProjectName = $errorStatsServiceClient->projectName("[PROJECT]");
* $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]');
* $timeRange = new QueryTimeRange();
* // Iterate through all elements
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements, with the maximum page size set to 5
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange, ['pageSize' => 5]);
* // OR iterate over pages of elements
* $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName, $timeRange);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
Expand All @@ -382,7 +383,7 @@ public function __construct($options = [])
* If a group_id list is given, also <code>ErrorGroupStats</code> with zero
* occurrences are returned.
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type string[] $groupId
* [Optional] List all <code>ErrorGroupStats</code> with these IDs.
Expand Down Expand Up @@ -482,16 +483,16 @@ public function listGroupStats($projectName, $timeRange, $optionalArgs = [])
* ```
* try {
* $errorStatsServiceClient = new ErrorStatsServiceClient();
* $formattedProjectName = $errorStatsServiceClient->projectName("[PROJECT]");
* $groupId = "";
* $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]');
* $groupId = '';
* // Iterate through all elements
* $pagedResponse = $errorStatsServiceClient->listEvents($formattedProjectName, $groupId);
* foreach ($pagedResponse->iterateAllElements() as $element) {
* // doSomethingWith($element);
* }
*
* // OR iterate over pages of elements, with the maximum page size set to 5
* $pagedResponse = $errorStatsServiceClient->listEvents($formattedProjectName, $groupId, ['pageSize' => 5]);
* // OR iterate over pages of elements
* $pagedResponse = $errorStatsServiceClient->listEvents($formattedProjectName, $groupId);
* foreach ($pagedResponse->iteratePages() as $page) {
* foreach ($page as $element) {
* // doSomethingWith($element);
Expand All @@ -507,9 +508,9 @@ public function listGroupStats($projectName, $timeRange, $optionalArgs = [])
* [Google Cloud Platform project
* ID](https://support.google.com/cloud/answer/6158840).
* Example: `projects/my-project-123`.
* @param string $groupId [Required] The group for which events shall be returned.
* @param string $groupId [Required] The group for which events shall be returned
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type ServiceContextFilter $serviceFilter
* [Optional] List only ErrorGroups which belong to a service context that
Expand Down Expand Up @@ -585,7 +586,7 @@ public function listEvents($projectName, $groupId, $optionalArgs = [])
* ```
* try {
* $errorStatsServiceClient = new ErrorStatsServiceClient();
* $formattedProjectName = $errorStatsServiceClient->projectName("[PROJECT]");
* $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]');
* $response = $errorStatsServiceClient->deleteEvents($formattedProjectName);
* } finally {
* $errorStatsServiceClient->close();
Expand All @@ -598,7 +599,7 @@ public function listEvents($projectName, $groupId, $optionalArgs = [])
* ID](https://support.google.com/cloud/answer/6158840).
* Example: `projects/my-project-123`.
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type \Google\GAX\RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* ```
* try {
* $reportErrorsServiceClient = new ReportErrorsServiceClient();
* $formattedProjectName = $reportErrorsServiceClient->projectName("[PROJECT]");
* $formattedProjectName = $reportErrorsServiceClient->projectName('[PROJECT]');
* $event = new ReportedErrorEvent();
* $response = $reportErrorsServiceClient->reportErrorEvent($formattedProjectName, $event);
* } finally {
Expand Down Expand Up @@ -142,7 +142,7 @@ private static function getGapicVersion()
*
* @param string $project
*
* @return string The formatted project resource.
* @return string the formatted project resource
* @experimental
*/
public static function projectName($project)
Expand All @@ -166,9 +166,9 @@ public static function projectName($project)
* @param string $formattedName The formatted name string
* @param string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
* @return array an associative array from name component IDs to component values
*
* @throws ValidationException If $formattedName could not be matched.
* @throws ValidationException if $formattedName could not be matched
* @experimental
*/
public static function parseName($formattedName, $template = null)
Expand Down Expand Up @@ -302,7 +302,7 @@ public function __construct($options = [])
* ```
* try {
* $reportErrorsServiceClient = new ReportErrorsServiceClient();
* $formattedProjectName = $reportErrorsServiceClient->projectName("[PROJECT]");
* $formattedProjectName = $reportErrorsServiceClient->projectName('[PROJECT]');
* $event = new ReportedErrorEvent();
* $response = $reportErrorsServiceClient->reportErrorEvent($formattedProjectName, $event);
* } finally {
Expand All @@ -314,9 +314,9 @@ public function __construct($options = [])
* as `projects/` plus the
* [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).
* Example: `projects/my-project-123`.
* @param ReportedErrorEvent $event [Required] The error event to be reported.
* @param reportedErrorEvent $event [Required] The error event to be reported
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type \Google\GAX\RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
Expand Down
26 changes: 13 additions & 13 deletions src/Language/V1beta2/Gapic/LanguageServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ public function __construct($options = [])
* }
* ```
*
* @param Document $document Input document.
* @param Document $document input document
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type int $encodingType
* The encoding type used by the API to calculate sentence offsets for the
Expand Down Expand Up @@ -292,9 +292,9 @@ public function analyzeSentiment($document, $optionalArgs = [])
* }
* ```
*
* @param Document $document Input document.
* @param Document $document input document
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type int $encodingType
* The encoding type used by the API to calculate offsets.
Expand Down Expand Up @@ -354,9 +354,9 @@ public function analyzeEntities($document, $optionalArgs = [])
* }
* ```
*
* @param Document $document Input document.
* @param Document $document input document
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type int $encodingType
* The encoding type used by the API to calculate offsets.
Expand Down Expand Up @@ -417,9 +417,9 @@ public function analyzeEntitySentiment($document, $optionalArgs = [])
* }
* ```
*
* @param Document $document Input document.
* @param Document $document input document
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type int $encodingType
* The encoding type used by the API to calculate offsets.
Expand Down Expand Up @@ -478,9 +478,9 @@ public function analyzeSyntax($document, $optionalArgs = [])
* }
* ```
*
* @param Document $document Input document.
* @param Document $document input document
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type \Google\GAX\RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a
Expand Down Expand Up @@ -535,10 +535,10 @@ public function classifyText($document, $optionalArgs = [])
* }
* ```
*
* @param Document $document Input document.
* @param Features $features The enabled features.
* @param Document $document input document
* @param Features $features the enabled features
* @param array $optionalArgs {
* Optional.
* Optional
*
* @type int $encodingType
* The encoding type used by the API to calculate offsets.
Expand Down
Loading