google-cloud-orchestration-airflow-service-v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +167 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +818 -0
  7. data/lib/google/cloud/orchestration/airflow/service/v1/environments/credentials.rb +51 -0
  8. data/lib/google/cloud/orchestration/airflow/service/v1/environments/operations.rb +668 -0
  9. data/lib/google/cloud/orchestration/airflow/service/v1/environments/paths.rb +56 -0
  10. data/lib/google/cloud/orchestration/airflow/service/v1/environments.rb +54 -0
  11. data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +173 -0
  12. data/lib/google/cloud/orchestration/airflow/service/v1/environments_services_pb.rb +57 -0
  13. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/client.rb +380 -0
  14. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions/credentials.rb +51 -0
  15. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions.rb +52 -0
  16. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions_pb.rb +46 -0
  17. data/lib/google/cloud/orchestration/airflow/service/v1/image_versions_services_pb.rb +49 -0
  18. data/lib/google/cloud/orchestration/airflow/service/v1/operations_pb.rb +50 -0
  19. data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +32 -0
  20. data/lib/google/cloud/orchestration/airflow/service/v1.rb +43 -0
  21. data/lib/google-cloud-orchestration-airflow-service-v1.rb +21 -0
  22. data/proto_docs/README.md +4 -0
  23. data/proto_docs/google/api/field_behavior.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +283 -0
  25. data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +762 -0
  26. data/proto_docs/google/cloud/orchestration/airflow/service/v1/image_versions.rb +88 -0
  27. data/proto_docs/google/cloud/orchestration/airflow/service/v1/operations.rb +94 -0
  28. data/proto_docs/google/longrunning/operations.rb +164 -0
  29. data/proto_docs/google/protobuf/any.rb +141 -0
  30. data/proto_docs/google/protobuf/duration.rb +98 -0
  31. data/proto_docs/google/protobuf/empty.rb +36 -0
  32. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  33. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  34. data/proto_docs/google/rpc/status.rb +46 -0
  35. data/proto_docs/google/type/date.rb +53 -0
  36. metadata +228 -0
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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 Orchestration
23
+ module Airflow
24
+ module Service
25
+ module V1
26
+ module Environments
27
+ # Path helper methods for the Environments API.
28
+ module Paths
29
+ ##
30
+ # Create a fully-qualified Environment resource string.
31
+ #
32
+ # The resource will be in the following format:
33
+ #
34
+ # `projects/{project}/locations/{location}/environments/{environment}`
35
+ #
36
+ # @param project [String]
37
+ # @param location [String]
38
+ # @param environment [String]
39
+ #
40
+ # @return [::String]
41
+ def environment_path project:, location:, environment:
42
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
43
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
44
+
45
+ "projects/#{project}/locations/#{location}/environments/#{environment}"
46
+ end
47
+
48
+ extend self
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 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
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/orchestration/airflow/service/v1/version"
24
+
25
+ require "google/cloud/orchestration/airflow/service/v1/environments/credentials"
26
+ require "google/cloud/orchestration/airflow/service/v1/environments/paths"
27
+ require "google/cloud/orchestration/airflow/service/v1/environments/operations"
28
+ require "google/cloud/orchestration/airflow/service/v1/environments/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Orchestration
33
+ module Airflow
34
+ module Service
35
+ module V1
36
+ ##
37
+ # Managed Apache Airflow Environments.
38
+ #
39
+ # To load this service and instantiate a client:
40
+ #
41
+ # require "google/cloud/orchestration/airflow/service/v1/environments"
42
+ # client = ::Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Client.new
43
+ #
44
+ module Environments
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "environments", "helpers.rb"
54
+ require "google/cloud/orchestration/airflow/service/v1/environments/helpers" if ::File.file? helper_path
@@ -0,0 +1,173 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/orchestration/airflow/service/v1/environments.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/longrunning/operations_pb'
11
+ require 'google/protobuf/field_mask_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/orchestration/airflow/service/v1/environments.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest" do
16
+ optional :parent, :string, 1
17
+ optional :environment, :message, 2, "google.cloud.orchestration.airflow.service.v1.Environment"
18
+ end
19
+ add_message "google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest" do
20
+ optional :name, :string, 1
21
+ end
22
+ add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest" do
23
+ optional :parent, :string, 1
24
+ optional :page_size, :int32, 2
25
+ optional :page_token, :string, 3
26
+ end
27
+ add_message "google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse" do
28
+ repeated :environments, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment"
29
+ optional :next_page_token, :string, 2
30
+ end
31
+ add_message "google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest" do
32
+ optional :name, :string, 1
33
+ end
34
+ add_message "google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest" do
35
+ optional :name, :string, 2
36
+ optional :environment, :message, 1, "google.cloud.orchestration.airflow.service.v1.Environment"
37
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
38
+ end
39
+ add_message "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig" do
40
+ optional :gke_cluster, :string, 1
41
+ optional :dag_gcs_prefix, :string, 2
42
+ optional :node_count, :int32, 3
43
+ optional :software_config, :message, 4, "google.cloud.orchestration.airflow.service.v1.SoftwareConfig"
44
+ optional :node_config, :message, 5, "google.cloud.orchestration.airflow.service.v1.NodeConfig"
45
+ optional :private_environment_config, :message, 7, "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig"
46
+ optional :web_server_network_access_control, :message, 8, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl"
47
+ optional :database_config, :message, 9, "google.cloud.orchestration.airflow.service.v1.DatabaseConfig"
48
+ optional :web_server_config, :message, 10, "google.cloud.orchestration.airflow.service.v1.WebServerConfig"
49
+ optional :encryption_config, :message, 11, "google.cloud.orchestration.airflow.service.v1.EncryptionConfig"
50
+ optional :airflow_uri, :string, 6
51
+ end
52
+ add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl" do
53
+ repeated :allowed_ip_ranges, :message, 1, "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange"
54
+ end
55
+ add_message "google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange" do
56
+ optional :value, :string, 1
57
+ optional :description, :string, 2
58
+ end
59
+ add_message "google.cloud.orchestration.airflow.service.v1.DatabaseConfig" do
60
+ optional :machine_type, :string, 1
61
+ end
62
+ add_message "google.cloud.orchestration.airflow.service.v1.WebServerConfig" do
63
+ optional :machine_type, :string, 1
64
+ end
65
+ add_message "google.cloud.orchestration.airflow.service.v1.EncryptionConfig" do
66
+ optional :kms_key_name, :string, 1
67
+ end
68
+ add_message "google.cloud.orchestration.airflow.service.v1.SoftwareConfig" do
69
+ optional :image_version, :string, 1
70
+ map :airflow_config_overrides, :string, :string, 2
71
+ map :pypi_packages, :string, :string, 3
72
+ map :env_variables, :string, :string, 4
73
+ optional :python_version, :string, 6
74
+ end
75
+ add_message "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy" do
76
+ optional :use_ip_aliases, :bool, 1
77
+ oneof :cluster_ip_allocation do
78
+ optional :cluster_secondary_range_name, :string, 2
79
+ optional :cluster_ipv4_cidr_block, :string, 4
80
+ end
81
+ oneof :services_ip_allocation do
82
+ optional :services_secondary_range_name, :string, 3
83
+ optional :services_ipv4_cidr_block, :string, 5
84
+ end
85
+ end
86
+ add_message "google.cloud.orchestration.airflow.service.v1.NodeConfig" do
87
+ optional :location, :string, 1
88
+ optional :machine_type, :string, 2
89
+ optional :network, :string, 3
90
+ optional :subnetwork, :string, 4
91
+ optional :disk_size_gb, :int32, 5
92
+ repeated :oauth_scopes, :string, 6
93
+ optional :service_account, :string, 7
94
+ repeated :tags, :string, 8
95
+ optional :ip_allocation_policy, :message, 9, "google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy"
96
+ end
97
+ add_message "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig" do
98
+ optional :enable_private_endpoint, :bool, 1
99
+ optional :master_ipv4_cidr_block, :string, 2
100
+ optional :master_ipv4_reserved_range, :string, 3
101
+ end
102
+ add_message "google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig" do
103
+ optional :enable_private_environment, :bool, 1
104
+ optional :private_cluster_config, :message, 2, "google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig"
105
+ optional :web_server_ipv4_cidr_block, :string, 3
106
+ optional :cloud_sql_ipv4_cidr_block, :string, 4
107
+ optional :web_server_ipv4_reserved_range, :string, 5
108
+ end
109
+ add_message "google.cloud.orchestration.airflow.service.v1.Environment" do
110
+ optional :name, :string, 1
111
+ optional :config, :message, 2, "google.cloud.orchestration.airflow.service.v1.EnvironmentConfig"
112
+ optional :uuid, :string, 3
113
+ optional :state, :enum, 4, "google.cloud.orchestration.airflow.service.v1.Environment.State"
114
+ optional :create_time, :message, 5, "google.protobuf.Timestamp"
115
+ optional :update_time, :message, 6, "google.protobuf.Timestamp"
116
+ map :labels, :string, :string, 7
117
+ end
118
+ add_enum "google.cloud.orchestration.airflow.service.v1.Environment.State" do
119
+ value :STATE_UNSPECIFIED, 0
120
+ value :CREATING, 1
121
+ value :RUNNING, 2
122
+ value :UPDATING, 3
123
+ value :DELETING, 4
124
+ value :ERROR, 5
125
+ end
126
+ add_message "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse" do
127
+ optional :build_log_uri, :string, 1
128
+ optional :contains_pypi_modules_conflict, :enum, 4, "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult"
129
+ optional :pypi_conflict_build_log_extract, :string, 3
130
+ optional :image_version, :string, 5
131
+ map :pypi_dependencies, :string, :string, 6
132
+ end
133
+ add_enum "google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult" do
134
+ value :CONFLICT_RESULT_UNSPECIFIED, 0
135
+ value :CONFLICT, 1
136
+ value :NO_CONFLICT, 2
137
+ end
138
+ end
139
+ end
140
+
141
+ module Google
142
+ module Cloud
143
+ module Orchestration
144
+ module Airflow
145
+ module Service
146
+ module V1
147
+ CreateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.CreateEnvironmentRequest").msgclass
148
+ GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.GetEnvironmentRequest").msgclass
149
+ ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.ListEnvironmentsRequest").msgclass
150
+ ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse").msgclass
151
+ DeleteEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.DeleteEnvironmentRequest").msgclass
152
+ UpdateEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.UpdateEnvironmentRequest").msgclass
153
+ EnvironmentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.EnvironmentConfig").msgclass
154
+ WebServerNetworkAccessControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl").msgclass
155
+ WebServerNetworkAccessControl::AllowedIpRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.WebServerNetworkAccessControl.AllowedIpRange").msgclass
156
+ DatabaseConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.DatabaseConfig").msgclass
157
+ WebServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.WebServerConfig").msgclass
158
+ EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.EncryptionConfig").msgclass
159
+ SoftwareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.SoftwareConfig").msgclass
160
+ IPAllocationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy").msgclass
161
+ NodeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.NodeConfig").msgclass
162
+ PrivateClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.PrivateClusterConfig").msgclass
163
+ PrivateEnvironmentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.PrivateEnvironmentConfig").msgclass
164
+ Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.Environment").msgclass
165
+ Environment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.Environment.State").enummodule
166
+ CheckUpgradeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse").msgclass
167
+ CheckUpgradeResponse::ConflictResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.orchestration.airflow.service.v1.CheckUpgradeResponse.ConflictResult").enummodule
168
+ end
169
+ end
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/orchestration/airflow/service/v1/environments.proto for package 'google.cloud.orchestration.airflow.service.v1'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/orchestration/airflow/service/v1/environments_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Orchestration
25
+ module Airflow
26
+ module Service
27
+ module V1
28
+ module Environments
29
+ # Managed Apache Airflow Environments.
30
+ class Service
31
+
32
+ include ::GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.orchestration.airflow.service.v1.Environments'
37
+
38
+ # Create a new environment.
39
+ rpc :CreateEnvironment, ::Google::Cloud::Orchestration::Airflow::Service::V1::CreateEnvironmentRequest, ::Google::Longrunning::Operation
40
+ # Get an existing environment.
41
+ rpc :GetEnvironment, ::Google::Cloud::Orchestration::Airflow::Service::V1::GetEnvironmentRequest, ::Google::Cloud::Orchestration::Airflow::Service::V1::Environment
42
+ # List environments.
43
+ rpc :ListEnvironments, ::Google::Cloud::Orchestration::Airflow::Service::V1::ListEnvironmentsRequest, ::Google::Cloud::Orchestration::Airflow::Service::V1::ListEnvironmentsResponse
44
+ # Update an environment.
45
+ rpc :UpdateEnvironment, ::Google::Cloud::Orchestration::Airflow::Service::V1::UpdateEnvironmentRequest, ::Google::Longrunning::Operation
46
+ # Delete an environment.
47
+ rpc :DeleteEnvironment, ::Google::Cloud::Orchestration::Airflow::Service::V1::DeleteEnvironmentRequest, ::Google::Longrunning::Operation
48
+ end
49
+
50
+ Stub = Service.rpc_stub_class
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end