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

storage/bucket: add label accessor methods #2387

Merged
merged 3 commits into from
Jun 26, 2017

Conversation

stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented Jun 14, 2017

Fixes #2370

To Dos

  • Docs
  • Tests
    • Unit
    • System

This adds three methods:

  • bucket.deleteLabels([labelName, ...], function(err) {})
  • bucket.getLabels(function(err, labels) {})
  • bucket.setLabels({ labelName: 'labelValue' }, function(err) {})

@stephenplusplus stephenplusplus added the api: storage Issues related to the Cloud Storage API. label Jun 14, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 14, 2017
@danoscarmike
Copy link
Contributor

@jskeet for vis.

@jskeet
Copy link

jskeet commented Jun 16, 2017

Not sure what you mean by "for vis" - I'm not really an appropriate person to review Node code.

@stephenplusplus
Copy link
Contributor Author

Probably "for visibility" -- can you tag someone else?

@stephenplusplus stephenplusplus removed the request for review from jskeet June 16, 2017 15:43
@jskeet
Copy link

jskeet commented Jun 16, 2017

I'm afraid I don't know anyone offhand to review the Node code here... And I'm only on my phone, so can't really look up folks appropriately.

@stephenplusplus
Copy link
Contributor Author

It's not so much the code that needs review from a GCS member, but the methods we've created to support this feature, and the ways they can be used. We want to be sure we are supporting the intended use cases properly.

Having someone read over the code comment blocks in the PR would be helpful. They will demonstrate the methods and list their possible arguments.

@jskeet
Copy link

jskeet commented Jun 16, 2017

I still don't think I'm the most appropriate person to do this, and I wouldn't be to do it before Monday anyway.

@jskeet
Copy link

jskeet commented Jun 16, 2017

(Note that I'm not part of GCS myself.)

@stephenplusplus
Copy link
Contributor Author

Okay, sorry for getting you looped up in here. @danoscarmike had you listed as the POC for Storage Veneer.

@danoscarmike any suggestions on how to proceed?

@danoscarmike
Copy link
Contributor

danoscarmike commented Jun 16, 2017 via email

* //-
* // Delete a specific set of labels.
* //-
* bucket.deleteLabels(['label', 'labeltwo'], function(err, metadata) {});

This comment was marked as spam.

This comment was marked as spam.

* @param {?error} callback.err - An error returned while making this request.
* @param {object} callback.metadata - The bucket's metadata.
*
* @example

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1fe85ad on stephenplusplus:spp--2370 into ** on GoogleCloudPlatform:master**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants