@google-cloud/storage-control 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -71,6 +71,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
71
71
  | Storage_control.get_anywhere_cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_anywhere_cache.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_anywhere_cache.js,packages/google-storage-control/samples/README.md) |
72
72
  | Storage_control.get_folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_folder.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_folder.js,packages/google-storage-control/samples/README.md) |
73
73
  | Storage_control.get_folder_intelligence_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_folder_intelligence_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_folder_intelligence_config.js,packages/google-storage-control/samples/README.md) |
74
+ | Storage_control.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_iam_policy.js,packages/google-storage-control/samples/README.md) |
74
75
  | Storage_control.get_managed_folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_managed_folder.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_managed_folder.js,packages/google-storage-control/samples/README.md) |
75
76
  | Storage_control.get_organization_intelligence_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_organization_intelligence_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_organization_intelligence_config.js,packages/google-storage-control/samples/README.md) |
76
77
  | Storage_control.get_project_intelligence_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.get_project_intelligence_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.get_project_intelligence_config.js,packages/google-storage-control/samples/README.md) |
@@ -81,6 +82,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
81
82
  | Storage_control.pause_anywhere_cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.pause_anywhere_cache.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.pause_anywhere_cache.js,packages/google-storage-control/samples/README.md) |
82
83
  | Storage_control.rename_folder | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.rename_folder.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.rename_folder.js,packages/google-storage-control/samples/README.md) |
83
84
  | Storage_control.resume_anywhere_cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.resume_anywhere_cache.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.resume_anywhere_cache.js,packages/google-storage-control/samples/README.md) |
85
+ | Storage_control.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.set_iam_policy.js,packages/google-storage-control/samples/README.md) |
86
+ | Storage_control.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.test_iam_permissions.js,packages/google-storage-control/samples/README.md) |
84
87
  | Storage_control.update_anywhere_cache | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_anywhere_cache.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.update_anywhere_cache.js,packages/google-storage-control/samples/README.md) |
85
88
  | Storage_control.update_folder_intelligence_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_folder_intelligence_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.update_folder_intelligence_config.js,packages/google-storage-control/samples/README.md) |
86
89
  | Storage_control.update_organization_intelligence_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-storage-control/samples/generated/v2/storage_control.update_organization_intelligence_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-storage-control/samples/generated/v2/storage_control.update_organization_intelligence_config.js,packages/google-storage-control/samples/README.md) |
@@ -22,6 +22,8 @@ import "google/api/field_behavior.proto";
22
22
  import "google/api/field_info.proto";
23
23
  import "google/api/resource.proto";
24
24
  import "google/api/routing.proto";
25
+ import "google/iam/v1/iam_policy.proto";
26
+ import "google/iam/v1/policy.proto";
25
27
  import "google/longrunning/operations.proto";
26
28
  import "google/protobuf/duration.proto";
27
29
  import "google/protobuf/empty.proto";
@@ -306,6 +308,63 @@ service StorageControl {
306
308
  };
307
309
  option (google.api.method_signature) = "intelligence_config,update_mask";
308
310
  }
311
+
312
+ // Gets the IAM policy for a specified bucket.
313
+ // The `resource` field in the request should be
314
+ // `projects/_/buckets/{bucket}` for a bucket, or
315
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
316
+ // for a managed folder.
317
+ rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
318
+ returns (google.iam.v1.Policy) {
319
+ option (google.api.routing) = {
320
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
321
+ routing_parameters {
322
+ field: "resource"
323
+ path_template: "{bucket=projects/*/buckets/*}/**"
324
+ }
325
+ };
326
+ option (google.api.method_signature) = "resource";
327
+ }
328
+
329
+ // Updates an IAM policy for the specified bucket.
330
+ // The `resource` field in the request should be
331
+ // `projects/_/buckets/{bucket}` for a bucket, or
332
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
333
+ // for a managed folder.
334
+ rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
335
+ returns (google.iam.v1.Policy) {
336
+ option (google.api.routing) = {
337
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
338
+ routing_parameters {
339
+ field: "resource"
340
+ path_template: "{bucket=projects/*/buckets/*}/**"
341
+ }
342
+ };
343
+ option (google.api.method_signature) = "resource,policy";
344
+ }
345
+
346
+ // Tests a set of permissions on the given bucket, object, or managed folder
347
+ // to see which, if any, are held by the caller.
348
+ // The `resource` field in the request should be
349
+ // `projects/_/buckets/{bucket}` for a bucket,
350
+ // `projects/_/buckets/{bucket}/objects/{object}` for an object, or
351
+ // `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
352
+ // for a managed folder.
353
+ rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
354
+ returns (google.iam.v1.TestIamPermissionsResponse) {
355
+ option (google.api.routing) = {
356
+ routing_parameters { field: "resource" path_template: "{bucket=**}" }
357
+ routing_parameters {
358
+ field: "resource"
359
+ path_template: "{bucket=projects/*/buckets/*}/objects/**"
360
+ }
361
+ routing_parameters {
362
+ field: "resource"
363
+ path_template: "{bucket=projects/*/buckets/*}/managedFolders/**"
364
+ }
365
+ };
366
+ option (google.api.method_signature) = "resource,permissions";
367
+ }
309
368
  }
310
369
 
311
370
  // Contains information about a pending rename operation.