-
Notifications
You must be signed in to change notification settings - Fork 451
Refresh gapics #679
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
Conversation
|
It certainly appears you're correct that |
dwsupplee
left a comment
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.
| 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.
|
|
||
| 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.
| 'https://www.googleapis.com/auth/cloud-platform', | ||
| ], | ||
| 'retryingOverride' => null, | ||
| '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.
| * 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
| ]; | ||
|
|
||
| $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.
| */ | ||
| 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.
dwsupplee
left a comment
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!
|
|
||
| /** | ||
| * Update the subscription. | ||
| * |
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