google-cloud-orchestration-airflow-service-v1 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb +1097 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/paths.rb +42 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/client.rb +1020 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments/rest/service_stub.rb +653 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_pb.rb +30 -2
- data/lib/google/cloud/orchestration/airflow/service/v1/environments_services_pb.rb +57 -0
- data/lib/google/cloud/orchestration/airflow/service/v1/image_versions_pb.rb +2 -2
- data/lib/google/cloud/orchestration/airflow/service/v1/operations_pb.rb +1 -1
- data/lib/google/cloud/orchestration/airflow/service/v1/version.rb +1 -1
- data/proto_docs/google/cloud/orchestration/airflow/service/v1/environments.rb +485 -0
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +2 -2
@@ -45,6 +45,48 @@ module Google
|
|
45
45
|
"projects/#{project}/locations/#{location}/environments/#{environment}"
|
46
46
|
end
|
47
47
|
|
48
|
+
##
|
49
|
+
# Create a fully-qualified UserWorkloadsConfigMap resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/environments/{environment}/userWorkloadsConfigMaps/{user_workloads_config_map}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param environment [String]
|
58
|
+
# @param user_workloads_config_map [String]
|
59
|
+
#
|
60
|
+
# @return [::String]
|
61
|
+
def user_workloads_config_map_path project:, location:, environment:, user_workloads_config_map:
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
|
65
|
+
|
66
|
+
"projects/#{project}/locations/#{location}/environments/#{environment}/userWorkloadsConfigMaps/#{user_workloads_config_map}"
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Create a fully-qualified UserWorkloadsSecret resource string.
|
71
|
+
#
|
72
|
+
# The resource will be in the following format:
|
73
|
+
#
|
74
|
+
# `projects/{project}/locations/{location}/environments/{environment}/userWorkloadsSecrets/{user_workloads_secret}`
|
75
|
+
#
|
76
|
+
# @param project [String]
|
77
|
+
# @param location [String]
|
78
|
+
# @param environment [String]
|
79
|
+
# @param user_workloads_secret [String]
|
80
|
+
#
|
81
|
+
# @return [::String]
|
82
|
+
def user_workloads_secret_path project:, location:, environment:, user_workloads_secret:
|
83
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
85
|
+
raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
|
86
|
+
|
87
|
+
"projects/#{project}/locations/#{location}/environments/#{environment}/userWorkloadsSecrets/#{user_workloads_secret}"
|
88
|
+
end
|
89
|
+
|
48
90
|
extend self
|
49
91
|
end
|
50
92
|
end
|