google-cloud-dataplex-v1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +13 -8
  4. data/lib/google/cloud/dataplex/v1/analyze_pb.rb +117 -0
  5. data/lib/google/cloud/dataplex/v1/content_pb.rb +65 -0
  6. data/lib/google/cloud/dataplex/v1/content_service/client.rb +798 -0
  7. data/lib/google/cloud/dataplex/v1/content_service/credentials.rb +47 -0
  8. data/lib/google/cloud/dataplex/v1/content_service/paths.rb +73 -0
  9. data/lib/google/cloud/dataplex/v1/content_service.rb +49 -0
  10. data/lib/google/cloud/dataplex/v1/content_services_pb.rb +53 -0
  11. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +637 -1
  12. data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +3 -0
  13. data/lib/google/cloud/dataplex/v1/dataplex_service/paths.rb +21 -0
  14. data/lib/google/cloud/dataplex/v1/logs_pb.rb +2 -2
  15. data/lib/google/cloud/dataplex/v1/metadata_pb.rb +29 -2
  16. data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +531 -10
  17. data/lib/google/cloud/dataplex/v1/metadata_services_pb.rb +10 -0
  18. data/lib/google/cloud/dataplex/v1/resources_pb.rb +2 -2
  19. data/lib/google/cloud/dataplex/v1/service_pb.rb +48 -1
  20. data/lib/google/cloud/dataplex/v1/service_services_pb.rb +13 -0
  21. data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -2
  22. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  23. data/lib/google/cloud/dataplex/v1.rb +4 -1
  24. data/proto_docs/google/cloud/dataplex/v1/analyze.rb +281 -0
  25. data/proto_docs/google/cloud/dataplex/v1/content.rb +142 -0
  26. data/proto_docs/google/cloud/dataplex/v1/metadata.rb +182 -36
  27. data/proto_docs/google/cloud/dataplex/v1/resources.rb +0 -7
  28. data/proto_docs/google/cloud/dataplex/v1/service.rb +137 -1
  29. data/proto_docs/google/protobuf/any.rb +3 -3
  30. metadata +21 -12
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dataplex/v1/resources.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/timestamp_pb'
9
- require 'google/protobuf'
10
10
 
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/dataplex/v1/resources.proto", :syntax => :proto3) do
@@ -1,17 +1,19 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dataplex/v1/service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/dataplex/v1/analyze_pb'
8
11
  require 'google/cloud/dataplex/v1/resources_pb'
9
12
  require 'google/cloud/dataplex/v1/tasks_pb'
10
13
  require 'google/longrunning/operations_pb'
11
14
  require 'google/protobuf/empty_pb'
12
15
  require 'google/protobuf/field_mask_pb'
13
16
  require 'google/protobuf/timestamp_pb'
14
- require 'google/protobuf'
15
17
 
16
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
19
  add_file("google/cloud/dataplex/v1/service.proto", :syntax => :proto3) do
@@ -172,6 +174,43 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
172
174
  add_message "google.cloud.dataplex.v1.CancelJobRequest" do
173
175
  optional :name, :string, 1
174
176
  end
177
+ add_message "google.cloud.dataplex.v1.CreateEnvironmentRequest" do
178
+ optional :parent, :string, 1
179
+ optional :environment_id, :string, 2
180
+ optional :environment, :message, 3, "google.cloud.dataplex.v1.Environment"
181
+ optional :validate_only, :bool, 4
182
+ end
183
+ add_message "google.cloud.dataplex.v1.UpdateEnvironmentRequest" do
184
+ optional :update_mask, :message, 1, "google.protobuf.FieldMask"
185
+ optional :environment, :message, 2, "google.cloud.dataplex.v1.Environment"
186
+ optional :validate_only, :bool, 3
187
+ end
188
+ add_message "google.cloud.dataplex.v1.DeleteEnvironmentRequest" do
189
+ optional :name, :string, 1
190
+ end
191
+ add_message "google.cloud.dataplex.v1.ListEnvironmentsRequest" do
192
+ optional :parent, :string, 1
193
+ optional :page_size, :int32, 2
194
+ optional :page_token, :string, 3
195
+ optional :filter, :string, 4
196
+ optional :order_by, :string, 5
197
+ end
198
+ add_message "google.cloud.dataplex.v1.ListEnvironmentsResponse" do
199
+ repeated :environments, :message, 1, "google.cloud.dataplex.v1.Environment"
200
+ optional :next_page_token, :string, 2
201
+ end
202
+ add_message "google.cloud.dataplex.v1.GetEnvironmentRequest" do
203
+ optional :name, :string, 1
204
+ end
205
+ add_message "google.cloud.dataplex.v1.ListSessionsRequest" do
206
+ optional :parent, :string, 1
207
+ optional :page_size, :int32, 2
208
+ optional :page_token, :string, 3
209
+ end
210
+ add_message "google.cloud.dataplex.v1.ListSessionsResponse" do
211
+ repeated :sessions, :message, 1, "google.cloud.dataplex.v1.Session"
212
+ optional :next_page_token, :string, 2
213
+ end
175
214
  end
176
215
  end
177
216
 
@@ -212,6 +251,14 @@ module Google
212
251
  ListJobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListJobsRequest").msgclass
213
252
  ListJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListJobsResponse").msgclass
214
253
  CancelJobRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CancelJobRequest").msgclass
254
+ CreateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateEnvironmentRequest").msgclass
255
+ UpdateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateEnvironmentRequest").msgclass
256
+ DeleteEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteEnvironmentRequest").msgclass
257
+ ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEnvironmentsRequest").msgclass
258
+ ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEnvironmentsResponse").msgclass
259
+ GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEnvironmentRequest").msgclass
260
+ ListSessionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListSessionsRequest").msgclass
261
+ ListSessionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListSessionsResponse").msgclass
215
262
  end
216
263
  end
217
264
  end
@@ -92,6 +92,19 @@ module Google
92
92
  rpc :GetJob, ::Google::Cloud::Dataplex::V1::GetJobRequest, ::Google::Cloud::Dataplex::V1::Job
93
93
  # Cancel jobs running for the task resource.
94
94
  rpc :CancelJob, ::Google::Cloud::Dataplex::V1::CancelJobRequest, ::Google::Protobuf::Empty
95
+ # Create an environment resource.
96
+ rpc :CreateEnvironment, ::Google::Cloud::Dataplex::V1::CreateEnvironmentRequest, ::Google::Longrunning::Operation
97
+ # Update the environment resource.
98
+ rpc :UpdateEnvironment, ::Google::Cloud::Dataplex::V1::UpdateEnvironmentRequest, ::Google::Longrunning::Operation
99
+ # Delete the environment resource. All the child resources must have been
100
+ # deleted before environment deletion can be initiated.
101
+ rpc :DeleteEnvironment, ::Google::Cloud::Dataplex::V1::DeleteEnvironmentRequest, ::Google::Longrunning::Operation
102
+ # Lists environments under the given lake.
103
+ rpc :ListEnvironments, ::Google::Cloud::Dataplex::V1::ListEnvironmentsRequest, ::Google::Cloud::Dataplex::V1::ListEnvironmentsResponse
104
+ # Get environment resource.
105
+ rpc :GetEnvironment, ::Google::Cloud::Dataplex::V1::GetEnvironmentRequest, ::Google::Cloud::Dataplex::V1::Environment
106
+ # Lists session resources in an environment.
107
+ rpc :ListSessions, ::Google::Cloud::Dataplex::V1::ListSessionsRequest, ::Google::Cloud::Dataplex::V1::ListSessionsResponse
95
108
  end
96
109
 
97
110
  Stub = Service.rpc_stub_class
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dataplex/v1/tasks.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/dataplex/v1/resources_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
- require 'google/protobuf'
11
11
 
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/dataplex/v1/tasks.proto", :syntax => :proto3) do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dataplex
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/dataplex/v1/content_service"
19
20
  require "google/cloud/dataplex/v1/metadata_service"
20
21
  require "google/cloud/dataplex/v1/dataplex_service"
21
22
  require "google/cloud/dataplex/v1/version"
@@ -26,8 +27,10 @@ module Google
26
27
  ##
27
28
  # To load this package, including all its services, and instantiate a client:
28
29
  #
30
+ # @example
31
+ #
29
32
  # require "google/cloud/dataplex/v1"
30
- # client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new
33
+ # client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new
31
34
  #
32
35
  module V1
33
36
  end
@@ -0,0 +1,281 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dataplex
23
+ module V1
24
+ # Environment represents a user-visible compute infrastructure for analytics
25
+ # within a lake.
26
+ # @!attribute [r] name
27
+ # @return [::String]
28
+ # Output only. The relative resource name of the environment, of the form:
29
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/environment/\\{environment_id}
30
+ # @!attribute [rw] display_name
31
+ # @return [::String]
32
+ # Optional. User friendly display name.
33
+ # @!attribute [r] uid
34
+ # @return [::String]
35
+ # Output only. System generated globally unique ID for the environment. This ID will be
36
+ # different if the environment is deleted and re-created with the same name.
37
+ # @!attribute [r] create_time
38
+ # @return [::Google::Protobuf::Timestamp]
39
+ # Output only. Environment creation time.
40
+ # @!attribute [r] update_time
41
+ # @return [::Google::Protobuf::Timestamp]
42
+ # Output only. The time when the environment was last updated.
43
+ # @!attribute [rw] labels
44
+ # @return [::Google::Protobuf::Map{::String => ::String}]
45
+ # Optional. User defined labels for the environment.
46
+ # @!attribute [rw] description
47
+ # @return [::String]
48
+ # Optional. Description of the environment.
49
+ # @!attribute [r] state
50
+ # @return [::Google::Cloud::Dataplex::V1::State]
51
+ # Output only. Current state of the environment.
52
+ # @!attribute [rw] infrastructure_spec
53
+ # @return [::Google::Cloud::Dataplex::V1::Environment::InfrastructureSpec]
54
+ # Required. Infrastructure specification for the Environment.
55
+ # @!attribute [rw] session_spec
56
+ # @return [::Google::Cloud::Dataplex::V1::Environment::SessionSpec]
57
+ # Optional. Configuration for sessions created for this environment.
58
+ # @!attribute [r] session_status
59
+ # @return [::Google::Cloud::Dataplex::V1::Environment::SessionStatus]
60
+ # Output only. Status of sessions created for this environment.
61
+ # @!attribute [r] endpoints
62
+ # @return [::Google::Cloud::Dataplex::V1::Environment::Endpoints]
63
+ # Output only. URI Endpoints to access sessions associated with the Environment.
64
+ class Environment
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+
68
+ # Configuration for the underlying infrastructure used to run workloads.
69
+ # @!attribute [rw] compute
70
+ # @return [::Google::Cloud::Dataplex::V1::Environment::InfrastructureSpec::ComputeResources]
71
+ # Optional. Compute resources needed for analyze interactive workloads.
72
+ # @!attribute [rw] os_image
73
+ # @return [::Google::Cloud::Dataplex::V1::Environment::InfrastructureSpec::OsImageRuntime]
74
+ # Required. Software Runtime Configuration for analyze interactive workloads.
75
+ class InfrastructureSpec
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+
79
+ # Compute resources associated with the analyze interactive workloads.
80
+ # @!attribute [rw] disk_size_gb
81
+ # @return [::Integer]
82
+ # Optional. Size in GB of the disk. Default is 100 GB.
83
+ # @!attribute [rw] node_count
84
+ # @return [::Integer]
85
+ # Optional. Total number of nodes in the sessions created for this environment.
86
+ # @!attribute [rw] max_node_count
87
+ # @return [::Integer]
88
+ # Optional. Max configurable nodes.
89
+ # If max_node_count > node_count, then auto-scaling is enabled.
90
+ class ComputeResources
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
+ end
94
+
95
+ # Software Runtime Configuration to run Analyze.
96
+ # @!attribute [rw] image_version
97
+ # @return [::String]
98
+ # Required. Dataplex Image version.
99
+ # @!attribute [rw] java_libraries
100
+ # @return [::Array<::String>]
101
+ # Optional. List of Java jars to be included in the runtime environment.
102
+ # Valid input includes Cloud Storage URIs to Jar binaries.
103
+ # For example, gs://bucket-name/my/path/to/file.jar
104
+ # @!attribute [rw] python_packages
105
+ # @return [::Array<::String>]
106
+ # Optional. A list of python packages to be installed.
107
+ # Valid formats include Cloud Storage URI to a PIP installable library.
108
+ # For example, gs://bucket-name/my/path/to/lib.tar.gz
109
+ # @!attribute [rw] properties
110
+ # @return [::Google::Protobuf::Map{::String => ::String}]
111
+ # Optional. Spark properties to provide configuration for use in sessions created
112
+ # for this environment. The properties to set on daemon config files.
113
+ # Property keys are specified in `prefix:property` format.
114
+ # The prefix must be "spark".
115
+ class OsImageRuntime
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
+
119
+ # @!attribute [rw] key
120
+ # @return [::String]
121
+ # @!attribute [rw] value
122
+ # @return [::String]
123
+ class PropertiesEntry
124
+ include ::Google::Protobuf::MessageExts
125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
126
+ end
127
+ end
128
+ end
129
+
130
+ # @!attribute [rw] max_idle_duration
131
+ # @return [::Google::Protobuf::Duration]
132
+ # Optional. The idle time configuration of the session. The session will be
133
+ # auto-terminated at the end of this period.
134
+ # @!attribute [rw] enable_fast_startup
135
+ # @return [::Boolean]
136
+ # Optional. If True, this causes sessions to be pre-created and available for faster
137
+ # startup to enable interactive exploration use-cases. This defaults to
138
+ # False to avoid additional billed charges.
139
+ # These can only be set to True for the environment with name set to
140
+ # "default", and with default configuration.
141
+ class SessionSpec
142
+ include ::Google::Protobuf::MessageExts
143
+ extend ::Google::Protobuf::MessageExts::ClassMethods
144
+ end
145
+
146
+ # @!attribute [r] active
147
+ # @return [::Boolean]
148
+ # Output only. Queries over sessions to mark whether the environment is currently
149
+ # active or not
150
+ class SessionStatus
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # @!attribute [r] notebooks
156
+ # @return [::String]
157
+ # Output only. URI to serve notebook APIs
158
+ # @!attribute [r] sql
159
+ # @return [::String]
160
+ # Output only. URI to serve SQL APIs
161
+ class Endpoints
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
164
+ end
165
+
166
+ # @!attribute [rw] key
167
+ # @return [::String]
168
+ # @!attribute [rw] value
169
+ # @return [::String]
170
+ class LabelsEntry
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+ end
175
+
176
+ # Content represents a user-visible notebook or a sql script
177
+ # @!attribute [r] name
178
+ # @return [::String]
179
+ # Output only. The relative resource name of the content, of the form:
180
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/content/\\{content_id}
181
+ # @!attribute [r] uid
182
+ # @return [::String]
183
+ # Output only. System generated globally unique ID for the content. This ID will be
184
+ # different if the content is deleted and re-created with the same name.
185
+ # @!attribute [rw] path
186
+ # @return [::String]
187
+ # Required. The path for the Content file, represented as directory structure.
188
+ # Unique within a lake.
189
+ # Limited to alphanumerics, hyphens, underscores, dots and slashes.
190
+ # @!attribute [r] create_time
191
+ # @return [::Google::Protobuf::Timestamp]
192
+ # Output only. Content creation time.
193
+ # @!attribute [r] update_time
194
+ # @return [::Google::Protobuf::Timestamp]
195
+ # Output only. The time when the content was last updated.
196
+ # @!attribute [rw] labels
197
+ # @return [::Google::Protobuf::Map{::String => ::String}]
198
+ # Optional. User defined labels for the content.
199
+ # @!attribute [rw] description
200
+ # @return [::String]
201
+ # Optional. Description of the content.
202
+ # @!attribute [rw] data_text
203
+ # @return [::String]
204
+ # Required. Content data in string format.
205
+ # @!attribute [rw] sql_script
206
+ # @return [::Google::Cloud::Dataplex::V1::Content::SqlScript]
207
+ # Sql Script related configurations.
208
+ # @!attribute [rw] notebook
209
+ # @return [::Google::Cloud::Dataplex::V1::Content::Notebook]
210
+ # Notebook related configurations.
211
+ class Content
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+
215
+ # Configuration for the Sql Script content.
216
+ # @!attribute [rw] engine
217
+ # @return [::Google::Cloud::Dataplex::V1::Content::SqlScript::QueryEngine]
218
+ # Required. Query Engine to be used for the Sql Query.
219
+ class SqlScript
220
+ include ::Google::Protobuf::MessageExts
221
+ extend ::Google::Protobuf::MessageExts::ClassMethods
222
+
223
+ # Query Engine Type of the SQL Script.
224
+ module QueryEngine
225
+ # Value was unspecified.
226
+ QUERY_ENGINE_UNSPECIFIED = 0
227
+
228
+ # Spark SQL Query.
229
+ SPARK = 2
230
+ end
231
+ end
232
+
233
+ # Configuration for Notebook content.
234
+ # @!attribute [rw] kernel_type
235
+ # @return [::Google::Cloud::Dataplex::V1::Content::Notebook::KernelType]
236
+ # Required. Kernel Type of the notebook.
237
+ class Notebook
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+
241
+ # Kernel Type of the Jupyter notebook.
242
+ module KernelType
243
+ # Kernel Type unspecified.
244
+ KERNEL_TYPE_UNSPECIFIED = 0
245
+
246
+ # Python 3 Kernel.
247
+ PYTHON3 = 1
248
+ end
249
+ end
250
+
251
+ # @!attribute [rw] key
252
+ # @return [::String]
253
+ # @!attribute [rw] value
254
+ # @return [::String]
255
+ class LabelsEntry
256
+ include ::Google::Protobuf::MessageExts
257
+ extend ::Google::Protobuf::MessageExts::ClassMethods
258
+ end
259
+ end
260
+
261
+ # Represents an active analyze session running for a user.
262
+ # @!attribute [r] name
263
+ # @return [::String]
264
+ # Output only. The relative resource name of the content, of the form:
265
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/environment/\\{environment_id}/sessions/\\{session_id}
266
+ # @!attribute [r] user_id
267
+ # @return [::String]
268
+ # Output only. Email of user running the session.
269
+ # @!attribute [r] create_time
270
+ # @return [::Google::Protobuf::Timestamp]
271
+ # Output only. Session start time.
272
+ # @!attribute [r] state
273
+ # @return [::Google::Cloud::Dataplex::V1::State]
274
+ class Session
275
+ include ::Google::Protobuf::MessageExts
276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
277
+ end
278
+ end
279
+ end
280
+ end
281
+ end
@@ -0,0 +1,142 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dataplex
23
+ module V1
24
+ # Create content request.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The resource name of the parent lake:
28
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}
29
+ # @!attribute [rw] content
30
+ # @return [::Google::Cloud::Dataplex::V1::Content]
31
+ # Required. Content resource.
32
+ # @!attribute [rw] validate_only
33
+ # @return [::Boolean]
34
+ # Optional. Only validate the request, but do not perform mutations.
35
+ # The default is false.
36
+ class CreateContentRequest
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Update content request.
42
+ # @!attribute [rw] update_mask
43
+ # @return [::Google::Protobuf::FieldMask]
44
+ # Required. Mask of fields to update.
45
+ # @!attribute [rw] content
46
+ # @return [::Google::Cloud::Dataplex::V1::Content]
47
+ # Required. Update description.
48
+ # Only fields specified in `update_mask` are updated.
49
+ # @!attribute [rw] validate_only
50
+ # @return [::Boolean]
51
+ # Optional. Only validate the request, but do not perform mutations.
52
+ # The default is false.
53
+ class UpdateContentRequest
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # Delete content request.
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # Required. The resource name of the content:
62
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/content/\\{content_id}
63
+ class DeleteContentRequest
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # List content request. Returns the BASIC Content view.
69
+ # @!attribute [rw] parent
70
+ # @return [::String]
71
+ # Required. The resource name of the parent lake:
72
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}
73
+ # @!attribute [rw] page_size
74
+ # @return [::Integer]
75
+ # Optional. Maximum number of content to return. The service may return fewer than
76
+ # this value. If unspecified, at most 10 content will be returned. The
77
+ # maximum value is 1000; values above 1000 will be coerced to 1000.
78
+ # @!attribute [rw] page_token
79
+ # @return [::String]
80
+ # Optional. Page token received from a previous `ListContent` call. Provide this
81
+ # to retrieve the subsequent page. When paginating, all other parameters
82
+ # provided to `ListContent` must match the call that provided the page
83
+ # token.
84
+ # @!attribute [rw] filter
85
+ # @return [::String]
86
+ # Optional. Filter request. Filters are case-sensitive.
87
+ # The following formats are supported:
88
+ #
89
+ # labels.key1 = "value1"
90
+ # labels:key1
91
+ # type = "NOTEBOOK"
92
+ # type = "SQL_SCRIPT"
93
+ #
94
+ # These restrictions can be coinjoined with AND, OR and NOT conjunctions.
95
+ class ListContentRequest
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # List content response.
101
+ # @!attribute [rw] content
102
+ # @return [::Array<::Google::Cloud::Dataplex::V1::Content>]
103
+ # Content under the given parent lake.
104
+ # @!attribute [rw] next_page_token
105
+ # @return [::String]
106
+ # Token to retrieve the next page of results, or empty if there are no more
107
+ # results in the list.
108
+ class ListContentResponse
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
113
+ # Get content request.
114
+ # @!attribute [rw] name
115
+ # @return [::String]
116
+ # Required. The resource name of the content:
117
+ # projects/\\{project_id}/locations/\\{location_id}/lakes/\\{lake_id}/content/\\{content_id}
118
+ # @!attribute [rw] view
119
+ # @return [::Google::Cloud::Dataplex::V1::GetContentRequest::ContentView]
120
+ # Optional. Specify content view to make a partial request.
121
+ class GetContentRequest
122
+ include ::Google::Protobuf::MessageExts
123
+ extend ::Google::Protobuf::MessageExts::ClassMethods
124
+
125
+ # Specifies whether the request should return the full or the partial
126
+ # representation.
127
+ module ContentView
128
+ # Content view not specified. Defaults to BASIC.
129
+ # The API will default to the BASIC view.
130
+ CONTENT_VIEW_UNSPECIFIED = 0
131
+
132
+ # Will not return the `data_text` field.
133
+ BASIC = 1
134
+
135
+ # Returns the complete proto.
136
+ FULL = 2
137
+ end
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end