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,51 @@
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 = "BackendProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+
26
+ // `Backend` defines the backend configuration for a service.
27
+ message Backend {
28
+ // A list of API backend rules that apply to individual API methods.
29
+ //
30
+ // **NOTE:** All service configuration rules follow "last one wins" order.
31
+ repeated BackendRule rules = 1;
32
+ }
33
+
34
+ // A backend rule provides configuration for an individual API element.
35
+ message BackendRule {
36
+ // Selects the methods to which this rule applies.
37
+ //
38
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
39
+ string selector = 1;
40
+
41
+ // The address of the API backend.
42
+ string address = 2;
43
+
44
+ // The number of seconds to wait for a response from a request. The default
45
+ // deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
46
+ double deadline = 3;
47
+
48
+ // Minimum deadline in seconds needed for this method. Calls having deadline
49
+ // value lower than this will be rejected.
50
+ double min_deadline = 4;
51
+ }
@@ -0,0 +1,67 @@
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 = "BillingProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+
28
+ // Billing related configuration of the service.
29
+ //
30
+ // The following example shows how to configure monitored resources and metrics
31
+ // for billing:
32
+ //
33
+ // monitored_resources:
34
+ // - type: library.googleapis.com/branch
35
+ // labels:
36
+ // - key: /city
37
+ // description: The city where the library branch is located in.
38
+ // - key: /name
39
+ // description: The name of the branch.
40
+ // metrics:
41
+ // - name: library.googleapis.com/book/borrowed_count
42
+ // metric_kind: DELTA
43
+ // value_type: INT64
44
+ // billing:
45
+ // consumer_destinations:
46
+ // - monitored_resource: library.googleapis.com/branch
47
+ // metrics:
48
+ // - library.googleapis.com/book/borrowed_count
49
+ message Billing {
50
+ // Configuration of a specific billing destination (Currently only support
51
+ // bill against consumer project).
52
+ message BillingDestination {
53
+ // The monitored resource type. The type must be defined in
54
+ // [Service.monitored_resources][google.api.Service.monitored_resources] section.
55
+ string monitored_resource = 1;
56
+
57
+ // Names of the metrics to report to this billing destination.
58
+ // Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
59
+ repeated string metrics = 2;
60
+ }
61
+
62
+ // Billing configurations for sending metrics to the consumer project.
63
+ // There can be multiple consumer destinations per service, each one must have
64
+ // a different monitored resource type. A metric can be used in at most
65
+ // one consumer destination.
66
+ repeated BillingDestination consumer_destinations = 8;
67
+ }
@@ -0,0 +1,99 @@
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 = "ClientProto";
24
+ option java_package = "com.google.api";
25
+ option objc_class_prefix = "GAPI";
26
+
27
+ extend google.protobuf.MethodOptions {
28
+ // A definition of a client library method signature.
29
+ //
30
+ // In client libraries, each proto RPC corresponds to one or more methods
31
+ // which the end user is able to call, and calls the underlying RPC.
32
+ // Normally, this method receives a single argument (a struct or instance
33
+ // corresponding to the RPC request object). Defining this field will
34
+ // add one or more overloads providing flattened or simpler method signatures
35
+ // in some languages.
36
+ //
37
+ // The fields on the method signature are provided as a comma-separated
38
+ // string.
39
+ //
40
+ // For example, the proto RPC and annotation:
41
+ //
42
+ // rpc CreateSubscription(CreateSubscriptionRequest)
43
+ // returns (Subscription) {
44
+ // option (google.api.method_signature) = "name,topic";
45
+ // }
46
+ //
47
+ // Would add the following Java overload (in addition to the method accepting
48
+ // the request object):
49
+ //
50
+ // public final Subscription createSubscription(String name, String topic)
51
+ //
52
+ // The following backwards-compatibility guidelines apply:
53
+ //
54
+ // * Adding this annotation to an unannotated method is backwards
55
+ // compatible.
56
+ // * Adding this annotation to a method which already has existing
57
+ // method signature annotations is backwards compatible if and only if
58
+ // the new method signature annotation is last in the sequence.
59
+ // * Modifying or removing an existing method signature annotation is
60
+ // a breaking change.
61
+ // * Re-ordering existing method signature annotations is a breaking
62
+ // change.
63
+ repeated string method_signature = 1051;
64
+ }
65
+
66
+ extend google.protobuf.ServiceOptions {
67
+ // The hostname for this service.
68
+ // This should be specified with no prefix or protocol.
69
+ //
70
+ // Example:
71
+ //
72
+ // service Foo {
73
+ // option (google.api.default_host) = "foo.googleapi.com";
74
+ // ...
75
+ // }
76
+ string default_host = 1049;
77
+
78
+ // OAuth scopes needed for the client.
79
+ //
80
+ // Example:
81
+ //
82
+ // service Foo {
83
+ // option (google.api.oauth_scopes) = \
84
+ // "https://www.googleapis.com/auth/cloud-platform";
85
+ // ...
86
+ // }
87
+ //
88
+ // If there is more than one scope, use a comma-separated string:
89
+ //
90
+ // Example:
91
+ //
92
+ // service Foo {
93
+ // option (google.api.oauth_scopes) = \
94
+ // "https://www.googleapis.com/auth/cloud-platform,"
95
+ // "https://www.googleapis.com/auth/monitoring";
96
+ // ...
97
+ // }
98
+ string oauth_scopes = 1050;
99
+ }
@@ -0,0 +1,85 @@
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/configchange;configchange";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "ConfigChangeProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+
26
+ // Output generated from semantically comparing two versions of a service
27
+ // configuration.
28
+ //
29
+ // Includes detailed information about a field that have changed with
30
+ // applicable advice about potential consequences for the change, such as
31
+ // backwards-incompatibility.
32
+ message ConfigChange {
33
+ // Object hierarchy path to the change, with levels separated by a '.'
34
+ // character. For repeated fields, an applicable unique identifier field is
35
+ // used for the index (usually selector, name, or id). For maps, the term
36
+ // 'key' is used. If the field has no unique identifier, the numeric index
37
+ // is used.
38
+ // Examples:
39
+ // - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
40
+ // - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
41
+ // - logging.producer_destinations[0]
42
+ string element = 1;
43
+
44
+ // Value of the changed object in the old Service configuration,
45
+ // in JSON format. This field will not be populated if ChangeType == ADDED.
46
+ string old_value = 2;
47
+
48
+ // Value of the changed object in the new Service configuration,
49
+ // in JSON format. This field will not be populated if ChangeType == REMOVED.
50
+ string new_value = 3;
51
+
52
+ // The type for this change, either ADDED, REMOVED, or MODIFIED.
53
+ ChangeType change_type = 4;
54
+
55
+ // Collection of advice provided for this change, useful for determining the
56
+ // possible impact of this change.
57
+ repeated Advice advices = 5;
58
+ }
59
+
60
+ // Generated advice about this change, used for providing more
61
+ // information about how a change will affect the existing service.
62
+ message Advice {
63
+ // Useful description for why this advice was applied and what actions should
64
+ // be taken to mitigate any implied risks.
65
+ string description = 2;
66
+ }
67
+
68
+ // Classifies set of possible modifications to an object in the service
69
+ // configuration.
70
+ enum ChangeType {
71
+ // No value was provided.
72
+ CHANGE_TYPE_UNSPECIFIED = 0;
73
+
74
+ // The changed object exists in the 'new' service configuration, but not
75
+ // in the 'old' service configuration.
76
+ ADDED = 1;
77
+
78
+ // The changed object exists in the 'old' service configuration, but not
79
+ // in the 'new' service configuration.
80
+ REMOVED = 2;
81
+
82
+ // The changed object exists in both service configurations, but its value
83
+ // is different.
84
+ MODIFIED = 3;
85
+ }
@@ -0,0 +1,83 @@
1
+ // Copyright 2016 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
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "ConsumerProto";
22
+ option java_package = "com.google.api";
23
+
24
+
25
+ // A descriptor for defining project properties for a service. One service may
26
+ // have many consumer projects, and the service may want to behave differently
27
+ // depending on some properties on the project. For example, a project may be
28
+ // associated with a school, or a business, or a government agency, a business
29
+ // type property on the project may affect how a service responds to the client.
30
+ // This descriptor defines which properties are allowed to be set on a project.
31
+ //
32
+ // Example:
33
+ //
34
+ // project_properties:
35
+ // properties:
36
+ // - name: NO_WATERMARK
37
+ // type: BOOL
38
+ // description: Allows usage of the API without watermarks.
39
+ // - name: EXTENDED_TILE_CACHE_PERIOD
40
+ // type: INT64
41
+ message ProjectProperties {
42
+ // List of per consumer project-specific properties.
43
+ repeated Property properties = 1;
44
+ }
45
+
46
+ // Defines project properties.
47
+ //
48
+ // API services can define properties that can be assigned to consumer projects
49
+ // so that backends can perform response customization without having to make
50
+ // additional calls or maintain additional storage. For example, Maps API
51
+ // defines properties that controls map tile cache period, or whether to embed a
52
+ // watermark in a result.
53
+ //
54
+ // These values can be set via API producer console. Only API providers can
55
+ // define and set these properties.
56
+ message Property {
57
+ // Supported data type of the property values
58
+ enum PropertyType {
59
+ // The type is unspecified, and will result in an error.
60
+ UNSPECIFIED = 0;
61
+
62
+ // The type is `int64`.
63
+ INT64 = 1;
64
+
65
+ // The type is `bool`.
66
+ BOOL = 2;
67
+
68
+ // The type is `string`.
69
+ STRING = 3;
70
+
71
+ // The type is 'double'.
72
+ DOUBLE = 4;
73
+ }
74
+
75
+ // The name of the property (a.k.a key).
76
+ string name = 1;
77
+
78
+ // The type of this property.
79
+ PropertyType type = 2;
80
+
81
+ // The description of the property
82
+ string description = 3;
83
+ }
@@ -0,0 +1,63 @@
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
+ option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
20
+ option java_multiple_files = true;
21
+ option java_outer_classname = "ContextProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+
26
+ // `Context` defines which contexts an API requests.
27
+ //
28
+ // Example:
29
+ //
30
+ // context:
31
+ // rules:
32
+ // - selector: "*"
33
+ // requested:
34
+ // - google.rpc.context.ProjectContext
35
+ // - google.rpc.context.OriginContext
36
+ //
37
+ // The above specifies that all methods in the API request
38
+ // `google.rpc.context.ProjectContext` and
39
+ // `google.rpc.context.OriginContext`.
40
+ //
41
+ // Available context types are defined in package
42
+ // `google.rpc.context`.
43
+ message Context {
44
+ // A list of RPC context rules that apply to individual API methods.
45
+ //
46
+ // **NOTE:** All service configuration rules follow "last one wins" order.
47
+ repeated ContextRule rules = 1;
48
+ }
49
+
50
+ // A context rule provides information about the context for an individual API
51
+ // element.
52
+ message ContextRule {
53
+ // Selects the methods to which this rule applies.
54
+ //
55
+ // Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
56
+ string selector = 1;
57
+
58
+ // A list of full type names of requested contexts.
59
+ repeated string requested = 2;
60
+
61
+ // A list of full type names of provided contexts.
62
+ repeated string provided = 3;
63
+ }
@@ -0,0 +1,33 @@
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 = "ControlProto";
22
+ option java_package = "com.google.api";
23
+ option objc_class_prefix = "GAPI";
24
+
25
+
26
+ // Selects and configures the service controller used by the service. The
27
+ // service controller handles features like abuse, quota, billing, logging,
28
+ // monitoring, etc.
29
+ message Control {
30
+ // The service control environment to use. If empty, no control plane
31
+ // feature (like quota and billing) will be enabled.
32
+ string environment = 1;
33
+ }