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 #679

Merged
merged 17 commits into from
Oct 9, 2017
Merged

Conversation

michaelbausor
Copy link
Contributor

Things to note:

  • The updateSubscription Pubsub method has been removed from GAPIC and manual. This method is currently under whitelist - I don't think it should have been added in either place in the first place. Please verify that I am not going crazy, and that this is indeed under whitelist and needs to be removed, and that I haven't just forgotten why it was there. If we want to add it back with appropriate whitelist documentation, we can do it along with updateTopic and updateSnapshot, which are also under whitelist.
  • Manual edits are present to support the GAX/GAPIC updates, mostly in Spanner for the format/parse methods
  • Tests won't pass until we release new versions of GAX and proto-client. If you want to test locally, you should be able to pull the branch and set proto-client to 0.23 and gax to dev-master.

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

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 19, 2017
@dwsupplee
Copy link
Contributor

It certainly appears you're correct that updateSubscription should have had a whitelist notification added to it as it looks like it was added when the snapshot feature was included. I would be on board with continuing to support it with a whitelist notification.

Copy link
Contributor

@dwsupplee dwsupplee left a 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 😄.

$retrySettings = [
'retriesEnabled' => false
];
if ($timeout && !array_key_exists('timeoutMs', $grpcOptions)) {

This comment was marked as spam.

This comment was marked as spam.

@@ -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.

@@ -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.

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.

This comment was marked as spam.

This comment was marked as spam.

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.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@@ -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.

@@ -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.

* @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.

This comment was marked as spam.

This comment was marked as spam.

@@ -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.

@@ -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.

{
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.

Copy link
Contributor

@dwsupplee dwsupplee left a 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!

@@ -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.

This comment was marked as spam.

@dwsupplee dwsupplee merged commit c94a198 into googleapis:master Oct 9, 2017
@jdpedrie jdpedrie mentioned this pull request Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. gapic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants