google-cloud-orchestration-airflow-service-v1 0.5.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 631a837802da9210eaf8b502637fda8737d773c20619a1058e88b25fb087b88d
4
- data.tar.gz: 25aa2c68e225f51cb406a44e1a6e499e7241a1a69a3af7b738c2353da44d343e
3
+ metadata.gz: d522d39356360108b9fc91e5b47f6b3e7638457795bb86bae304162ca8963735
4
+ data.tar.gz: ebf85b4136b3a64ff2bf706f8cbd0358b431e4592bb93903ca50aacdff0e7185
5
5
  SHA512:
6
- metadata.gz: f110c850827abd6d7dc2791467a87870322cbde9d79b4d93299fdfa5a48a849b5748f814b14bd592455cbeecac75949955f33796423e99edbf57935a9db75348
7
- data.tar.gz: '090a959a3f9ad8484e8b4e3440c4feba1a7b5609120c3dd515aae6aa200b51e379effc246c0c6136ce4990eaf8c29aa99f7b39601f092b66144e04635ddd6056'
6
+ metadata.gz: 2bd8ccba4fa83394fe667aab7fe9e79c981335fbf742e1f915e63b027c896869947c8a7acae78fa45875831d5b1209a96e6163f1090bc8cf1ea613c92f9992b4
7
+ data.tar.gz: 5d3d0ea5649ecb513ba18b8a96bd5bee72bed17fb2be9b50fb61ac2233ff18e0d1edfd031cf42e63571bf59710b5aba4cbd9a445d9e1da3b900a5d134397bb49
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1045,7 +1045,9 @@ module Google
1045
1045
  class Configuration
1046
1046
  extend ::Gapic::Config
1047
1047
 
1048
- config_attr :endpoint, "composer.googleapis.com", ::String
1048
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
1049
+
1050
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1049
1051
  config_attr :credentials, nil do |value|
1050
1052
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1051
1053
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -666,7 +666,9 @@ module Google
666
666
  class Configuration
667
667
  extend ::Gapic::Config
668
668
 
669
- config_attr :endpoint, "composer.googleapis.com", ::String
669
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
670
+
671
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
670
672
  config_attr :credentials, nil do |value|
671
673
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
674
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -827,7 +827,9 @@ module Google
827
827
  class Configuration
828
828
  extend ::Gapic::Config
829
829
 
830
- config_attr :endpoint, "composer.googleapis.com", ::String
830
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
831
+
832
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
831
833
  config_attr :credentials, nil do |value|
832
834
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
833
835
  allowed.any? { |klass| klass === value }
@@ -448,7 +448,9 @@ module Google
448
448
  class Configuration
449
449
  extend ::Gapic::Config
450
450
 
451
- config_attr :endpoint, "composer.googleapis.com", ::String
451
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
452
+
453
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
452
454
  config_attr :credentials, nil do |value|
453
455
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
454
456
  allowed.any? { |klass| klass === value }
@@ -569,7 +571,7 @@ module Google
569
571
 
570
572
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
571
573
  query_string_params = if query_string_params.any?
572
- query_string_params.to_h { |p| p.split("=", 2) }
574
+ query_string_params.to_h { |p| p.split "=", 2 }
573
575
  else
574
576
  {}
575
577
  end
@@ -607,7 +609,7 @@ module Google
607
609
 
608
610
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
609
611
  query_string_params = if query_string_params.any?
610
- query_string_params.to_h { |p| p.split("=", 2) }
612
+ query_string_params.to_h { |p| p.split "=", 2 }
611
613
  else
612
614
  {}
613
615
  end
@@ -645,7 +647,7 @@ module Google
645
647
 
646
648
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
647
649
  query_string_params = if query_string_params.any?
648
- query_string_params.to_h { |p| p.split("=", 2) }
650
+ query_string_params.to_h { |p| p.split "=", 2 }
649
651
  else
650
652
  {}
651
653
  end
@@ -683,7 +685,7 @@ module Google
683
685
 
684
686
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
685
687
  query_string_params = if query_string_params.any?
686
- query_string_params.to_h { |p| p.split("=", 2) }
688
+ query_string_params.to_h { |p| p.split "=", 2 }
687
689
  else
688
690
  {}
689
691
  end
@@ -61,7 +61,7 @@ module Google
61
61
 
62
62
  verb, uri, query_string_params, body = ServiceStub.transcode_create_environment_request request_pb
63
63
  query_string_params = if query_string_params.any?
64
- query_string_params.to_h { |p| p.split("=", 2) }
64
+ query_string_params.to_h { |p| p.split "=", 2 }
65
65
  else
66
66
  {}
67
67
  end
@@ -99,7 +99,7 @@ module Google
99
99
 
100
100
  verb, uri, query_string_params, body = ServiceStub.transcode_get_environment_request request_pb
101
101
  query_string_params = if query_string_params.any?
102
- query_string_params.to_h { |p| p.split("=", 2) }
102
+ query_string_params.to_h { |p| p.split "=", 2 }
103
103
  else
104
104
  {}
105
105
  end
@@ -137,7 +137,7 @@ module Google
137
137
 
138
138
  verb, uri, query_string_params, body = ServiceStub.transcode_list_environments_request request_pb
139
139
  query_string_params = if query_string_params.any?
140
- query_string_params.to_h { |p| p.split("=", 2) }
140
+ query_string_params.to_h { |p| p.split "=", 2 }
141
141
  else
142
142
  {}
143
143
  end
@@ -175,7 +175,7 @@ module Google
175
175
 
176
176
  verb, uri, query_string_params, body = ServiceStub.transcode_update_environment_request request_pb
177
177
  query_string_params = if query_string_params.any?
178
- query_string_params.to_h { |p| p.split("=", 2) }
178
+ query_string_params.to_h { |p| p.split "=", 2 }
179
179
  else
180
180
  {}
181
181
  end
@@ -213,7 +213,7 @@ module Google
213
213
 
214
214
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_environment_request request_pb
215
215
  query_string_params = if query_string_params.any?
216
- query_string_params.to_h { |p| p.split("=", 2) }
216
+ query_string_params.to_h { |p| p.split "=", 2 }
217
217
  else
218
218
  {}
219
219
  end
@@ -251,7 +251,7 @@ module Google
251
251
 
252
252
  verb, uri, query_string_params, body = ServiceStub.transcode_save_snapshot_request request_pb
253
253
  query_string_params = if query_string_params.any?
254
- query_string_params.to_h { |p| p.split("=", 2) }
254
+ query_string_params.to_h { |p| p.split "=", 2 }
255
255
  else
256
256
  {}
257
257
  end
@@ -289,7 +289,7 @@ module Google
289
289
 
290
290
  verb, uri, query_string_params, body = ServiceStub.transcode_load_snapshot_request request_pb
291
291
  query_string_params = if query_string_params.any?
292
- query_string_params.to_h { |p| p.split("=", 2) }
292
+ query_string_params.to_h { |p| p.split "=", 2 }
293
293
  else
294
294
  {}
295
295
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/orchestration/airflow/service/v1/environments.proto
3
4
 
@@ -13,221 +14,33 @@ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/orchestration/airflow/service/v1/environments.proto", :syntax => :proto3) do
18
- add_message "google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest" do
19
- optional :parent, :string, 1
20
- optional :environment, :message, 2, "google.cloud.orchestration.airflow.service.v1.Environment"
21
- end
22
- add_message "google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest" do
23
- optional :name, :string, 1
24
- end
25
- add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest" do
26
- optional :parent, :string, 1
27
- optional :page_size, :int32, 2
28
- optional :page_token, :string, 3
29
- end
30
- add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse" do
31
- repeated :environments, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment"
32
- optional :next_page_token, :string, 2
33
- end
34
- add_message "google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest" do
35
- optional :name, :string, 1
36
- end
37
- add_message "google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest" do
38
- optional :name, :string, 2
39
- optional :environment, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment"
40
- optional :update_mask, :message, 3, "google.protobuf.FieldMask"
41
- end
42
- add_message "google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest" do
43
- optional :environment, :string, 1
44
- optional :snapshot_location, :string, 2
45
- end
46
- add_message "google.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse" do
47
- optional :snapshot_path, :string, 1
48
- end
49
- add_message "google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest" do
50
- optional :environment, :string, 1
51
- optional :snapshot_path, :string, 2
52
- optional :skip_pypi_packages_installation, :bool, 3
53
- optional :skip_environment_variables_setting, :bool, 4
54
- optional :skip_airflow_overrides_setting, :bool, 5
55
- optional :skip_gcs_data_copying, :bool, 6
56
- end
57
- add_message "google.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse" do
58
- end
59
- add_message "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig" do
60
- optional :gke_cluster, :string, 1
61
- optional :dag_gcs_prefix, :string, 2
62
- optional :node_count, :int32, 3
63
- optional :software_config, :message, 4, "google.cloud.orchestration.airflow.service.v1.SoftwareConfig"
64
- optional :node_config, :message, 5, "google.cloud.orchestration.airflow.service.v1.NodeConfig"
65
- optional :private_environment_config, :message, 7, "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig"
66
- optional :web_server_network_access_control, :message, 8, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl"
67
- optional :database_config, :message, 9, "google.cloud.orchestration.airflow.service.v1.DatabaseConfig"
68
- optional :web_server_config, :message, 10, "google.cloud.orchestration.airflow.service.v1.WebServerConfig"
69
- optional :encryption_config, :message, 11, "google.cloud.orchestration.airflow.service.v1.EncryptionConfig"
70
- optional :maintenance_window, :message, 12, "google.cloud.orchestration.airflow.service.v1.MaintenanceWindow"
71
- optional :workloads_config, :message, 15, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig"
72
- optional :environment_size, :enum, 16, "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize"
73
- optional :airflow_uri, :string, 6
74
- optional :airflow_byoid_uri, :string, 20
75
- optional :master_authorized_networks_config, :message, 17, "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig"
76
- optional :recovery_config, :message, 18, "google.cloud.orchestration.airflow.service.v1.RecoveryConfig"
77
- end
78
- add_enum "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSize" do
79
- value :ENVIRONMENT_SIZE_UNSPECIFIED, 0
80
- value :ENVIRONMENT_SIZE_SMALL, 1
81
- value :ENVIRONMENT_SIZE_MEDIUM, 2
82
- value :ENVIRONMENT_SIZE_LARGE, 3
83
- end
84
- add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl" do
85
- repeated :allowed_ip_ranges, :message, 1, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange"
86
- end
87
- add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange" do
88
- optional :value, :string, 1
89
- optional :description, :string, 2
90
- end
91
- add_message "google.cloud.orchestration.airflow.service.v1.DatabaseConfig" do
92
- optional :machine_type, :string, 1
93
- end
94
- add_message "google.cloud.orchestration.airflow.service.v1.WebServerConfig" do
95
- optional :machine_type, :string, 1
96
- end
97
- add_message "google.cloud.orchestration.airflow.service.v1.EncryptionConfig" do
98
- optional :kms_key_name, :string, 1
99
- end
100
- add_message "google.cloud.orchestration.airflow.service.v1.MaintenanceWindow" do
101
- optional :start_time, :message, 1, "google.protobuf.Timestamp"
102
- optional :end_time, :message, 2, "google.protobuf.Timestamp"
103
- optional :recurrence, :string, 3
104
- end
105
- add_message "google.cloud.orchestration.airflow.service.v1.SoftwareConfig" do
106
- optional :image_version, :string, 1
107
- map :airflow_config_overrides, :string, :string, 2
108
- map :pypi_packages, :string, :string, 3
109
- map :env_variables, :string, :string, 4
110
- optional :python_version, :string, 6
111
- optional :scheduler_count, :int32, 7
112
- end
113
- add_message "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy" do
114
- optional :use_ip_aliases, :bool, 1
115
- oneof :cluster_ip_allocation do
116
- optional :cluster_secondary_range_name, :string, 2
117
- optional :cluster_ipv4_cidr_block, :string, 4
118
- end
119
- oneof :services_ip_allocation do
120
- optional :services_secondary_range_name, :string, 3
121
- optional :services_ipv4_cidr_block, :string, 5
122
- end
123
- end
124
- add_message "google.cloud.orchestration.airflow.service.v1.NodeConfig" do
125
- optional :location, :string, 1
126
- optional :machine_type, :string, 2
127
- optional :network, :string, 3
128
- optional :subnetwork, :string, 4
129
- optional :disk_size_gb, :int32, 5
130
- repeated :oauth_scopes, :string, 6
131
- optional :service_account, :string, 7
132
- repeated :tags, :string, 8
133
- optional :ip_allocation_policy, :message, 9, "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy"
134
- optional :enable_ip_masq_agent, :bool, 11
135
- end
136
- add_message "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig" do
137
- optional :enable_private_endpoint, :bool, 1
138
- optional :master_ipv4_cidr_block, :string, 2
139
- optional :master_ipv4_reserved_range, :string, 3
140
- end
141
- add_message "google.cloud.orchestration.airflow.service.v1.NetworkingConfig" do
142
- optional :connection_type, :enum, 1, "google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType"
143
- end
144
- add_enum "google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType" do
145
- value :CONNECTION_TYPE_UNSPECIFIED, 0
146
- value :VPC_PEERING, 1
147
- value :PRIVATE_SERVICE_CONNECT, 2
148
- end
149
- add_message "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig" do
150
- optional :enable_private_environment, :bool, 1
151
- optional :private_cluster_config, :message, 2, "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig"
152
- optional :web_server_ipv4_cidr_block, :string, 3
153
- optional :cloud_sql_ipv4_cidr_block, :string, 4
154
- optional :web_server_ipv4_reserved_range, :string, 5
155
- optional :cloud_composer_network_ipv4_cidr_block, :string, 7
156
- optional :cloud_composer_network_ipv4_reserved_range, :string, 8
157
- optional :enable_privately_used_public_ips, :bool, 6
158
- optional :cloud_composer_connection_subnetwork, :string, 9
159
- optional :networking_config, :message, 10, "google.cloud.orchestration.airflow.service.v1.NetworkingConfig"
160
- end
161
- add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig" do
162
- optional :scheduler, :message, 1, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource"
163
- optional :web_server, :message, 2, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource"
164
- optional :worker, :message, 3, "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource"
165
- end
166
- add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResource" do
167
- optional :cpu, :float, 1
168
- optional :memory_gb, :float, 2
169
- optional :storage_gb, :float, 3
170
- optional :count, :int32, 4
171
- end
172
- add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResource" do
173
- optional :cpu, :float, 1
174
- optional :memory_gb, :float, 2
175
- optional :storage_gb, :float, 3
176
- end
177
- add_message "google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResource" do
178
- optional :cpu, :float, 1
179
- optional :memory_gb, :float, 2
180
- optional :storage_gb, :float, 3
181
- optional :min_count, :int32, 4
182
- optional :max_count, :int32, 5
183
- end
184
- add_message "google.cloud.orchestration.airflow.service.v1.RecoveryConfig" do
185
- optional :scheduled_snapshots_config, :message, 1, "google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig"
186
- end
187
- add_message "google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfig" do
188
- optional :enabled, :bool, 1
189
- optional :snapshot_location, :string, 6
190
- optional :snapshot_creation_schedule, :string, 3
191
- optional :time_zone, :string, 5
192
- end
193
- add_message "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig" do
194
- optional :enabled, :bool, 1
195
- repeated :cidr_blocks, :message, 2, "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock"
196
- end
197
- add_message "google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock" do
198
- optional :display_name, :string, 1
199
- optional :cidr_block, :string, 2
200
- end
201
- add_message "google.cloud.orchestration.airflow.service.v1.Environment" do
202
- optional :name, :string, 1
203
- optional :config, :message, 2, "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig"
204
- optional :uuid, :string, 3
205
- optional :state, :enum, 4, "google.cloud.orchestration.airflow.service.v1.Environment.State"
206
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
207
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
208
- map :labels, :string, :string, 7
209
- end
210
- add_enum "google.cloud.orchestration.airflow.service.v1.Environment.State" do
211
- value :STATE_UNSPECIFIED, 0
212
- value :CREATING, 1
213
- value :RUNNING, 2
214
- value :UPDATING, 3
215
- value :DELETING, 4
216
- value :ERROR, 5
217
- end
218
- add_message "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse" do
219
- optional :build_log_uri, :string, 1
220
- optional :contains_pypi_modules_conflict, :enum, 4, "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult"
221
- optional :pypi_conflict_build_log_extract, :string, 3
222
- optional :image_version, :string, 5
223
- map :pypi_dependencies, :string, :string, 6
224
- end
225
- add_enum "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult" do
226
- value :CONFLICT_RESULT_UNSPECIFIED, 0
227
- value :CONFLICT, 1
228
- value :NO_CONFLICT, 2
17
+
18
+ descriptor_data = "\n@google/cloud/orchestration/airflow/service/v1/environments.proto\x12-google.cloud.orchestration.airflow.service.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/cloud/orchestration/airflow/service/v1/operations.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"{\n\x18\x43reateEnvironmentRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12O\n\x0b\x65nvironment\x18\x02 \x01(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\"%\n\x15GetEnvironmentRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"P\n\x17ListEnvironmentsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x85\x01\n\x18ListEnvironmentsResponse\x12P\n\x0c\x65nvironments\x18\x01 \x03(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"(\n\x18\x44\x65leteEnvironmentRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xaa\x01\n\x18UpdateEnvironmentRequest\x12\x0c\n\x04name\x18\x02 \x01(\t\x12O\n\x0b\x65nvironment\x18\x01 \x01(\x0b\x32:.google.cloud.orchestration.airflow.service.v1.Environment\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"E\n\x13SaveSnapshotRequest\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x19\n\x11snapshot_location\x18\x02 \x01(\t\"-\n\x14SaveSnapshotResponse\x12\x15\n\rsnapshot_path\x18\x01 \x01(\t\"\xdd\x01\n\x13LoadSnapshotRequest\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x15\n\rsnapshot_path\x18\x02 \x01(\t\x12\'\n\x1fskip_pypi_packages_installation\x18\x03 \x01(\x08\x12*\n\"skip_environment_variables_setting\x18\x04 \x01(\x08\x12&\n\x1eskip_airflow_overrides_setting\x18\x05 \x01(\x08\x12\x1d\n\x15skip_gcs_data_copying\x18\x06 \x01(\x08\"\x16\n\x14LoadSnapshotResponse\"\xd4\x0b\n\x11\x45nvironmentConfig\x12\x13\n\x0bgke_cluster\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x61g_gcs_prefix\x18\x02 \x01(\t\x12\x12\n\nnode_count\x18\x03 \x01(\x05\x12V\n\x0fsoftware_config\x18\x04 \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.SoftwareConfig\x12N\n\x0bnode_config\x18\x05 \x01(\x0b\x32\x39.google.cloud.orchestration.airflow.service.v1.NodeConfig\x12k\n\x1aprivate_environment_config\x18\x07 \x01(\x0b\x32G.google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig\x12|\n!web_server_network_access_control\x18\x08 \x01(\x0b\x32L.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControlB\x03\xe0\x41\x01\x12[\n\x0f\x64\x61tabase_config\x18\t \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.DatabaseConfigB\x03\xe0\x41\x01\x12^\n\x11web_server_config\x18\n \x01(\x0b\x32>.google.cloud.orchestration.airflow.service.v1.WebServerConfigB\x03\xe0\x41\x01\x12_\n\x11\x65ncryption_config\x18\x0b \x01(\x0b\x32?.google.cloud.orchestration.airflow.service.v1.EncryptionConfigB\x03\xe0\x41\x01\x12\x61\n\x12maintenance_window\x18\x0c \x01(\x0b\x32@.google.cloud.orchestration.airflow.service.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12]\n\x10workloads_config\x18\x0f \x01(\x0b\x32>.google.cloud.orchestration.airflow.service.v1.WorkloadsConfigB\x03\xe0\x41\x01\x12o\n\x10\x65nvironment_size\x18\x10 \x01(\x0e\x32P.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig.EnvironmentSizeB\x03\xe0\x41\x01\x12\x13\n\x0b\x61irflow_uri\x18\x06 \x01(\t\x12\x1e\n\x11\x61irflow_byoid_uri\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12}\n!master_authorized_networks_config\x18\x11 \x01(\x0b\x32M.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfigB\x03\xe0\x41\x01\x12[\n\x0frecovery_config\x18\x12 \x01(\x0b\x32=.google.cloud.orchestration.airflow.service.v1.RecoveryConfigB\x03\xe0\x41\x01\"\x88\x01\n\x0f\x45nvironmentSize\x12 \n\x1c\x45NVIRONMENT_SIZE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45NVIRONMENT_SIZE_SMALL\x10\x01\x12\x1b\n\x17\x45NVIRONMENT_SIZE_MEDIUM\x10\x02\x12\x1a\n\x16\x45NVIRONMENT_SIZE_LARGE\x10\x03\"\xd2\x01\n\x1dWebServerNetworkAccessControl\x12v\n\x11\x61llowed_ip_ranges\x18\x01 \x03(\x0b\x32[.google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange\x1a\x39\n\x0e\x41llowedIpRange\x12\r\n\x05value\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\"+\n\x0e\x44\x61tabaseConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\",\n\x0fWebServerConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\"-\n\x10\x45ncryptionConfig\x12\x19\n\x0ckms_key_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\x94\x01\n\x11MaintenanceWindow\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x17\n\nrecurrence\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd3\x04\n\x0eSoftwareConfig\x12\x15\n\rimage_version\x18\x01 \x01(\t\x12{\n\x18\x61irflow_config_overrides\x18\x02 \x03(\x0b\x32Y.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.AirflowConfigOverridesEntry\x12\x66\n\rpypi_packages\x18\x03 \x03(\x0b\x32O.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.PypiPackagesEntry\x12\x66\n\renv_variables\x18\x04 \x03(\x0b\x32O.google.cloud.orchestration.airflow.service.v1.SoftwareConfig.EnvVariablesEntry\x12\x16\n\x0epython_version\x18\x06 \x01(\t\x12\x1c\n\x0fscheduler_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x1a=\n\x1b\x41irflowConfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11PypiPackagesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11\x45nvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x90\x02\n\x12IPAllocationPolicy\x12\x1b\n\x0euse_ip_aliases\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12+\n\x1c\x63luster_secondary_range_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x17\x63luster_ipv4_cidr_block\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12,\n\x1dservices_secondary_range_name\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x01\x12\'\n\x18services_ipv4_cidr_block\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x01\x42\x17\n\x15\x63luster_ip_allocationB\x18\n\x16services_ip_allocation\"\xb5\x02\n\nNodeConfig\x12\x10\n\x08location\x18\x01 \x01(\t\x12\x14\n\x0cmachine_type\x18\x02 \x01(\t\x12\x0f\n\x07network\x18\x03 \x01(\t\x12\x12\n\nsubnetwork\x18\x04 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x05 \x01(\x05\x12\x14\n\x0coauth_scopes\x18\x06 \x03(\t\x12\x17\n\x0fservice_account\x18\x07 \x01(\t\x12\x0c\n\x04tags\x18\x08 \x03(\t\x12\x64\n\x14ip_allocation_policy\x18\t \x01(\x0b\x32\x41.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicyB\x03\xe0\x41\x01\x12!\n\x14\x65nable_ip_masq_agent\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01\"\x8a\x01\n\x14PrivateClusterConfig\x12$\n\x17\x65nable_private_endpoint\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16master_ipv4_cidr_block\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\'\n\x1amaster_ipv4_reserved_range\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xe1\x01\n\x10NetworkingConfig\x12l\n\x0f\x63onnection_type\x18\x01 \x01(\x0e\x32N.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionTypeB\x03\xe0\x41\x01\"_\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bVPC_PEERING\x10\x01\x12\x1b\n\x17PRIVATE_SERVICE_CONNECT\x10\x02\"\xdc\x04\n\x18PrivateEnvironmentConfig\x12\'\n\x1a\x65nable_private_environment\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12h\n\x16private_cluster_config\x18\x02 \x01(\x0b\x32\x43.google.cloud.orchestration.airflow.service.v1.PrivateClusterConfigB\x03\xe0\x41\x01\x12\'\n\x1aweb_server_ipv4_cidr_block\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12&\n\x19\x63loud_sql_ipv4_cidr_block\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12+\n\x1eweb_server_ipv4_reserved_range\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x33\n&cloud_composer_network_ipv4_cidr_block\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x37\n*cloud_composer_network_ipv4_reserved_range\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12-\n enable_privately_used_public_ips\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x31\n$cloud_composer_connection_subnetwork\x18\t \x01(\tB\x03\xe0\x41\x01\x12_\n\x11networking_config\x18\n \x01(\x0b\x32?.google.cloud.orchestration.airflow.service.v1.NetworkingConfigB\x03\xe0\x41\x01\"\x94\x05\n\x0fWorkloadsConfig\x12h\n\tscheduler\x18\x01 \x01(\x0b\x32P.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.SchedulerResourceB\x03\xe0\x41\x01\x12i\n\nweb_server\x18\x02 \x01(\x0b\x32P.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WebServerResourceB\x03\xe0\x41\x01\x12\x62\n\x06worker\x18\x03 \x01(\x0b\x32M.google.cloud.orchestration.airflow.service.v1.WorkloadsConfig.WorkerResourceB\x03\xe0\x41\x01\x1aj\n\x11SchedulerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x12\x12\n\x05\x63ount\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x1aV\n\x11WebServerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x1a\x83\x01\n\x0eWorkerResource\x12\x10\n\x03\x63pu\x18\x01 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmemory_gb\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x17\n\nstorage_gb\x18\x03 \x01(\x02\x42\x03\xe0\x41\x01\x12\x16\n\tmin_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\tmax_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"\x82\x01\n\x0eRecoveryConfig\x12p\n\x1ascheduled_snapshots_config\x18\x01 \x01(\x0b\x32G.google.cloud.orchestration.airflow.service.v1.ScheduledSnapshotsConfigB\x03\xe0\x41\x01\"\x91\x01\n\x18ScheduledSnapshotsConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11snapshot_location\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\'\n\x1asnapshot_creation_schedule\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xd6\x01\n\x1eMasterAuthorizedNetworksConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12l\n\x0b\x63idr_blocks\x18\x02 \x03(\x0b\x32W.google.cloud.orchestration.airflow.service.v1.MasterAuthorizedNetworksConfig.CidrBlock\x1a\x35\n\tCidrBlock\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x12\n\ncidr_block\x18\x02 \x01(\t\"\x85\x05\n\x0b\x45nvironment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12P\n\x06\x63onfig\x18\x02 \x01(\x0b\x32@.google.cloud.orchestration.airflow.service.v1.EnvironmentConfig\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12O\n\x05state\x18\x04 \x01(\x0e\x32@.google.cloud.orchestration.airflow.service.v1.Environment.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x06labels\x18\x07 \x03(\x0b\x32\x46.google.cloud.orchestration.airflow.service.v1.Environment.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:l\xea\x41i\n#composer.googleapis.com/Environment\x12\x42projects/{project}/locations/{location}/environments/{environment}\"\xf9\x03\n\x14\x43heckUpgradeResponse\x12\x1a\n\rbuild_log_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x7f\n\x1e\x63ontains_pypi_modules_conflict\x18\x04 \x01(\x0e\x32R.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResultB\x03\xe0\x41\x03\x12,\n\x1fpypi_conflict_build_log_extract\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\rimage_version\x18\x05 \x01(\t\x12t\n\x11pypi_dependencies\x18\x06 \x03(\x0b\x32Y.google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.PypiDependenciesEntry\x1a\x37\n\x15PypiDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"P\n\x0e\x43onflictResult\x12\x1f\n\x1b\x43ONFLICT_RESULT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONFLICT\x10\x01\x12\x0f\n\x0bNO_CONFLICT\x10\x02\x32\xb5\x10\n\x0c\x45nvironments\x12\xa9\x02\n\x11\x43reateEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/environments:\x0b\x65nvironment\xda\x41\x12parent,environment\xca\x41N\n\x0b\x45nvironment\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xd3\x01\n\x0eGetEnvironment\x12\x44.google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest\x1a:.google.cloud.orchestration.airflow.service.v1.Environment\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/environments/*}\xda\x41\x04name\x12\xe6\x01\n\x10ListEnvironments\x12\x46.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest\x1aG.google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/environments\xda\x41\x06parent\x12\xb3\x02\n\x11UpdateEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\xb5\x01\x82\xd3\xe4\x93\x02?20/v1/{name=projects/*/locations/*/environments/*}:\x0b\x65nvironment\xda\x41\x1cname,environment,update_mask\xca\x41N\n\x0b\x45nvironment\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\x98\x02\n\x11\x44\x65leteEnvironment\x12G.google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest\x1a\x1d.google.longrunning.Operation\"\x9a\x01\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/environments/*}\xda\x41\x04name\xca\x41X\n\x15google.protobuf.Empty\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xcc\x02\n\x0cSaveSnapshot\x12\x42.google.cloud.orchestration.airflow.service.v1.SaveSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02I\"D/v1/{environment=projects/*/locations/*/environments/*}:saveSnapshot:\x01*\xca\x41\x85\x01\nBgoogle.cloud.orchestration.airflow.service.v1.SaveSnapshotResponse\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x12\xcc\x02\n\x0cLoadSnapshot\x12\x42.google.cloud.orchestration.airflow.service.v1.LoadSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\xd8\x01\x82\xd3\xe4\x93\x02I\"D/v1/{environment=projects/*/locations/*/environments/*}:loadSnapshot:\x01*\xca\x41\x85\x01\nBgoogle.cloud.orchestration.airflow.service.v1.LoadSnapshotResponse\x12?google.cloud.orchestration.airflow.service.v1.OperationMetadata\x1aK\xca\x41\x17\x63omposer.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x82\x01\n1com.google.cloud.orchestration.airflow.service.v1P\x01ZKcloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepbb\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
229
40
  end
230
41
  end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
231
44
  end
232
45
 
233
46
  module Google
@@ -123,7 +123,7 @@ module Google
123
123
  credentials = @config.credentials
124
124
  # Use self-signed JWT if the endpoint is unchanged from default,
125
125
  # but only if the default endpoint does not have a region prefix.
126
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
127
127
  !@config.endpoint.split(".").first.include?("-")
128
128
  credentials ||= Credentials.default scope: @config.scope,
129
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -323,7 +323,9 @@ module Google
323
323
  class Configuration
324
324
  extend ::Gapic::Config
325
325
 
326
- config_attr :endpoint, "composer.googleapis.com", ::String
326
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
327
+
328
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
327
329
  config_attr :credentials, nil do |value|
328
330
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
329
331
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -119,7 +119,7 @@ module Google
119
119
  credentials = @config.credentials
120
120
  # Use self-signed JWT if the endpoint is unchanged from default,
121
121
  # but only if the default endpoint does not have a region prefix.
122
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
122
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
123
123
  !@config.endpoint.split(".").first.include?("-")
124
124
  credentials ||= Credentials.default scope: @config.scope,
125
125
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -278,7 +278,9 @@ module Google
278
278
  class Configuration
279
279
  extend ::Gapic::Config
280
280
 
281
- config_attr :endpoint, "composer.googleapis.com", ::String
281
+ DEFAULT_ENDPOINT = "composer.googleapis.com"
282
+
283
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
282
284
  config_attr :credentials, nil do |value|
283
285
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
284
286
  allowed.any? { |klass| klass === value }
@@ -61,7 +61,7 @@ module Google
61
61
 
62
62
  verb, uri, query_string_params, body = ServiceStub.transcode_list_image_versions_request request_pb
63
63
  query_string_params = if query_string_params.any?
64
- query_string_params.to_h { |p| p.split("=", 2) }
64
+ query_string_params.to_h { |p| p.split "=", 2 }
65
65
  else
66
66
  {}
67
67
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/orchestration/airflow/service/v1/image_versions.proto
3
4
 
@@ -7,27 +8,32 @@ require 'google/api/annotations_pb'
7
8
  require 'google/api/client_pb'
8
9
  require 'google/type/date_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/orchestration/airflow/service/v1/image_versions.proto", :syntax => :proto3) do
12
- add_message "google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest" do
13
- optional :parent, :string, 1
14
- optional :page_size, :int32, 2
15
- optional :page_token, :string, 3
16
- optional :include_past_releases, :bool, 4
17
- end
18
- add_message "google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse" do
19
- repeated :image_versions, :message, 1, "google.cloud.orchestration.airflow.service.v1.ImageVersion"
20
- optional :next_page_token, :string, 2
21
- end
22
- add_message "google.cloud.orchestration.airflow.service.v1.ImageVersion" do
23
- optional :image_version_id, :string, 1
24
- optional :is_default, :bool, 2
25
- repeated :supported_python_versions, :string, 3
26
- optional :release_date, :message, 4, "google.type.Date"
27
- optional :creation_disabled, :bool, 5
28
- optional :upgrade_disabled, :bool, 6
11
+
12
+ descriptor_data = "\nBgoogle/cloud/orchestration/airflow/service/v1/image_versions.proto\x12-google.cloud.orchestration.airflow.service.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x16google/type/date.proto\"p\n\x18ListImageVersionsRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x1d\n\x15include_past_releases\x18\x04 \x01(\x08\"\x89\x01\n\x19ListImageVersionsResponse\x12S\n\x0eimage_versions\x18\x01 \x03(\x0b\x32;.google.cloud.orchestration.airflow.service.v1.ImageVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n\x0cImageVersion\x12\x18\n\x10image_version_id\x18\x01 \x01(\t\x12\x12\n\nis_default\x18\x02 \x01(\x08\x12!\n\x19supported_python_versions\x18\x03 \x03(\t\x12\'\n\x0crelease_date\x18\x04 \x01(\x0b\x32\x11.google.type.Date\x12\x19\n\x11\x63reation_disabled\x18\x05 \x01(\x08\x12\x18\n\x10upgrade_disabled\x18\x06 \x01(\x08\x32\xc9\x02\n\rImageVersions\x12\xea\x01\n\x11ListImageVersions\x12G.google.cloud.orchestration.airflow.service.v1.ListImageVersionsRequest\x1aH.google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse\"B\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{parent=projects/*/locations/*}/imageVersions\xda\x41\x06parent\x1aK\xca\x41\x17\x63omposer.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x82\x01\n1com.google.cloud.orchestration.airflow.service.v1P\x01ZKcloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepbb\x06proto3"
13
+
14
+ pool = Google::Protobuf::DescriptorPool.generated_pool
15
+
16
+ begin
17
+ pool.add_serialized_file(descriptor_data)
18
+ rescue TypeError => e
19
+ # Compatibility code: will be removed in the next major version.
20
+ require 'google/protobuf/descriptor_pb'
21
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
+ parsed.clear_dependency
23
+ serialized = parsed.class.encode(parsed)
24
+ file = pool.add_serialized_file(serialized)
25
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
+ imports = [
27
+ ["google.type.Date", "google/type/date.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
29
33
  end
30
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
31
37
  end
32
38
 
33
39
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/orchestration/airflow/service/v1/operations.proto
3
4
 
@@ -5,34 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/orchestration/airflow/service/v1/operations.proto", :syntax => :proto3) do
10
- add_message "google.cloud.orchestration.airflow.service.v1.OperationMetadata" do
11
- optional :state, :enum, 1, "google.cloud.orchestration.airflow.service.v1.OperationMetadata.State"
12
- optional :operation_type, :enum, 2, "google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type"
13
- optional :resource, :string, 3
14
- optional :resource_uuid, :string, 4
15
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
16
- optional :end_time, :message, 6, "google.protobuf.Timestamp"
17
- end
18
- add_enum "google.cloud.orchestration.airflow.service.v1.OperationMetadata.State" do
19
- value :STATE_UNSPECIFIED, 0
20
- value :PENDING, 1
21
- value :RUNNING, 2
22
- value :SUCCEEDED, 3
23
- value :SUCCESSFUL, 3
24
- value :FAILED, 4
25
- end
26
- add_enum "google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type" do
27
- value :TYPE_UNSPECIFIED, 0
28
- value :CREATE, 1
29
- value :DELETE, 2
30
- value :UPDATE, 3
31
- value :CHECK, 4
32
- value :SAVE_SNAPSHOT, 5
33
- value :LOAD_SNAPSHOT, 6
9
+
10
+ descriptor_data = "\n>google/cloud/orchestration/airflow/service/v1/operations.proto\x12-google.cloud.orchestration.airflow.service.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x04\n\x11OperationMetadata\x12U\n\x05state\x18\x01 \x01(\x0e\x32\x46.google.cloud.orchestration.airflow.service.v1.OperationMetadata.State\x12]\n\x0eoperation_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.orchestration.airflow.service.v1.OperationMetadata.Type\x12\x10\n\x08resource\x18\x03 \x01(\t\x12\x15\n\rresource_uuid\x18\x04 \x01(\t\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nSUCCESSFUL\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x1a\x02\x10\x01\"q\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\n\n\x06UPDATE\x10\x03\x12\t\n\x05\x43HECK\x10\x04\x12\x11\n\rSAVE_SNAPSHOT\x10\x05\x12\x11\n\rLOAD_SNAPSHOT\x10\x06\x42\x93\x01\n1com.google.cloud.orchestration.airflow.service.v1B\x0fOperationsProtoP\x01ZKcloud.google.com/go/orchestration/airflow/service/apiv1/servicepb;servicepbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
31
  end
35
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
36
35
  end
37
36
 
38
37
  module Google
@@ -23,7 +23,7 @@ module Google
23
23
  module Airflow
24
24
  module Service
25
25
  module V1
26
- VERSION = "0.5.0"
26
+ VERSION = "0.6.1"
27
27
  end
28
28
  end
29
29
  end
@@ -83,7 +83,7 @@ module Google
83
83
  # long-running operation pattern.
84
84
  # @!attribute [rw] new_issue_uri
85
85
  # @return [::String]
86
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
87
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
88
88
  # @!attribute [rw] documentation_uri
89
89
  # @return [::String]
@@ -353,6 +353,15 @@ module Google
353
353
 
354
354
  # Street View Org.
355
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
356
365
  end
357
366
 
358
367
  # To where should client libraries be published?
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-orchestration-airflow-service-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a