google-cloud-api_hub-v1 0.a → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) 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/api_hub/v1/api_hub/client.rb +4514 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub/credentials.rb +47 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +216 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +4251 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +2147 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub/rest.rb +53 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub.rb +55 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/client.rb +906 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/credentials.rb +47 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/paths.rb +88 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/client.rb +853 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest/service_stub.rb +366 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_dependencies/rest.rb +54 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_dependencies.rb +56 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_plugin/client.rb +640 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_plugin/credentials.rb +47 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +52 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +601 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +248 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +53 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin.rb +55 -0
  26. data/lib/google/cloud/api_hub/v1/bindings_override.rb +102 -0
  27. data/lib/google/cloud/api_hub/v1/host_project_registration_service/client.rb +689 -0
  28. data/lib/google/cloud/api_hub/v1/host_project_registration_service/credentials.rb +47 -0
  29. data/lib/google/cloud/api_hub/v1/host_project_registration_service/paths.rb +83 -0
  30. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/client.rb +650 -0
  31. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest/service_stub.rb +247 -0
  32. data/lib/google/cloud/api_hub/v1/host_project_registration_service/rest.rb +53 -0
  33. data/lib/google/cloud/api_hub/v1/host_project_registration_service.rb +55 -0
  34. data/lib/google/cloud/api_hub/v1/linting_service/client.rb +744 -0
  35. data/lib/google/cloud/api_hub/v1/linting_service/credentials.rb +47 -0
  36. data/lib/google/cloud/api_hub/v1/linting_service/paths.rb +75 -0
  37. data/lib/google/cloud/api_hub/v1/linting_service/rest/client.rb +698 -0
  38. data/lib/google/cloud/api_hub/v1/linting_service/rest/service_stub.rb +307 -0
  39. data/lib/google/cloud/api_hub/v1/linting_service/rest.rb +53 -0
  40. data/lib/google/cloud/api_hub/v1/linting_service.rb +55 -0
  41. data/lib/google/cloud/api_hub/v1/provisioning/client.rb +676 -0
  42. data/lib/google/cloud/api_hub/v1/provisioning/credentials.rb +47 -0
  43. data/lib/google/cloud/api_hub/v1/provisioning/operations.rb +809 -0
  44. data/lib/google/cloud/api_hub/v1/provisioning/paths.rb +69 -0
  45. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +637 -0
  46. data/lib/google/cloud/api_hub/v1/provisioning/rest/operations.rb +902 -0
  47. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +247 -0
  48. data/lib/google/cloud/api_hub/v1/provisioning/rest.rb +54 -0
  49. data/lib/google/cloud/api_hub/v1/provisioning.rb +56 -0
  50. data/lib/google/cloud/api_hub/v1/rest.rb +44 -0
  51. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/client.rb +885 -0
  52. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/credentials.rb +47 -0
  53. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/paths.rb +83 -0
  54. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/client.rb +832 -0
  55. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest/service_stub.rb +365 -0
  56. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service/rest.rb +53 -0
  57. data/lib/google/cloud/api_hub/v1/runtime_project_attachment_service.rb +55 -0
  58. data/lib/google/cloud/api_hub/v1/version.rb +7 -2
  59. data/lib/google/cloud/api_hub/v1.rb +51 -0
  60. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +102 -0
  61. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +288 -0
  62. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +92 -0
  63. data/lib/google/cloud/apihub/v1/host_project_registration_service_pb.rb +53 -0
  64. data/lib/google/cloud/apihub/v1/host_project_registration_service_services_pb.rb +53 -0
  65. data/lib/google/cloud/apihub/v1/linting_service_pb.rb +56 -0
  66. data/lib/google/cloud/apihub/v1/linting_service_services_pb.rb +53 -0
  67. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +53 -0
  68. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +51 -0
  69. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +53 -0
  70. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +50 -0
  71. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_pb.rb +57 -0
  72. data/lib/google/cloud/apihub/v1/runtime_project_attachment_service_services_pb.rb +55 -0
  73. data/lib/google-cloud-api_hub-v1.rb +21 -0
  74. data/proto_docs/README.md +4 -0
  75. data/proto_docs/google/api/client.rb +420 -0
  76. data/proto_docs/google/api/field_behavior.rb +85 -0
  77. data/proto_docs/google/api/launch_stage.rb +71 -0
  78. data/proto_docs/google/api/resource.rb +227 -0
  79. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +1317 -0
  80. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +1296 -0
  81. data/proto_docs/google/cloud/apihub/v1/host_project_registration_service.rb +146 -0
  82. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +103 -0
  83. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +104 -0
  84. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +87 -0
  85. data/proto_docs/google/cloud/apihub/v1/runtime_project_attachment_service.rb +182 -0
  86. data/proto_docs/google/longrunning/operations.rb +164 -0
  87. data/proto_docs/google/protobuf/any.rb +145 -0
  88. data/proto_docs/google/protobuf/duration.rb +98 -0
  89. data/proto_docs/google/protobuf/empty.rb +34 -0
  90. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  91. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  92. data/proto_docs/google/rpc/status.rb +48 -0
  93. metadata +155 -10
@@ -0,0 +1,47 @@
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
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module ApiHub
24
+ module V1
25
+ module ApiHub
26
+ # Credentials for the ApiHub API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform"
30
+ ]
31
+ self.env_vars = [
32
+ "GOOGLE_CLOUD_CREDENTIALS",
33
+ "GOOGLE_CLOUD_KEYFILE",
34
+ "GCLOUD_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
36
+ "GOOGLE_CLOUD_KEYFILE_JSON",
37
+ "GCLOUD_KEYFILE_JSON"
38
+ ]
39
+ self.paths = [
40
+ "~/.config/google_cloud/application_default_credentials.json"
41
+ ]
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,216 @@
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 ApiHub
23
+ module V1
24
+ module ApiHub
25
+ # Path helper methods for the ApiHub API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Api resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/apis/{api}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param api [String]
37
+ #
38
+ # @return [::String]
39
+ def api_path project:, location:, api:
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}/apis/#{api}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified ApiOperation resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param api [String]
56
+ # @param version [String]
57
+ # @param operation [String]
58
+ #
59
+ # @return [::String]
60
+ def api_operation_path project:, location:, api:, version:, operation:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+ raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
64
+ raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
65
+
66
+ "projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/operations/#{operation}"
67
+ end
68
+
69
+ ##
70
+ # Create a fully-qualified Attribute resource string.
71
+ #
72
+ # The resource will be in the following format:
73
+ #
74
+ # `projects/{project}/locations/{location}/attributes/{attribute}`
75
+ #
76
+ # @param project [String]
77
+ # @param location [String]
78
+ # @param attribute [String]
79
+ #
80
+ # @return [::String]
81
+ def attribute_path project:, location:, attribute:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/attributes/#{attribute}"
86
+ end
87
+
88
+ ##
89
+ # Create a fully-qualified Definition resource string.
90
+ #
91
+ # The resource will be in the following format:
92
+ #
93
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/definitions/{definition}`
94
+ #
95
+ # @param project [String]
96
+ # @param location [String]
97
+ # @param api [String]
98
+ # @param version [String]
99
+ # @param definition [String]
100
+ #
101
+ # @return [::String]
102
+ def definition_path project:, location:, api:, version:, definition:
103
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
104
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
105
+ raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
106
+ raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
107
+
108
+ "projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/definitions/#{definition}"
109
+ end
110
+
111
+ ##
112
+ # Create a fully-qualified Deployment resource string.
113
+ #
114
+ # The resource will be in the following format:
115
+ #
116
+ # `projects/{project}/locations/{location}/deployments/{deployment}`
117
+ #
118
+ # @param project [String]
119
+ # @param location [String]
120
+ # @param deployment [String]
121
+ #
122
+ # @return [::String]
123
+ def deployment_path project:, location:, deployment:
124
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
125
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
126
+
127
+ "projects/#{project}/locations/#{location}/deployments/#{deployment}"
128
+ end
129
+
130
+ ##
131
+ # Create a fully-qualified ExternalApi resource string.
132
+ #
133
+ # The resource will be in the following format:
134
+ #
135
+ # `projects/{project}/locations/{location}/externalApis/{external_api}`
136
+ #
137
+ # @param project [String]
138
+ # @param location [String]
139
+ # @param external_api [String]
140
+ #
141
+ # @return [::String]
142
+ def external_api_path project:, location:, external_api:
143
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
144
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
145
+
146
+ "projects/#{project}/locations/#{location}/externalApis/#{external_api}"
147
+ end
148
+
149
+ ##
150
+ # Create a fully-qualified Location resource string.
151
+ #
152
+ # The resource will be in the following format:
153
+ #
154
+ # `projects/{project}/locations/{location}`
155
+ #
156
+ # @param project [String]
157
+ # @param location [String]
158
+ #
159
+ # @return [::String]
160
+ def location_path project:, location:
161
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
162
+
163
+ "projects/#{project}/locations/#{location}"
164
+ end
165
+
166
+ ##
167
+ # Create a fully-qualified Spec resource string.
168
+ #
169
+ # The resource will be in the following format:
170
+ #
171
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`
172
+ #
173
+ # @param project [String]
174
+ # @param location [String]
175
+ # @param api [String]
176
+ # @param version [String]
177
+ # @param spec [String]
178
+ #
179
+ # @return [::String]
180
+ def spec_path project:, location:, api:, version:, spec:
181
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
182
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
183
+ raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
184
+ raise ::ArgumentError, "version cannot contain /" if version.to_s.include? "/"
185
+
186
+ "projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}/specs/#{spec}"
187
+ end
188
+
189
+ ##
190
+ # Create a fully-qualified Version resource string.
191
+ #
192
+ # The resource will be in the following format:
193
+ #
194
+ # `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
195
+ #
196
+ # @param project [String]
197
+ # @param location [String]
198
+ # @param api [String]
199
+ # @param version [String]
200
+ #
201
+ # @return [::String]
202
+ def version_path project:, location:, api:, version:
203
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
204
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
205
+ raise ::ArgumentError, "api cannot contain /" if api.to_s.include? "/"
206
+
207
+ "projects/#{project}/locations/#{location}/apis/#{api}/versions/#{version}"
208
+ end
209
+
210
+ extend self
211
+ end
212
+ end
213
+ end
214
+ end
215
+ end
216
+ end