@google-cloud/storage-control 0.5.0 → 0.6.1
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 +52 -71
- package/build/protos/google/storage/control/v2/storage_control.proto +59 -0
- package/build/protos/protos.d.ts +1677 -97
- package/build/protos/protos.js +4013 -252
- package/build/protos/protos.json +423 -9
- package/build/src/v2/gapic_metadata.json +30 -0
- package/build/src/v2/storage_control_client.d.ts +105 -0
- package/build/src/v2/storage_control_client.js +176 -1
- package/build/src/v2/storage_control_client.js.map +1 -1
- package/build/src/v2/storage_control_client_config.json +15 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -536,6 +536,94 @@
|
|
|
536
536
|
"(google.api.method_signature)": "intelligence_config,update_mask"
|
|
537
537
|
}
|
|
538
538
|
]
|
|
539
|
+
},
|
|
540
|
+
"GetIamPolicy": {
|
|
541
|
+
"requestType": "google.iam.v1.GetIamPolicyRequest",
|
|
542
|
+
"responseType": "google.iam.v1.Policy",
|
|
543
|
+
"options": {
|
|
544
|
+
"(google.api.routing).routing_parameters.field": "resource",
|
|
545
|
+
"(google.api.routing).routing_parameters.path_template": "{bucket=projects/*/buckets/*}/**",
|
|
546
|
+
"(google.api.method_signature)": "resource"
|
|
547
|
+
},
|
|
548
|
+
"parsedOptions": [
|
|
549
|
+
{
|
|
550
|
+
"(google.api.routing)": {
|
|
551
|
+
"routing_parameters": [
|
|
552
|
+
{
|
|
553
|
+
"field": "resource",
|
|
554
|
+
"path_template": "{bucket=**}"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"field": "resource",
|
|
558
|
+
"path_template": "{bucket=projects/*/buckets/*}/**"
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"(google.api.method_signature)": "resource"
|
|
565
|
+
}
|
|
566
|
+
]
|
|
567
|
+
},
|
|
568
|
+
"SetIamPolicy": {
|
|
569
|
+
"requestType": "google.iam.v1.SetIamPolicyRequest",
|
|
570
|
+
"responseType": "google.iam.v1.Policy",
|
|
571
|
+
"options": {
|
|
572
|
+
"(google.api.routing).routing_parameters.field": "resource",
|
|
573
|
+
"(google.api.routing).routing_parameters.path_template": "{bucket=projects/*/buckets/*}/**",
|
|
574
|
+
"(google.api.method_signature)": "resource,policy"
|
|
575
|
+
},
|
|
576
|
+
"parsedOptions": [
|
|
577
|
+
{
|
|
578
|
+
"(google.api.routing)": {
|
|
579
|
+
"routing_parameters": [
|
|
580
|
+
{
|
|
581
|
+
"field": "resource",
|
|
582
|
+
"path_template": "{bucket=**}"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"field": "resource",
|
|
586
|
+
"path_template": "{bucket=projects/*/buckets/*}/**"
|
|
587
|
+
}
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"(google.api.method_signature)": "resource,policy"
|
|
593
|
+
}
|
|
594
|
+
]
|
|
595
|
+
},
|
|
596
|
+
"TestIamPermissions": {
|
|
597
|
+
"requestType": "google.iam.v1.TestIamPermissionsRequest",
|
|
598
|
+
"responseType": "google.iam.v1.TestIamPermissionsResponse",
|
|
599
|
+
"options": {
|
|
600
|
+
"(google.api.routing).routing_parameters.field": "resource",
|
|
601
|
+
"(google.api.routing).routing_parameters.path_template": "{bucket=projects/*/buckets/*}/managedFolders/**",
|
|
602
|
+
"(google.api.method_signature)": "resource,permissions"
|
|
603
|
+
},
|
|
604
|
+
"parsedOptions": [
|
|
605
|
+
{
|
|
606
|
+
"(google.api.routing)": {
|
|
607
|
+
"routing_parameters": [
|
|
608
|
+
{
|
|
609
|
+
"field": "resource",
|
|
610
|
+
"path_template": "{bucket=**}"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"field": "resource",
|
|
614
|
+
"path_template": "{bucket=projects/*/buckets/*}/objects/**"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"field": "resource",
|
|
618
|
+
"path_template": "{bucket=projects/*/buckets/*}/managedFolders/**"
|
|
619
|
+
}
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"(google.api.method_signature)": "resource,permissions"
|
|
625
|
+
}
|
|
626
|
+
]
|
|
539
627
|
}
|
|
540
628
|
}
|
|
541
629
|
},
|
|
@@ -3731,6 +3819,15 @@
|
|
|
3731
3819
|
}
|
|
3732
3820
|
}
|
|
3733
3821
|
},
|
|
3822
|
+
"FieldMask": {
|
|
3823
|
+
"fields": {
|
|
3824
|
+
"paths": {
|
|
3825
|
+
"rule": "repeated",
|
|
3826
|
+
"type": "string",
|
|
3827
|
+
"id": 1
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
},
|
|
3734
3831
|
"Any": {
|
|
3735
3832
|
"fields": {
|
|
3736
3833
|
"type_url": {
|
|
@@ -3746,15 +3843,6 @@
|
|
|
3746
3843
|
"Empty": {
|
|
3747
3844
|
"fields": {}
|
|
3748
3845
|
},
|
|
3749
|
-
"FieldMask": {
|
|
3750
|
-
"fields": {
|
|
3751
|
-
"paths": {
|
|
3752
|
-
"rule": "repeated",
|
|
3753
|
-
"type": "string",
|
|
3754
|
-
"id": 1
|
|
3755
|
-
}
|
|
3756
|
-
}
|
|
3757
|
-
},
|
|
3758
3846
|
"Timestamp": {
|
|
3759
3847
|
"fields": {
|
|
3760
3848
|
"seconds": {
|
|
@@ -3769,6 +3857,332 @@
|
|
|
3769
3857
|
}
|
|
3770
3858
|
}
|
|
3771
3859
|
},
|
|
3860
|
+
"iam": {
|
|
3861
|
+
"nested": {
|
|
3862
|
+
"v1": {
|
|
3863
|
+
"options": {
|
|
3864
|
+
"cc_enable_arenas": true,
|
|
3865
|
+
"csharp_namespace": "Google.Cloud.Iam.V1",
|
|
3866
|
+
"go_package": "cloud.google.com/go/iam/apiv1/iampb;iampb",
|
|
3867
|
+
"java_multiple_files": true,
|
|
3868
|
+
"java_outer_classname": "PolicyProto",
|
|
3869
|
+
"java_package": "com.google.iam.v1",
|
|
3870
|
+
"php_namespace": "Google\\Cloud\\Iam\\V1"
|
|
3871
|
+
},
|
|
3872
|
+
"nested": {
|
|
3873
|
+
"IAMPolicy": {
|
|
3874
|
+
"options": {
|
|
3875
|
+
"(google.api.default_host)": "iam-meta-api.googleapis.com"
|
|
3876
|
+
},
|
|
3877
|
+
"methods": {
|
|
3878
|
+
"SetIamPolicy": {
|
|
3879
|
+
"requestType": "SetIamPolicyRequest",
|
|
3880
|
+
"responseType": "Policy",
|
|
3881
|
+
"options": {
|
|
3882
|
+
"(google.api.http).post": "/v1/{resource=**}:setIamPolicy",
|
|
3883
|
+
"(google.api.http).body": "*"
|
|
3884
|
+
},
|
|
3885
|
+
"parsedOptions": [
|
|
3886
|
+
{
|
|
3887
|
+
"(google.api.http)": {
|
|
3888
|
+
"post": "/v1/{resource=**}:setIamPolicy",
|
|
3889
|
+
"body": "*"
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3892
|
+
]
|
|
3893
|
+
},
|
|
3894
|
+
"GetIamPolicy": {
|
|
3895
|
+
"requestType": "GetIamPolicyRequest",
|
|
3896
|
+
"responseType": "Policy",
|
|
3897
|
+
"options": {
|
|
3898
|
+
"(google.api.http).post": "/v1/{resource=**}:getIamPolicy",
|
|
3899
|
+
"(google.api.http).body": "*"
|
|
3900
|
+
},
|
|
3901
|
+
"parsedOptions": [
|
|
3902
|
+
{
|
|
3903
|
+
"(google.api.http)": {
|
|
3904
|
+
"post": "/v1/{resource=**}:getIamPolicy",
|
|
3905
|
+
"body": "*"
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
]
|
|
3909
|
+
},
|
|
3910
|
+
"TestIamPermissions": {
|
|
3911
|
+
"requestType": "TestIamPermissionsRequest",
|
|
3912
|
+
"responseType": "TestIamPermissionsResponse",
|
|
3913
|
+
"options": {
|
|
3914
|
+
"(google.api.http).post": "/v1/{resource=**}:testIamPermissions",
|
|
3915
|
+
"(google.api.http).body": "*"
|
|
3916
|
+
},
|
|
3917
|
+
"parsedOptions": [
|
|
3918
|
+
{
|
|
3919
|
+
"(google.api.http)": {
|
|
3920
|
+
"post": "/v1/{resource=**}:testIamPermissions",
|
|
3921
|
+
"body": "*"
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
]
|
|
3925
|
+
}
|
|
3926
|
+
}
|
|
3927
|
+
},
|
|
3928
|
+
"SetIamPolicyRequest": {
|
|
3929
|
+
"fields": {
|
|
3930
|
+
"resource": {
|
|
3931
|
+
"type": "string",
|
|
3932
|
+
"id": 1,
|
|
3933
|
+
"options": {
|
|
3934
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3935
|
+
"(google.api.resource_reference).type": "*"
|
|
3936
|
+
}
|
|
3937
|
+
},
|
|
3938
|
+
"policy": {
|
|
3939
|
+
"type": "Policy",
|
|
3940
|
+
"id": 2,
|
|
3941
|
+
"options": {
|
|
3942
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3943
|
+
}
|
|
3944
|
+
},
|
|
3945
|
+
"updateMask": {
|
|
3946
|
+
"type": "google.protobuf.FieldMask",
|
|
3947
|
+
"id": 3
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
},
|
|
3951
|
+
"GetIamPolicyRequest": {
|
|
3952
|
+
"fields": {
|
|
3953
|
+
"resource": {
|
|
3954
|
+
"type": "string",
|
|
3955
|
+
"id": 1,
|
|
3956
|
+
"options": {
|
|
3957
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3958
|
+
"(google.api.resource_reference).type": "*"
|
|
3959
|
+
}
|
|
3960
|
+
},
|
|
3961
|
+
"options": {
|
|
3962
|
+
"type": "GetPolicyOptions",
|
|
3963
|
+
"id": 2
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
},
|
|
3967
|
+
"TestIamPermissionsRequest": {
|
|
3968
|
+
"fields": {
|
|
3969
|
+
"resource": {
|
|
3970
|
+
"type": "string",
|
|
3971
|
+
"id": 1,
|
|
3972
|
+
"options": {
|
|
3973
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
3974
|
+
"(google.api.resource_reference).type": "*"
|
|
3975
|
+
}
|
|
3976
|
+
},
|
|
3977
|
+
"permissions": {
|
|
3978
|
+
"rule": "repeated",
|
|
3979
|
+
"type": "string",
|
|
3980
|
+
"id": 2,
|
|
3981
|
+
"options": {
|
|
3982
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
},
|
|
3987
|
+
"TestIamPermissionsResponse": {
|
|
3988
|
+
"fields": {
|
|
3989
|
+
"permissions": {
|
|
3990
|
+
"rule": "repeated",
|
|
3991
|
+
"type": "string",
|
|
3992
|
+
"id": 1
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
},
|
|
3996
|
+
"GetPolicyOptions": {
|
|
3997
|
+
"fields": {
|
|
3998
|
+
"requestedPolicyVersion": {
|
|
3999
|
+
"type": "int32",
|
|
4000
|
+
"id": 1
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
4003
|
+
},
|
|
4004
|
+
"Policy": {
|
|
4005
|
+
"fields": {
|
|
4006
|
+
"version": {
|
|
4007
|
+
"type": "int32",
|
|
4008
|
+
"id": 1
|
|
4009
|
+
},
|
|
4010
|
+
"bindings": {
|
|
4011
|
+
"rule": "repeated",
|
|
4012
|
+
"type": "Binding",
|
|
4013
|
+
"id": 4
|
|
4014
|
+
},
|
|
4015
|
+
"auditConfigs": {
|
|
4016
|
+
"rule": "repeated",
|
|
4017
|
+
"type": "AuditConfig",
|
|
4018
|
+
"id": 6
|
|
4019
|
+
},
|
|
4020
|
+
"etag": {
|
|
4021
|
+
"type": "bytes",
|
|
4022
|
+
"id": 3
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
},
|
|
4026
|
+
"Binding": {
|
|
4027
|
+
"fields": {
|
|
4028
|
+
"role": {
|
|
4029
|
+
"type": "string",
|
|
4030
|
+
"id": 1
|
|
4031
|
+
},
|
|
4032
|
+
"members": {
|
|
4033
|
+
"rule": "repeated",
|
|
4034
|
+
"type": "string",
|
|
4035
|
+
"id": 2
|
|
4036
|
+
},
|
|
4037
|
+
"condition": {
|
|
4038
|
+
"type": "google.type.Expr",
|
|
4039
|
+
"id": 3
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
},
|
|
4043
|
+
"AuditConfig": {
|
|
4044
|
+
"fields": {
|
|
4045
|
+
"service": {
|
|
4046
|
+
"type": "string",
|
|
4047
|
+
"id": 1
|
|
4048
|
+
},
|
|
4049
|
+
"auditLogConfigs": {
|
|
4050
|
+
"rule": "repeated",
|
|
4051
|
+
"type": "AuditLogConfig",
|
|
4052
|
+
"id": 3
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
},
|
|
4056
|
+
"AuditLogConfig": {
|
|
4057
|
+
"fields": {
|
|
4058
|
+
"logType": {
|
|
4059
|
+
"type": "LogType",
|
|
4060
|
+
"id": 1
|
|
4061
|
+
},
|
|
4062
|
+
"exemptedMembers": {
|
|
4063
|
+
"rule": "repeated",
|
|
4064
|
+
"type": "string",
|
|
4065
|
+
"id": 2
|
|
4066
|
+
}
|
|
4067
|
+
},
|
|
4068
|
+
"nested": {
|
|
4069
|
+
"LogType": {
|
|
4070
|
+
"values": {
|
|
4071
|
+
"LOG_TYPE_UNSPECIFIED": 0,
|
|
4072
|
+
"ADMIN_READ": 1,
|
|
4073
|
+
"DATA_WRITE": 2,
|
|
4074
|
+
"DATA_READ": 3
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4079
|
+
"PolicyDelta": {
|
|
4080
|
+
"fields": {
|
|
4081
|
+
"bindingDeltas": {
|
|
4082
|
+
"rule": "repeated",
|
|
4083
|
+
"type": "BindingDelta",
|
|
4084
|
+
"id": 1
|
|
4085
|
+
},
|
|
4086
|
+
"auditConfigDeltas": {
|
|
4087
|
+
"rule": "repeated",
|
|
4088
|
+
"type": "AuditConfigDelta",
|
|
4089
|
+
"id": 2
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
"BindingDelta": {
|
|
4094
|
+
"fields": {
|
|
4095
|
+
"action": {
|
|
4096
|
+
"type": "Action",
|
|
4097
|
+
"id": 1
|
|
4098
|
+
},
|
|
4099
|
+
"role": {
|
|
4100
|
+
"type": "string",
|
|
4101
|
+
"id": 2
|
|
4102
|
+
},
|
|
4103
|
+
"member": {
|
|
4104
|
+
"type": "string",
|
|
4105
|
+
"id": 3
|
|
4106
|
+
},
|
|
4107
|
+
"condition": {
|
|
4108
|
+
"type": "google.type.Expr",
|
|
4109
|
+
"id": 4
|
|
4110
|
+
}
|
|
4111
|
+
},
|
|
4112
|
+
"nested": {
|
|
4113
|
+
"Action": {
|
|
4114
|
+
"values": {
|
|
4115
|
+
"ACTION_UNSPECIFIED": 0,
|
|
4116
|
+
"ADD": 1,
|
|
4117
|
+
"REMOVE": 2
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
4122
|
+
"AuditConfigDelta": {
|
|
4123
|
+
"fields": {
|
|
4124
|
+
"action": {
|
|
4125
|
+
"type": "Action",
|
|
4126
|
+
"id": 1
|
|
4127
|
+
},
|
|
4128
|
+
"service": {
|
|
4129
|
+
"type": "string",
|
|
4130
|
+
"id": 2
|
|
4131
|
+
},
|
|
4132
|
+
"exemptedMember": {
|
|
4133
|
+
"type": "string",
|
|
4134
|
+
"id": 3
|
|
4135
|
+
},
|
|
4136
|
+
"logType": {
|
|
4137
|
+
"type": "string",
|
|
4138
|
+
"id": 4
|
|
4139
|
+
}
|
|
4140
|
+
},
|
|
4141
|
+
"nested": {
|
|
4142
|
+
"Action": {
|
|
4143
|
+
"values": {
|
|
4144
|
+
"ACTION_UNSPECIFIED": 0,
|
|
4145
|
+
"ADD": 1,
|
|
4146
|
+
"REMOVE": 2
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
"type": {
|
|
4156
|
+
"options": {
|
|
4157
|
+
"go_package": "google.golang.org/genproto/googleapis/type/expr;expr",
|
|
4158
|
+
"java_multiple_files": true,
|
|
4159
|
+
"java_outer_classname": "ExprProto",
|
|
4160
|
+
"java_package": "com.google.type",
|
|
4161
|
+
"objc_class_prefix": "GTP"
|
|
4162
|
+
},
|
|
4163
|
+
"nested": {
|
|
4164
|
+
"Expr": {
|
|
4165
|
+
"fields": {
|
|
4166
|
+
"expression": {
|
|
4167
|
+
"type": "string",
|
|
4168
|
+
"id": 1
|
|
4169
|
+
},
|
|
4170
|
+
"title": {
|
|
4171
|
+
"type": "string",
|
|
4172
|
+
"id": 2
|
|
4173
|
+
},
|
|
4174
|
+
"description": {
|
|
4175
|
+
"type": "string",
|
|
4176
|
+
"id": 3
|
|
4177
|
+
},
|
|
4178
|
+
"location": {
|
|
4179
|
+
"type": "string",
|
|
4180
|
+
"id": 4
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
3772
4186
|
"longrunning": {
|
|
3773
4187
|
"options": {
|
|
3774
4188
|
"cc_enable_arenas": true,
|
|
@@ -95,6 +95,21 @@
|
|
|
95
95
|
"updateOrganizationIntelligenceConfig"
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
|
+
"GetIamPolicy": {
|
|
99
|
+
"methods": [
|
|
100
|
+
"getIamPolicy"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"SetIamPolicy": {
|
|
104
|
+
"methods": [
|
|
105
|
+
"setIamPolicy"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"TestIamPermissions": {
|
|
109
|
+
"methods": [
|
|
110
|
+
"testIamPermissions"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
98
113
|
"RenameFolder": {
|
|
99
114
|
"methods": [
|
|
100
115
|
"renameFolder"
|
|
@@ -221,6 +236,21 @@
|
|
|
221
236
|
"updateOrganizationIntelligenceConfig"
|
|
222
237
|
]
|
|
223
238
|
},
|
|
239
|
+
"GetIamPolicy": {
|
|
240
|
+
"methods": [
|
|
241
|
+
"getIamPolicy"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"SetIamPolicy": {
|
|
245
|
+
"methods": [
|
|
246
|
+
"setIamPolicy"
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
"TestIamPermissions": {
|
|
250
|
+
"methods": [
|
|
251
|
+
"testIamPermissions"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
224
254
|
"RenameFolder": {
|
|
225
255
|
"methods": [
|
|
226
256
|
"renameFolder"
|
|
@@ -645,6 +645,111 @@ export declare class StorageControlClient {
|
|
|
645
645
|
]>;
|
|
646
646
|
updateOrganizationIntelligenceConfig(request: protos.google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, options: CallOptions, callback: Callback<protos.google.storage.control.v2.IIntelligenceConfig, protos.google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
647
647
|
updateOrganizationIntelligenceConfig(request: protos.google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest, callback: Callback<protos.google.storage.control.v2.IIntelligenceConfig, protos.google.storage.control.v2.IUpdateOrganizationIntelligenceConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
648
|
+
/**
|
|
649
|
+
* Gets the IAM policy for a specified bucket.
|
|
650
|
+
* The `resource` field in the request should be
|
|
651
|
+
* `projects/_/buckets/{bucket}` for a bucket, or
|
|
652
|
+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
|
|
653
|
+
* for a managed folder.
|
|
654
|
+
*
|
|
655
|
+
* @param {Object} request
|
|
656
|
+
* The request object that will be sent.
|
|
657
|
+
* @param {string} request.resource
|
|
658
|
+
* REQUIRED: The resource for which the policy is being requested.
|
|
659
|
+
* See the operation documentation for the appropriate value for this field.
|
|
660
|
+
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
661
|
+
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
662
|
+
* `GetIamPolicy`.
|
|
663
|
+
* @param {object} [options]
|
|
664
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
665
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
666
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
|
|
667
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
668
|
+
* for more details and examples.
|
|
669
|
+
* @example <caption>include:samples/generated/v2/storage_control.get_iam_policy.js</caption>
|
|
670
|
+
* region_tag:storage_v2_generated_StorageControl_GetIamPolicy_async
|
|
671
|
+
*/
|
|
672
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
673
|
+
protos.google.iam.v1.IPolicy,
|
|
674
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
675
|
+
{} | undefined
|
|
676
|
+
]>;
|
|
677
|
+
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
678
|
+
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
679
|
+
/**
|
|
680
|
+
* Updates an IAM policy for the specified bucket.
|
|
681
|
+
* The `resource` field in the request should be
|
|
682
|
+
* `projects/_/buckets/{bucket}` for a bucket, or
|
|
683
|
+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
|
|
684
|
+
* for a managed folder.
|
|
685
|
+
*
|
|
686
|
+
* @param {Object} request
|
|
687
|
+
* The request object that will be sent.
|
|
688
|
+
* @param {string} request.resource
|
|
689
|
+
* REQUIRED: The resource for which the policy is being specified.
|
|
690
|
+
* See the operation documentation for the appropriate value for this field.
|
|
691
|
+
* @param {google.iam.v1.Policy} request.policy
|
|
692
|
+
* REQUIRED: The complete policy to be applied to the `resource`. The size of
|
|
693
|
+
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
694
|
+
* valid policy but certain Cloud Platform services (such as Projects)
|
|
695
|
+
* might reject them.
|
|
696
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
697
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
698
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
699
|
+
* following default mask is used:
|
|
700
|
+
*
|
|
701
|
+
* `paths: "bindings, etag"`
|
|
702
|
+
* @param {object} [options]
|
|
703
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
704
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
705
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
|
|
706
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
707
|
+
* for more details and examples.
|
|
708
|
+
* @example <caption>include:samples/generated/v2/storage_control.set_iam_policy.js</caption>
|
|
709
|
+
* region_tag:storage_v2_generated_StorageControl_SetIamPolicy_async
|
|
710
|
+
*/
|
|
711
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
712
|
+
protos.google.iam.v1.IPolicy,
|
|
713
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
714
|
+
{} | undefined
|
|
715
|
+
]>;
|
|
716
|
+
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
717
|
+
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
718
|
+
/**
|
|
719
|
+
* Tests a set of permissions on the given bucket, object, or managed folder
|
|
720
|
+
* to see which, if any, are held by the caller.
|
|
721
|
+
* The `resource` field in the request should be
|
|
722
|
+
* `projects/_/buckets/{bucket}` for a bucket,
|
|
723
|
+
* `projects/_/buckets/{bucket}/objects/{object}` for an object, or
|
|
724
|
+
* `projects/_/buckets/{bucket}/managedFolders/{managedFolder}`
|
|
725
|
+
* for a managed folder.
|
|
726
|
+
*
|
|
727
|
+
* @param {Object} request
|
|
728
|
+
* The request object that will be sent.
|
|
729
|
+
* @param {string} request.resource
|
|
730
|
+
* REQUIRED: The resource for which the policy detail is being requested.
|
|
731
|
+
* See the operation documentation for the appropriate value for this field.
|
|
732
|
+
* @param {string[]} request.permissions
|
|
733
|
+
* The set of permissions to check for the `resource`. Permissions with
|
|
734
|
+
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
735
|
+
* information see
|
|
736
|
+
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
737
|
+
* @param {object} [options]
|
|
738
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
739
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
740
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
|
|
741
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
742
|
+
* for more details and examples.
|
|
743
|
+
* @example <caption>include:samples/generated/v2/storage_control.test_iam_permissions.js</caption>
|
|
744
|
+
* region_tag:storage_v2_generated_StorageControl_TestIamPermissions_async
|
|
745
|
+
*/
|
|
746
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
747
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
748
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
749
|
+
{} | undefined
|
|
750
|
+
]>;
|
|
751
|
+
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
752
|
+
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
648
753
|
/**
|
|
649
754
|
* Renames a source folder to a destination folder. This operation is only
|
|
650
755
|
* applicable to a hierarchical namespace enabled bucket. During a rename, the
|