google-cloud-app_hub-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/app_hub/v1/app_hub/client.rb +3396 -0
  6. data/lib/google/cloud/app_hub/v1/app_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/app_hub/v1/app_hub/operations.rb +801 -0
  8. data/lib/google/cloud/app_hub/v1/app_hub/paths.rb +182 -0
  9. data/lib/google/cloud/app_hub/v1/app_hub/rest/client.rb +3184 -0
  10. data/lib/google/cloud/app_hub/v1/app_hub/rest/operations.rb +895 -0
  11. data/lib/google/cloud/app_hub/v1/app_hub/rest/service_stub.rb +1670 -0
  12. data/lib/google/cloud/app_hub/v1/app_hub/rest.rb +54 -0
  13. data/lib/google/cloud/app_hub/v1/app_hub.rb +56 -0
  14. data/lib/google/cloud/app_hub/v1/bindings_override.rb +135 -0
  15. data/lib/google/cloud/app_hub/v1/rest.rb +38 -0
  16. data/lib/google/cloud/app_hub/v1/version.rb +7 -2
  17. data/lib/google/cloud/app_hub/v1.rb +45 -0
  18. data/lib/google/cloud/apphub/v1/apphub_service_pb.rb +98 -0
  19. data/lib/google/cloud/apphub/v1/apphub_service_services_pb.rb +104 -0
  20. data/lib/google/cloud/apphub/v1/application_pb.rb +53 -0
  21. data/lib/google/cloud/apphub/v1/attributes_pb.rb +49 -0
  22. data/lib/google/cloud/apphub/v1/service_pb.rb +54 -0
  23. data/lib/google/cloud/apphub/v1/service_project_attachment_pb.rb +49 -0
  24. data/lib/google/cloud/apphub/v1/workload_pb.rb +54 -0
  25. data/lib/google-cloud-app_hub-v1.rb +21 -0
  26. data/proto_docs/README.md +4 -0
  27. data/proto_docs/google/api/client.rb +399 -0
  28. data/proto_docs/google/api/field_behavior.rb +85 -0
  29. data/proto_docs/google/api/field_info.rb +65 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +222 -0
  32. data/proto_docs/google/cloud/apphub/v1/apphub_service.rb +786 -0
  33. data/proto_docs/google/cloud/apphub/v1/application.rb +100 -0
  34. data/proto_docs/google/cloud/apphub/v1/attributes.rb +115 -0
  35. data/proto_docs/google/cloud/apphub/v1/service.rb +139 -0
  36. data/proto_docs/google/cloud/apphub/v1/service_project_attachment.rb +72 -0
  37. data/proto_docs/google/cloud/apphub/v1/workload.rb +140 -0
  38. data/proto_docs/google/longrunning/operations.rb +164 -0
  39. data/proto_docs/google/protobuf/any.rb +145 -0
  40. data/proto_docs/google/protobuf/duration.rb +98 -0
  41. data/proto_docs/google/protobuf/empty.rb +34 -0
  42. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  43. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  44. data/proto_docs/google/rpc/status.rb +48 -0
  45. data/proto_docs/google/type/expr.rb +75 -0
  46. metadata +124 -9
@@ -0,0 +1,182 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 AppHub
23
+ module V1
24
+ module AppHub
25
+ # Path helper methods for the AppHub API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Application resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/applications/{application}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param application [String]
37
+ #
38
+ # @return [::String]
39
+ def application_path project:, location:, application:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/applications/#{application}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified DiscoveredService resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/discoveredServices/{discovered_service}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param discovered_service [String]
56
+ #
57
+ # @return [::String]
58
+ def discovered_service_path project:, location:, discovered_service:
59
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
60
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}/discoveredServices/#{discovered_service}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified DiscoveredWorkload resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/discoveredWorkloads/{discovered_workload}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param discovered_workload [String]
75
+ #
76
+ # @return [::String]
77
+ def discovered_workload_path project:, location:, discovered_workload:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/discoveredWorkloads/#{discovered_workload}"
82
+ end
83
+
84
+ ##
85
+ # Create a fully-qualified Location resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/locations/{location}`
90
+ #
91
+ # @param project [String]
92
+ # @param location [String]
93
+ #
94
+ # @return [::String]
95
+ def location_path project:, location:
96
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
97
+
98
+ "projects/#{project}/locations/#{location}"
99
+ end
100
+
101
+ ##
102
+ # Create a fully-qualified Project resource string.
103
+ #
104
+ # The resource will be in the following format:
105
+ #
106
+ # `projects/{project}`
107
+ #
108
+ # @param project [String]
109
+ #
110
+ # @return [::String]
111
+ def project_path project:
112
+ "projects/#{project}"
113
+ end
114
+
115
+ ##
116
+ # Create a fully-qualified Service resource string.
117
+ #
118
+ # The resource will be in the following format:
119
+ #
120
+ # `projects/{project}/locations/{location}/applications/{application}/services/{service}`
121
+ #
122
+ # @param project [String]
123
+ # @param location [String]
124
+ # @param application [String]
125
+ # @param service [String]
126
+ #
127
+ # @return [::String]
128
+ def service_path project:, location:, application:, service:
129
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
130
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
131
+ raise ::ArgumentError, "application cannot contain /" if application.to_s.include? "/"
132
+
133
+ "projects/#{project}/locations/#{location}/applications/#{application}/services/#{service}"
134
+ end
135
+
136
+ ##
137
+ # Create a fully-qualified ServiceProjectAttachment resource string.
138
+ #
139
+ # The resource will be in the following format:
140
+ #
141
+ # `projects/{project}/locations/{location}/serviceProjectAttachments/{service_project_attachment}`
142
+ #
143
+ # @param project [String]
144
+ # @param location [String]
145
+ # @param service_project_attachment [String]
146
+ #
147
+ # @return [::String]
148
+ def service_project_attachment_path project:, location:, service_project_attachment:
149
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
150
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
151
+
152
+ "projects/#{project}/locations/#{location}/serviceProjectAttachments/#{service_project_attachment}"
153
+ end
154
+
155
+ ##
156
+ # Create a fully-qualified Workload resource string.
157
+ #
158
+ # The resource will be in the following format:
159
+ #
160
+ # `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`
161
+ #
162
+ # @param project [String]
163
+ # @param location [String]
164
+ # @param application [String]
165
+ # @param workload [String]
166
+ #
167
+ # @return [::String]
168
+ def workload_path project:, location:, application:, workload:
169
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
170
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
171
+ raise ::ArgumentError, "application cannot contain /" if application.to_s.include? "/"
172
+
173
+ "projects/#{project}/locations/#{location}/applications/#{application}/workloads/#{workload}"
174
+ end
175
+
176
+ extend self
177
+ end
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end