vagrant-unbundled 2.3.2.0 → 2.3.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/Gemfile.lock +12 -12
  4. data/LICENSE +1 -3
  5. data/lib/vagrant/errors.rb +4 -0
  6. data/lib/vagrant/util/install_cli_autocomplete.rb +3 -3
  7. data/lib/vagrant.rb +0 -3
  8. data/pkg/vagrant-unbundled-2.3.2.0.gem +0 -0
  9. data/plugins/commands/serve/command.rb +1 -1
  10. data/plugins/guests/solaris/cap/remove_public_key.rb +2 -2
  11. data/plugins/hosts/gentoo/host.rb +1 -1
  12. data/plugins/hosts/slackware/host.rb +1 -1
  13. data/plugins/providers/virtualbox/action/network.rb +8 -5
  14. data/plugins/providers/virtualbox/driver/base.rb +3 -1
  15. data/plugins/providers/virtualbox/driver/version_5_0.rb +40 -36
  16. data/plugins/providers/virtualbox/driver/version_7_0.rb +223 -5
  17. data/plugins/provisioners/ansible/cap/guest/debian/ansible_install.rb +1 -1
  18. data/plugins/provisioners/ansible/provisioner/host.rb +1 -1
  19. data/plugins/provisioners/chef/config/chef_zero.rb +1 -1
  20. data/plugins/synced_folders/rsync/helper.rb +1 -0
  21. data/templates/locales/en.yml +4 -0
  22. data/thirdparty/proto/api-common-protos/.bazelrc +2 -0
  23. data/thirdparty/proto/api-common-protos/.git +1 -0
  24. data/thirdparty/proto/api-common-protos/.gitignore +11 -0
  25. data/thirdparty/proto/api-common-protos/BUILD.bazel +129 -0
  26. data/thirdparty/proto/api-common-protos/CODE_OF_CONDUCT.md +43 -0
  27. data/thirdparty/proto/api-common-protos/CONTRIBUTING.md +42 -0
  28. data/thirdparty/proto/api-common-protos/Dockerfile +18 -0
  29. data/thirdparty/proto/api-common-protos/LICENSE +201 -0
  30. data/thirdparty/proto/api-common-protos/README.md +113 -0
  31. data/thirdparty/proto/api-common-protos/SECURITY.md +7 -0
  32. data/thirdparty/proto/api-common-protos/WORKSPACE +154 -0
  33. data/thirdparty/proto/api-common-protos/google/api/BUILD.bazel +246 -0
  34. data/thirdparty/proto/api-common-protos/google/api/README.md +46 -0
  35. data/thirdparty/proto/api-common-protos/google/api/annotations.proto +31 -0
  36. data/thirdparty/proto/api-common-protos/google/api/auth.proto +181 -0
  37. data/thirdparty/proto/api-common-protos/google/api/backend.proto +51 -0
  38. data/thirdparty/proto/api-common-protos/google/api/billing.proto +67 -0
  39. data/thirdparty/proto/api-common-protos/google/api/client.proto +99 -0
  40. data/thirdparty/proto/api-common-protos/google/api/config_change.proto +85 -0
  41. data/thirdparty/proto/api-common-protos/google/api/consumer.proto +83 -0
  42. data/thirdparty/proto/api-common-protos/google/api/context.proto +63 -0
  43. data/thirdparty/proto/api-common-protos/google/api/control.proto +33 -0
  44. data/thirdparty/proto/api-common-protos/google/api/distribution.proto +213 -0
  45. data/thirdparty/proto/api-common-protos/google/api/documentation.proto +157 -0
  46. data/thirdparty/proto/api-common-protos/google/api/endpoint.proto +71 -0
  47. data/thirdparty/proto/api-common-protos/google/api/field_behavior.proto +84 -0
  48. data/thirdparty/proto/api-common-protos/google/api/http.proto +318 -0
  49. data/thirdparty/proto/api-common-protos/google/api/httpbody.proto +76 -0
  50. data/thirdparty/proto/api-common-protos/google/api/label.proto +49 -0
  51. data/thirdparty/proto/api-common-protos/google/api/launch_stage.proto +67 -0
  52. data/thirdparty/proto/api-common-protos/google/api/log.proto +55 -0
  53. data/thirdparty/proto/api-common-protos/google/api/logging.proto +83 -0
  54. data/thirdparty/proto/api-common-protos/google/api/metric.proto +192 -0
  55. data/thirdparty/proto/api-common-protos/google/api/monitored_resource.proto +116 -0
  56. data/thirdparty/proto/api-common-protos/google/api/monitoring.proto +89 -0
  57. data/thirdparty/proto/api-common-protos/google/api/quota.proto +259 -0
  58. data/thirdparty/proto/api-common-protos/google/api/resource.proto +299 -0
  59. data/thirdparty/proto/api-common-protos/google/api/routing.proto +461 -0
  60. data/thirdparty/proto/api-common-protos/google/api/service.proto +175 -0
  61. data/thirdparty/proto/api-common-protos/google/api/source_info.proto +32 -0
  62. data/thirdparty/proto/api-common-protos/google/api/system_parameter.proto +96 -0
  63. data/thirdparty/proto/api-common-protos/google/api/usage.proto +92 -0
  64. data/thirdparty/proto/api-common-protos/google/cloud/extended_operations.proto +150 -0
  65. data/thirdparty/proto/api-common-protos/google/iam/README.md +14 -0
  66. data/thirdparty/proto/api-common-protos/google/iam/admin/v1/iam.proto +1087 -0
  67. data/thirdparty/proto/api-common-protos/google/iam/v1/iam_policy.proto +145 -0
  68. data/thirdparty/proto/api-common-protos/google/iam/v1/logging/audit_data.proto +34 -0
  69. data/thirdparty/proto/api-common-protos/google/iam/v1/options.proto +41 -0
  70. data/thirdparty/proto/api-common-protos/google/iam/v1/policy.proto +240 -0
  71. data/thirdparty/proto/api-common-protos/google/logging/type/README.md +12 -0
  72. data/thirdparty/proto/api-common-protos/google/logging/type/http_request.proto +92 -0
  73. data/thirdparty/proto/api-common-protos/google/logging/type/log_severity.proto +72 -0
  74. data/thirdparty/proto/api-common-protos/google/longrunning/README.md +31 -0
  75. data/thirdparty/proto/api-common-protos/google/longrunning/operations.proto +247 -0
  76. data/thirdparty/proto/api-common-protos/google/rpc/README.md +18 -0
  77. data/thirdparty/proto/api-common-protos/google/rpc/code.proto +186 -0
  78. data/thirdparty/proto/api-common-protos/google/rpc/context/attribute_context.proto +287 -0
  79. data/thirdparty/proto/api-common-protos/google/rpc/error_details.proto +246 -0
  80. data/thirdparty/proto/api-common-protos/google/rpc/status.proto +47 -0
  81. data/thirdparty/proto/api-common-protos/google/type/README.md +7 -0
  82. data/thirdparty/proto/api-common-protos/google/type/calendar_period.proto +57 -0
  83. data/thirdparty/proto/api-common-protos/google/type/color.proto +170 -0
  84. data/thirdparty/proto/api-common-protos/google/type/date.proto +50 -0
  85. data/thirdparty/proto/api-common-protos/google/type/datetime.proto +97 -0
  86. data/thirdparty/proto/api-common-protos/google/type/dayofweek.proto +51 -0
  87. data/thirdparty/proto/api-common-protos/google/type/expr.proto +51 -0
  88. data/thirdparty/proto/api-common-protos/google/type/fraction.proto +34 -0
  89. data/thirdparty/proto/api-common-protos/google/type/latlng.proto +37 -0
  90. data/thirdparty/proto/api-common-protos/google/type/money.proto +43 -0
  91. data/thirdparty/proto/api-common-protos/google/type/month.proto +66 -0
  92. data/thirdparty/proto/api-common-protos/google/type/postal_address.proto +135 -0
  93. data/thirdparty/proto/api-common-protos/google/type/quaternion.proto +95 -0
  94. data/thirdparty/proto/api-common-protos/google/type/timeofday.proto +44 -0
  95. data/thirdparty/proto/api-common-protos/renovate.json +5 -0
  96. data/thirdparty/proto/api-common-protos/repository_rules.bzl +222 -0
  97. data/vagrant.gemspec +4 -4
  98. data/version.txt +1 -1
  99. metadata +89 -20
  100. data/lib/vagrant/patches/net-ssh.rb +0 -286
@@ -0,0 +1,318 @@
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
+ option cc_enable_arenas = true;
20
+ option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "HttpProto";
23
+ option java_package = "com.google.api";
24
+ option objc_class_prefix = "GAPI";
25
+
26
+
27
+ // Defines the HTTP configuration for an API service. It contains a list of
28
+ // [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
29
+ // to one or more HTTP REST API methods.
30
+ message Http {
31
+ // A list of HTTP configuration rules that apply to individual API methods.
32
+ //
33
+ // **NOTE:** All service configuration rules follow "last one wins" order.
34
+ repeated HttpRule rules = 1;
35
+
36
+ // When set to true, URL path parmeters will be fully URI-decoded except in
37
+ // cases of single segment matches in reserved expansion, where "%2F" will be
38
+ // left encoded.
39
+ //
40
+ // The default behavior is to not decode RFC 6570 reserved characters in multi
41
+ // segment matches.
42
+ bool fully_decode_reserved_expansion = 2;
43
+ }
44
+
45
+ // `HttpRule` defines the mapping of an RPC method to one or more HTTP
46
+ // REST API methods. The mapping specifies how different portions of the RPC
47
+ // request message are mapped to URL path, URL query parameters, and
48
+ // HTTP request body. The mapping is typically specified as an
49
+ // `google.api.http` annotation on the RPC method,
50
+ // see "google/api/annotations.proto" for details.
51
+ //
52
+ // The mapping consists of a field specifying the path template and
53
+ // method kind. The path template can refer to fields in the request
54
+ // message, as in the example below which describes a REST GET
55
+ // operation on a resource collection of messages:
56
+ //
57
+ //
58
+ // service Messaging {
59
+ // rpc GetMessage(GetMessageRequest) returns (Message) {
60
+ // option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
61
+ // }
62
+ // }
63
+ // message GetMessageRequest {
64
+ // message SubMessage {
65
+ // string subfield = 1;
66
+ // }
67
+ // string message_id = 1; // mapped to the URL
68
+ // SubMessage sub = 2; // `sub.subfield` is url-mapped
69
+ // }
70
+ // message Message {
71
+ // string text = 1; // content of the resource
72
+ // }
73
+ //
74
+ // The same http annotation can alternatively be expressed inside the
75
+ // `GRPC API Configuration` YAML file.
76
+ //
77
+ // http:
78
+ // rules:
79
+ // - selector: <proto_package_name>.Messaging.GetMessage
80
+ // get: /v1/messages/{message_id}/{sub.subfield}
81
+ //
82
+ // This definition enables an automatic, bidrectional mapping of HTTP
83
+ // JSON to RPC. Example:
84
+ //
85
+ // HTTP | RPC
86
+ // -----|-----
87
+ // `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
88
+ //
89
+ // In general, not only fields but also field paths can be referenced
90
+ // from a path pattern. Fields mapped to the path pattern cannot be
91
+ // repeated and must have a primitive (non-message) type.
92
+ //
93
+ // Any fields in the request message which are not bound by the path
94
+ // pattern automatically become (optional) HTTP query
95
+ // parameters. Assume the following definition of the request message:
96
+ //
97
+ //
98
+ // service Messaging {
99
+ // rpc GetMessage(GetMessageRequest) returns (Message) {
100
+ // option (google.api.http).get = "/v1/messages/{message_id}";
101
+ // }
102
+ // }
103
+ // message GetMessageRequest {
104
+ // message SubMessage {
105
+ // string subfield = 1;
106
+ // }
107
+ // string message_id = 1; // mapped to the URL
108
+ // int64 revision = 2; // becomes a parameter
109
+ // SubMessage sub = 3; // `sub.subfield` becomes a parameter
110
+ // }
111
+ //
112
+ //
113
+ // This enables a HTTP JSON to RPC mapping as below:
114
+ //
115
+ // HTTP | RPC
116
+ // -----|-----
117
+ // `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
118
+ //
119
+ // Note that fields which are mapped to HTTP parameters must have a
120
+ // primitive type or a repeated primitive type. Message types are not
121
+ // allowed. In the case of a repeated type, the parameter can be
122
+ // repeated in the URL, as in `...?param=A&param=B`.
123
+ //
124
+ // For HTTP method kinds which allow a request body, the `body` field
125
+ // specifies the mapping. Consider a REST update method on the
126
+ // message resource collection:
127
+ //
128
+ //
129
+ // service Messaging {
130
+ // rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
131
+ // option (google.api.http) = {
132
+ // put: "/v1/messages/{message_id}"
133
+ // body: "message"
134
+ // };
135
+ // }
136
+ // }
137
+ // message UpdateMessageRequest {
138
+ // string message_id = 1; // mapped to the URL
139
+ // Message message = 2; // mapped to the body
140
+ // }
141
+ //
142
+ //
143
+ // The following HTTP JSON to RPC mapping is enabled, where the
144
+ // representation of the JSON in the request body is determined by
145
+ // protos JSON encoding:
146
+ //
147
+ // HTTP | RPC
148
+ // -----|-----
149
+ // `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
150
+ //
151
+ // The special name `*` can be used in the body mapping to define that
152
+ // every field not bound by the path template should be mapped to the
153
+ // request body. This enables the following alternative definition of
154
+ // the update method:
155
+ //
156
+ // service Messaging {
157
+ // rpc UpdateMessage(Message) returns (Message) {
158
+ // option (google.api.http) = {
159
+ // put: "/v1/messages/{message_id}"
160
+ // body: "*"
161
+ // };
162
+ // }
163
+ // }
164
+ // message Message {
165
+ // string message_id = 1;
166
+ // string text = 2;
167
+ // }
168
+ //
169
+ //
170
+ // The following HTTP JSON to RPC mapping is enabled:
171
+ //
172
+ // HTTP | RPC
173
+ // -----|-----
174
+ // `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
175
+ //
176
+ // Note that when using `*` in the body mapping, it is not possible to
177
+ // have HTTP parameters, as all fields not bound by the path end in
178
+ // the body. This makes this option more rarely used in practice of
179
+ // defining REST APIs. The common usage of `*` is in custom methods
180
+ // which don't use the URL at all for transferring data.
181
+ //
182
+ // It is possible to define multiple HTTP methods for one RPC by using
183
+ // the `additional_bindings` option. Example:
184
+ //
185
+ // service Messaging {
186
+ // rpc GetMessage(GetMessageRequest) returns (Message) {
187
+ // option (google.api.http) = {
188
+ // get: "/v1/messages/{message_id}"
189
+ // additional_bindings {
190
+ // get: "/v1/users/{user_id}/messages/{message_id}"
191
+ // }
192
+ // };
193
+ // }
194
+ // }
195
+ // message GetMessageRequest {
196
+ // string message_id = 1;
197
+ // string user_id = 2;
198
+ // }
199
+ //
200
+ //
201
+ // This enables the following two alternative HTTP JSON to RPC
202
+ // mappings:
203
+ //
204
+ // HTTP | RPC
205
+ // -----|-----
206
+ // `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
207
+ // `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
208
+ //
209
+ // # Rules for HTTP mapping
210
+ //
211
+ // The rules for mapping HTTP path, query parameters, and body fields
212
+ // to the request message are as follows:
213
+ //
214
+ // 1. The `body` field specifies either `*` or a field path, or is
215
+ // omitted. If omitted, it indicates there is no HTTP request body.
216
+ // 2. Leaf fields (recursive expansion of nested messages in the
217
+ // request) can be classified into three types:
218
+ // (a) Matched in the URL template.
219
+ // (b) Covered by body (if body is `*`, everything except (a) fields;
220
+ // else everything under the body field)
221
+ // (c) All other fields.
222
+ // 3. URL query parameters found in the HTTP request are mapped to (c) fields.
223
+ // 4. Any body sent with an HTTP request can contain only (b) fields.
224
+ //
225
+ // The syntax of the path template is as follows:
226
+ //
227
+ // Template = "/" Segments [ Verb ] ;
228
+ // Segments = Segment { "/" Segment } ;
229
+ // Segment = "*" | "**" | LITERAL | Variable ;
230
+ // Variable = "{" FieldPath [ "=" Segments ] "}" ;
231
+ // FieldPath = IDENT { "." IDENT } ;
232
+ // Verb = ":" LITERAL ;
233
+ //
234
+ // The syntax `*` matches a single path segment. The syntax `**` matches zero
235
+ // or more path segments, which must be the last part of the path except the
236
+ // `Verb`. The syntax `LITERAL` matches literal text in the path.
237
+ //
238
+ // The syntax `Variable` matches part of the URL path as specified by its
239
+ // template. A variable template must not contain other variables. If a variable
240
+ // matches a single path segment, its template may be omitted, e.g. `{var}`
241
+ // is equivalent to `{var=*}`.
242
+ //
243
+ // If a variable contains exactly one path segment, such as `"{var}"` or
244
+ // `"{var=*}"`, when such a variable is expanded into a URL path, all characters
245
+ // except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
246
+ // Discovery Document as `{var}`.
247
+ //
248
+ // If a variable contains one or more path segments, such as `"{var=foo/*}"`
249
+ // or `"{var=**}"`, when such a variable is expanded into a URL path, all
250
+ // characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
251
+ // show up in the Discovery Document as `{+var}`.
252
+ //
253
+ // NOTE: While the single segment variable matches the semantics of
254
+ // [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
255
+ // Simple String Expansion, the multi segment variable **does not** match
256
+ // RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
257
+ // does not expand special characters like `?` and `#`, which would lead
258
+ // to invalid URLs.
259
+ //
260
+ // NOTE: the field paths in variables and in the `body` must not refer to
261
+ // repeated fields or map fields.
262
+ message HttpRule {
263
+ // Selects methods to which this rule applies.
264
+ //
265
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
266
+ string selector = 1;
267
+
268
+ // Determines the URL pattern is matched by this rules. This pattern can be
269
+ // used with any of the {get|put|post|delete|patch} methods. A custom method
270
+ // can be defined using the 'custom' field.
271
+ oneof pattern {
272
+ // Used for listing and getting information about resources.
273
+ string get = 2;
274
+
275
+ // Used for updating a resource.
276
+ string put = 3;
277
+
278
+ // Used for creating a resource.
279
+ string post = 4;
280
+
281
+ // Used for deleting a resource.
282
+ string delete = 5;
283
+
284
+ // Used for updating a resource.
285
+ string patch = 6;
286
+
287
+ // The custom pattern is used for specifying an HTTP method that is not
288
+ // included in the `pattern` field, such as HEAD, or "*" to leave the
289
+ // HTTP method unspecified for this rule. The wild-card rule is useful
290
+ // for services that provide content to Web (HTML) clients.
291
+ CustomHttpPattern custom = 8;
292
+ }
293
+
294
+ // The name of the request field whose value is mapped to the HTTP body, or
295
+ // `*` for mapping all fields not captured by the path pattern to the HTTP
296
+ // body. NOTE: the referred field must not be a repeated field and must be
297
+ // present at the top-level of request message type.
298
+ string body = 7;
299
+
300
+ // Optional. The name of the response field whose value is mapped to the HTTP
301
+ // body of response. Other response fields are ignored. When
302
+ // not set, the response message will be used as HTTP body of response.
303
+ string response_body = 12;
304
+
305
+ // Additional HTTP bindings for the selector. Nested bindings must
306
+ // not contain an `additional_bindings` field themselves (that is,
307
+ // the nesting may only be one level deep).
308
+ repeated HttpRule additional_bindings = 11;
309
+ }
310
+
311
+ // A custom pattern is used for defining custom HTTP verb.
312
+ message CustomHttpPattern {
313
+ // The name of this custom HTTP verb.
314
+ string kind = 1;
315
+
316
+ // The path matched by this custom verb.
317
+ string path = 2;
318
+ }
@@ -0,0 +1,76 @@
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/httpbody;httpbody";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "HttpBodyProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // Message that represents an arbitrary HTTP body. It should only be used for
29
+ // payload formats that can't be represented as JSON, such as raw binary or
30
+ // an HTML page.
31
+ //
32
+ //
33
+ // This message can be used both in streaming and non-streaming API methods in
34
+ // the request as well as the response.
35
+ //
36
+ // It can be used as a top-level request field, which is convenient if one
37
+ // wants to extract parameters from either the URL or HTTP template into the
38
+ // request fields and also want access to the raw HTTP body.
39
+ //
40
+ // Example:
41
+ //
42
+ // message GetResourceRequest {
43
+ // // A unique request id.
44
+ // string request_id = 1;
45
+ //
46
+ // // The raw HTTP body is bound to this field.
47
+ // google.api.HttpBody http_body = 2;
48
+ // }
49
+ //
50
+ // service ResourceService {
51
+ // rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
52
+ // rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
53
+ // }
54
+ //
55
+ // Example with streaming methods:
56
+ //
57
+ // service CaldavService {
58
+ // rpc GetCalendar(stream google.api.HttpBody)
59
+ // returns (stream google.api.HttpBody);
60
+ // rpc UpdateCalendar(stream google.api.HttpBody)
61
+ // returns (stream google.api.HttpBody);
62
+ // }
63
+ //
64
+ // Use of this type only changes how the request and response bodies are
65
+ // handled, all other features will continue to work unchanged.
66
+ message HttpBody {
67
+ // The HTTP Content-Type string representing the content type of the body.
68
+ string content_type = 1;
69
+
70
+ // HTTP body binary data.
71
+ bytes data = 2;
72
+
73
+ // Application specific response metadata. Must be set in the first response
74
+ // for streaming APIs.
75
+ repeated google.protobuf.Any extensions = 3;
76
+ }
@@ -0,0 +1,49 @@
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
+ option cc_enable_arenas = true;
20
+ option go_package = "google.golang.org/genproto/googleapis/api/label;label";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "LabelProto";
23
+ option java_package = "com.google.api";
24
+ option objc_class_prefix = "GAPI";
25
+
26
+
27
+ // A description of a label.
28
+ message LabelDescriptor {
29
+ // Value types that can be used as label values.
30
+ enum ValueType {
31
+ // A variable-length string. This is the default.
32
+ STRING = 0;
33
+
34
+ // Boolean; true or false.
35
+ BOOL = 1;
36
+
37
+ // A 64-bit signed integer.
38
+ INT64 = 2;
39
+ }
40
+
41
+ // The label key.
42
+ string key = 1;
43
+
44
+ // The type of data that can be assigned to the label.
45
+ ValueType value_type = 2;
46
+
47
+ // A human-readable description for the label.
48
+ string description = 3;
49
+ }
@@ -0,0 +1,67 @@
1
+ // Copyright 2019 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
+
16
+ syntax = "proto3";
17
+
18
+ package google.api;
19
+
20
+ option go_package = "google.golang.org/genproto/googleapis/api;api";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "LaunchStageProto";
23
+ option java_package = "com.google.api";
24
+ option objc_class_prefix = "GAPI";
25
+
26
+ // The launch stage as defined by [Google Cloud Platform
27
+ // Launch Stages](http://cloud.google.com/terms/launch-stages).
28
+ enum LaunchStage {
29
+ // Do not use this default value.
30
+ LAUNCH_STAGE_UNSPECIFIED = 0;
31
+
32
+ // Early Access features are limited to a closed group of testers. To use
33
+ // these features, you must sign up in advance and sign a Trusted Tester
34
+ // agreement (which includes confidentiality provisions). These features may
35
+ // be unstable, changed in backward-incompatible ways, and are not
36
+ // guaranteed to be released.
37
+ EARLY_ACCESS = 1;
38
+
39
+ // Alpha is a limited availability test for releases before they are cleared
40
+ // for widespread use. By Alpha, all significant design issues are resolved
41
+ // and we are in the process of verifying functionality. Alpha customers
42
+ // need to apply for access, agree to applicable terms, and have their
43
+ // projects whitelisted. Alpha releases don’t have to be feature complete,
44
+ // no SLAs are provided, and there are no technical support obligations, but
45
+ // they will be far enough along that customers can actually use them in
46
+ // test environments or for limited-use tests -- just like they would in
47
+ // normal production cases.
48
+ ALPHA = 2;
49
+
50
+ // Beta is the point at which we are ready to open a release for any
51
+ // customer to use. There are no SLA or technical support obligations in a
52
+ // Beta release. Products will be complete from a feature perspective, but
53
+ // may have some open outstanding issues. Beta releases are suitable for
54
+ // limited production use cases.
55
+ BETA = 3;
56
+
57
+ // GA features are open to all developers and are considered stable and
58
+ // fully qualified for production use.
59
+ GA = 4;
60
+
61
+ // Deprecated features are scheduled to be shut down and removed. For more
62
+ // information, see the “Deprecation Policy” section of our [Terms of
63
+ // Service](https://cloud.google.com/terms/)
64
+ // and the [Google Cloud Platform Subject to the Deprecation
65
+ // Policy](https://cloud.google.com/terms/deprecation) documentation.
66
+ DEPRECATED = 5;
67
+ }
@@ -0,0 +1,55 @@
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/api/label.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 = "LogProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // A description of a log type. Example in YAML format:
29
+ //
30
+ // - name: library.googleapis.com/activity_history
31
+ // description: The history of borrowing and returning library items.
32
+ // display_name: Activity
33
+ // labels:
34
+ // - key: /customer_id
35
+ // description: Identifier of a library customer
36
+ message LogDescriptor {
37
+ // The name of the log. It must be less than 512 characters long and can
38
+ // include the following characters: upper- and lower-case alphanumeric
39
+ // characters [A-Za-z0-9], and punctuation characters including
40
+ // slash, underscore, hyphen, period [/_-.].
41
+ string name = 1;
42
+
43
+ // The set of labels that are available to describe a specific log entry.
44
+ // Runtime requests that contain labels not specified here are
45
+ // considered invalid.
46
+ repeated LabelDescriptor labels = 2;
47
+
48
+ // A human-readable description of this log. This information appears in
49
+ // the documentation and can contain details.
50
+ string description = 3;
51
+
52
+ // The human-readable name for this log. This information appears on
53
+ // the user interface and should be concise.
54
+ string display_name = 4;
55
+ }
@@ -0,0 +1,83 @@
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/api/annotations.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 = "LoggingProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // Logging configuration of the service.
29
+ //
30
+ // The following example shows how to configure logs to be sent to the
31
+ // producer and consumer projects. In the example, the `activity_history`
32
+ // log is sent to both the producer and consumer projects, whereas the
33
+ // `purchase_history` log is only sent to the producer project.
34
+ //
35
+ // monitored_resources:
36
+ // - type: library.googleapis.com/branch
37
+ // labels:
38
+ // - key: /city
39
+ // description: The city where the library branch is located in.
40
+ // - key: /name
41
+ // description: The name of the branch.
42
+ // logs:
43
+ // - name: activity_history
44
+ // labels:
45
+ // - key: /customer_id
46
+ // - name: purchase_history
47
+ // logging:
48
+ // producer_destinations:
49
+ // - monitored_resource: library.googleapis.com/branch
50
+ // logs:
51
+ // - activity_history
52
+ // - purchase_history
53
+ // consumer_destinations:
54
+ // - monitored_resource: library.googleapis.com/branch
55
+ // logs:
56
+ // - activity_history
57
+ message Logging {
58
+ // Configuration of a specific logging destination (the producer project
59
+ // or the consumer project).
60
+ message LoggingDestination {
61
+ // The monitored resource type. The type must be defined in the
62
+ // [Service.monitored_resources][google.api.Service.monitored_resources] section.
63
+ string monitored_resource = 3;
64
+
65
+ // Names of the logs to be sent to this destination. Each name must
66
+ // be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
67
+ // not a domain scoped name, it will be automatically prefixed with
68
+ // the service name followed by "/".
69
+ repeated string logs = 1;
70
+ }
71
+
72
+ // Logging configurations for sending logs to the producer project.
73
+ // There can be multiple producer destinations, each one must have a
74
+ // different monitored resource type. A log can be used in at most
75
+ // one producer destination.
76
+ repeated LoggingDestination producer_destinations = 1;
77
+
78
+ // Logging configurations for sending logs to the consumer project.
79
+ // There can be multiple consumer destinations, each one must have a
80
+ // different monitored resource type. A log can be used in at most
81
+ // one consumer destination.
82
+ repeated LoggingDestination consumer_destinations = 2;
83
+ }