Skip to content

Commit

Permalink
feat: [parallelstore] add iam.googleapis.com/ServiceAccount resource …
Browse files Browse the repository at this point in the history
…definition (#5520)

* feat: add iam.googleapis.com/ServiceAccount resource definition

---
feat: Adding Import/Export BYOSA to the export Data request

---
feat: Adding Import/Export BYOSA to the import Data request
PiperOrigin-RevId: 648793361

Source-Link: googleapis/googleapis@748b487

Source-Link: googleapis/googleapis-gen@07a6a5e
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjA3YTZhNWVkYTZmOTFkYzIyMTZlMzUwYzkyM2RkOWVlNDI3ODAzNzkifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 2, 2024
1 parent 6d8a33d commit c1a0a8a
Show file tree
Hide file tree
Showing 9 changed files with 238 additions and 4 deletions.
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

0 comments on commit c1a0a8a

Please sign in to comment.