-
Notifications
You must be signed in to change notification settings - Fork 438
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 #679
Refresh gapics #679
Conversation
It certainly appears you're correct that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only GAPIC I spent much time looking at was DLP, as I assume most of the changes are the same across the board. If there is anything special I should go back and take a look at please let me know 😄.
src/Core/GrpcRequestWrapper.php
Outdated
$retrySettings = [ | ||
'retriesEnabled' => false | ||
]; | ||
if ($timeout && !array_key_exists('timeoutMs', $grpcOptions)) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -124,6 +124,9 @@ class DlpServiceGapicClient | |||
const CODEGEN_VERSION = '0.0.5'; | |||
|
|||
private static $resultNameTemplate; | |||
private static $pathTemplateList = null; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -170,6 +143,16 @@ private static function getResultNameTemplate() | |||
|
|||
return self::$resultNameTemplate; | |||
} | |||
private static function getPathTemplateList() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if (!self::$gapicVersionLoaded) { | ||
if (file_exists(__DIR__.'/../VERSION')) { | ||
self::$gapicVersion = trim(file_get_contents(__DIR__.'/../VERSION')); | ||
} elseif (class_exists('\Google\Cloud\Version')) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
if (file_exists(__DIR__.'/../VERSION')) { | ||
self::$gapicVersion = trim(file_get_contents(__DIR__.'/../VERSION')); | ||
} elseif (class_exists('\Google\Cloud\Version')) { | ||
self::$gapicVersion = \Google\Cloud\Version::VERSION; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -278,6 +305,7 @@ public function __construct($options = []) | |||
'timeoutMillis' => self::DEFAULT_TIMEOUT_MILLIS, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -254,15 +278,18 @@ public function resumeOperation($operationName, $methodName = null) | |||
* A CredentialsLoader object created using the Google\Auth library. | |||
* @type array $scopes A string array of scopes to use when acquiring credentials. | |||
* Defaults to the scopes for the DLP API. | |||
* @type string $clientConfigPath |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* @return array An associative array from name component IDs to component values. | ||
* @experimental | ||
*/ | ||
public static function parseName($formattedName) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/Spanner/Database.php
Outdated
@@ -309,7 +309,9 @@ public function create(array $options = []) | |||
'statements' => [], | |||
]; | |||
|
|||
$statement = sprintf('CREATE DATABASE `%s`', DatabaseAdminClient::parseDatabaseFromDatabaseName($this->name)); | |||
$databaseNameComponents = DatabaseAdminClient::parseName($this->name()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -500,6 +506,13 @@ public function longRunningRecognize($config, $audio, $optionalArgs = []) | |||
*/ | |||
public function streamingRecognize($optionalArgs = []) | |||
{ | |||
if (array_key_exists('timeoutMillis', $optionalArgs)) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
{ | ||
if (self::$resultNameTemplate == null) { | ||
self::$resultNameTemplate = new PathTemplate('inspect/results/{result}'); | ||
if (isset($templateMap[$template])) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small note, otherwise LGTM!
src/PubSub/Subscription.php
Outdated
@@ -223,6 +223,52 @@ public function create(array $options = []) | |||
} | |||
|
|||
/** | |||
* Update the subscription. | |||
* | |||
* Note that subscription name and topic are immutable properties and may |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Things to note:
It would be great to get any feedback early-ish tomorrow so I can make sure it gets fixed ASAP, and you will be able to merge this in my absence