GeezerVison is showing github.com — feat: Add IAM support for Explore content APIs · googleapis/googleapis@9af1b9b
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: google/cloud/dataplex/v1/BUILD.bazel +19Lines changed: 19 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -34,6 +34,8 @@ proto_library( | 34 | 34 | "//google/api:client_proto", | 35 | 35 | "//google/api:field_behavior_proto", | 36 | 36 | "//google/api:resource_proto", | | 37 | + "//google/iam/v1:iam_policy_proto", | | 38 | + "//google/iam/v1:policy_proto", | 37 | 39 | "//google/longrunning:operations_proto", | 38 | 40 | "@com_google_protobuf//:duration_proto", | 39 | 41 | "@com_google_protobuf//:empty_proto", | @@ -47,6 +49,8 @@ proto_library_with_info( | 47 | 49 | deps = [ | 48 | 50 | ":dataplex_proto", | 49 | 51 | "//google/cloud:common_resources_proto", | | 52 | + "//google/cloud/location:location_proto", | | 53 | + "//google/iam/v1:iam_policy_proto", | 50 | 54 | ], | 51 | 55 | ) | 52 | 56 |
| @@ -81,18 +85,26 @@ java_gapic_library( | 81 | 85 | service_yaml = "dataplex_v1.yaml", | 82 | 86 | test_deps = [ | 83 | 87 | ":dataplex_java_grpc", | | 88 | + "//google/cloud/location:location_java_grpc", | | 89 | + "//google/iam/v1:iam_java_grpc", | 84 | 90 | ], | | 91 | + transport = "grpc+rest", | 85 | 92 | deps = [ | 86 | 93 | ":dataplex_java_proto", | 87 | 94 | "//google/api:api_java_proto", | | 95 | + "//google/cloud/location:location_java_proto", | | 96 | + "//google/iam/v1:iam_java_proto", | 88 | 97 | ], | 89 | 98 | ) | 90 | 99 |
| 91 | 100 | java_gapic_test( | 92 | 101 | name = "dataplex_java_gapic_test_suite", | 93 | 102 | test_classes = [ | | 103 | + "com.google.cloud.dataplex.v1.ContentServiceClientHttpJsonTest", | 94 | 104 | "com.google.cloud.dataplex.v1.ContentServiceClientTest", | | 105 | + "com.google.cloud.dataplex.v1.DataplexServiceClientHttpJsonTest", | 95 | 106 | "com.google.cloud.dataplex.v1.DataplexServiceClientTest", | | 107 | + "com.google.cloud.dataplex.v1.MetadataServiceClientHttpJsonTest", | 96 | 108 | "com.google.cloud.dataplex.v1.MetadataServiceClientTest", | 97 | 109 | ], | 98 | 110 | runtime_deps = [":dataplex_java_gapic_test"], | @@ -102,6 +114,7 @@ java_gapic_test( | 102 | 114 | java_gapic_assembly_gradle_pkg( | 103 | 115 | name = "google-cloud-dataplex-v1-java", | 104 | 116 | include_samples = True, | | 117 | + transport = "grpc+rest", | 105 | 118 | deps = [ | 106 | 119 | ":dataplex_java_gapic", | 107 | 120 | ":dataplex_java_grpc", | @@ -128,6 +141,7 @@ go_proto_library( | 128 | 141 | protos = [":dataplex_proto"], | 129 | 142 | deps = [ | 130 | 143 | "//google/api:annotations_go_proto", | | 144 | + "//google/iam/v1:iam_go_proto", | 131 | 145 | "//google/longrunning:longrunning_go_proto", | 132 | 146 | ], | 133 | 147 | ) | @@ -139,8 +153,11 @@ go_gapic_library( | 139 | 153 | importpath = "cloud.google.com/go/dataplex/apiv1;dataplex", | 140 | 154 | metadata = True, | 141 | 155 | service_yaml = "dataplex_v1.yaml", | | 156 | + transport = "grpc+rest", | 142 | 157 | deps = [ | 143 | 158 | ":dataplex_go_proto", | | 159 | + "//google/cloud/location:location_go_proto", | | 160 | + "//google/iam/v1:iam_go_proto", | 144 | 161 | "//google/longrunning:longrunning_go_proto", | 145 | 162 | "@com_google_cloud_go//longrunning:go_default_library", | 146 | 163 | "@com_google_cloud_go//longrunning/autogen:go_default_library", | @@ -179,6 +196,7 @@ py_gapic_library( | 179 | 196 | name = "dataplex_py_gapic", | 180 | 197 | srcs = [":dataplex_proto"], | 181 | 198 | grpc_service_config = "dataplex_grpc_service_config.json", | | 199 | + service_yaml = "dataplex_v1.yaml", | 182 | 200 | ) | 183 | 201 |
| 184 | 202 | # Open Source Packages | @@ -294,6 +312,7 @@ ruby_cloud_gapic_library( | 294 | 312 | grpc_service_config = "dataplex_grpc_service_config.json", | 295 | 313 | ruby_cloud_description = "Dataplex is an intelligent data fabric that provides a way to centrally manage, monitor, and govern your data across data lakes, data warehouses and data marts, and make this data securely accessible to a variety of analytics and data science tools.", | 296 | 314 | ruby_cloud_title = "Dataplex V1", | | 315 | + service_yaml = "dataplex_v1.yaml", | 297 | 316 | deps = [ | 298 | 317 | ":dataplex_ruby_grpc", | 299 | 318 | ":dataplex_ruby_proto", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/dataplex/v1/content.proto +72Lines changed: 72 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,8 @@ import "google/api/client.proto"; | 21 | 21 | import "google/api/field_behavior.proto"; | 22 | 22 | import "google/api/resource.proto"; | 23 | 23 | import "google/cloud/dataplex/v1/analyze.proto"; | | 24 | +import "google/iam/v1/iam_policy.proto"; | | 25 | +import "google/iam/v1/policy.proto"; | 24 | 26 | import "google/protobuf/empty.proto"; | 25 | 27 | import "google/protobuf/field_mask.proto"; | 26 | 28 |
| @@ -39,6 +41,10 @@ service ContentService { | 39 | 41 | option (google.api.http) = { | 40 | 42 | post: "/v1/{parent=projects/*/locations/*/lakes/*}/contentitems" | 41 | 43 | body: "content" | | 44 | + additional_bindings { | | 45 | + post: "/v1/{parent=projects/*/locations/*/lakes/*}/content" | | 46 | + body: "content" | | 47 | + } | 42 | 48 | }; | 43 | 49 | option (google.api.method_signature) = "parent,content"; | 44 | 50 | } | @@ -48,6 +54,10 @@ service ContentService { | 48 | 54 | option (google.api.http) = { | 49 | 55 | patch: "/v1/{content.name=projects/*/locations/*/lakes/*/contentitems/**}" | 50 | 56 | body: "content" | | 57 | + additional_bindings { | | 58 | + patch: "/v1/{content.name=projects/*/locations/*/lakes/*/content/**}" | | 59 | + body: "content" | | 60 | + } | 51 | 61 | }; | 52 | 62 | option (google.api.method_signature) = "content,update_mask"; | 53 | 63 | } | @@ -56,6 +66,9 @@ service ContentService { | 56 | 66 | rpc DeleteContent(DeleteContentRequest) returns (google.protobuf.Empty) { | 57 | 67 | option (google.api.http) = { | 58 | 68 | delete: "/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}" | | 69 | + additional_bindings { | | 70 | + delete: "/v1/{name=projects/*/locations/*/lakes/*/content/**}" | | 71 | + } | 59 | 72 | }; | 60 | 73 | option (google.api.method_signature) = "name"; | 61 | 74 | } | @@ -64,14 +77,73 @@ service ContentService { | 64 | 77 | rpc GetContent(GetContentRequest) returns (Content) { | 65 | 78 | option (google.api.http) = { | 66 | 79 | get: "/v1/{name=projects/*/locations/*/lakes/*/contentitems/**}" | | 80 | + additional_bindings { | | 81 | + get: "/v1/{name=projects/*/locations/*/lakes/*/content/**}" | | 82 | + } | 67 | 83 | }; | 68 | 84 | option (google.api.method_signature) = "name"; | 69 | 85 | } | 70 | 86 |
| | 87 | + // Gets the access control policy for a contentitem resource. A `NOT_FOUND` | | 88 | + // error is returned if the resource does not exist. An empty policy is | | 89 | + // returned if the resource exists but does not have a policy set on it. | | 90 | + // | | 91 | + // Caller must have Google IAM `dataplex.content.getIamPolicy` permission | | 92 | + // on the resource. | | 93 | + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { | | 94 | + option (google.api.http) = { | | 95 | + get: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:getIamPolicy" | | 96 | + additional_bindings { | | 97 | + get: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:getIamPolicy" | | 98 | + } | | 99 | + }; | | 100 | + option (google.api.method_signature) = "resource"; | | 101 | + } | | 102 | + | | 103 | + // Sets the access control policy on the specified contentitem resource. | | 104 | + // Replaces any existing policy. | | 105 | + // | | 106 | + // Caller must have Google IAM `dataplex.content.setIamPolicy` permission | | 107 | + // on the resource. | | 108 | + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { | | 109 | + option (google.api.http) = { | | 110 | + post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:setIamPolicy" | | 111 | + body: "*" | | 112 | + additional_bindings { | | 113 | + post: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:setIamPolicy" | | 114 | + body: "*" | | 115 | + } | | 116 | + }; | | 117 | + } | | 118 | + | | 119 | + // Returns the caller's permissions on a resource. | | 120 | + // If the resource does not exist, an empty set of | | 121 | + // permissions is returned (a `NOT_FOUND` error is not returned). | | 122 | + // | | 123 | + // A caller is not required to have Google IAM permission to make this | | 124 | + // request. | | 125 | + // | | 126 | + // Note: This operation is designed to be used for building permission-aware | | 127 | + // UIs and command-line tools, not for authorization checking. This operation | | 128 | + // may "fail open" without warning. | | 129 | + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { | | 130 | + option (google.api.http) = { | | 131 | + post: "/v1/{resource=projects/*/locations/*/lakes/*/contentitems/**}:testIamPermissions" | | 132 | + body: "*" | | 133 | + additional_bindings { | | 134 | + post: "/v1/{resource=projects/*/locations/*/lakes/*/content/**}:testIamPermissions" | | 135 | + body: "*" | | 136 | + } | | 137 | + }; | | 138 | + } | | 139 | + | 71 | 140 | // List content. | 72 | 141 | rpc ListContent(ListContentRequest) returns (ListContentResponse) { | 73 | 142 | option (google.api.http) = { | 74 | 143 | get: "/v1/{parent=projects/*/locations/*/lakes/*}/contentitems" | | 144 | + additional_bindings { | | 145 | + get: "/v1/{parent=projects/*/locations/*/lakes/*}/content" | | 146 | + } | 75 | 147 | }; | 76 | 148 | option (google.api.method_signature) = "parent"; | 77 | 149 | } | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/dataplex/v1/dataplex_grpc_service_config.json +81Lines changed: 81 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | { | 22 | 22 | "service": "google.cloud.dataplex.v1.DataplexService", | 23 | 23 | "method": "GetJob" | | 24 | + }, | | 25 | + { | | 26 | + "service": "google.cloud.dataplex.v1.DataplexService", | | 27 | + "method": "GetEnvironment" | 24 | 28 | } | 25 | 29 | ], | 26 | 30 | "timeout": "60s", | | 65 | 69 | { | 66 | 70 | "service": "google.cloud.dataplex.v1.DataplexService", | 67 | 71 | "method": "ListJobs" | | 72 | + }, | | 73 | + { | | 74 | + "service": "google.cloud.dataplex.v1.DataplexService", | | 75 | + "method": "ListEnvironments" | 68 | 76 | } | 69 | 77 | ], | 70 | 78 | "timeout": "60s", | | 116 | 124 | "retryableStatusCodes": ["UNAVAILABLE"] | 117 | 125 | } | 118 | 126 | }, | | 127 | + { | | 128 | + "name": [ | | 129 | + { | | 130 | + "service": "google.cloud.dataplex.v1.ContentService", | | 131 | + "method": "GetContent" | | 132 | + }, | | 133 | + { | | 134 | + "service": "google.cloud.dataplex.v1.ContentService", | | 135 | + "method": "GetIamPolicy" | | 136 | + }, | | 137 | + { | | 138 | + "service": "google.cloud.dataplex.v1.ContentService", | | 139 | + "method": "TestIamPermissions" | | 140 | + } | | 141 | + ], | | 142 | + "timeout": "60s", | | 143 | + "retryPolicy": { | | 144 | + "maxAttempts": 5, | | 145 | + "initialBackoff": "1s", | | 146 | + "maxBackoff": "10s", | | 147 | + "backoffMultiplier": 1.3, | | 148 | + "retryableStatusCodes": ["UNAVAILABLE"] | | 149 | + } | | 150 | + }, | | 151 | + { | | 152 | + "name": [ | | 153 | + { | | 154 | + "service": "google.cloud.dataplex.v1.ContentService", | | 155 | + "method": "ListContent" | | 156 | + } | | 157 | + ], | | 158 | + "timeout": "60s", | | 159 | + "retryPolicy": { | | 160 | + "maxAttempts": 5, | | 161 | + "initialBackoff": "1s", | | 162 | + "maxBackoff": "10s", | | 163 | + "backoffMultiplier": 1.3, | | 164 | + "retryableStatusCodes": ["UNAVAILABLE"] | | 165 | + } | | 166 | + }, | 119 | 167 | { | 120 | 168 | "name": [ | 121 | 169 | { | | 169 | 217 | { | 170 | 218 | "service": "google.cloud.dataplex.v1.DataplexService", | 171 | 219 | "method": "CancelJob" | | 220 | + }, | | 221 | + { | | 222 | + "service": "google.cloud.dataplex.v1.DataplexService", | | 223 | + "method": "CreateEnvironment" | | 224 | + }, | | 225 | + { | | 226 | + "service": "google.cloud.dataplex.v1.DataplexService", | | 227 | + "method": "UpdateEnvironment" | | 228 | + }, | | 229 | + { | | 230 | + "service": "google.cloud.dataplex.v1.DataplexService", | | 231 | + "method": "DeleteEnvironment" | 172 | 232 | } | 173 | 233 | ], | 174 | 234 | "timeout": "60s" | | 201 | 261 | } | 202 | 262 | ], | 203 | 263 | "timeout": "60s" | | 264 | + }, | | 265 | + { | | 266 | + "name": [ | | 267 | + { | | 268 | + "service": "google.cloud.dataplex.v1.ContentService", | | 269 | + "method": "CreateContent" | | 270 | + }, | | 271 | + { | | 272 | + "service": "google.cloud.dataplex.v1.ContentService", | | 273 | + "method": "DeleteContent" | | 274 | + }, | | 275 | + { | | 276 | + "service": "google.cloud.dataplex.v1.ContentService", | | 277 | + "method": "UpdateContent" | | 278 | + }, | | 279 | + { | | 280 | + "service": "google.cloud.dataplex.v1.ContentService", | | 281 | + "method": "SetIamPolicy" | | 282 | + } | | 283 | + ], | | 284 | + "timeout": "60s" | 204 | 285 | } | 205 | 286 | ] | 206 | 287 | } |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/dataplex/v1/dataplex_v1.yaml +3-5Lines changed: 3 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | - name: google.cloud.dataplex.v1.ContentService | 8 | 8 | - name: google.cloud.dataplex.v1.DataplexService | 9 | 9 | - name: google.cloud.dataplex.v1.MetadataService | | 10 | +- name: google.cloud.location.Locations | | 11 | +- name: google.iam.v1.IAMPolicy | | 12 | +- name: google.longrunning.Operations | 10 | 13 |
| 11 | 14 | types: | 12 | 15 | - name: google.cloud.dataplex.v1.DiscoveryEvent | | 76 | 79 | - get: '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy' | 77 | 80 | - get: '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy' | 78 | 81 | - get: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy' | 79 | | - - get: '/v1/{resource=projects/*/locations/*/lakes/*/content/*}:getIamPolicy' | 80 | 82 | - selector: google.iam.v1.IAMPolicy.SetIamPolicy | 81 | 83 | post: '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy' | 82 | 84 | body: '*' | | 89 | 91 | body: '*' | 90 | 92 | - post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy' | 91 | 93 | body: '*' | 92 | | - - post: '/v1/{resource=projects/*/locations/*/lakes/*/content/*}:setIamPolicy' | 93 | | - body: '*' | 94 | 94 | - selector: google.iam.v1.IAMPolicy.TestIamPermissions | 95 | 95 | post: '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions' | 96 | 96 | body: '*' | @@ -103,8 +103,6 @@ http: | 103 | 103 | body: '*' | 104 | 104 | - post: '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions' | 105 | 105 | body: '*' | 106 | | - - post: '/v1/{resource=projects/*/locations/*/lakes/*/content/*}:testIamPermissions' | 107 | | - body: '*' | 108 | 106 | - selector: google.longrunning.Operations.CancelOperation | 109 | 107 | post: '/v1/{name=projects/*/locations/*/operations/*}:cancel' | 110 | 108 | body: '*' | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/dataplex/v1/logs.proto +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -96,6 +96,10 @@ message DiscoveryEvent { | 96 | 96 |
| 97 | 97 | // The type of the containing entity resource. | 98 | 98 | EntityType type = 3; | | 99 | + | | 100 | + // The locations of the data items (e.g., a Cloud Storage objects) sampled | | 101 | + // for metadata inference. | | 102 | + repeated string sampled_data_locations = 4; | 99 | 103 | } | 100 | 104 |
| 101 | 105 | // Details about the action. | |
|