Skip to content

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.

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.


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.

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

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

];

$statement = sprintf('CREATE DATABASE `%s`', DatabaseAdminClient::parseDatabaseFromDatabaseName($this->name));
$databaseNameComponents = DatabaseAdminClient::parseName($this->name());

This comment was marked as spam.

*/
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!


/**
* Update the subscription.
*

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