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,213 @@
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
+ import "google/protobuf/any.proto";
21
+ import "google/protobuf/timestamp.proto";
22
+
23
+ option go_package = "google.golang.org/genproto/googleapis/api/distribution;distribution";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "DistributionProto";
26
+ option java_package = "com.google.api";
27
+ option objc_class_prefix = "GAPI";
28
+
29
+
30
+ // `Distribution` contains summary statistics for a population of values. It
31
+ // optionally contains a histogram representing the distribution of those values
32
+ // across a set of buckets.
33
+ //
34
+ // The summary statistics are the count, mean, sum of the squared deviation from
35
+ // the mean, the minimum, and the maximum of the set of population of values.
36
+ // The histogram is based on a sequence of buckets and gives a count of values
37
+ // that fall into each bucket. The boundaries of the buckets are given either
38
+ // explicitly or by formulas for buckets of fixed or exponentially increasing
39
+ // widths.
40
+ //
41
+ // Although it is not forbidden, it is generally a bad idea to include
42
+ // non-finite values (infinities or NaNs) in the population of values, as this
43
+ // will render the `mean` and `sum_of_squared_deviation` fields meaningless.
44
+ message Distribution {
45
+ // The range of the population values.
46
+ message Range {
47
+ // The minimum of the population values.
48
+ double min = 1;
49
+
50
+ // The maximum of the population values.
51
+ double max = 2;
52
+ }
53
+
54
+ // `BucketOptions` describes the bucket boundaries used to create a histogram
55
+ // for the distribution. The buckets can be in a linear sequence, an
56
+ // exponential sequence, or each bucket can be specified explicitly.
57
+ // `BucketOptions` does not include the number of values in each bucket.
58
+ //
59
+ // A bucket has an inclusive lower bound and exclusive upper bound for the
60
+ // values that are counted for that bucket. The upper bound of a bucket must
61
+ // be strictly greater than the lower bound. The sequence of N buckets for a
62
+ // distribution consists of an underflow bucket (number 0), zero or more
63
+ // finite buckets (number 1 through N - 2) and an overflow bucket (number N -
64
+ // 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
65
+ // same as the upper bound of bucket i - 1. The buckets span the whole range
66
+ // of finite values: lower bound of the underflow bucket is -infinity and the
67
+ // upper bound of the overflow bucket is +infinity. The finite buckets are
68
+ // so-called because both bounds are finite.
69
+ message BucketOptions {
70
+ // Specifies a linear sequence of buckets that all have the same width
71
+ // (except overflow and underflow). Each bucket represents a constant
72
+ // absolute uncertainty on the specific value in the bucket.
73
+ //
74
+ // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
75
+ // following boundaries:
76
+ //
77
+ // Upper bound (0 <= i < N-1): offset + (width * i).
78
+ // Lower bound (1 <= i < N): offset + (width * (i - 1)).
79
+ message Linear {
80
+ // Must be greater than 0.
81
+ int32 num_finite_buckets = 1;
82
+
83
+ // Must be greater than 0.
84
+ double width = 2;
85
+
86
+ // Lower bound of the first bucket.
87
+ double offset = 3;
88
+ }
89
+
90
+ // Specifies an exponential sequence of buckets that have a width that is
91
+ // proportional to the value of the lower bound. Each bucket represents a
92
+ // constant relative uncertainty on a specific value in the bucket.
93
+ //
94
+ // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
95
+ // following boundaries:
96
+ //
97
+ // Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
98
+ // Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
99
+ message Exponential {
100
+ // Must be greater than 0.
101
+ int32 num_finite_buckets = 1;
102
+
103
+ // Must be greater than 1.
104
+ double growth_factor = 2;
105
+
106
+ // Must be greater than 0.
107
+ double scale = 3;
108
+ }
109
+
110
+ // Specifies a set of buckets with arbitrary widths.
111
+ //
112
+ // There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
113
+ // boundaries:
114
+ //
115
+ // Upper bound (0 <= i < N-1): bounds[i]
116
+ // Lower bound (1 <= i < N); bounds[i - 1]
117
+ //
118
+ // The `bounds` field must contain at least one element. If `bounds` has
119
+ // only one element, then there are no finite buckets, and that single
120
+ // element is the common boundary of the overflow and underflow buckets.
121
+ message Explicit {
122
+ // The values must be monotonically increasing.
123
+ repeated double bounds = 1;
124
+ }
125
+
126
+ // Exactly one of these three fields must be set.
127
+ oneof options {
128
+ // The linear bucket.
129
+ Linear linear_buckets = 1;
130
+
131
+ // The exponential buckets.
132
+ Exponential exponential_buckets = 2;
133
+
134
+ // The explicit buckets.
135
+ Explicit explicit_buckets = 3;
136
+ }
137
+ }
138
+
139
+ // Exemplars are example points that may be used to annotate aggregated
140
+ // distribution values. They are metadata that gives information about a
141
+ // particular value added to a Distribution bucket, such as a trace ID that
142
+ // was active when a value was added. They may contain further information,
143
+ // such as a example values and timestamps, origin, etc.
144
+ message Exemplar {
145
+ // Value of the exemplar point. This value determines to which bucket the
146
+ // exemplar belongs.
147
+ double value = 1;
148
+
149
+ // The observation (sampling) time of the above value.
150
+ google.protobuf.Timestamp timestamp = 2;
151
+
152
+ // Contextual information about the example value. Examples are:
153
+ //
154
+ // Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace
155
+ //
156
+ // Literal string: type.googleapis.com/google.protobuf.StringValue
157
+ //
158
+ // Labels dropped during aggregation:
159
+ // type.googleapis.com/google.monitoring.v3.DroppedLabels
160
+ //
161
+ // There may be only a single attachment of any given message type in a
162
+ // single exemplar, and this is enforced by the system.
163
+ repeated google.protobuf.Any attachments = 3;
164
+ }
165
+
166
+ // The number of values in the population. Must be non-negative. This value
167
+ // must equal the sum of the values in `bucket_counts` if a histogram is
168
+ // provided.
169
+ int64 count = 1;
170
+
171
+ // The arithmetic mean of the values in the population. If `count` is zero
172
+ // then this field must be zero.
173
+ double mean = 2;
174
+
175
+ // The sum of squared deviations from the mean of the values in the
176
+ // population. For values x_i this is:
177
+ //
178
+ // Sum[i=1..n]((x_i - mean)^2)
179
+ //
180
+ // Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
181
+ // describes Welford's method for accumulating this sum in one pass.
182
+ //
183
+ // If `count` is zero then this field must be zero.
184
+ double sum_of_squared_deviation = 3;
185
+
186
+ // If specified, contains the range of the population values. The field
187
+ // must not be present if the `count` is zero.
188
+ Range range = 4;
189
+
190
+ // Defines the histogram bucket boundaries. If the distribution does not
191
+ // contain a histogram, then omit this field.
192
+ BucketOptions bucket_options = 6;
193
+
194
+ // The number of values in each bucket of the histogram, as described in
195
+ // `bucket_options`. If the distribution does not have a histogram, then omit
196
+ // this field. If there is a histogram, then the sum of the values in
197
+ // `bucket_counts` must equal the value in the `count` field of the
198
+ // distribution.
199
+ //
200
+ // If present, `bucket_counts` should contain N values, where N is the number
201
+ // of buckets specified in `bucket_options`. If you supply fewer than N
202
+ // values, the remaining values are assumed to be 0.
203
+ //
204
+ // The order of the values in `bucket_counts` follows the bucket numbering
205
+ // schemes described for the three bucket types. The first value must be the
206
+ // count for the underflow bucket (number 0). The next N-2 values are the
207
+ // counts for the finite buckets (number 1 through N-2). The N'th value in
208
+ // `bucket_counts` is the count for the overflow bucket (number N-1).
209
+ repeated int64 bucket_counts = 7;
210
+
211
+ // Must be in increasing order of `value` field.
212
+ repeated Exemplar exemplars = 10;
213
+ }
@@ -0,0 +1,157 @@
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 go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "DocumentationProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+
26
+ // `Documentation` provides the information for describing a service.
27
+ //
28
+ // Example:
29
+ // <pre><code>documentation:
30
+ // summary: >
31
+ // The Google Calendar API gives access
32
+ // to most calendar features.
33
+ // pages:
34
+ // - name: Overview
35
+ // content: &#40;== include google/foo/overview.md ==&#41;
36
+ // - name: Tutorial
37
+ // content: &#40;== include google/foo/tutorial.md ==&#41;
38
+ // subpages;
39
+ // - name: Java
40
+ // content: &#40;== include google/foo/tutorial_java.md ==&#41;
41
+ // rules:
42
+ // - selector: google.calendar.Calendar.Get
43
+ // description: >
44
+ // ...
45
+ // - selector: google.calendar.Calendar.Put
46
+ // description: >
47
+ // ...
48
+ // </code></pre>
49
+ // Documentation is provided in markdown syntax. In addition to
50
+ // standard markdown features, definition lists, tables and fenced
51
+ // code blocks are supported. Section headers can be provided and are
52
+ // interpreted relative to the section nesting of the context where
53
+ // a documentation fragment is embedded.
54
+ //
55
+ // Documentation from the IDL is merged with documentation defined
56
+ // via the config at normalization time, where documentation provided
57
+ // by config rules overrides IDL provided.
58
+ //
59
+ // A number of constructs specific to the API platform are supported
60
+ // in documentation text.
61
+ //
62
+ // In order to reference a proto element, the following
63
+ // notation can be used:
64
+ // <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
65
+ // To override the display text used for the link, this can be used:
66
+ // <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
67
+ // Text can be excluded from doc using the following notation:
68
+ // <pre><code>&#40;-- internal comment --&#41;</code></pre>
69
+ //
70
+ // A few directives are available in documentation. Note that
71
+ // directives must appear on a single line to be properly
72
+ // identified. The `include` directive includes a markdown file from
73
+ // an external source:
74
+ // <pre><code>&#40;== include path/to/file ==&#41;</code></pre>
75
+ // The `resource_for` directive marks a message to be the resource of
76
+ // a collection in REST view. If it is not specified, tools attempt
77
+ // to infer the resource from the operations in a collection:
78
+ // <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre>
79
+ // The directive `suppress_warning` does not directly affect documentation
80
+ // and is documented together with service config validation.
81
+ message Documentation {
82
+ // A short summary of what the service does. Can only be provided by
83
+ // plain text.
84
+ string summary = 1;
85
+
86
+ // The top level pages for the documentation set.
87
+ repeated Page pages = 5;
88
+
89
+ // A list of documentation rules that apply to individual API elements.
90
+ //
91
+ // **NOTE:** All service configuration rules follow "last one wins" order.
92
+ repeated DocumentationRule rules = 3;
93
+
94
+ // The URL to the root of documentation.
95
+ string documentation_root_url = 4;
96
+
97
+ // Declares a single overview page. For example:
98
+ // <pre><code>documentation:
99
+ // summary: ...
100
+ // overview: &#40;== include overview.md ==&#41;
101
+ // </code></pre>
102
+ // This is a shortcut for the following declaration (using pages style):
103
+ // <pre><code>documentation:
104
+ // summary: ...
105
+ // pages:
106
+ // - name: Overview
107
+ // content: &#40;== include overview.md ==&#41;
108
+ // </code></pre>
109
+ // Note: you cannot specify both `overview` field and `pages` field.
110
+ string overview = 2;
111
+ }
112
+
113
+ // A documentation rule provides information about individual API elements.
114
+ message DocumentationRule {
115
+ // The selector is a comma-separated list of patterns. Each pattern is a
116
+ // qualified name of the element which may end in "*", indicating a wildcard.
117
+ // Wildcards are only allowed at the end and for a whole component of the
118
+ // qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To
119
+ // specify a default for all applicable elements, the whole pattern "*"
120
+ // is used.
121
+ string selector = 1;
122
+
123
+ // Description of the selected API(s).
124
+ string description = 2;
125
+
126
+ // Deprecation description of the selected element(s). It can be provided if an
127
+ // element is marked as `deprecated`.
128
+ string deprecation_description = 3;
129
+ }
130
+
131
+ // Represents a documentation page. A page can contain subpages to represent
132
+ // nested documentation set structure.
133
+ message Page {
134
+ // The name of the page. It will be used as an identity of the page to
135
+ // generate URI of the page, text of the link to this page in navigation,
136
+ // etc. The full page name (start from the root page name to this page
137
+ // concatenated with `.`) can be used as reference to the page in your
138
+ // documentation. For example:
139
+ // <pre><code>pages:
140
+ // - name: Tutorial
141
+ // content: &#40;== include tutorial.md ==&#41;
142
+ // subpages:
143
+ // - name: Java
144
+ // content: &#40;== include tutorial_java.md ==&#41;
145
+ // </code></pre>
146
+ // You can reference `Java` page using Markdown reference link syntax:
147
+ // `[Java][Tutorial.Java]`.
148
+ string name = 1;
149
+
150
+ // The Markdown content of the page. You can use <code>&#40;== include {path} ==&#41;</code>
151
+ // to include content from a Markdown file.
152
+ string content = 2;
153
+
154
+ // Subpages of this page. The order of subpages specified here will be
155
+ // honored in the generated docset.
156
+ repeated Page subpages = 3;
157
+ }
@@ -0,0 +1,71 @@
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 = "EndpointProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // `Endpoint` describes a network endpoint that serves a set of APIs.
29
+ // A service may expose any number of endpoints, and all endpoints share the
30
+ // same service configuration, such as quota configuration and monitoring
31
+ // configuration.
32
+ //
33
+ // Example service configuration:
34
+ //
35
+ // name: library-example.googleapis.com
36
+ // endpoints:
37
+ // # Below entry makes 'google.example.library.v1.Library'
38
+ // # API be served from endpoint address library-example.googleapis.com.
39
+ // # It also allows HTTP OPTIONS calls to be passed to the backend, for
40
+ // # it to decide whether the subsequent cross-origin request is
41
+ // # allowed to proceed.
42
+ // - name: library-example.googleapis.com
43
+ // allow_cors: true
44
+ message Endpoint {
45
+ // The canonical name of this endpoint.
46
+ string name = 1;
47
+
48
+ // DEPRECATED: This field is no longer supported. Instead of using aliases,
49
+ // please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended
50
+ // aliases.
51
+ //
52
+ // Additional names that this endpoint will be hosted on.
53
+ repeated string aliases = 2;
54
+
55
+ // The list of features enabled on this endpoint.
56
+ repeated string features = 4;
57
+
58
+ // The specification of an Internet routable address of API frontend that will
59
+ // handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary).
60
+ // It should be either a valid IPv4 address or a fully-qualified domain name.
61
+ // For example, "8.8.8.8" or "myservice.appspot.com".
62
+ string target = 101;
63
+
64
+ // Allowing
65
+ // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
66
+ // cross-domain traffic, would allow the backends served from this endpoint to
67
+ // receive and respond to HTTP OPTIONS requests. The response will be used by
68
+ // the browser to determine whether the subsequent cross-origin request is
69
+ // allowed to proceed.
70
+ bool allow_cors = 5;
71
+ }
@@ -0,0 +1,84 @@
1
+ // Copyright 2020 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 = "FieldBehaviorProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+ extend google.protobuf.FieldOptions {
28
+ // A designation of a specific field behavior (required, output only, etc.)
29
+ // in protobuf messages.
30
+ //
31
+ // Examples:
32
+ //
33
+ // string name = 1 [(google.api.field_behavior) = REQUIRED];
34
+ // State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
35
+ // google.protobuf.Duration ttl = 1
36
+ // [(google.api.field_behavior) = INPUT_ONLY];
37
+ // google.protobuf.Timestamp expire_time = 1
38
+ // [(google.api.field_behavior) = OUTPUT_ONLY,
39
+ // (google.api.field_behavior) = IMMUTABLE];
40
+ repeated google.api.FieldBehavior field_behavior = 1052;
41
+ }
42
+
43
+ // An indicator of the behavior of a given field (for example, that a field
44
+ // is required in requests, or given as output but ignored as input).
45
+ // This **does not** change the behavior in protocol buffers itself; it only
46
+ // denotes the behavior and may affect how API tooling handles the field.
47
+ //
48
+ // Note: This enum **may** receive new values in the future.
49
+ enum FieldBehavior {
50
+ // Conventional default for enums. Do not use this.
51
+ FIELD_BEHAVIOR_UNSPECIFIED = 0;
52
+
53
+ // Specifically denotes a field as optional.
54
+ // While all fields in protocol buffers are optional, this may be specified
55
+ // for emphasis if appropriate.
56
+ OPTIONAL = 1;
57
+
58
+ // Denotes a field as required.
59
+ // This indicates that the field **must** be provided as part of the request,
60
+ // and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
61
+ REQUIRED = 2;
62
+
63
+ // Denotes a field as output only.
64
+ // This indicates that the field is provided in responses, but including the
65
+ // field in a request does nothing (the server *must* ignore it and
66
+ // *must not* throw an error as a result of the field's presence).
67
+ OUTPUT_ONLY = 3;
68
+
69
+ // Denotes a field as input only.
70
+ // This indicates that the field is provided in requests, and the
71
+ // corresponding field is not included in output.
72
+ INPUT_ONLY = 4;
73
+
74
+ // Denotes a field as immutable.
75
+ // This indicates that the field may be set once in a request to create a
76
+ // resource, but may not be changed thereafter.
77
+ IMMUTABLE = 5;
78
+
79
+ // Denotes that a (repeated) field is an unordered list.
80
+ // This indicates that the service may provide the elements of the list
81
+ // in any arbitrary order, rather than the order the user originally
82
+ // provided. Additionally, the list's order may or may not be stable.
83
+ UNORDERED_LIST = 6;
84
+ }