google-cloud-dataplex-v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,27 @@ module Google
47
47
  "projects/#{project}/locations/#{location}/lakes/#{lake}/zones/#{zone}/assets/#{asset}"
48
48
  end
49
49
 
50
+ ##
51
+ # Create a fully-qualified Environment resource string.
52
+ #
53
+ # The resource will be in the following format:
54
+ #
55
+ # `projects/{project}/locations/{location}/lakes/{lake}/environments/{environment}`
56
+ #
57
+ # @param project [String]
58
+ # @param location [String]
59
+ # @param lake [String]
60
+ # @param environment [String]
61
+ #
62
+ # @return [::String]
63
+ def environment_path project:, location:, lake:, environment:
64
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
65
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
66
+ raise ::ArgumentError, "lake cannot contain /" if lake.to_s.include? "/"
67
+
68
+ "projects/#{project}/locations/#{location}/lakes/#{lake}/environments/#{environment}"
69
+ end
70
+
50
71
  ##
51
72
  # Create a fully-qualified Job resource string.
52
73
  #
@@ -6,12 +6,24 @@ require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/protobuf/empty_pb'
9
- require 'google/protobuf/field_mask_pb'
10
9
  require 'google/protobuf/timestamp_pb'
11
10
  require 'google/protobuf'
12
11
 
13
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
13
  add_file("google/cloud/dataplex/v1/metadata.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.dataplex.v1.CreateEntityRequest" do
15
+ optional :parent, :string, 1
16
+ optional :entity, :message, 3, "google.cloud.dataplex.v1.Entity"
17
+ optional :validate_only, :bool, 4
18
+ end
19
+ add_message "google.cloud.dataplex.v1.UpdateEntityRequest" do
20
+ optional :entity, :message, 2, "google.cloud.dataplex.v1.Entity"
21
+ optional :validate_only, :bool, 3
22
+ end
23
+ add_message "google.cloud.dataplex.v1.DeleteEntityRequest" do
24
+ optional :name, :string, 1
25
+ optional :etag, :string, 2
26
+ end
15
27
  add_message "google.cloud.dataplex.v1.ListEntitiesRequest" do
16
28
  optional :parent, :string, 1
17
29
  optional :view, :enum, 2, "google.cloud.dataplex.v1.ListEntitiesRequest.EntityView"
@@ -44,6 +56,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
44
56
  optional :page_token, :string, 3
45
57
  optional :filter, :string, 4
46
58
  end
59
+ add_message "google.cloud.dataplex.v1.CreatePartitionRequest" do
60
+ optional :parent, :string, 1
61
+ optional :partition, :message, 3, "google.cloud.dataplex.v1.Partition"
62
+ optional :validate_only, :bool, 4
63
+ end
64
+ add_message "google.cloud.dataplex.v1.DeletePartitionRequest" do
65
+ optional :name, :string, 1
66
+ optional :etag, :string, 2
67
+ end
47
68
  add_message "google.cloud.dataplex.v1.ListPartitionsResponse" do
48
69
  repeated :partitions, :message, 1, "google.cloud.dataplex.v1.Partition"
49
70
  optional :next_page_token, :string, 2
@@ -183,12 +204,17 @@ module Google
183
204
  module Cloud
184
205
  module Dataplex
185
206
  module V1
207
+ CreateEntityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreateEntityRequest").msgclass
208
+ UpdateEntityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.UpdateEntityRequest").msgclass
209
+ DeleteEntityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeleteEntityRequest").msgclass
186
210
  ListEntitiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesRequest").msgclass
187
211
  ListEntitiesRequest::EntityView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesRequest.EntityView").enummodule
188
212
  ListEntitiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListEntitiesResponse").msgclass
189
213
  GetEntityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEntityRequest").msgclass
190
214
  GetEntityRequest::EntityView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetEntityRequest.EntityView").enummodule
191
215
  ListPartitionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListPartitionsRequest").msgclass
216
+ CreatePartitionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.CreatePartitionRequest").msgclass
217
+ DeletePartitionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.DeletePartitionRequest").msgclass
192
218
  ListPartitionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.ListPartitionsResponse").msgclass
193
219
  GetPartitionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.GetPartitionRequest").msgclass
194
220
  Entity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataplex.v1.Entity").msgclass