googleapis-common-protos-types 1.3.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +79 -6
  3. data/lib/google/api/annotations_pb.rb +62 -2
  4. data/lib/google/api/auth_pb.rb +264 -33
  5. data/lib/google/api/backend_pb.rb +212 -22
  6. data/lib/google/api/billing_pb.rb +104 -9
  7. data/lib/google/api/client_pb.rb +455 -2
  8. data/lib/google/api/config_change_pb.rb +111 -17
  9. data/lib/google/api/consumer_pb.rb +109 -16
  10. data/lib/google/api/context_pb.rb +117 -11
  11. data/lib/google/api/control_pb.rb +71 -4
  12. data/lib/google/api/distribution_pb.rb +243 -39
  13. data/lib/google/api/documentation_pb.rb +195 -19
  14. data/lib/google/api/endpoint_pb.rb +100 -7
  15. data/lib/google/api/error_reason_pb.rb +597 -23
  16. data/lib/google/api/field_behavior_pb.rb +133 -11
  17. data/lib/google/api/field_info_pb.rb +123 -0
  18. data/lib/google/api/http_pb.rb +406 -23
  19. data/lib/google/api/httpbody_pb.rb +110 -6
  20. data/lib/google/api/label_pb.rb +75 -11
  21. data/lib/google/api/launch_stage_pb.rb +99 -11
  22. data/lib/google/api/log_pb.rb +83 -7
  23. data/lib/google/api/logging_pb.rb +108 -9
  24. data/lib/google/api/metric_pb.rb +298 -38
  25. data/lib/google/api/monitored_resource_pb.rb +160 -17
  26. data/lib/google/api/monitoring_pb.rb +134 -9
  27. data/lib/google/api/policy_pb.rb +129 -0
  28. data/lib/google/api/quota_pb.rb +211 -21
  29. data/lib/google/api/resource_pb.rb +267 -23
  30. data/lib/google/api/routing_pb.rb +490 -8
  31. data/lib/google/api/service_pb.rb +241 -31
  32. data/lib/google/api/source_info_pb.rb +60 -4
  33. data/lib/google/api/system_parameter_pb.rb +123 -13
  34. data/lib/google/api/usage_pb.rb +123 -11
  35. data/lib/google/api/visibility_pb.rb +142 -8
  36. data/lib/google/logging/type/http_request_pb.rb +124 -19
  37. data/lib/google/logging/type/log_severity_pb.rb +98 -13
  38. data/lib/google/longrunning/operations_pb.rb +279 -37
  39. data/lib/google/rpc/code_pb.rb +213 -20
  40. data/lib/google/rpc/context/attribute_context_pb.rb +402 -0
  41. data/lib/google/rpc/context/audit_context_pb.rb +95 -0
  42. data/lib/google/rpc/error_details_pb.rb +315 -57
  43. data/lib/google/rpc/http_pb.rb +107 -0
  44. data/lib/google/rpc/status_pb.rb +78 -6
  45. data/lib/google/type/calendar_period_pb.rb +83 -11
  46. data/lib/google/type/color_pb.rb +203 -7
  47. data/lib/google/type/date_pb.rb +79 -6
  48. data/lib/google/type/datetime_pb.rb +133 -18
  49. data/lib/google/type/dayofweek_pb.rb +77 -11
  50. data/lib/google/type/decimal_pb.rb +122 -4
  51. data/lib/google/type/expr_pb.rb +100 -7
  52. data/lib/google/type/fraction_pb.rb +60 -5
  53. data/lib/google/type/interval_pb.rb +75 -5
  54. data/lib/google/type/latlng_pb.rb +64 -5
  55. data/lib/google/type/localized_text_pb.rb +63 -5
  56. data/lib/google/type/money_pb.rb +69 -6
  57. data/lib/google/type/month_pb.rb +92 -16
  58. data/lib/google/type/phone_number_pb.rb +140 -12
  59. data/lib/google/type/postal_address_pb.rb +161 -14
  60. data/lib/google/type/quaternion_pb.rb +121 -7
  61. data/lib/google/type/timeofday_pb.rb +71 -7
  62. data/lib/googleapis/common/protos/types/version.rb +1 -1
  63. metadata +11 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbc39c4df10b3dc41a7fab0b938117600e10a0333adc7155088a5f2ca0b52930
4
- data.tar.gz: 3ab06780f0edd8480a34ff31bb76ae55bee5b5c5a6a9c80def4ec1d12e6906cf
3
+ metadata.gz: 3618c02fc5383d0b3008c91f6674147f7a72c101a240ec73ffe70f6a9182a824
4
+ data.tar.gz: 4ade17bdffdfc54a6f61ec50239657fe025abb10aab75e8c54afec2212a20a4c
5
5
  SHA512:
6
- metadata.gz: 80627d183fbc90ed1d06b2a18327fa2d38bb6c24b253b1e7b51305fbb73c0efdbdc88358ef8ae9c7705774c13223d97ce4ddd222bd6bd978ed66db1a4c7de377
7
- data.tar.gz: b2e6630eb587bf4d32d641b7d042779c9c2b35cf4f1a657d634d100a30738c6c3f6110a54921100f910492f098014e85448cc3018ee3992e01926be96f4a38b7
6
+ metadata.gz: f9d518c9314c87571d2cc60a65b948fd6735c968668d2e00f46de793f310824b54126ca234795e48518ee881876292c831cd790099e7ee7719bcaede3a7b543e
7
+ data.tar.gz: 5a47bb6e49e00c806ed26b2482c9e81ba602bfcaf335aaecb6790ca10c743bdf5b25496d6c63c78320f49fe30faa7a0499435d55e272fe369f011dfb327d1b61
data/CHANGELOG.md CHANGED
@@ -1,23 +1,96 @@
1
1
  # Release History
2
2
 
3
- ## 1.3.0 (2021-10-19)
3
+ ### 1.12.0 (2024-02-13)
4
+
5
+ #### Features
6
+
7
+ * set packed to false on field_behavior extension ([#239](https://github.com/googleapis/common-protos-ruby/issues/239))
8
+
9
+ ### 1.11.0 (2023-12-04)
10
+
11
+ #### Features
12
+
13
+ * Automated update of googleapis-common-protos-types ([#217](https://github.com/googleapis/common-protos-ruby/issues/217))
14
+
15
+ ### 1.10.0 (2023-11-06)
16
+
17
+ #### Features
18
+
19
+ * Automated update of googleapis-common-protos-types ([#200](https://github.com/googleapis/common-protos-ruby/issues/200))
20
+
21
+ ### 1.9.0 (2023-09-19)
22
+
23
+ #### Features
24
+
25
+ * Added the "IDENTIFIER" field behavior ([#181](https://github.com/googleapis/common-protos-ruby/issues/181))
26
+
27
+ ### 1.8.0 (2023-08-07)
28
+
29
+ #### Features
30
+
31
+ * Support for API method policies ([#175](https://github.com/googleapis/common-protos-ruby/issues/175))
32
+ * Updated generated protobuf output to use binary descriptors for better future compatibility ([#165](https://github.com/googleapis/common-protos-ruby/issues/165))
33
+
34
+ ### 1.7.0 (2023-07-16)
35
+
36
+ #### Features
37
+
38
+ * Support for a few additional client library organizations ([#141](https://github.com/googleapis/common-protos-ruby/issues/141))
39
+
40
+ ### 1.6.0 (2023-04-24)
41
+
42
+ #### Features
43
+
44
+ * Added Google::Rpc::Context::AttributeContext
45
+ * Added Google::Rpc::Context::AuditContext
46
+ * Added dotnet-specific fields to API language settings
47
+ * Added overrides_by_request_protocol to api.BackendRule
48
+ * Added proto_reference_documentation_uri to api.Publishing
49
+ * Added SERVICE_NOT_VISIBLE and GCP_SUSPENDED error reason values
50
+
51
+ ### 1.5.0 (2023-01-04)
52
+
53
+ #### Features
54
+
55
+ * Added "cookie" JwtLocation
56
+ * Added protos related to client library publishing
57
+ * Added several new error reasons
58
+ * Added protos describing HTTP requests and responses
59
+
60
+ ### 1.4.0 (2022-08-17)
61
+
62
+ #### Features
63
+
64
+ * Update minimum Ruby version to 2.6 ([#75](https://github.com/googleapis/common-protos-ruby/issues/75))
65
+
66
+ ### 1.3.2 (2022-06-23)
67
+
68
+ #### Bug Fixes
69
+
70
+ * Remove some unnecessary requires
71
+
72
+ ### 1.3.1 (2022-04-05)
73
+
74
+ * Sync updates to imports in the source protos
75
+
76
+ ### 1.3.0 (2021-10-19)
4
77
 
5
78
  * Add google/api/routing to common-protos-types
6
79
  * Remove cloud-specific extended_operations proto. It's being moved to google-cloud-common.
7
80
 
8
- ## 1.2.0 (2021-09-03)
81
+ ### 1.2.0 (2021-09-03)
9
82
 
10
83
  * Add Google::Cloud::OperationResponseMapping and the extended_operations_pb file
11
84
  * Removed unnecessary files from the gem package
12
85
 
13
- ## 1.1.0 / 2021-07-07
86
+ ### 1.1.0 / 2021-07-07
14
87
 
15
88
  * Add Google::Api::ErrorReason
16
89
  * Add Google::Api::Visibility and Google::Api::VisibilityRule
17
90
  * Add Google::Type::Decimal
18
91
  * Add NON_EMPTY_DEFAULT value to Google::Api::FieldBehavior.
19
92
 
20
- ## 1.0.6 / 2021-02-01
93
+ ### 1.0.6 / 2021-02-01
21
94
 
22
95
  * Add Google::Type::Interval type.
23
96
  * Add Google::Type::LocalizedText type.
@@ -31,7 +104,7 @@
31
104
  * Remove internal "features" field from Google::Api::Endpoint.
32
105
  * Require protobuf 3.14.
33
106
 
34
- ## 1.0.5 / 2020-04-08
107
+ ### 1.0.5 / 2020-04-08
35
108
 
36
109
  * Add JWT location support in Google::Api::AuthProvider.
37
110
  * Add "protocol" field and a "disable_auth" option to Google::Api::BackendRule.
@@ -42,7 +115,7 @@
42
115
  * Add Google::Type::DateTime, Google::Type::Month, and Google::Type::TimeZone types.
43
116
  * Require protobuf 3.11.
44
117
 
45
- ## 1.0.4 / 2019-04-03
118
+ ### 1.0.4 / 2019-04-03
46
119
 
47
120
  * Add WaitOperation RPC to operations_pb.rb and update documentation.
48
121
  * Add new common types for:
@@ -1,15 +1,75 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/annotations.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
7
  require 'google/api/http_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/api/annotations.proto", :syntax => :proto3) do
8
+ require 'google/protobuf/descriptor_pb'
9
+
10
+
11
+ descriptor_data = "\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.api.HttpRule", "google/api/http.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
32
+ end
9
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
10
36
  end
11
37
 
12
38
  module Google
13
39
  module Api
14
40
  end
15
41
  end
42
+
43
+ #### Source proto file: google/api/annotations.proto ####
44
+ #
45
+ # // Copyright 2015 Google LLC
46
+ # //
47
+ # // Licensed under the Apache License, Version 2.0 (the "License");
48
+ # // you may not use this file except in compliance with the License.
49
+ # // You may obtain a copy of the License at
50
+ # //
51
+ # // http://www.apache.org/licenses/LICENSE-2.0
52
+ # //
53
+ # // Unless required by applicable law or agreed to in writing, software
54
+ # // distributed under the License is distributed on an "AS IS" BASIS,
55
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ # // See the License for the specific language governing permissions and
57
+ # // limitations under the License.
58
+ #
59
+ # syntax = "proto3";
60
+ #
61
+ # package google.api;
62
+ #
63
+ # import "google/api/http.proto";
64
+ # import "google/protobuf/descriptor.proto";
65
+ #
66
+ # option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "AnnotationsProto";
69
+ # option java_package = "com.google.api";
70
+ # option objc_class_prefix = "GAPI";
71
+ #
72
+ # extend google.protobuf.MethodOptions {
73
+ # // See `HttpRule`.
74
+ # HttpRule http = 72295728;
75
+ # }
@@ -1,43 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/auth.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/auth.proto", :syntax => :proto3) do
8
- add_message "google.api.Authentication" do
9
- repeated :rules, :message, 3, "google.api.AuthenticationRule"
10
- repeated :providers, :message, 4, "google.api.AuthProvider"
11
- end
12
- add_message "google.api.AuthenticationRule" do
13
- optional :selector, :string, 1
14
- optional :oauth, :message, 2, "google.api.OAuthRequirements"
15
- optional :allow_without_credential, :bool, 5
16
- repeated :requirements, :message, 7, "google.api.AuthRequirement"
17
- end
18
- add_message "google.api.JwtLocation" do
19
- optional :value_prefix, :string, 3
20
- oneof :in do
21
- optional :header, :string, 1
22
- optional :query, :string, 2
23
- end
24
- end
25
- add_message "google.api.AuthProvider" do
26
- optional :id, :string, 1
27
- optional :issuer, :string, 2
28
- optional :jwks_uri, :string, 3
29
- optional :audiences, :string, 4
30
- optional :authorization_url, :string, 5
31
- repeated :jwt_locations, :message, 6, "google.api.JwtLocation"
32
- end
33
- add_message "google.api.OAuthRequirements" do
34
- optional :canonical_scopes, :string, 1
35
- end
36
- add_message "google.api.AuthRequirement" do
37
- optional :provider_id, :string, 1
38
- optional :audiences, :string, 2
7
+
8
+ descriptor_data = "\n\x15google/api/auth.proto\x12\ngoogle.api\"l\n\x0e\x41uthentication\x12-\n\x05rules\x18\x03 \x03(\x0b\x32\x1e.google.api.AuthenticationRule\x12+\n\tproviders\x18\x04 \x03(\x0b\x32\x18.google.api.AuthProvider\"\xa9\x01\n\x12\x41uthenticationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12,\n\x05oauth\x18\x02 \x01(\x0b\x32\x1d.google.api.OAuthRequirements\x12 \n\x18\x61llow_without_credential\x18\x05 \x01(\x08\x12\x31\n\x0crequirements\x18\x07 \x03(\x0b\x32\x1b.google.api.AuthRequirement\"^\n\x0bJwtLocation\x12\x10\n\x06header\x18\x01 \x01(\tH\x00\x12\x0f\n\x05query\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x63ookie\x18\x04 \x01(\tH\x00\x12\x14\n\x0cvalue_prefix\x18\x03 \x01(\tB\x04\n\x02in\"\x9a\x01\n\x0c\x41uthProvider\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06issuer\x18\x02 \x01(\t\x12\x10\n\x08jwks_uri\x18\x03 \x01(\t\x12\x11\n\taudiences\x18\x04 \x01(\t\x12\x19\n\x11\x61uthorization_url\x18\x05 \x01(\t\x12.\n\rjwt_locations\x18\x06 \x03(\x0b\x32\x17.google.api.JwtLocation\"-\n\x11OAuthRequirements\x12\x18\n\x10\x63\x61nonical_scopes\x18\x01 \x01(\t\"9\n\x0f\x41uthRequirement\x12\x13\n\x0bprovider_id\x18\x01 \x01(\t\x12\x11\n\taudiences\x18\x02 \x01(\tBk\n\x0e\x63om.google.apiB\tAuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
28
  end
40
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
41
32
  end
42
33
 
43
34
  module Google
@@ -50,3 +41,243 @@ module Google
50
41
  AuthRequirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.AuthRequirement").msgclass
51
42
  end
52
43
  end
44
+
45
+ #### Source proto file: google/api/auth.proto ####
46
+ #
47
+ # // Copyright 2023 Google LLC
48
+ # //
49
+ # // Licensed under the Apache License, Version 2.0 (the "License");
50
+ # // you may not use this file except in compliance with the License.
51
+ # // You may obtain a copy of the License at
52
+ # //
53
+ # // http://www.apache.org/licenses/LICENSE-2.0
54
+ # //
55
+ # // Unless required by applicable law or agreed to in writing, software
56
+ # // distributed under the License is distributed on an "AS IS" BASIS,
57
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+ # // See the License for the specific language governing permissions and
59
+ # // limitations under the License.
60
+ #
61
+ # syntax = "proto3";
62
+ #
63
+ # package google.api;
64
+ #
65
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
66
+ # option java_multiple_files = true;
67
+ # option java_outer_classname = "AuthProto";
68
+ # option java_package = "com.google.api";
69
+ # option objc_class_prefix = "GAPI";
70
+ #
71
+ # // `Authentication` defines the authentication configuration for API methods
72
+ # // provided by an API service.
73
+ # //
74
+ # // Example:
75
+ # //
76
+ # // name: calendar.googleapis.com
77
+ # // authentication:
78
+ # // providers:
79
+ # // - id: google_calendar_auth
80
+ # // jwks_uri: https://www.googleapis.com/oauth2/v1/certs
81
+ # // issuer: https://securetoken.google.com
82
+ # // rules:
83
+ # // - selector: "*"
84
+ # // requirements:
85
+ # // provider_id: google_calendar_auth
86
+ # // - selector: google.calendar.Delegate
87
+ # // oauth:
88
+ # // canonical_scopes: https://www.googleapis.com/auth/calendar.read
89
+ # message Authentication {
90
+ # // A list of authentication rules that apply to individual API methods.
91
+ # //
92
+ # // **NOTE:** All service configuration rules follow "last one wins" order.
93
+ # repeated AuthenticationRule rules = 3;
94
+ #
95
+ # // Defines a set of authentication providers that a service supports.
96
+ # repeated AuthProvider providers = 4;
97
+ # }
98
+ #
99
+ # // Authentication rules for the service.
100
+ # //
101
+ # // By default, if a method has any authentication requirements, every request
102
+ # // must include a valid credential matching one of the requirements.
103
+ # // It's an error to include more than one kind of credential in a single
104
+ # // request.
105
+ # //
106
+ # // If a method doesn't have any auth requirements, request credentials will be
107
+ # // ignored.
108
+ # message AuthenticationRule {
109
+ # // Selects the methods to which this rule applies.
110
+ # //
111
+ # // Refer to [selector][google.api.DocumentationRule.selector] for syntax
112
+ # // details.
113
+ # string selector = 1;
114
+ #
115
+ # // The requirements for OAuth credentials.
116
+ # OAuthRequirements oauth = 2;
117
+ #
118
+ # // If true, the service accepts API keys without any other credential.
119
+ # // This flag only applies to HTTP and gRPC requests.
120
+ # bool allow_without_credential = 5;
121
+ #
122
+ # // Requirements for additional authentication providers.
123
+ # repeated AuthRequirement requirements = 7;
124
+ # }
125
+ #
126
+ # // Specifies a location to extract JWT from an API request.
127
+ # message JwtLocation {
128
+ # oneof in {
129
+ # // Specifies HTTP header name to extract JWT token.
130
+ # string header = 1;
131
+ #
132
+ # // Specifies URL query parameter name to extract JWT token.
133
+ # string query = 2;
134
+ #
135
+ # // Specifies cookie name to extract JWT token.
136
+ # string cookie = 4;
137
+ # }
138
+ #
139
+ # // The value prefix. The value format is "value_prefix{token}"
140
+ # // Only applies to "in" header type. Must be empty for "in" query type.
141
+ # // If not empty, the header value has to match (case sensitive) this prefix.
142
+ # // If not matched, JWT will not be extracted. If matched, JWT will be
143
+ # // extracted after the prefix is removed.
144
+ # //
145
+ # // For example, for "Authorization: Bearer {JWT}",
146
+ # // value_prefix="Bearer " with a space at the end.
147
+ # string value_prefix = 3;
148
+ # }
149
+ #
150
+ # // Configuration for an authentication provider, including support for
151
+ # // [JSON Web Token
152
+ # // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
153
+ # message AuthProvider {
154
+ # // The unique identifier of the auth provider. It will be referred to by
155
+ # // `AuthRequirement.provider_id`.
156
+ # //
157
+ # // Example: "bookstore_auth".
158
+ # string id = 1;
159
+ #
160
+ # // Identifies the principal that issued the JWT. See
161
+ # // https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
162
+ # // Usually a URL or an email address.
163
+ # //
164
+ # // Example: https://securetoken.google.com
165
+ # // Example: 1234567-compute@developer.gserviceaccount.com
166
+ # string issuer = 2;
167
+ #
168
+ # // URL of the provider's public key set to validate signature of the JWT. See
169
+ # // [OpenID
170
+ # // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
171
+ # // Optional if the key set document:
172
+ # // - can be retrieved from
173
+ # // [OpenID
174
+ # // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
175
+ # // of the issuer.
176
+ # // - can be inferred from the email domain of the issuer (e.g. a Google
177
+ # // service account).
178
+ # //
179
+ # // Example: https://www.googleapis.com/oauth2/v1/certs
180
+ # string jwks_uri = 3;
181
+ #
182
+ # // The list of JWT
183
+ # // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
184
+ # // that are allowed to access. A JWT containing any of these audiences will
185
+ # // be accepted. When this setting is absent, JWTs with audiences:
186
+ # // - "https://[service.name]/[google.protobuf.Api.name]"
187
+ # // - "https://[service.name]/"
188
+ # // will be accepted.
189
+ # // For example, if no audiences are in the setting, LibraryService API will
190
+ # // accept JWTs with the following audiences:
191
+ # // -
192
+ # // https://library-example.googleapis.com/google.example.library.v1.LibraryService
193
+ # // - https://library-example.googleapis.com/
194
+ # //
195
+ # // Example:
196
+ # //
197
+ # // audiences: bookstore_android.apps.googleusercontent.com,
198
+ # // bookstore_web.apps.googleusercontent.com
199
+ # string audiences = 4;
200
+ #
201
+ # // Redirect URL if JWT token is required but not present or is expired.
202
+ # // Implement authorizationUrl of securityDefinitions in OpenAPI spec.
203
+ # string authorization_url = 5;
204
+ #
205
+ # // Defines the locations to extract the JWT. For now it is only used by the
206
+ # // Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
207
+ # // (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
208
+ # //
209
+ # // JWT locations can be one of HTTP headers, URL query parameters or
210
+ # // cookies. The rule is that the first match wins.
211
+ # //
212
+ # // If not specified, default to use following 3 locations:
213
+ # // 1) Authorization: Bearer
214
+ # // 2) x-goog-iap-jwt-assertion
215
+ # // 3) access_token query parameter
216
+ # //
217
+ # // Default locations can be specified as followings:
218
+ # // jwt_locations:
219
+ # // - header: Authorization
220
+ # // value_prefix: "Bearer "
221
+ # // - header: x-goog-iap-jwt-assertion
222
+ # // - query: access_token
223
+ # repeated JwtLocation jwt_locations = 6;
224
+ # }
225
+ #
226
+ # // OAuth scopes are a way to define data and permissions on data. For example,
227
+ # // there are scopes defined for "Read-only access to Google Calendar" and
228
+ # // "Access to Cloud Platform". Users can consent to a scope for an application,
229
+ # // giving it permission to access that data on their behalf.
230
+ # //
231
+ # // OAuth scope specifications should be fairly coarse grained; a user will need
232
+ # // to see and understand the text description of what your scope means.
233
+ # //
234
+ # // In most cases: use one or at most two OAuth scopes for an entire family of
235
+ # // products. If your product has multiple APIs, you should probably be sharing
236
+ # // the OAuth scope across all of those APIs.
237
+ # //
238
+ # // When you need finer grained OAuth consent screens: talk with your product
239
+ # // management about how developers will use them in practice.
240
+ # //
241
+ # // Please note that even though each of the canonical scopes is enough for a
242
+ # // request to be accepted and passed to the backend, a request can still fail
243
+ # // due to the backend requiring additional scopes or permissions.
244
+ # message OAuthRequirements {
245
+ # // The list of publicly documented OAuth scopes that are allowed access. An
246
+ # // OAuth token containing any of these scopes will be accepted.
247
+ # //
248
+ # // Example:
249
+ # //
250
+ # // canonical_scopes: https://www.googleapis.com/auth/calendar,
251
+ # // https://www.googleapis.com/auth/calendar.read
252
+ # string canonical_scopes = 1;
253
+ # }
254
+ #
255
+ # // User-defined authentication requirements, including support for
256
+ # // [JSON Web Token
257
+ # // (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
258
+ # message AuthRequirement {
259
+ # // [id][google.api.AuthProvider.id] from authentication provider.
260
+ # //
261
+ # // Example:
262
+ # //
263
+ # // provider_id: bookstore_auth
264
+ # string provider_id = 1;
265
+ #
266
+ # // NOTE: This will be deprecated soon, once AuthProvider.audiences is
267
+ # // implemented and accepted in all the runtime components.
268
+ # //
269
+ # // The list of JWT
270
+ # // [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
271
+ # // that are allowed to access. A JWT containing any of these audiences will
272
+ # // be accepted. When this setting is absent, only JWTs with audience
273
+ # // "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
274
+ # // will be accepted. For example, if no audiences are in the setting,
275
+ # // LibraryService API will only accept JWTs with the following audience
276
+ # // "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
277
+ # //
278
+ # // Example:
279
+ # //
280
+ # // audiences: bookstore_android.apps.googleusercontent.com,
281
+ # // bookstore_web.apps.googleusercontent.com
282
+ # string audiences = 2;
283
+ # }