vagrant-unbundled 2.3.2.0 → 2.3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/CHANGELOG.md +57 -0
  4. data/Gemfile.lock +40 -40
  5. data/LICENSE +1 -3
  6. data/Makefile +53 -9
  7. data/contrib/bash/completion.sh +15 -0
  8. data/go.mod +1 -1
  9. data/go.sum +2 -10
  10. data/lib/vagrant/action/builtin/box_add.rb +16 -6
  11. data/lib/vagrant/environment.rb +1 -1
  12. data/lib/vagrant/errors.rb +12 -0
  13. data/lib/vagrant/plugin/v2/config.rb +0 -5
  14. data/lib/vagrant/shared_helpers.rb +21 -0
  15. data/lib/vagrant/util/file_mutex.rb +47 -0
  16. data/lib/vagrant/util/install_cli_autocomplete.rb +3 -3
  17. data/lib/vagrant/util/platform.rb +8 -2
  18. data/lib/vagrant/util.rb +1 -0
  19. data/lib/vagrant.rb +1 -3
  20. data/pkg/vagrant-unbundled-2.3.2.0.gem +0 -0
  21. data/pkg/vagrant-unbundled-2.3.3.0.gem +0 -0
  22. data/plugins/commands/box/command/outdated.rb +1 -1
  23. data/plugins/commands/serve/command.rb +22 -24
  24. data/plugins/commands/serve/constants.rb +8 -0
  25. data/plugins/communicators/ssh/communicator.rb +11 -20
  26. data/plugins/guests/solaris/cap/remove_public_key.rb +2 -2
  27. data/plugins/hosts/arch/host.rb +1 -1
  28. data/plugins/hosts/gentoo/host.rb +1 -1
  29. data/plugins/hosts/slackware/host.rb +1 -1
  30. data/plugins/kernel_v2/config/vm.rb +0 -9
  31. data/plugins/providers/docker/action.rb +1 -2
  32. data/plugins/providers/docker/driver.rb +17 -1
  33. data/plugins/providers/hyperv/driver.rb +6 -1
  34. data/plugins/providers/hyperv/scripts/set_enhanced_session_transport_type.ps1 +11 -2
  35. data/plugins/providers/hyperv/scripts/utils/VagrantVM/VagrantVM.psm1 +15 -0
  36. data/plugins/providers/virtualbox/action/check_virtualbox.rb +0 -6
  37. data/plugins/providers/virtualbox/action/network.rb +23 -5
  38. data/plugins/providers/virtualbox/driver/base.rb +49 -1
  39. data/plugins/providers/virtualbox/driver/version_5_0.rb +40 -36
  40. data/plugins/providers/virtualbox/driver/version_7_0.rb +241 -6
  41. data/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb +5 -1
  42. data/plugins/provisioners/ansible/cap/guest/posix/ansible_installed.rb +2 -2
  43. data/plugins/provisioners/ansible/provisioner/guest.rb +1 -1
  44. data/plugins/provisioners/ansible/provisioner/host.rb +4 -3
  45. data/plugins/provisioners/chef/config/chef_zero.rb +1 -1
  46. data/plugins/synced_folders/rsync/helper.rb +4 -6
  47. data/templates/commands/init/Vagrantfile.erb +7 -0
  48. data/templates/locales/en.yml +16 -0
  49. data/thirdparty/proto/api-common-protos/.bazelrc +2 -0
  50. data/thirdparty/proto/api-common-protos/.git +1 -0
  51. data/thirdparty/proto/api-common-protos/.gitignore +11 -0
  52. data/thirdparty/proto/api-common-protos/BUILD.bazel +129 -0
  53. data/thirdparty/proto/api-common-protos/CODE_OF_CONDUCT.md +43 -0
  54. data/thirdparty/proto/api-common-protos/CONTRIBUTING.md +42 -0
  55. data/thirdparty/proto/api-common-protos/Dockerfile +18 -0
  56. data/thirdparty/proto/api-common-protos/LICENSE +201 -0
  57. data/thirdparty/proto/api-common-protos/README.md +113 -0
  58. data/thirdparty/proto/api-common-protos/SECURITY.md +7 -0
  59. data/thirdparty/proto/api-common-protos/WORKSPACE +154 -0
  60. data/thirdparty/proto/api-common-protos/google/api/BUILD.bazel +246 -0
  61. data/thirdparty/proto/api-common-protos/google/api/README.md +46 -0
  62. data/thirdparty/proto/api-common-protos/google/api/annotations.proto +31 -0
  63. data/thirdparty/proto/api-common-protos/google/api/auth.proto +181 -0
  64. data/thirdparty/proto/api-common-protos/google/api/backend.proto +51 -0
  65. data/thirdparty/proto/api-common-protos/google/api/billing.proto +67 -0
  66. data/thirdparty/proto/api-common-protos/google/api/client.proto +99 -0
  67. data/thirdparty/proto/api-common-protos/google/api/config_change.proto +85 -0
  68. data/thirdparty/proto/api-common-protos/google/api/consumer.proto +83 -0
  69. data/thirdparty/proto/api-common-protos/google/api/context.proto +63 -0
  70. data/thirdparty/proto/api-common-protos/google/api/control.proto +33 -0
  71. data/thirdparty/proto/api-common-protos/google/api/distribution.proto +213 -0
  72. data/thirdparty/proto/api-common-protos/google/api/documentation.proto +157 -0
  73. data/thirdparty/proto/api-common-protos/google/api/endpoint.proto +71 -0
  74. data/thirdparty/proto/api-common-protos/google/api/field_behavior.proto +84 -0
  75. data/thirdparty/proto/api-common-protos/google/api/http.proto +318 -0
  76. data/thirdparty/proto/api-common-protos/google/api/httpbody.proto +76 -0
  77. data/thirdparty/proto/api-common-protos/google/api/label.proto +49 -0
  78. data/thirdparty/proto/api-common-protos/google/api/launch_stage.proto +67 -0
  79. data/thirdparty/proto/api-common-protos/google/api/log.proto +55 -0
  80. data/thirdparty/proto/api-common-protos/google/api/logging.proto +83 -0
  81. data/thirdparty/proto/api-common-protos/google/api/metric.proto +192 -0
  82. data/thirdparty/proto/api-common-protos/google/api/monitored_resource.proto +116 -0
  83. data/thirdparty/proto/api-common-protos/google/api/monitoring.proto +89 -0
  84. data/thirdparty/proto/api-common-protos/google/api/quota.proto +259 -0
  85. data/thirdparty/proto/api-common-protos/google/api/resource.proto +299 -0
  86. data/thirdparty/proto/api-common-protos/google/api/routing.proto +461 -0
  87. data/thirdparty/proto/api-common-protos/google/api/service.proto +175 -0
  88. data/thirdparty/proto/api-common-protos/google/api/source_info.proto +32 -0
  89. data/thirdparty/proto/api-common-protos/google/api/system_parameter.proto +96 -0
  90. data/thirdparty/proto/api-common-protos/google/api/usage.proto +92 -0
  91. data/thirdparty/proto/api-common-protos/google/cloud/extended_operations.proto +150 -0
  92. data/thirdparty/proto/api-common-protos/google/iam/README.md +14 -0
  93. data/thirdparty/proto/api-common-protos/google/iam/admin/v1/iam.proto +1087 -0
  94. data/thirdparty/proto/api-common-protos/google/iam/v1/iam_policy.proto +145 -0
  95. data/thirdparty/proto/api-common-protos/google/iam/v1/logging/audit_data.proto +34 -0
  96. data/thirdparty/proto/api-common-protos/google/iam/v1/options.proto +41 -0
  97. data/thirdparty/proto/api-common-protos/google/iam/v1/policy.proto +240 -0
  98. data/thirdparty/proto/api-common-protos/google/logging/type/README.md +12 -0
  99. data/thirdparty/proto/api-common-protos/google/logging/type/http_request.proto +92 -0
  100. data/thirdparty/proto/api-common-protos/google/logging/type/log_severity.proto +72 -0
  101. data/thirdparty/proto/api-common-protos/google/longrunning/README.md +31 -0
  102. data/thirdparty/proto/api-common-protos/google/longrunning/operations.proto +247 -0
  103. data/thirdparty/proto/api-common-protos/google/rpc/README.md +18 -0
  104. data/thirdparty/proto/api-common-protos/google/rpc/code.proto +186 -0
  105. data/thirdparty/proto/api-common-protos/google/rpc/context/attribute_context.proto +287 -0
  106. data/thirdparty/proto/api-common-protos/google/rpc/error_details.proto +246 -0
  107. data/thirdparty/proto/api-common-protos/google/rpc/status.proto +47 -0
  108. data/thirdparty/proto/api-common-protos/google/type/README.md +7 -0
  109. data/thirdparty/proto/api-common-protos/google/type/calendar_period.proto +57 -0
  110. data/thirdparty/proto/api-common-protos/google/type/color.proto +170 -0
  111. data/thirdparty/proto/api-common-protos/google/type/date.proto +50 -0
  112. data/thirdparty/proto/api-common-protos/google/type/datetime.proto +97 -0
  113. data/thirdparty/proto/api-common-protos/google/type/dayofweek.proto +51 -0
  114. data/thirdparty/proto/api-common-protos/google/type/expr.proto +51 -0
  115. data/thirdparty/proto/api-common-protos/google/type/fraction.proto +34 -0
  116. data/thirdparty/proto/api-common-protos/google/type/latlng.proto +37 -0
  117. data/thirdparty/proto/api-common-protos/google/type/money.proto +43 -0
  118. data/thirdparty/proto/api-common-protos/google/type/month.proto +66 -0
  119. data/thirdparty/proto/api-common-protos/google/type/postal_address.proto +135 -0
  120. data/thirdparty/proto/api-common-protos/google/type/quaternion.proto +95 -0
  121. data/thirdparty/proto/api-common-protos/google/type/timeofday.proto +44 -0
  122. data/thirdparty/proto/api-common-protos/renovate.json +5 -0
  123. data/thirdparty/proto/api-common-protos/repository_rules.bzl +222 -0
  124. data/tools.go +10 -0
  125. data/vagrant.gemspec +13 -13
  126. data/version.txt +1 -1
  127. metadata +111 -38
  128. data/lib/vagrant/patches/net-ssh.rb +0 -286
@@ -0,0 +1,461 @@
1
+ // Copyright 2021 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/protobuf/descriptor.proto";
20
+
21
+ option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "RoutingProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+ extend google.protobuf.MethodOptions {
28
+ // See RoutingRule.
29
+ google.api.RoutingRule routing = 72295729;
30
+ }
31
+
32
+ // Specifies the routing information that should be sent along with the request
33
+ // in the form of routing header.
34
+ // **NOTE:** All service configuration rules follow the "last one wins" order.
35
+ //
36
+ // The examples below will apply to an RPC which has the following request type:
37
+ //
38
+ // Message Definition:
39
+ //
40
+ // message Request {
41
+ // // The name of the Table
42
+ // // Values can be of the following formats:
43
+ // // - `projects/<project>/tables/<table>`
44
+ // // - `projects/<project>/instances/<instance>/tables/<table>`
45
+ // // - `region/<region>/zones/<zone>/tables/<table>`
46
+ // string table_name = 1;
47
+ //
48
+ // // This value specifies routing for replication.
49
+ // // It can be in the following formats:
50
+ // // - `profiles/<profile_id>`
51
+ // // - a legacy `profile_id` that can be any string
52
+ // string app_profile_id = 2;
53
+ // }
54
+ //
55
+ // Example message:
56
+ //
57
+ // {
58
+ // table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
59
+ // app_profile_id: profiles/prof_qux
60
+ // }
61
+ //
62
+ // The routing header consists of one or multiple key-value pairs. Every key
63
+ // and value must be percent-encoded, and joined together in the format of
64
+ // `key1=value1&key2=value2`.
65
+ // In the examples below I am skipping the percent-encoding for readablity.
66
+ //
67
+ // Example 1
68
+ //
69
+ // Extracting a field from the request to put into the routing header
70
+ // unchanged, with the key equal to the field name.
71
+ //
72
+ // annotation:
73
+ //
74
+ // option (google.api.routing) = {
75
+ // // Take the `app_profile_id`.
76
+ // routing_parameters {
77
+ // field: "app_profile_id"
78
+ // }
79
+ // };
80
+ //
81
+ // result:
82
+ //
83
+ // x-goog-request-params: app_profile_id=profiles/prof_qux
84
+ //
85
+ // Example 2
86
+ //
87
+ // Extracting a field from the request to put into the routing header
88
+ // unchanged, with the key different from the field name.
89
+ //
90
+ // annotation:
91
+ //
92
+ // option (google.api.routing) = {
93
+ // // Take the `app_profile_id`, but name it `routing_id` in the header.
94
+ // routing_parameters {
95
+ // field: "app_profile_id"
96
+ // path_template: "{routing_id=**}"
97
+ // }
98
+ // };
99
+ //
100
+ // result:
101
+ //
102
+ // x-goog-request-params: routing_id=profiles/prof_qux
103
+ //
104
+ // Example 3
105
+ //
106
+ // Extracting a field from the request to put into the routing
107
+ // header, while matching a path template syntax on the field's value.
108
+ //
109
+ // NB: it is more useful to send nothing than to send garbage for the purpose
110
+ // of dynamic routing, since garbage pollutes cache. Thus the matching.
111
+ //
112
+ // Sub-example 3a
113
+ //
114
+ // The field matches the template.
115
+ //
116
+ // annotation:
117
+ //
118
+ // option (google.api.routing) = {
119
+ // // Take the `table_name`, if it's well-formed (with project-based
120
+ // // syntax).
121
+ // routing_parameters {
122
+ // field: "table_name"
123
+ // path_template: "{table_name=projects/*/instances/*/**}"
124
+ // }
125
+ // };
126
+ //
127
+ // result:
128
+ //
129
+ // x-goog-request-params:
130
+ // table_name=projects/proj_foo/instances/instance_bar/table/table_baz
131
+ //
132
+ // Sub-example 3b
133
+ //
134
+ // The field does not match the template.
135
+ //
136
+ // annotation:
137
+ //
138
+ // option (google.api.routing) = {
139
+ // // Take the `table_name`, if it's well-formed (with region-based
140
+ // // syntax).
141
+ // routing_parameters {
142
+ // field: "table_name"
143
+ // path_template: "{table_name=regions/*/zones/*/**}"
144
+ // }
145
+ // };
146
+ //
147
+ // result:
148
+ //
149
+ // <no routing header will be sent>
150
+ //
151
+ // Sub-example 3c
152
+ //
153
+ // Multiple alternative conflictingly named path templates are
154
+ // specified. The one that matches is used to construct the header.
155
+ //
156
+ // annotation:
157
+ //
158
+ // option (google.api.routing) = {
159
+ // // Take the `table_name`, if it's well-formed, whether
160
+ // // using the region- or projects-based syntax.
161
+ //
162
+ // routing_parameters {
163
+ // field: "table_name"
164
+ // path_template: "{table_name=regions/*/zones/*/**}"
165
+ // }
166
+ // routing_parameters {
167
+ // field: "table_name"
168
+ // path_template: "{table_name=projects/*/instances/*/**}"
169
+ // }
170
+ // };
171
+ //
172
+ // result:
173
+ //
174
+ // x-goog-request-params:
175
+ // table_name=projects/proj_foo/instances/instance_bar/table/table_baz
176
+ //
177
+ // Example 4
178
+ //
179
+ // Extracting a single routing header key-value pair by matching a
180
+ // template syntax on (a part of) a single request field.
181
+ //
182
+ // annotation:
183
+ //
184
+ // option (google.api.routing) = {
185
+ // // Take just the project id from the `table_name` field.
186
+ // routing_parameters {
187
+ // field: "table_name"
188
+ // path_template: "{routing_id=projects/*}/**"
189
+ // }
190
+ // };
191
+ //
192
+ // result:
193
+ //
194
+ // x-goog-request-params: routing_id=projects/proj_foo
195
+ //
196
+ // Example 5
197
+ //
198
+ // Extracting a single routing header key-value pair by matching
199
+ // several conflictingly named path templates on (parts of) a single request
200
+ // field. The last template to match "wins" the conflict.
201
+ //
202
+ // annotation:
203
+ //
204
+ // option (google.api.routing) = {
205
+ // // If the `table_name` does not have instances information,
206
+ // // take just the project id for routing.
207
+ // // Otherwise take project + instance.
208
+ //
209
+ // routing_parameters {
210
+ // field: "table_name"
211
+ // path_template: "{routing_id=projects/*}/**"
212
+ // }
213
+ // routing_parameters {
214
+ // field: "table_name"
215
+ // path_template: "{routing_id=projects/*/instances/*}/**"
216
+ // }
217
+ // };
218
+ //
219
+ // result:
220
+ //
221
+ // x-goog-request-params:
222
+ // routing_id=projects/proj_foo/instances/instance_bar
223
+ //
224
+ // Example 6
225
+ //
226
+ // Extracting multiple routing header key-value pairs by matching
227
+ // several non-conflicting path templates on (parts of) a single request field.
228
+ //
229
+ // Sub-example 6a
230
+ //
231
+ // Make the templates strict, so that if the `table_name` does not
232
+ // have an instance information, nothing is sent.
233
+ //
234
+ // annotation:
235
+ //
236
+ // option (google.api.routing) = {
237
+ // // The routing code needs two keys instead of one composite
238
+ // // but works only for the tables with the "project-instance" name
239
+ // // syntax.
240
+ //
241
+ // routing_parameters {
242
+ // field: "table_name"
243
+ // path_template: "{project_id=projects/*}/instances/*/**"
244
+ // }
245
+ // routing_parameters {
246
+ // field: "table_name"
247
+ // path_template: "projects/*/{instance_id=instances/*}/**"
248
+ // }
249
+ // };
250
+ //
251
+ // result:
252
+ //
253
+ // x-goog-request-params:
254
+ // project_id=projects/proj_foo&instance_id=instances/instance_bar
255
+ //
256
+ // Sub-example 6b
257
+ //
258
+ // Make the templates loose, so that if the `table_name` does not
259
+ // have an instance information, just the project id part is sent.
260
+ //
261
+ // annotation:
262
+ //
263
+ // option (google.api.routing) = {
264
+ // // The routing code wants two keys instead of one composite
265
+ // // but will work with just the `project_id` for tables without
266
+ // // an instance in the `table_name`.
267
+ //
268
+ // routing_parameters {
269
+ // field: "table_name"
270
+ // path_template: "{project_id=projects/*}/**"
271
+ // }
272
+ // routing_parameters {
273
+ // field: "table_name"
274
+ // path_template: "projects/*/{instance_id=instances/*}/**"
275
+ // }
276
+ // };
277
+ //
278
+ // result (is the same as 6a for our example message because it has the instance
279
+ // information):
280
+ //
281
+ // x-goog-request-params:
282
+ // project_id=projects/proj_foo&instance_id=instances/instance_bar
283
+ //
284
+ // Example 7
285
+ //
286
+ // Extracting multiple routing header key-value pairs by matching
287
+ // several path templates on multiple request fields.
288
+ //
289
+ // NB: note that here there is no way to specify sending nothing if one of the
290
+ // fields does not match its template. E.g. if the `table_name` is in the wrong
291
+ // format, the `project_id` will not be sent, but the `routing_id` will be.
292
+ // The backend routing code has to be aware of that and be prepared to not
293
+ // receive a full complement of keys if it expects multiple.
294
+ //
295
+ // annotation:
296
+ //
297
+ // option (google.api.routing) = {
298
+ // // The routing needs both `project_id` and `routing_id`
299
+ // // (from the `app_profile_id` field) for routing.
300
+ //
301
+ // routing_parameters {
302
+ // field: "table_name"
303
+ // path_template: "{project_id=projects/*}/**"
304
+ // }
305
+ // routing_parameters {
306
+ // field: "app_profile_id"
307
+ // path_template: "{routing_id=**}"
308
+ // }
309
+ // };
310
+ //
311
+ // result:
312
+ //
313
+ // x-goog-request-params:
314
+ // project_id=projects/proj_foo&routing_id=profiles/prof_qux
315
+ //
316
+ // Example 8
317
+ //
318
+ // Extracting a single routing header key-value pair by matching
319
+ // several conflictingly named path templates on several request fields. The
320
+ // last template to match "wins" the conflict.
321
+ //
322
+ // annotation:
323
+ //
324
+ // option (google.api.routing) = {
325
+ // // The `routing_id` can be a project id or a region id depending on
326
+ // // the table name format, but only if the `app_profile_id` is not set.
327
+ // // If `app_profile_id` is set it should be used instead.
328
+ //
329
+ // routing_parameters {
330
+ // field: "table_name"
331
+ // path_template: "{routing_id=projects/*}/**"
332
+ // }
333
+ // routing_parameters {
334
+ // field: "table_name"
335
+ // path_template: "{routing_id=regions/*}/**"
336
+ // }
337
+ // routing_parameters {
338
+ // field: "app_profile_id"
339
+ // path_template: "{routing_id=**}"
340
+ // }
341
+ // };
342
+ //
343
+ // result:
344
+ //
345
+ // x-goog-request-params: routing_id=profiles/prof_qux
346
+ //
347
+ // Example 9
348
+ //
349
+ // Bringing it all together.
350
+ //
351
+ // annotation:
352
+ //
353
+ // option (google.api.routing) = {
354
+ // // For routing both `table_location` and a `routing_id` are needed.
355
+ // //
356
+ // // table_location can be either an instance id or a region+zone id.
357
+ // //
358
+ // // For `routing_id`, take the value of `app_profile_id`
359
+ // // - If it's in the format `profiles/<profile_id>`, send
360
+ // // just the `<profile_id>` part.
361
+ // // - If it's any other literal, send it as is.
362
+ // // If the `app_profile_id` is empty, and the `table_name` starts with
363
+ // // the project_id, send that instead.
364
+ //
365
+ // routing_parameters {
366
+ // field: "table_name"
367
+ // path_template: "projects/*/{table_location=instances/*}/tables/*"
368
+ // }
369
+ // routing_parameters {
370
+ // field: "table_name"
371
+ // path_template: "{table_location=regions/*/zones/*}/tables/*"
372
+ // }
373
+ // routing_parameters {
374
+ // field: "table_name"
375
+ // path_template: "{routing_id=projects/*}/**"
376
+ // }
377
+ // routing_parameters {
378
+ // field: "app_profile_id"
379
+ // path_template: "{routing_id=**}"
380
+ // }
381
+ // routing_parameters {
382
+ // field: "app_profile_id"
383
+ // path_template: "profiles/{routing_id=*}"
384
+ // }
385
+ // };
386
+ //
387
+ // result:
388
+ //
389
+ // x-goog-request-params:
390
+ // table_location=instances/instance_bar&routing_id=prof_qux
391
+ message RoutingRule {
392
+ // A collection of Routing Parameter specifications.
393
+ // **NOTE:** If multiple Routing Parameters describe the same key
394
+ // (via the `path_template` field or via the `field` field when
395
+ // `path_template` is not provided), "last one wins" rule
396
+ // determines which Parameter gets used.
397
+ // See the examples for more details.
398
+ repeated RoutingParameter routing_parameters = 2;
399
+ }
400
+
401
+ // A projection from an input message to the GRPC or REST header.
402
+ message RoutingParameter {
403
+ // A request field to extract the header key-value pair from.
404
+ string field = 1;
405
+
406
+ // A pattern matching the key-value field. Optional.
407
+ // If not specified, the whole field specified in the `field` field will be
408
+ // taken as value, and its name used as key. If specified, it MUST contain
409
+ // exactly one named segment (along with any number of unnamed segments) The
410
+ // pattern will be matched over the field specified in the `field` field, then
411
+ // if the match is successful:
412
+ // - the name of the single named segment will be used as a header name,
413
+ // - the match value of the segment will be used as a header value;
414
+ // if the match is NOT successful, nothing will be sent.
415
+ //
416
+ // Example:
417
+ //
418
+ // -- This is a field in the request message
419
+ // | that the header value will be extracted from.
420
+ // |
421
+ // | -- This is the key name in the
422
+ // | | routing header.
423
+ // V |
424
+ // field: "table_name" v
425
+ // path_template: "projects/*/{table_location=instances/*}/tables/*"
426
+ // ^ ^
427
+ // | |
428
+ // In the {} brackets is the pattern that -- |
429
+ // specifies what to extract from the |
430
+ // field as a value to be sent. |
431
+ // |
432
+ // The string in the field must match the whole pattern --
433
+ // before brackets, inside brackets, after brackets.
434
+ //
435
+ // When looking at this specific example, we can see that:
436
+ // - A key-value pair with the key `table_location`
437
+ // and the value matching `instances/*` should be added
438
+ // to the x-goog-request-params routing header.
439
+ // - The value is extracted from the request message's `table_name` field
440
+ // if it matches the full pattern specified:
441
+ // `projects/*/instances/*/tables/*`.
442
+ //
443
+ // **NB:** If the `path_template` field is not provided, the key name is
444
+ // equal to the field name, and the whole field should be sent as a value.
445
+ // This makes the pattern for the field and the value functionally equivalent
446
+ // to `**`, and the configuration
447
+ //
448
+ // {
449
+ // field: "table_name"
450
+ // }
451
+ //
452
+ // is a functionally equivalent shorthand to:
453
+ //
454
+ // {
455
+ // field: "table_name"
456
+ // path_template: "{table_name=**}"
457
+ // }
458
+ //
459
+ // See Example 1 for more details.
460
+ string path_template = 2;
461
+ }
@@ -0,0 +1,175 @@
1
+ // Copyright 2017 Google Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/api/annotations.proto";
20
+ import "google/api/auth.proto";
21
+ import "google/api/backend.proto";
22
+ import "google/api/billing.proto";
23
+ import "google/api/context.proto";
24
+ import "google/api/control.proto";
25
+ import "google/api/documentation.proto";
26
+ import "google/api/endpoint.proto";
27
+ import "google/api/http.proto";
28
+ import "google/api/log.proto";
29
+ import "google/api/logging.proto";
30
+ import "google/api/metric.proto";
31
+ import "google/api/monitored_resource.proto";
32
+ import "google/api/monitoring.proto";
33
+ import "google/api/quota.proto";
34
+ import "google/api/source_info.proto";
35
+ import "google/api/system_parameter.proto";
36
+ import "google/api/usage.proto";
37
+ import "google/protobuf/api.proto";
38
+ import "google/protobuf/type.proto";
39
+ import "google/protobuf/wrappers.proto";
40
+
41
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
42
+ option java_multiple_files = true;
43
+ option java_outer_classname = "ServiceProto";
44
+ option java_package = "com.google.api";
45
+ option objc_class_prefix = "GAPI";
46
+
47
+
48
+ // `Service` is the root object of Google service configuration schema. It
49
+ // describes basic information about a service, such as the name and the
50
+ // title, and delegates other aspects to sub-sections. Each sub-section is
51
+ // either a proto message or a repeated proto message that configures a
52
+ // specific aspect, such as auth. See each proto message definition for details.
53
+ //
54
+ // Example:
55
+ //
56
+ // type: google.api.Service
57
+ // config_version: 3
58
+ // name: calendar.googleapis.com
59
+ // title: Google Calendar API
60
+ // apis:
61
+ // - name: google.calendar.v3.Calendar
62
+ // authentication:
63
+ // providers:
64
+ // - id: google_calendar_auth
65
+ // jwks_uri: https://www.googleapis.com/oauth2/v1/certs
66
+ // issuer: https://securetoken.google.com
67
+ // rules:
68
+ // - selector: "*"
69
+ // requirements:
70
+ // provider_id: google_calendar_auth
71
+ message Service {
72
+ // The semantic version of the service configuration. The config version
73
+ // affects the interpretation of the service configuration. For example,
74
+ // certain features are enabled by default for certain config versions.
75
+ // The latest config version is `3`.
76
+ google.protobuf.UInt32Value config_version = 20;
77
+
78
+ // The DNS address at which this service is available,
79
+ // e.g. `calendar.googleapis.com`.
80
+ string name = 1;
81
+
82
+ // A unique ID for a specific instance of this message, typically assigned
83
+ // by the client for tracking purpose. If empty, the server may choose to
84
+ // generate one instead.
85
+ string id = 33;
86
+
87
+ // The product title for this service.
88
+ string title = 2;
89
+
90
+ // The Google project that owns this service.
91
+ string producer_project_id = 22;
92
+
93
+ // A list of API interfaces exported by this service. Only the `name` field
94
+ // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
95
+ // author, as the remaining fields will be derived from the IDL during the
96
+ // normalization process. It is an error to specify an API interface here
97
+ // which cannot be resolved against the associated IDL files.
98
+ repeated google.protobuf.Api apis = 3;
99
+
100
+ // A list of all proto message types included in this API service.
101
+ // Types referenced directly or indirectly by the `apis` are
102
+ // automatically included. Messages which are not referenced but
103
+ // shall be included, such as types used by the `google.protobuf.Any` type,
104
+ // should be listed here by name. Example:
105
+ //
106
+ // types:
107
+ // - name: google.protobuf.Int32
108
+ repeated google.protobuf.Type types = 4;
109
+
110
+ // A list of all enum types included in this API service. Enums
111
+ // referenced directly or indirectly by the `apis` are automatically
112
+ // included. Enums which are not referenced but shall be included
113
+ // should be listed here by name. Example:
114
+ //
115
+ // enums:
116
+ // - name: google.someapi.v1.SomeEnum
117
+ repeated google.protobuf.Enum enums = 5;
118
+
119
+ // Additional API documentation.
120
+ Documentation documentation = 6;
121
+
122
+ // API backend configuration.
123
+ Backend backend = 8;
124
+
125
+ // HTTP configuration.
126
+ Http http = 9;
127
+
128
+ // Quota configuration.
129
+ Quota quota = 10;
130
+
131
+ // Auth configuration.
132
+ Authentication authentication = 11;
133
+
134
+ // Context configuration.
135
+ Context context = 12;
136
+
137
+ // Configuration controlling usage of this service.
138
+ Usage usage = 15;
139
+
140
+ // Configuration for network endpoints. If this is empty, then an endpoint
141
+ // with the same name as the service is automatically generated to service all
142
+ // defined APIs.
143
+ repeated Endpoint endpoints = 18;
144
+
145
+ // Configuration for the service control plane.
146
+ Control control = 21;
147
+
148
+ // Defines the logs used by this service.
149
+ repeated LogDescriptor logs = 23;
150
+
151
+ // Defines the metrics used by this service.
152
+ repeated MetricDescriptor metrics = 24;
153
+
154
+ // Defines the monitored resources used by this service. This is required
155
+ // by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
156
+ repeated MonitoredResourceDescriptor monitored_resources = 25;
157
+
158
+ // Billing configuration.
159
+ Billing billing = 26;
160
+
161
+ // Logging configuration.
162
+ Logging logging = 27;
163
+
164
+ // Monitoring configuration.
165
+ Monitoring monitoring = 28;
166
+
167
+ // System parameter configuration.
168
+ SystemParameters system_parameters = 29;
169
+
170
+ // Output only. The source information for this configuration if available.
171
+ SourceInfo source_info = 37;
172
+
173
+ // Experimental configuration.
174
+ reserved 101;
175
+ }
@@ -0,0 +1,32 @@
1
+ // Copyright 2018 Google LLC.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.api;
18
+
19
+ import "google/protobuf/any.proto";
20
+
21
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "SourceInfoProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // Source information used to create a Service Config
29
+ message SourceInfo {
30
+ // All files used during config generation.
31
+ repeated google.protobuf.Any source_files = 1;
32
+ }