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

feat: [parallelstore] add iam.googleapis.com/ServiceAccount resource definition #5520

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ option (google.api.resource_definition) = {
type: "compute.googleapis.com/Address"
pattern: "projects/{project}/regions/{region}/addresses/{address}"
};
option (google.api.resource_definition) = {
type: "iam.googleapis.com/ServiceAccount"
pattern: "projects/{project}/serviceAccounts/{service_account}"
};

// Service describing handlers for resources
// Configures and manages parallelstore resources.
Expand Down Expand Up @@ -517,6 +521,18 @@ message ImportDataRequest {
(google.api.field_info).format = UUID4,
(google.api.field_behavior) = OPTIONAL
];

// Optional. User-specified Service Account (SA) credentials to be used when
// performing the transfer.
// Format: `projects/{project_id}/serviceAccounts/{service_account}`
// If unspecified, the Parallelstore service agent is used:
// service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com)
string service_account = 5 [
(google.api.field_behavior) = OPTIONAL,
(google.api.resource_reference) = {
type: "iam.googleapis.com/ServiceAccount"
}
];
}

// Message representing the request exporting data from Cloud Storage to
Expand Down Expand Up @@ -559,6 +575,18 @@ message ExportDataRequest {
(google.api.field_info).format = UUID4,
(google.api.field_behavior) = OPTIONAL
];

// Optional. User-specified Service Account (SA) credentials to be used when
// performing the transfer.
// Format: `projects/{project_id}/serviceAccounts/{service_account}`
// If unspecified, the Parallelstore service agent is used:
// service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com)
string service_account = 5 [
(google.api.field_behavior) = OPTIONAL,
(google.api.resource_reference) = {
type: "iam.googleapis.com/ServiceAccount"
}
];
}

// ImportDataResponse is the response returned from ImportData rpc.
Expand Down
12 changes: 12 additions & 0 deletions packages/google-cloud-parallelstore/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions packages/google-cloud-parallelstore/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions packages/google-cloud-parallelstore/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ function main(name) {
* not supported (00000000-0000-0000-0000-000000000000).
*/
// const requestId = 'abc123'
/**
* Optional. User-specified Service Account (SA) credentials to be used when
* performing the transfer.
* Format: `projects/{project_id}/serviceAccounts/{service_account}`
* If unspecified, the Parallelstore service agent is used:
* service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com)
*/
// const serviceAccount = 'abc123'

// Imports the Parallelstore library
const {ParallelstoreClient} = require('@google-cloud/parallelstore').v1beta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ function main(name) {
* not supported (00000000-0000-0000-0000-000000000000).
*/
// const requestId = 'abc123'
/**
* Optional. User-specified Service Account (SA) credentials to be used when
* performing the transfer.
* Format: `projects/{project_id}/serviceAccounts/{service_account}`
* If unspecified, the Parallelstore service agent is used:
* service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com)
*/
// const serviceAccount = 'abc123'

// Imports the Parallelstore library
const {ParallelstoreClient} = require('@google-cloud/parallelstore').v1beta;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"segments": [
{
"start": 25,
"end": 76,
"end": 84,
"type": "FULL"
}
],
Expand All @@ -286,6 +286,10 @@
{
"name": "request_id",
"type": "TYPE_STRING"
},
{
"name": "service_account",
"type": "TYPE_STRING"
}
],
"resultType": ".google.longrunning.Operation",
Expand Down Expand Up @@ -314,7 +318,7 @@
"segments": [
{
"start": 25,
"end": 76,
"end": 84,
"type": "FULL"
}
],
Expand All @@ -338,6 +342,10 @@
{
"name": "request_id",
"type": "TYPE_STRING"
},
{
"name": "service_account",
"type": "TYPE_STRING"
}
],
"resultType": ".google.longrunning.Operation",
Expand Down
Loading
Loading