google-apis-servicecontrol_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 65984df54f621297ace00755b9a2a080945272e3160157bddcb13df210a0c5ea
4
+ data.tar.gz: 8e59876754fc183ff3b7fad3dc20aa2980864f8df01e7948af9b5c27a841aedb
5
+ SHA512:
6
+ metadata.gz: 1108ed09c9166b0022b7f519ac0161ed47d4631e090362cf23dafd32d4a55fbd9d557b9244df422e1bb1c8df105b25d73a09300ed52986b3ea15f3ed88cc302f
7
+ data.tar.gz: 866ef36ce0f6dc2e06b0d8b5bdb1a29b4128e1934cb24adeb1d1179922ca4d5240a7ee93ac8cb69ffd34882c7837aeaf5613caf8981f40ff1eb076178c3ec92f
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-servicecontrol_v2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/servicecontrol_v2/*.rb
9
+ lib/google/apis/servicecontrol_v2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-servicecontrol_v2
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201207
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V2 of the Service Control API
2
+
3
+ This is a simple client library for version V2 of the Service Control API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/servicecontrol.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-servicecontrol_v2', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-servicecontrol_v2
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/servicecontrol_v2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::ServicecontrolV2::ServiceControlService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Servicecontrol service in particular.)
67
+
68
+ For reference information on specific calls in the Service Control API, see the {Google::Apis::ServicecontrolV2::ServiceControlService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-servicecontrol_v2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/service-control/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
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
+ require "google/apis/servicecontrol_v2"
@@ -0,0 +1,40 @@
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
+ require 'google/apis/servicecontrol_v2/service.rb'
16
+ require 'google/apis/servicecontrol_v2/classes.rb'
17
+ require 'google/apis/servicecontrol_v2/representations.rb'
18
+ require 'google/apis/servicecontrol_v2/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Service Control API
23
+ #
24
+ # Provides admission control and telemetry reporting for services integrated
25
+ # with Service Infrastructure.
26
+ #
27
+ # @see https://cloud.google.com/service-control/
28
+ module ServicecontrolV2
29
+ # Version of the Service Control API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V2'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+
36
+ # Manage your Google Service Control data
37
+ AUTH_SERVICECONTROL = 'https://www.googleapis.com/auth/servicecontrol'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,1139 @@
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
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ServicecontrolV2
24
+
25
+ # This message defines attributes associated with API operations, such as a
26
+ # network API request. The terminology is based on the conventions used by
27
+ # Google APIs, Istio, and OpenAPI.
28
+ class Api
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # The API operation name. For gRPC requests, it is the fully qualified API
32
+ # method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
33
+ # requests, it is the `operationId`, such as "getPet".
34
+ # Corresponds to the JSON property `operation`
35
+ # @return [String]
36
+ attr_accessor :operation
37
+
38
+ # The API protocol used for sending the request, such as "http", "https", "grpc",
39
+ # or "internal".
40
+ # Corresponds to the JSON property `protocol`
41
+ # @return [String]
42
+ attr_accessor :protocol
43
+
44
+ # The API service name. It is a logical identifier for a networked API, such as "
45
+ # pubsub.googleapis.com". The naming syntax depends on the API management system
46
+ # being used for handling the request.
47
+ # Corresponds to the JSON property `service`
48
+ # @return [String]
49
+ attr_accessor :service
50
+
51
+ # The API version associated with the API operation above, such as "v1" or "
52
+ # v1alpha1".
53
+ # Corresponds to the JSON property `version`
54
+ # @return [String]
55
+ attr_accessor :version
56
+
57
+ def initialize(**args)
58
+ update!(**args)
59
+ end
60
+
61
+ # Update properties of this object
62
+ def update!(**args)
63
+ @operation = args[:operation] if args.key?(:operation)
64
+ @protocol = args[:protocol] if args.key?(:protocol)
65
+ @service = args[:service] if args.key?(:service)
66
+ @version = args[:version] if args.key?(:version)
67
+ end
68
+ end
69
+
70
+ # This message defines the standard attribute vocabulary for Google APIs. An
71
+ # attribute is a piece of metadata that describes an activity on a network
72
+ # service. For example, the size of an HTTP request, or the status code of an
73
+ # HTTP response. Each attribute has a type and a name, which is logically
74
+ # defined as a proto message field in `AttributeContext`. The field type becomes
75
+ # the attribute type, and the field path becomes the attribute name. For example,
76
+ # the attribute `source.ip` maps to field `AttributeContext.source.ip`. This
77
+ # message definition is guaranteed not to have any wire breaking change. So you
78
+ # can use it directly for passing attributes across different systems. NOTE:
79
+ # Different system may generate different subset of attributes. Please verify
80
+ # the system specification before relying on an attribute generated a system.
81
+ class AttributeContext
82
+ include Google::Apis::Core::Hashable
83
+
84
+ # This message defines attributes associated with API operations, such as a
85
+ # network API request. The terminology is based on the conventions used by
86
+ # Google APIs, Istio, and OpenAPI.
87
+ # Corresponds to the JSON property `api`
88
+ # @return [Google::Apis::ServicecontrolV2::Api]
89
+ attr_accessor :api
90
+
91
+ # This message defines attributes for a node that handles a network request. The
92
+ # node can be either a service or an application that sends, forwards, or
93
+ # receives the request. Service peers should fill in `principal` and `labels` as
94
+ # appropriate.
95
+ # Corresponds to the JSON property `destination`
96
+ # @return [Google::Apis::ServicecontrolV2::Peer]
97
+ attr_accessor :destination
98
+
99
+ # Supports extensions for advanced use cases, such as logs and metrics.
100
+ # Corresponds to the JSON property `extensions`
101
+ # @return [Array<Hash<String,Object>>]
102
+ attr_accessor :extensions
103
+
104
+ # This message defines attributes for a node that handles a network request. The
105
+ # node can be either a service or an application that sends, forwards, or
106
+ # receives the request. Service peers should fill in `principal` and `labels` as
107
+ # appropriate.
108
+ # Corresponds to the JSON property `origin`
109
+ # @return [Google::Apis::ServicecontrolV2::Peer]
110
+ attr_accessor :origin
111
+
112
+ # This message defines attributes for an HTTP request. If the actual request is
113
+ # not an HTTP request, the runtime system should try to map the actual request
114
+ # to an equivalent HTTP request.
115
+ # Corresponds to the JSON property `request`
116
+ # @return [Google::Apis::ServicecontrolV2::Request]
117
+ attr_accessor :request
118
+
119
+ # This message defines core attributes for a resource. A resource is an
120
+ # addressable (named) entity provided by the destination service. For example, a
121
+ # file stored on a network storage service.
122
+ # Corresponds to the JSON property `resource`
123
+ # @return [Google::Apis::ServicecontrolV2::Resource]
124
+ attr_accessor :resource
125
+
126
+ # This message defines attributes for a typical network response. It generally
127
+ # models semantics of an HTTP response.
128
+ # Corresponds to the JSON property `response`
129
+ # @return [Google::Apis::ServicecontrolV2::Response]
130
+ attr_accessor :response
131
+
132
+ # This message defines attributes for a node that handles a network request. The
133
+ # node can be either a service or an application that sends, forwards, or
134
+ # receives the request. Service peers should fill in `principal` and `labels` as
135
+ # appropriate.
136
+ # Corresponds to the JSON property `source`
137
+ # @return [Google::Apis::ServicecontrolV2::Peer]
138
+ attr_accessor :source
139
+
140
+ def initialize(**args)
141
+ update!(**args)
142
+ end
143
+
144
+ # Update properties of this object
145
+ def update!(**args)
146
+ @api = args[:api] if args.key?(:api)
147
+ @destination = args[:destination] if args.key?(:destination)
148
+ @extensions = args[:extensions] if args.key?(:extensions)
149
+ @origin = args[:origin] if args.key?(:origin)
150
+ @request = args[:request] if args.key?(:request)
151
+ @resource = args[:resource] if args.key?(:resource)
152
+ @response = args[:response] if args.key?(:response)
153
+ @source = args[:source] if args.key?(:source)
154
+ end
155
+ end
156
+
157
+ # Common audit log format for Google Cloud Platform API operations.
158
+ class AuditLog
159
+ include Google::Apis::Core::Hashable
160
+
161
+ # Authentication information for the operation.
162
+ # Corresponds to the JSON property `authenticationInfo`
163
+ # @return [Google::Apis::ServicecontrolV2::AuthenticationInfo]
164
+ attr_accessor :authentication_info
165
+
166
+ # Authorization information. If there are multiple resources or permissions
167
+ # involved, then there is one AuthorizationInfo element for each `resource,
168
+ # permission` tuple.
169
+ # Corresponds to the JSON property `authorizationInfo`
170
+ # @return [Array<Google::Apis::ServicecontrolV2::AuthorizationInfo>]
171
+ attr_accessor :authorization_info
172
+
173
+ # Other service-specific data about the request, response, and other information
174
+ # associated with the current audited event.
175
+ # Corresponds to the JSON property `metadata`
176
+ # @return [Hash<String,Object>]
177
+ attr_accessor :metadata
178
+
179
+ # The name of the service method or operation. For API calls, this should be the
180
+ # name of the API method. For example, "google.cloud.bigquery.v2.TableService.
181
+ # InsertTable" "google.logging.v2.ConfigServiceV2.CreateSink"
182
+ # Corresponds to the JSON property `methodName`
183
+ # @return [String]
184
+ attr_accessor :method_name
185
+
186
+ # The number of items returned from a List or Query API method, if applicable.
187
+ # Corresponds to the JSON property `numResponseItems`
188
+ # @return [Fixnum]
189
+ attr_accessor :num_response_items
190
+
191
+ # The operation request. This may not include all request parameters, such as
192
+ # those that are too large, privacy-sensitive, or duplicated elsewhere in the
193
+ # log record. It should never include user-generated data, such as file contents.
194
+ # When the JSON object represented here has a proto equivalent, the proto name
195
+ # will be indicated in the `@type` property.
196
+ # Corresponds to the JSON property `request`
197
+ # @return [Hash<String,Object>]
198
+ attr_accessor :request
199
+
200
+ # Metadata about the request.
201
+ # Corresponds to the JSON property `requestMetadata`
202
+ # @return [Google::Apis::ServicecontrolV2::RequestMetadata]
203
+ attr_accessor :request_metadata
204
+
205
+ # Location information about a resource.
206
+ # Corresponds to the JSON property `resourceLocation`
207
+ # @return [Google::Apis::ServicecontrolV2::ResourceLocation]
208
+ attr_accessor :resource_location
209
+
210
+ # The resource or collection that is the target of the operation. The name is a
211
+ # scheme-less URI, not including the API service name. For example: "projects/
212
+ # PROJECT_ID/zones/us-central1-a/instances" "projects/PROJECT_ID/datasets/
213
+ # DATASET_ID"
214
+ # Corresponds to the JSON property `resourceName`
215
+ # @return [String]
216
+ attr_accessor :resource_name
217
+
218
+ # The resource's original state before mutation. Present only for operations
219
+ # which have successfully modified the targeted resource(s). In general, this
220
+ # field should contain all changed fields, except those that are already been
221
+ # included in `request`, `response`, `metadata` or `service_data` fields. When
222
+ # the JSON object represented here has a proto equivalent, the proto name will
223
+ # be indicated in the `@type` property.
224
+ # Corresponds to the JSON property `resourceOriginalState`
225
+ # @return [Hash<String,Object>]
226
+ attr_accessor :resource_original_state
227
+
228
+ # The operation response. This may not include all response elements, such as
229
+ # those that are too large, privacy-sensitive, or duplicated elsewhere in the
230
+ # log record. It should never include user-generated data, such as file contents.
231
+ # When the JSON object represented here has a proto equivalent, the proto name
232
+ # will be indicated in the `@type` property.
233
+ # Corresponds to the JSON property `response`
234
+ # @return [Hash<String,Object>]
235
+ attr_accessor :response
236
+
237
+ # Deprecated. Use the `metadata` field instead. Other service-specific data
238
+ # about the request, response, and other activities.
239
+ # Corresponds to the JSON property `serviceData`
240
+ # @return [Hash<String,Object>]
241
+ attr_accessor :service_data
242
+
243
+ # The name of the API service performing the operation. For example, `"compute.
244
+ # googleapis.com"`.
245
+ # Corresponds to the JSON property `serviceName`
246
+ # @return [String]
247
+ attr_accessor :service_name
248
+
249
+ # The `Status` type defines a logical error model that is suitable for different
250
+ # programming environments, including REST APIs and RPC APIs. It is used by [
251
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
252
+ # data: error code, error message, and error details. You can find out more
253
+ # about this error model and how to work with it in the [API Design Guide](https:
254
+ # //cloud.google.com/apis/design/errors).
255
+ # Corresponds to the JSON property `status`
256
+ # @return [Google::Apis::ServicecontrolV2::Status]
257
+ attr_accessor :status
258
+
259
+ def initialize(**args)
260
+ update!(**args)
261
+ end
262
+
263
+ # Update properties of this object
264
+ def update!(**args)
265
+ @authentication_info = args[:authentication_info] if args.key?(:authentication_info)
266
+ @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
267
+ @metadata = args[:metadata] if args.key?(:metadata)
268
+ @method_name = args[:method_name] if args.key?(:method_name)
269
+ @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
270
+ @request = args[:request] if args.key?(:request)
271
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
272
+ @resource_location = args[:resource_location] if args.key?(:resource_location)
273
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
274
+ @resource_original_state = args[:resource_original_state] if args.key?(:resource_original_state)
275
+ @response = args[:response] if args.key?(:response)
276
+ @service_data = args[:service_data] if args.key?(:service_data)
277
+ @service_name = args[:service_name] if args.key?(:service_name)
278
+ @status = args[:status] if args.key?(:status)
279
+ end
280
+ end
281
+
282
+ # This message defines request authentication attributes. Terminology is based
283
+ # on the JSON Web Token (JWT) standard, but the terms also correlate to concepts
284
+ # in other standards.
285
+ class Auth
286
+ include Google::Apis::Core::Hashable
287
+
288
+ # A list of access level resource names that allow resources to be accessed by
289
+ # authenticated requester. It is part of Secure GCP processing for the incoming
290
+ # request. An access level string has the format: "//`api_service_name`/
291
+ # accessPolicies/`policy_id`/accessLevels/`short_name`" Example: "//
292
+ # accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/
293
+ # MY_LEVEL"
294
+ # Corresponds to the JSON property `accessLevels`
295
+ # @return [Array<String>]
296
+ attr_accessor :access_levels
297
+
298
+ # The intended audience(s) for this authentication information. Reflects the
299
+ # audience (`aud`) claim within a JWT. The audience value(s) depends on the `
300
+ # issuer`, but typically include one or more of the following pieces of
301
+ # information: * The services intended to receive the credential. For example, ["
302
+ # https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * A set
303
+ # of service-based scopes. For example, ["https://www.googleapis.com/auth/cloud-
304
+ # platform"]. * The client id of an app, such as the Firebase project id for
305
+ # JWTs from Firebase Auth. Consult the documentation for the credential issuer
306
+ # to determine the information provided.
307
+ # Corresponds to the JSON property `audiences`
308
+ # @return [Array<String>]
309
+ attr_accessor :audiences
310
+
311
+ # Structured claims presented with the credential. JWTs include ``key: value``
312
+ # pairs for standard and private claims. The following is a subset of the
313
+ # standard required and optional claims that would typically be presented for a
314
+ # Google-based JWT: `'iss': 'accounts.google.com', 'sub': '113289723416554971153'
315
+ # , 'aud': ['123456789012', 'pubsub.googleapis.com'], 'azp': '123456789012.apps.
316
+ # googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp'
317
+ # : 1353604926` SAML assertions are similarly specified, but with an identity
318
+ # provider dependent structure.
319
+ # Corresponds to the JSON property `claims`
320
+ # @return [Hash<String,Object>]
321
+ attr_accessor :claims
322
+
323
+ # The authorized presenter of the credential. Reflects the optional Authorized
324
+ # Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a
325
+ # Google Cloud Platform client id looks as follows: "123456789012.apps.
326
+ # googleusercontent.com".
327
+ # Corresponds to the JSON property `presenter`
328
+ # @return [String]
329
+ attr_accessor :presenter
330
+
331
+ # The authenticated principal. Reflects the issuer (`iss`) and subject (`sub`)
332
+ # claims within a JWT. The issuer and subject should be `/` delimited, with `/`
333
+ # percent-encoded within the subject fragment. For Google accounts, the
334
+ # principal format is: "https://accounts.google.com/`id`"
335
+ # Corresponds to the JSON property `principal`
336
+ # @return [String]
337
+ attr_accessor :principal
338
+
339
+ def initialize(**args)
340
+ update!(**args)
341
+ end
342
+
343
+ # Update properties of this object
344
+ def update!(**args)
345
+ @access_levels = args[:access_levels] if args.key?(:access_levels)
346
+ @audiences = args[:audiences] if args.key?(:audiences)
347
+ @claims = args[:claims] if args.key?(:claims)
348
+ @presenter = args[:presenter] if args.key?(:presenter)
349
+ @principal = args[:principal] if args.key?(:principal)
350
+ end
351
+ end
352
+
353
+ # Authentication information for the operation.
354
+ class AuthenticationInfo
355
+ include Google::Apis::Core::Hashable
356
+
357
+ # The authority selector specified by the requestor, if any. It is not
358
+ # guaranteed that the principal was allowed to use this authority.
359
+ # Corresponds to the JSON property `authoritySelector`
360
+ # @return [String]
361
+ attr_accessor :authority_selector
362
+
363
+ # The email address of the authenticated user (or service account on behalf of
364
+ # third party principal) making the request. For third party identity callers,
365
+ # the `principal_subject` field is populated instead of this field. For privacy
366
+ # reasons, the principal email address is sometimes redacted. For more
367
+ # information, see [Caller identities in audit logs](https://cloud.google.com/
368
+ # logging/docs/audit#user-id).
369
+ # Corresponds to the JSON property `principalEmail`
370
+ # @return [String]
371
+ attr_accessor :principal_email
372
+
373
+ # String representation of identity of requesting party. Populated for both
374
+ # first and third party identities.
375
+ # Corresponds to the JSON property `principalSubject`
376
+ # @return [String]
377
+ attr_accessor :principal_subject
378
+
379
+ # Identity delegation history of an authenticated service account that makes the
380
+ # request. It contains information on the real authorities that try to access
381
+ # GCP resources by delegating on a service account. When multiple authorities
382
+ # present, they are guaranteed to be sorted based on the original ordering of
383
+ # the identity delegation events.
384
+ # Corresponds to the JSON property `serviceAccountDelegationInfo`
385
+ # @return [Array<Google::Apis::ServicecontrolV2::ServiceAccountDelegationInfo>]
386
+ attr_accessor :service_account_delegation_info
387
+
388
+ # The name of the service account key used to create or exchange credentials for
389
+ # authenticating the service account making the request. This is a scheme-less
390
+ # URI full resource name. For example: "//iam.googleapis.com/projects/`
391
+ # PROJECT_ID`/serviceAccounts/`ACCOUNT`/keys/`key`"
392
+ # Corresponds to the JSON property `serviceAccountKeyName`
393
+ # @return [String]
394
+ attr_accessor :service_account_key_name
395
+
396
+ # The third party identification (if any) of the authenticated user making the
397
+ # request. When the JSON object represented here has a proto equivalent, the
398
+ # proto name will be indicated in the `@type` property.
399
+ # Corresponds to the JSON property `thirdPartyPrincipal`
400
+ # @return [Hash<String,Object>]
401
+ attr_accessor :third_party_principal
402
+
403
+ def initialize(**args)
404
+ update!(**args)
405
+ end
406
+
407
+ # Update properties of this object
408
+ def update!(**args)
409
+ @authority_selector = args[:authority_selector] if args.key?(:authority_selector)
410
+ @principal_email = args[:principal_email] if args.key?(:principal_email)
411
+ @principal_subject = args[:principal_subject] if args.key?(:principal_subject)
412
+ @service_account_delegation_info = args[:service_account_delegation_info] if args.key?(:service_account_delegation_info)
413
+ @service_account_key_name = args[:service_account_key_name] if args.key?(:service_account_key_name)
414
+ @third_party_principal = args[:third_party_principal] if args.key?(:third_party_principal)
415
+ end
416
+ end
417
+
418
+ # Authorization information for the operation.
419
+ class AuthorizationInfo
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # Whether or not authorization for `resource` and `permission` was granted.
423
+ # Corresponds to the JSON property `granted`
424
+ # @return [Boolean]
425
+ attr_accessor :granted
426
+ alias_method :granted?, :granted
427
+
428
+ # The required IAM permission.
429
+ # Corresponds to the JSON property `permission`
430
+ # @return [String]
431
+ attr_accessor :permission
432
+
433
+ # The resource being accessed, as a REST-style string. For example: bigquery.
434
+ # googleapis.com/projects/PROJECTID/datasets/DATASETID
435
+ # Corresponds to the JSON property `resource`
436
+ # @return [String]
437
+ attr_accessor :resource
438
+
439
+ # This message defines core attributes for a resource. A resource is an
440
+ # addressable (named) entity provided by the destination service. For example, a
441
+ # file stored on a network storage service.
442
+ # Corresponds to the JSON property `resourceAttributes`
443
+ # @return [Google::Apis::ServicecontrolV2::Resource]
444
+ attr_accessor :resource_attributes
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @granted = args[:granted] if args.key?(:granted)
453
+ @permission = args[:permission] if args.key?(:permission)
454
+ @resource = args[:resource] if args.key?(:resource)
455
+ @resource_attributes = args[:resource_attributes] if args.key?(:resource_attributes)
456
+ end
457
+ end
458
+
459
+ # Request message for the Check method.
460
+ class CheckRequest
461
+ include Google::Apis::Core::Hashable
462
+
463
+ # This message defines the standard attribute vocabulary for Google APIs. An
464
+ # attribute is a piece of metadata that describes an activity on a network
465
+ # service. For example, the size of an HTTP request, or the status code of an
466
+ # HTTP response. Each attribute has a type and a name, which is logically
467
+ # defined as a proto message field in `AttributeContext`. The field type becomes
468
+ # the attribute type, and the field path becomes the attribute name. For example,
469
+ # the attribute `source.ip` maps to field `AttributeContext.source.ip`. This
470
+ # message definition is guaranteed not to have any wire breaking change. So you
471
+ # can use it directly for passing attributes across different systems. NOTE:
472
+ # Different system may generate different subset of attributes. Please verify
473
+ # the system specification before relying on an attribute generated a system.
474
+ # Corresponds to the JSON property `attributes`
475
+ # @return [Google::Apis::ServicecontrolV2::AttributeContext]
476
+ attr_accessor :attributes
477
+
478
+ # Describes the resources and the policies applied to each resource.
479
+ # Corresponds to the JSON property `resources`
480
+ # @return [Array<Google::Apis::ServicecontrolV2::ResourceInfo>]
481
+ attr_accessor :resources
482
+
483
+ # Specifies the version of the service configuration that should be used to
484
+ # process the request. Must not be empty. Set this field to 'latest' to specify
485
+ # using the latest configuration.
486
+ # Corresponds to the JSON property `serviceConfigId`
487
+ # @return [String]
488
+ attr_accessor :service_config_id
489
+
490
+ def initialize(**args)
491
+ update!(**args)
492
+ end
493
+
494
+ # Update properties of this object
495
+ def update!(**args)
496
+ @attributes = args[:attributes] if args.key?(:attributes)
497
+ @resources = args[:resources] if args.key?(:resources)
498
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
499
+ end
500
+ end
501
+
502
+ # Response message for the Check method.
503
+ class CheckResponse
504
+ include Google::Apis::Core::Hashable
505
+
506
+ # Returns a set of request contexts generated from the `CheckRequest`.
507
+ # Corresponds to the JSON property `headers`
508
+ # @return [Hash<String,String>]
509
+ attr_accessor :headers
510
+
511
+ # The `Status` type defines a logical error model that is suitable for different
512
+ # programming environments, including REST APIs and RPC APIs. It is used by [
513
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
514
+ # data: error code, error message, and error details. You can find out more
515
+ # about this error model and how to work with it in the [API Design Guide](https:
516
+ # //cloud.google.com/apis/design/errors).
517
+ # Corresponds to the JSON property `status`
518
+ # @return [Google::Apis::ServicecontrolV2::Status]
519
+ attr_accessor :status
520
+
521
+ def initialize(**args)
522
+ update!(**args)
523
+ end
524
+
525
+ # Update properties of this object
526
+ def update!(**args)
527
+ @headers = args[:headers] if args.key?(:headers)
528
+ @status = args[:status] if args.key?(:status)
529
+ end
530
+ end
531
+
532
+ # First party identity principal.
533
+ class FirstPartyPrincipal
534
+ include Google::Apis::Core::Hashable
535
+
536
+ # The email address of a Google account. .
537
+ # Corresponds to the JSON property `principalEmail`
538
+ # @return [String]
539
+ attr_accessor :principal_email
540
+
541
+ # Metadata about the service that uses the service account. .
542
+ # Corresponds to the JSON property `serviceMetadata`
543
+ # @return [Hash<String,Object>]
544
+ attr_accessor :service_metadata
545
+
546
+ def initialize(**args)
547
+ update!(**args)
548
+ end
549
+
550
+ # Update properties of this object
551
+ def update!(**args)
552
+ @principal_email = args[:principal_email] if args.key?(:principal_email)
553
+ @service_metadata = args[:service_metadata] if args.key?(:service_metadata)
554
+ end
555
+ end
556
+
557
+ # This message defines attributes for a node that handles a network request. The
558
+ # node can be either a service or an application that sends, forwards, or
559
+ # receives the request. Service peers should fill in `principal` and `labels` as
560
+ # appropriate.
561
+ class Peer
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # The IP address of the peer.
565
+ # Corresponds to the JSON property `ip`
566
+ # @return [String]
567
+ attr_accessor :ip
568
+
569
+ # The labels associated with the peer.
570
+ # Corresponds to the JSON property `labels`
571
+ # @return [Hash<String,String>]
572
+ attr_accessor :labels
573
+
574
+ # The network port of the peer.
575
+ # Corresponds to the JSON property `port`
576
+ # @return [Fixnum]
577
+ attr_accessor :port
578
+
579
+ # The identity of this peer. Similar to `Request.auth.principal`, but relative
580
+ # to the peer instead of the request. For example, the idenity associated with a
581
+ # load balancer that forwared the request.
582
+ # Corresponds to the JSON property `principal`
583
+ # @return [String]
584
+ attr_accessor :principal
585
+
586
+ # The CLDR country/region code associated with the above IP address. If the IP
587
+ # address is private, the `region_code` should reflect the physical location
588
+ # where this peer is running.
589
+ # Corresponds to the JSON property `regionCode`
590
+ # @return [String]
591
+ attr_accessor :region_code
592
+
593
+ def initialize(**args)
594
+ update!(**args)
595
+ end
596
+
597
+ # Update properties of this object
598
+ def update!(**args)
599
+ @ip = args[:ip] if args.key?(:ip)
600
+ @labels = args[:labels] if args.key?(:labels)
601
+ @port = args[:port] if args.key?(:port)
602
+ @principal = args[:principal] if args.key?(:principal)
603
+ @region_code = args[:region_code] if args.key?(:region_code)
604
+ end
605
+ end
606
+
607
+ # Request message for the Report method.
608
+ class ReportRequest
609
+ include Google::Apis::Core::Hashable
610
+
611
+ # Describes the list of operations to be reported. Each operation is represented
612
+ # as an AttributeContext, and contains all attributes around an API access.
613
+ # Corresponds to the JSON property `operations`
614
+ # @return [Array<Google::Apis::ServicecontrolV2::AttributeContext>]
615
+ attr_accessor :operations
616
+
617
+ # Specifies the version of the service configuration that should be used to
618
+ # process the request. Must not be empty. Set this field to 'latest' to specify
619
+ # using the latest configuration.
620
+ # Corresponds to the JSON property `serviceConfigId`
621
+ # @return [String]
622
+ attr_accessor :service_config_id
623
+
624
+ def initialize(**args)
625
+ update!(**args)
626
+ end
627
+
628
+ # Update properties of this object
629
+ def update!(**args)
630
+ @operations = args[:operations] if args.key?(:operations)
631
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
632
+ end
633
+ end
634
+
635
+ # Response message for the Report method. If the request contains any invalid
636
+ # data, the server returns an RPC error.
637
+ class ReportResponse
638
+ include Google::Apis::Core::Hashable
639
+
640
+ def initialize(**args)
641
+ update!(**args)
642
+ end
643
+
644
+ # Update properties of this object
645
+ def update!(**args)
646
+ end
647
+ end
648
+
649
+ # This message defines attributes for an HTTP request. If the actual request is
650
+ # not an HTTP request, the runtime system should try to map the actual request
651
+ # to an equivalent HTTP request.
652
+ class Request
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # This message defines request authentication attributes. Terminology is based
656
+ # on the JSON Web Token (JWT) standard, but the terms also correlate to concepts
657
+ # in other standards.
658
+ # Corresponds to the JSON property `auth`
659
+ # @return [Google::Apis::ServicecontrolV2::Auth]
660
+ attr_accessor :auth
661
+
662
+ # The HTTP request headers. If multiple headers share the same key, they must be
663
+ # merged according to the HTTP spec. All header keys must be lowercased, because
664
+ # HTTP header keys are case-insensitive.
665
+ # Corresponds to the JSON property `headers`
666
+ # @return [Hash<String,String>]
667
+ attr_accessor :headers
668
+
669
+ # The HTTP request `Host` header value.
670
+ # Corresponds to the JSON property `host`
671
+ # @return [String]
672
+ attr_accessor :host
673
+
674
+ # The unique ID for a request, which can be propagated to downstream systems.
675
+ # The ID should have low probability of collision within a single day for a
676
+ # specific service.
677
+ # Corresponds to the JSON property `id`
678
+ # @return [String]
679
+ attr_accessor :id
680
+
681
+ # The HTTP request method, such as `GET`, `POST`.
682
+ # Corresponds to the JSON property `method`
683
+ # @return [String]
684
+ attr_accessor :method_prop
685
+
686
+ # The HTTP URL path.
687
+ # Corresponds to the JSON property `path`
688
+ # @return [String]
689
+ attr_accessor :path
690
+
691
+ # The network protocol used with the request, such as "http/1.1", "spdy/3", "h2",
692
+ # "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/
693
+ # tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for
694
+ # details.
695
+ # Corresponds to the JSON property `protocol`
696
+ # @return [String]
697
+ attr_accessor :protocol
698
+
699
+ # The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears
700
+ # in the first line of the HTTP request. No decoding is performed.
701
+ # Corresponds to the JSON property `query`
702
+ # @return [String]
703
+ attr_accessor :query
704
+
705
+ # A special parameter for request reason. It is used by security systems to
706
+ # associate auditing information with a request.
707
+ # Corresponds to the JSON property `reason`
708
+ # @return [String]
709
+ attr_accessor :reason
710
+
711
+ # The HTTP URL scheme, such as `http` and `https`.
712
+ # Corresponds to the JSON property `scheme`
713
+ # @return [String]
714
+ attr_accessor :scheme
715
+
716
+ # The HTTP request size in bytes. If unknown, it must be -1.
717
+ # Corresponds to the JSON property `size`
718
+ # @return [Fixnum]
719
+ attr_accessor :size
720
+
721
+ # The timestamp when the `destination` service receives the first byte of the
722
+ # request.
723
+ # Corresponds to the JSON property `time`
724
+ # @return [String]
725
+ attr_accessor :time
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ @auth = args[:auth] if args.key?(:auth)
734
+ @headers = args[:headers] if args.key?(:headers)
735
+ @host = args[:host] if args.key?(:host)
736
+ @id = args[:id] if args.key?(:id)
737
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
738
+ @path = args[:path] if args.key?(:path)
739
+ @protocol = args[:protocol] if args.key?(:protocol)
740
+ @query = args[:query] if args.key?(:query)
741
+ @reason = args[:reason] if args.key?(:reason)
742
+ @scheme = args[:scheme] if args.key?(:scheme)
743
+ @size = args[:size] if args.key?(:size)
744
+ @time = args[:time] if args.key?(:time)
745
+ end
746
+ end
747
+
748
+ # Metadata about the request.
749
+ class RequestMetadata
750
+ include Google::Apis::Core::Hashable
751
+
752
+ # The IP address of the caller. For caller from internet, this will be public
753
+ # IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP
754
+ # address, this will be the VM's external IP address. For caller from a Compute
755
+ # Engine VM without external IP address, if the VM is in the same organization (
756
+ # or project) as the accessed resource, `caller_ip` will be the VM's internal
757
+ # IPv4 address, otherwise the `caller_ip` will be redacted to "gce-internal-ip".
758
+ # See https://cloud.google.com/compute/docs/vpc/ for more information.
759
+ # Corresponds to the JSON property `callerIp`
760
+ # @return [String]
761
+ attr_accessor :caller_ip
762
+
763
+ # The network of the caller. Set only if the network host project is part of the
764
+ # same GCP organization (or project) as the accessed resource. See https://cloud.
765
+ # google.com/compute/docs/vpc/ for more information. This is a scheme-less URI
766
+ # full resource name. For example: "//compute.googleapis.com/projects/PROJECT_ID/
767
+ # global/networks/NETWORK_ID"
768
+ # Corresponds to the JSON property `callerNetwork`
769
+ # @return [String]
770
+ attr_accessor :caller_network
771
+
772
+ # The user agent of the caller. This information is not authenticated and should
773
+ # be treated accordingly. For example: + `google-api-python-client/1.4.0`: The
774
+ # request was made by the Google API client for Python. + `Cloud SDK Command
775
+ # Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the
776
+ # Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/
777
+ # appengine; appid: s~my-project`: The request was made from the `my-project`
778
+ # App Engine app. NOLINT
779
+ # Corresponds to the JSON property `callerSuppliedUserAgent`
780
+ # @return [String]
781
+ attr_accessor :caller_supplied_user_agent
782
+
783
+ # This message defines attributes for a node that handles a network request. The
784
+ # node can be either a service or an application that sends, forwards, or
785
+ # receives the request. Service peers should fill in `principal` and `labels` as
786
+ # appropriate.
787
+ # Corresponds to the JSON property `destinationAttributes`
788
+ # @return [Google::Apis::ServicecontrolV2::Peer]
789
+ attr_accessor :destination_attributes
790
+
791
+ # This message defines attributes for an HTTP request. If the actual request is
792
+ # not an HTTP request, the runtime system should try to map the actual request
793
+ # to an equivalent HTTP request.
794
+ # Corresponds to the JSON property `requestAttributes`
795
+ # @return [Google::Apis::ServicecontrolV2::Request]
796
+ attr_accessor :request_attributes
797
+
798
+ def initialize(**args)
799
+ update!(**args)
800
+ end
801
+
802
+ # Update properties of this object
803
+ def update!(**args)
804
+ @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
805
+ @caller_network = args[:caller_network] if args.key?(:caller_network)
806
+ @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
807
+ @destination_attributes = args[:destination_attributes] if args.key?(:destination_attributes)
808
+ @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
809
+ end
810
+ end
811
+
812
+ # This message defines core attributes for a resource. A resource is an
813
+ # addressable (named) entity provided by the destination service. For example, a
814
+ # file stored on a network storage service.
815
+ class Resource
816
+ include Google::Apis::Core::Hashable
817
+
818
+ # Annotations is an unstructured key-value map stored with a resource that may
819
+ # be set by external tools to store and retrieve arbitrary metadata. They are
820
+ # not queryable and should be preserved when modifying objects. More info: http:/
821
+ # /kubernetes.io/docs/user-guide/annotations
822
+ # Corresponds to the JSON property `annotations`
823
+ # @return [Hash<String,String>]
824
+ attr_accessor :annotations
825
+
826
+ # Output only. The timestamp when the resource was created. This may be either
827
+ # the time creation was initiated or when it was completed.
828
+ # Corresponds to the JSON property `createTime`
829
+ # @return [String]
830
+ attr_accessor :create_time
831
+
832
+ # Output only. The timestamp when the resource was deleted. If the resource is
833
+ # not deleted, this must be empty.
834
+ # Corresponds to the JSON property `deleteTime`
835
+ # @return [String]
836
+ attr_accessor :delete_time
837
+
838
+ # Mutable. The display name set by clients. Must be <= 63 characters.
839
+ # Corresponds to the JSON property `displayName`
840
+ # @return [String]
841
+ attr_accessor :display_name
842
+
843
+ # Output only. An opaque value that uniquely identifies a version or generation
844
+ # of a resource. It can be used to confirm that the client and server agree on
845
+ # the ordering of a resource being written.
846
+ # Corresponds to the JSON property `etag`
847
+ # @return [String]
848
+ attr_accessor :etag
849
+
850
+ # The labels or tags on the resource, such as AWS resource tags and Kubernetes
851
+ # resource labels.
852
+ # Corresponds to the JSON property `labels`
853
+ # @return [Hash<String,String>]
854
+ attr_accessor :labels
855
+
856
+ # The stable identifier (name) of a resource on the `service`. A resource can be
857
+ # logically identified as "//`resource.service`/`resource.name`". The
858
+ # differences between a resource name and a URI are: * Resource name is a
859
+ # logical identifier, independent of network protocol and API version. For
860
+ # example, `//pubsub.googleapis.com/projects/123/topics/news-feed`. * URI often
861
+ # includes protocol and version information, so it can be used directly by
862
+ # applications. For example, `https://pubsub.googleapis.com/v1/projects/123/
863
+ # topics/news-feed`. See https://cloud.google.com/apis/design/resource_names for
864
+ # details.
865
+ # Corresponds to the JSON property `name`
866
+ # @return [String]
867
+ attr_accessor :name
868
+
869
+ # The name of the service that this resource belongs to, such as `pubsub.
870
+ # googleapis.com`. The service may be different from the DNS hostname that
871
+ # actually serves the request.
872
+ # Corresponds to the JSON property `service`
873
+ # @return [String]
874
+ attr_accessor :service
875
+
876
+ # The type of the resource. The syntax is platform-specific because different
877
+ # platforms define their resources differently. For Google APIs, the type format
878
+ # must be "`service`/`kind`".
879
+ # Corresponds to the JSON property `type`
880
+ # @return [String]
881
+ attr_accessor :type
882
+
883
+ # The unique identifier of the resource. UID is unique in the time and space for
884
+ # this resource within the scope of the service. It is typically generated by
885
+ # the server on successful creation of a resource and must not be changed. UID
886
+ # is used to uniquely identify resources with resource name reuses. This should
887
+ # be a UUID4.
888
+ # Corresponds to the JSON property `uid`
889
+ # @return [String]
890
+ attr_accessor :uid
891
+
892
+ # Output only. The timestamp when the resource was last updated. Any change to
893
+ # the resource made by users must refresh this value. Changes to a resource made
894
+ # by the service should refresh this value.
895
+ # Corresponds to the JSON property `updateTime`
896
+ # @return [String]
897
+ attr_accessor :update_time
898
+
899
+ def initialize(**args)
900
+ update!(**args)
901
+ end
902
+
903
+ # Update properties of this object
904
+ def update!(**args)
905
+ @annotations = args[:annotations] if args.key?(:annotations)
906
+ @create_time = args[:create_time] if args.key?(:create_time)
907
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
908
+ @display_name = args[:display_name] if args.key?(:display_name)
909
+ @etag = args[:etag] if args.key?(:etag)
910
+ @labels = args[:labels] if args.key?(:labels)
911
+ @name = args[:name] if args.key?(:name)
912
+ @service = args[:service] if args.key?(:service)
913
+ @type = args[:type] if args.key?(:type)
914
+ @uid = args[:uid] if args.key?(:uid)
915
+ @update_time = args[:update_time] if args.key?(:update_time)
916
+ end
917
+ end
918
+
919
+ # Describes a resource referenced in the request.
920
+ class ResourceInfo
921
+ include Google::Apis::Core::Hashable
922
+
923
+ # The name of the resource referenced in the request.
924
+ # Corresponds to the JSON property `name`
925
+ # @return [String]
926
+ attr_accessor :name
927
+
928
+ # The resource permission needed for this request. The format must be "`service`/
929
+ # `plural`.`verb`".
930
+ # Corresponds to the JSON property `permission`
931
+ # @return [String]
932
+ attr_accessor :permission
933
+
934
+ # The resource type in the format of "`service`/`kind`".
935
+ # Corresponds to the JSON property `type`
936
+ # @return [String]
937
+ attr_accessor :type
938
+
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
942
+
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @name = args[:name] if args.key?(:name)
946
+ @permission = args[:permission] if args.key?(:permission)
947
+ @type = args[:type] if args.key?(:type)
948
+ end
949
+ end
950
+
951
+ # Location information about a resource.
952
+ class ResourceLocation
953
+ include Google::Apis::Core::Hashable
954
+
955
+ # The locations of a resource after the execution of the operation. Requests to
956
+ # create or delete a location based resource must populate the '
957
+ # current_locations' field and not the 'original_locations' field. For example: "
958
+ # europe-west1-a" "us-east1" "nam3"
959
+ # Corresponds to the JSON property `currentLocations`
960
+ # @return [Array<String>]
961
+ attr_accessor :current_locations
962
+
963
+ # The locations of a resource prior to the execution of the operation. Requests
964
+ # that mutate the resource's location must populate both the 'original_locations'
965
+ # as well as the 'current_locations' fields. For example: "europe-west1-a" "us-
966
+ # east1" "nam3"
967
+ # Corresponds to the JSON property `originalLocations`
968
+ # @return [Array<String>]
969
+ attr_accessor :original_locations
970
+
971
+ def initialize(**args)
972
+ update!(**args)
973
+ end
974
+
975
+ # Update properties of this object
976
+ def update!(**args)
977
+ @current_locations = args[:current_locations] if args.key?(:current_locations)
978
+ @original_locations = args[:original_locations] if args.key?(:original_locations)
979
+ end
980
+ end
981
+
982
+ # This message defines attributes for a typical network response. It generally
983
+ # models semantics of an HTTP response.
984
+ class Response
985
+ include Google::Apis::Core::Hashable
986
+
987
+ # The HTTP response status code, such as `200` and `404`.
988
+ # Corresponds to the JSON property `code`
989
+ # @return [Fixnum]
990
+ attr_accessor :code
991
+
992
+ # The HTTP response headers. If multiple headers share the same key, they must
993
+ # be merged according to HTTP spec. All header keys must be lowercased, because
994
+ # HTTP header keys are case-insensitive.
995
+ # Corresponds to the JSON property `headers`
996
+ # @return [Hash<String,String>]
997
+ attr_accessor :headers
998
+
999
+ # The HTTP response size in bytes. If unknown, it must be -1.
1000
+ # Corresponds to the JSON property `size`
1001
+ # @return [Fixnum]
1002
+ attr_accessor :size
1003
+
1004
+ # The timestamp when the `destination` service generates the first byte of the
1005
+ # response.
1006
+ # Corresponds to the JSON property `time`
1007
+ # @return [String]
1008
+ attr_accessor :time
1009
+
1010
+ def initialize(**args)
1011
+ update!(**args)
1012
+ end
1013
+
1014
+ # Update properties of this object
1015
+ def update!(**args)
1016
+ @code = args[:code] if args.key?(:code)
1017
+ @headers = args[:headers] if args.key?(:headers)
1018
+ @size = args[:size] if args.key?(:size)
1019
+ @time = args[:time] if args.key?(:time)
1020
+ end
1021
+ end
1022
+
1023
+ # Identity delegation history of an authenticated service account.
1024
+ class ServiceAccountDelegationInfo
1025
+ include Google::Apis::Core::Hashable
1026
+
1027
+ # First party identity principal.
1028
+ # Corresponds to the JSON property `firstPartyPrincipal`
1029
+ # @return [Google::Apis::ServicecontrolV2::FirstPartyPrincipal]
1030
+ attr_accessor :first_party_principal
1031
+
1032
+ # A string representing the principal_subject associated with the identity. See
1033
+ # go/3pical for more info on how principal_subject is formatted.
1034
+ # Corresponds to the JSON property `principalSubject`
1035
+ # @return [String]
1036
+ attr_accessor :principal_subject
1037
+
1038
+ # Third party identity principal.
1039
+ # Corresponds to the JSON property `thirdPartyPrincipal`
1040
+ # @return [Google::Apis::ServicecontrolV2::ThirdPartyPrincipal]
1041
+ attr_accessor :third_party_principal
1042
+
1043
+ def initialize(**args)
1044
+ update!(**args)
1045
+ end
1046
+
1047
+ # Update properties of this object
1048
+ def update!(**args)
1049
+ @first_party_principal = args[:first_party_principal] if args.key?(:first_party_principal)
1050
+ @principal_subject = args[:principal_subject] if args.key?(:principal_subject)
1051
+ @third_party_principal = args[:third_party_principal] if args.key?(:third_party_principal)
1052
+ end
1053
+ end
1054
+
1055
+ # The context of a span, attached to Exemplars in Distribution values during
1056
+ # aggregation. It contains the name of a span with format: projects/[
1057
+ # PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
1058
+ class SpanContext
1059
+ include Google::Apis::Core::Hashable
1060
+
1061
+ # The resource name of the span. The format is: projects/[PROJECT_ID_OR_NUMBER]/
1062
+ # traces/[TRACE_ID]/spans/[SPAN_ID] `[TRACE_ID]` is a unique identifier for a
1063
+ # trace within a project; it is a 32-character hexadecimal encoding of a 16-byte
1064
+ # array. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a
1065
+ # 16-character hexadecimal encoding of an 8-byte array.
1066
+ # Corresponds to the JSON property `spanName`
1067
+ # @return [String]
1068
+ attr_accessor :span_name
1069
+
1070
+ def initialize(**args)
1071
+ update!(**args)
1072
+ end
1073
+
1074
+ # Update properties of this object
1075
+ def update!(**args)
1076
+ @span_name = args[:span_name] if args.key?(:span_name)
1077
+ end
1078
+ end
1079
+
1080
+ # The `Status` type defines a logical error model that is suitable for different
1081
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1082
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1083
+ # data: error code, error message, and error details. You can find out more
1084
+ # about this error model and how to work with it in the [API Design Guide](https:
1085
+ # //cloud.google.com/apis/design/errors).
1086
+ class Status
1087
+ include Google::Apis::Core::Hashable
1088
+
1089
+ # The status code, which should be an enum value of google.rpc.Code.
1090
+ # Corresponds to the JSON property `code`
1091
+ # @return [Fixnum]
1092
+ attr_accessor :code
1093
+
1094
+ # A list of messages that carry the error details. There is a common set of
1095
+ # message types for APIs to use.
1096
+ # Corresponds to the JSON property `details`
1097
+ # @return [Array<Hash<String,Object>>]
1098
+ attr_accessor :details
1099
+
1100
+ # A developer-facing error message, which should be in English. Any user-facing
1101
+ # error message should be localized and sent in the google.rpc.Status.details
1102
+ # field, or localized by the client.
1103
+ # Corresponds to the JSON property `message`
1104
+ # @return [String]
1105
+ attr_accessor :message
1106
+
1107
+ def initialize(**args)
1108
+ update!(**args)
1109
+ end
1110
+
1111
+ # Update properties of this object
1112
+ def update!(**args)
1113
+ @code = args[:code] if args.key?(:code)
1114
+ @details = args[:details] if args.key?(:details)
1115
+ @message = args[:message] if args.key?(:message)
1116
+ end
1117
+ end
1118
+
1119
+ # Third party identity principal.
1120
+ class ThirdPartyPrincipal
1121
+ include Google::Apis::Core::Hashable
1122
+
1123
+ # Metadata about third party identity.
1124
+ # Corresponds to the JSON property `thirdPartyClaims`
1125
+ # @return [Hash<String,Object>]
1126
+ attr_accessor :third_party_claims
1127
+
1128
+ def initialize(**args)
1129
+ update!(**args)
1130
+ end
1131
+
1132
+ # Update properties of this object
1133
+ def update!(**args)
1134
+ @third_party_claims = args[:third_party_claims] if args.key?(:third_party_claims)
1135
+ end
1136
+ end
1137
+ end
1138
+ end
1139
+ end