Skip to content

Commit

Permalink
support projects in blob commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zubenko committed May 5, 2023
1 parent 0ff55bb commit 42984d9
Show file tree
Hide file tree
Showing 40 changed files with 457 additions and 137 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/2954.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support projects in `neuro blob` cli commands and `neuro-sdk`.
18 changes: 14 additions & 4 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,8 @@ Name | Description|
|----|------------|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Look on a specified cluster \(the current cluster by default).|
|_--owner TEXT_|Owner of bucket to assume for named bucket \(the current user by default)|
|_--org ORG_|Look on a specified org \(the current org by default).|
|_--project PROJECT_|Look on a specified project \(the current project by default).|



Expand Down Expand Up @@ -1444,6 +1445,7 @@ Name | Description|
|_\--gcp-sa-credential GCP\_SA_CREDNETIAL_|GCP service account credential in form of base64 encoded json string that grants access to imported bucket. Required when PROVIDER is 'gcp'|
|_--name NAME_|Optional bucket name|
|_--org ORG_|Perform in a specified org \(the current org by default).|
|_--project PROJECT_|Perform in a specified project \(the current project by default).|
|_--provider PROVIDER_|Bucket provider that hosts bucket \[required]|
|_\--provider-bucket-name EXTERNAL_NAME_|Name of bucket \(or container in case of Azure) inside the provider \[required]|

Expand Down Expand Up @@ -1491,6 +1493,8 @@ Name | Description|
|_--cluster CLUSTER_|Look on a specified cluster \(the current cluster by default).|
|_\--full-uri_|Output full bucket URI.|
|_\--long-format_|Output all info about bucket.|
|_--org ORG_|Look on a specified org \(the current org by default).|
|_--project PROJECT_|Look on a specified project \(the current project by default).|



Expand Down Expand Up @@ -1533,6 +1537,7 @@ Name | Description|
|_--cluster CLUSTER_|Perform in a specified cluster \(the current cluster by default).|
|_--name NAME_|Optional bucket name|
|_--org ORG_|Perform in a specified org \(the current org by default).|
|_--project PROJECT_|Perform in a specified project \(the current project by default).|



Expand All @@ -1554,6 +1559,8 @@ Name | Description|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Perform in a specified cluster \(the current cluster by default).|
|_--name NAME_|Optional bucket credential name|
|_--org ORG_|Perform in a specified org \(the current org by default).|
|_--project PROJECT_|Perform in a specified project \(the current project by default).|
|_\--read-only_|Make read-only credential|


Expand Down Expand Up @@ -1598,7 +1605,8 @@ Name | Description|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Perform on a specified cluster \(the current cluster by default).|
|_\-f, --force_|Force removal of all blobs inside bucket|
|_--owner TEXT_|Owner of bucket to assume for named bucket \(the current user by default)|
|_--org ORG_|Perform on a specified org \(the current org by default).|
|_--project PROJECT_|Perform on a specified project \(the current project by default).|



Expand Down Expand Up @@ -1648,7 +1656,8 @@ Name | Description|
|----|------------|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Perform on a specified cluster \(the current cluster by default).|
|_--owner TEXT_|Owner of bucket to assume for named bucket \(the current user by default)|
|_--org ORG_|Perform on a specified org \(the current org by default).|
|_--project PROJECT_|Perform on a specified project \(the current project by default).|



Expand Down Expand Up @@ -1690,7 +1699,8 @@ Name | Description|
|_--help_|Show this message and exit.|
|_--cluster CLUSTER_|Look on a specified cluster \(the current cluster by default).|
|_\--full-uri_|Output full bucket URI.|
|_--owner TEXT_|Owner of bucket to assume for named bucket \(the current user by default)|
|_--org ORG_|Look on a specified org \(the current org by default).|
|_--project PROJECT_|Look on a specified project \(the current project by default).|



Expand Down
18 changes: 14 additions & 4 deletions neuro-cli/docs/blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ Get storage usage for `BUCKET`.
| :--- | :--- |
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Look on a specified cluster \(the current cluster by default\). |
| _--owner TEXT_ | Owner of bucket to assume for named bucket \(the current user by default\) |
| _--org ORG_ | Look on a specified org \(the current org by default\). |
| _--project PROJECT_ | Look on a specified project \(the current project by default\). |



Expand Down Expand Up @@ -163,6 +164,7 @@ Import an existing bucket.
| _--gcp-sa-credential GCP\_SA\_CREDNETIAL_ | GCP service account credential in form of base64 encoded json string that grants access to imported bucket. Required when PROVIDER is 'gcp' |
| _--name NAME_ | Optional bucket name |
| _--org ORG_ | Perform in a specified org \(the current org by default\). |
| _--project PROJECT_ | Perform in a specified project \(the current project by default\). |
| _--provider PROVIDER_ | Bucket provider that hosts bucket _\[required\]_ |
| _--provider-bucket-name EXTERNAL\_NAME_ | Name of bucket \(or container in case of Azure\) inside the provider _\[required\]_ |

Expand Down Expand Up @@ -214,6 +216,8 @@ List buckets.
| _--cluster CLUSTER_ | Look on a specified cluster \(the current cluster by default\). |
| _--full-uri_ | Output full bucket URI. |
| _--long-format_ | Output all info about bucket. |
| _--org ORG_ | Look on a specified org \(the current org by default\). |
| _--project PROJECT_ | Look on a specified project \(the current project by default\). |



Expand Down Expand Up @@ -260,6 +264,7 @@ Create a new bucket.
| _--cluster CLUSTER_ | Perform in a specified cluster \(the current cluster by default\). |
| _--name NAME_ | Optional bucket name |
| _--org ORG_ | Perform in a specified org \(the current org by default\). |
| _--project PROJECT_ | Perform in a specified project \(the current project by default\). |



Expand All @@ -283,6 +288,8 @@ Create a new bucket credential.
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Perform in a specified cluster \(the current cluster by default\). |
| _--name NAME_ | Optional bucket credential name |
| _--org ORG_ | Perform in a specified org \(the current org by default\). |
| _--project PROJECT_ | Perform in a specified project \(the current project by default\). |
| _--read-only_ | Make read-only credential |


Expand Down Expand Up @@ -331,7 +338,8 @@ Remove bucket `BUCKET`.
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Perform on a specified cluster \(the current cluster by default\). |
| _-f, --force_ | Force removal of all blobs inside bucket |
| _--owner TEXT_ | Owner of bucket to assume for named bucket \(the current user by default\) |
| _--org ORG_ | Perform on a specified org \(the current org by default\). |
| _--project PROJECT_ | Perform on a specified project \(the current project by default\). |



Expand Down Expand Up @@ -384,7 +392,8 @@ $ neuro blob set-bucket-publicity my-bucket private
| :--- | :--- |
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Perform on a specified cluster \(the current cluster by default\). |
| _--owner TEXT_ | Owner of bucket to assume for named bucket \(the current user by default\) |
| _--org ORG_ | Perform on a specified org \(the current org by default\). |
| _--project PROJECT_ | Perform on a specified project \(the current project by default\). |



Expand Down Expand Up @@ -430,7 +439,8 @@ Get bucket `BUCKET`.
| _--help_ | Show this message and exit. |
| _--cluster CLUSTER_ | Look on a specified cluster \(the current cluster by default\). |
| _--full-uri_ | Output full bucket URI. |
| _--owner TEXT_ | Owner of bucket to assume for named bucket \(the current user by default\) |
| _--org ORG_ | Look on a specified org \(the current org by default\). |
| _--project PROJECT_ | Look on a specified project \(the current project by default\). |



Expand Down
Loading

0 comments on commit 42984d9

Please sign in to comment.