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.
@@ -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