google-apis-apigateway_v1 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: 73231e3b53415fe4c6e9286104b5c3aaabfcb286d136e5d0e044291d4d06c79d
4
+ data.tar.gz: '073840d6cdf456369fe60cd37d749182c570b65084af50ef01e28d65a76ddc1a'
5
+ SHA512:
6
+ metadata.gz: ef459c9f6f74b28d3851f66d9c1e3e1aa67df0e6a4b177ec0c241899c5701b3539e7e169cb195be65c7beec4bcefe4ceffb0efc577cf40d016c5dfd0ba32c351
7
+ data.tar.gz: fedebef6987042fee885b44c32d6bbf40f4b5cf19e33e84a7ef855bf2b978532a4eb5ac9274f84feb29908988d7b46568ca157817df737b418d15f59d05af866
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-apigateway_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/apigateway_v1/*.rb
9
+ lib/google/apis/apigateway_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-apigateway_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201211
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 V1 of the API Gateway API
2
+
3
+ This is a simple client library for version V1 of the API Gateway 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/apigateway.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-apigateway_v1', '~> 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-apigateway_v1
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/apigateway_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::ApigatewayV1::ApigatewayService.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 Apigateway service in particular.)
67
+
68
+ For reference information on specific calls in the API Gateway API, see the {Google::Apis::ApigatewayV1::ApigatewayService 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-apigateway_v1`, 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/api-gateway/docs) 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/apigateway_v1"
@@ -0,0 +1,36 @@
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/apigateway_v1/service.rb'
16
+ require 'google/apis/apigateway_v1/classes.rb'
17
+ require 'google/apis/apigateway_v1/representations.rb'
18
+ require 'google/apis/apigateway_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # API Gateway API
23
+ #
24
+ #
25
+ #
26
+ # @see https://cloud.google.com/api-gateway/docs
27
+ module ApigatewayV1
28
+ # Version of the API Gateway API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,1116 @@
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 ApigatewayV1
24
+
25
+ # An API that can be served by one or more Gateways.
26
+ class ApigatewayApi
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. Created time.
30
+ # Corresponds to the JSON property `createTime`
31
+ # @return [String]
32
+ attr_accessor :create_time
33
+
34
+ # Optional. Display name.
35
+ # Corresponds to the JSON property `displayName`
36
+ # @return [String]
37
+ attr_accessor :display_name
38
+
39
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
40
+ # documentation on labels for more details. https://cloud.google.com/compute/
41
+ # docs/labeling-resources
42
+ # Corresponds to the JSON property `labels`
43
+ # @return [Hash<String,String>]
44
+ attr_accessor :labels
45
+
46
+ # Optional. Immutable. The name of a Google Managed Service ( https://cloud.
47
+ # google.com/service-infrastructure/docs/glossary#managed). If not specified, a
48
+ # new Service will automatically be created in the same project as this API.
49
+ # Corresponds to the JSON property `managedService`
50
+ # @return [String]
51
+ attr_accessor :managed_service
52
+
53
+ # Output only. Resource name of the API. Format: projects/`project`/locations/
54
+ # global/apis/`api`
55
+ # Corresponds to the JSON property `name`
56
+ # @return [String]
57
+ attr_accessor :name
58
+
59
+ # Output only. State of the API.
60
+ # Corresponds to the JSON property `state`
61
+ # @return [String]
62
+ attr_accessor :state
63
+
64
+ # Output only. Updated time.
65
+ # Corresponds to the JSON property `updateTime`
66
+ # @return [String]
67
+ attr_accessor :update_time
68
+
69
+ def initialize(**args)
70
+ update!(**args)
71
+ end
72
+
73
+ # Update properties of this object
74
+ def update!(**args)
75
+ @create_time = args[:create_time] if args.key?(:create_time)
76
+ @display_name = args[:display_name] if args.key?(:display_name)
77
+ @labels = args[:labels] if args.key?(:labels)
78
+ @managed_service = args[:managed_service] if args.key?(:managed_service)
79
+ @name = args[:name] if args.key?(:name)
80
+ @state = args[:state] if args.key?(:state)
81
+ @update_time = args[:update_time] if args.key?(:update_time)
82
+ end
83
+ end
84
+
85
+ # An API Configuration is a combination of settings for both the Managed Service
86
+ # and Gateways serving this API Config.
87
+ class ApigatewayApiConfig
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Output only. Created time.
91
+ # Corresponds to the JSON property `createTime`
92
+ # @return [String]
93
+ attr_accessor :create_time
94
+
95
+ # Optional. Display name.
96
+ # Corresponds to the JSON property `displayName`
97
+ # @return [String]
98
+ attr_accessor :display_name
99
+
100
+ # Immutable. The Google Cloud IAM Service Account that Gateways serving this
101
+ # config should use to authenticate to other services. This may either be the
102
+ # Service Account's email (``ACCOUNT_ID`@`PROJECT`.iam.gserviceaccount.com`) or
103
+ # its full resource name (`projects/`PROJECT`/accounts/`UNIQUE_ID``). This is
104
+ # most often used when the service is a GCP resource such as a Cloud Run Service
105
+ # or an IAP-secured service.
106
+ # Corresponds to the JSON property `gatewayServiceAccount`
107
+ # @return [String]
108
+ attr_accessor :gateway_service_account
109
+
110
+ # Optional. gRPC service definition files. If specified, openapi_documents must
111
+ # not be included.
112
+ # Corresponds to the JSON property `grpcServices`
113
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApiConfigGrpcServiceDefinition>]
114
+ attr_accessor :grpc_services
115
+
116
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
117
+ # documentation on labels for more details. https://cloud.google.com/compute/
118
+ # docs/labeling-resources
119
+ # Corresponds to the JSON property `labels`
120
+ # @return [Hash<String,String>]
121
+ attr_accessor :labels
122
+
123
+ # Optional. Service Configuration files. At least one must be included when
124
+ # using gRPC service definitions. See https://cloud.google.com/endpoints/docs/
125
+ # grpc/grpc-service-config#service_configuration_overview for the expected file
126
+ # contents. If multiple files are specified, the files are merged with the
127
+ # following rules: * All singular scalar fields are merged using "last one wins"
128
+ # semantics in the order of the files uploaded. * Repeated fields are
129
+ # concatenated. * Singular embedded messages are merged using these rules for
130
+ # nested fields.
131
+ # Corresponds to the JSON property `managedServiceConfigs`
132
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApiConfigFile>]
133
+ attr_accessor :managed_service_configs
134
+
135
+ # Output only. Resource name of the API Config. Format: projects/`project`/
136
+ # locations/global/apis/`api`/configs/`api_config`
137
+ # Corresponds to the JSON property `name`
138
+ # @return [String]
139
+ attr_accessor :name
140
+
141
+ # Optional. OpenAPI specification documents. If specified, grpc_services and
142
+ # managed_service_configs must not be included.
143
+ # Corresponds to the JSON property `openapiDocuments`
144
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApiConfigOpenApiDocument>]
145
+ attr_accessor :openapi_documents
146
+
147
+ # Output only. The ID of the associated Service Config ( https://cloud.google.
148
+ # com/service-infrastructure/docs/glossary#config).
149
+ # Corresponds to the JSON property `serviceConfigId`
150
+ # @return [String]
151
+ attr_accessor :service_config_id
152
+
153
+ # Output only. State of the API Config.
154
+ # Corresponds to the JSON property `state`
155
+ # @return [String]
156
+ attr_accessor :state
157
+
158
+ # Output only. Updated time.
159
+ # Corresponds to the JSON property `updateTime`
160
+ # @return [String]
161
+ attr_accessor :update_time
162
+
163
+ def initialize(**args)
164
+ update!(**args)
165
+ end
166
+
167
+ # Update properties of this object
168
+ def update!(**args)
169
+ @create_time = args[:create_time] if args.key?(:create_time)
170
+ @display_name = args[:display_name] if args.key?(:display_name)
171
+ @gateway_service_account = args[:gateway_service_account] if args.key?(:gateway_service_account)
172
+ @grpc_services = args[:grpc_services] if args.key?(:grpc_services)
173
+ @labels = args[:labels] if args.key?(:labels)
174
+ @managed_service_configs = args[:managed_service_configs] if args.key?(:managed_service_configs)
175
+ @name = args[:name] if args.key?(:name)
176
+ @openapi_documents = args[:openapi_documents] if args.key?(:openapi_documents)
177
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
178
+ @state = args[:state] if args.key?(:state)
179
+ @update_time = args[:update_time] if args.key?(:update_time)
180
+ end
181
+ end
182
+
183
+ # A lightweight description of a file.
184
+ class ApigatewayApiConfigFile
185
+ include Google::Apis::Core::Hashable
186
+
187
+ # The bytes that constitute the file.
188
+ # Corresponds to the JSON property `contents`
189
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
190
+ # @return [String]
191
+ attr_accessor :contents
192
+
193
+ # The file path (full or relative path). This is typically the path of the file
194
+ # when it is uploaded.
195
+ # Corresponds to the JSON property `path`
196
+ # @return [String]
197
+ attr_accessor :path
198
+
199
+ def initialize(**args)
200
+ update!(**args)
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update!(**args)
205
+ @contents = args[:contents] if args.key?(:contents)
206
+ @path = args[:path] if args.key?(:path)
207
+ end
208
+ end
209
+
210
+ # A gRPC service definition.
211
+ class ApigatewayApiConfigGrpcServiceDefinition
212
+ include Google::Apis::Core::Hashable
213
+
214
+ # A lightweight description of a file.
215
+ # Corresponds to the JSON property `fileDescriptorSet`
216
+ # @return [Google::Apis::ApigatewayV1::ApigatewayApiConfigFile]
217
+ attr_accessor :file_descriptor_set
218
+
219
+ # Optional. Uncompiled proto files associated with the descriptor set, used for
220
+ # display purposes (server-side compilation is not supported). These should
221
+ # match the inputs to 'protoc' command used to generate file_descriptor_set.
222
+ # Corresponds to the JSON property `source`
223
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApiConfigFile>]
224
+ attr_accessor :source
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @file_descriptor_set = args[:file_descriptor_set] if args.key?(:file_descriptor_set)
233
+ @source = args[:source] if args.key?(:source)
234
+ end
235
+ end
236
+
237
+ # An OpenAPI Specification Document describing an API.
238
+ class ApigatewayApiConfigOpenApiDocument
239
+ include Google::Apis::Core::Hashable
240
+
241
+ # A lightweight description of a file.
242
+ # Corresponds to the JSON property `document`
243
+ # @return [Google::Apis::ApigatewayV1::ApigatewayApiConfigFile]
244
+ attr_accessor :document
245
+
246
+ def initialize(**args)
247
+ update!(**args)
248
+ end
249
+
250
+ # Update properties of this object
251
+ def update!(**args)
252
+ @document = args[:document] if args.key?(:document)
253
+ end
254
+ end
255
+
256
+ # Specifies the audit configuration for a service. The configuration determines
257
+ # which permission types are logged, and what identities, if any, are exempted
258
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
259
+ # are AuditConfigs for both `allServices` and a specific service, the union of
260
+ # the two AuditConfigs is used for that service: the log_types specified in each
261
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
262
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
263
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
264
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
265
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
266
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
267
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
268
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
269
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
270
+ # DATA_WRITE logging.
271
+ class ApigatewayAuditConfig
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # The configuration for logging of each type of permission.
275
+ # Corresponds to the JSON property `auditLogConfigs`
276
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayAuditLogConfig>]
277
+ attr_accessor :audit_log_configs
278
+
279
+ # Specifies a service that will be enabled for audit logging. For example, `
280
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
281
+ # value that covers all services.
282
+ # Corresponds to the JSON property `service`
283
+ # @return [String]
284
+ attr_accessor :service
285
+
286
+ def initialize(**args)
287
+ update!(**args)
288
+ end
289
+
290
+ # Update properties of this object
291
+ def update!(**args)
292
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
293
+ @service = args[:service] if args.key?(:service)
294
+ end
295
+ end
296
+
297
+ # Provides the configuration for logging a type of permissions. Example: ` "
298
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
299
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
300
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
301
+ # DATA_READ logging.
302
+ class ApigatewayAuditLogConfig
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # Specifies the identities that do not cause logging for this type of permission.
306
+ # Follows the same format of Binding.members.
307
+ # Corresponds to the JSON property `exemptedMembers`
308
+ # @return [Array<String>]
309
+ attr_accessor :exempted_members
310
+
311
+ # The log type that this config enables.
312
+ # Corresponds to the JSON property `logType`
313
+ # @return [String]
314
+ attr_accessor :log_type
315
+
316
+ def initialize(**args)
317
+ update!(**args)
318
+ end
319
+
320
+ # Update properties of this object
321
+ def update!(**args)
322
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
323
+ @log_type = args[:log_type] if args.key?(:log_type)
324
+ end
325
+ end
326
+
327
+ # Associates `members` with a `role`.
328
+ class ApigatewayBinding
329
+ include Google::Apis::Core::Hashable
330
+
331
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
332
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
333
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
334
+ # "Summary size limit" description: "Determines if a summary is less than 100
335
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
336
+ # Requestor is owner" description: "Determines if requestor is the document
337
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
338
+ # Logic): title: "Public documents" description: "Determine whether the document
339
+ # should be publicly visible" expression: "document.type != 'private' &&
340
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
341
+ # string" description: "Create a notification string with a timestamp."
342
+ # expression: "'New message received at ' + string(document.create_time)" The
343
+ # exact variables and functions that may be referenced within an expression are
344
+ # determined by the service that evaluates it. See the service documentation for
345
+ # additional information.
346
+ # Corresponds to the JSON property `condition`
347
+ # @return [Google::Apis::ApigatewayV1::ApigatewayExpr]
348
+ attr_accessor :condition
349
+
350
+ # Specifies the identities requesting access for a Cloud Platform resource. `
351
+ # members` can have the following values: * `allUsers`: A special identifier
352
+ # that represents anyone who is on the internet; with or without a Google
353
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
354
+ # anyone who is authenticated with a Google account or a service account. * `
355
+ # user:`emailid``: An email address that represents a specific Google account.
356
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
357
+ # address that represents a service account. For example, `my-other-app@appspot.
358
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
359
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
360
+ # `uniqueid``: An email address (plus unique identifier) representing a user
361
+ # that has been recently deleted. For example, `alice@example.com?uid=
362
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
363
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
364
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
365
+ # identifier) representing a service account that has been recently deleted. For
366
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
367
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
368
+ # emailid`` and the undeleted service account retains the role in the binding. *
369
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
370
+ # identifier) representing a Google group that has been recently deleted. For
371
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
372
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
373
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
374
+ # primary) that represents all the users of that domain. For example, `google.
375
+ # com` or `example.com`.
376
+ # Corresponds to the JSON property `members`
377
+ # @return [Array<String>]
378
+ attr_accessor :members
379
+
380
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
381
+ # , or `roles/owner`.
382
+ # Corresponds to the JSON property `role`
383
+ # @return [String]
384
+ attr_accessor :role
385
+
386
+ def initialize(**args)
387
+ update!(**args)
388
+ end
389
+
390
+ # Update properties of this object
391
+ def update!(**args)
392
+ @condition = args[:condition] if args.key?(:condition)
393
+ @members = args[:members] if args.key?(:members)
394
+ @role = args[:role] if args.key?(:role)
395
+ end
396
+ end
397
+
398
+ # The request message for Operations.CancelOperation.
399
+ class ApigatewayCancelOperationRequest
400
+ include Google::Apis::Core::Hashable
401
+
402
+ def initialize(**args)
403
+ update!(**args)
404
+ end
405
+
406
+ # Update properties of this object
407
+ def update!(**args)
408
+ end
409
+ end
410
+
411
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
412
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
413
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
414
+ # "Summary size limit" description: "Determines if a summary is less than 100
415
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
416
+ # Requestor is owner" description: "Determines if requestor is the document
417
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
418
+ # Logic): title: "Public documents" description: "Determine whether the document
419
+ # should be publicly visible" expression: "document.type != 'private' &&
420
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
421
+ # string" description: "Create a notification string with a timestamp."
422
+ # expression: "'New message received at ' + string(document.create_time)" The
423
+ # exact variables and functions that may be referenced within an expression are
424
+ # determined by the service that evaluates it. See the service documentation for
425
+ # additional information.
426
+ class ApigatewayExpr
427
+ include Google::Apis::Core::Hashable
428
+
429
+ # Optional. Description of the expression. This is a longer text which describes
430
+ # the expression, e.g. when hovered over it in a UI.
431
+ # Corresponds to the JSON property `description`
432
+ # @return [String]
433
+ attr_accessor :description
434
+
435
+ # Textual representation of an expression in Common Expression Language syntax.
436
+ # Corresponds to the JSON property `expression`
437
+ # @return [String]
438
+ attr_accessor :expression
439
+
440
+ # Optional. String indicating the location of the expression for error reporting,
441
+ # e.g. a file name and a position in the file.
442
+ # Corresponds to the JSON property `location`
443
+ # @return [String]
444
+ attr_accessor :location
445
+
446
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
447
+ # This can be used e.g. in UIs which allow to enter the expression.
448
+ # Corresponds to the JSON property `title`
449
+ # @return [String]
450
+ attr_accessor :title
451
+
452
+ def initialize(**args)
453
+ update!(**args)
454
+ end
455
+
456
+ # Update properties of this object
457
+ def update!(**args)
458
+ @description = args[:description] if args.key?(:description)
459
+ @expression = args[:expression] if args.key?(:expression)
460
+ @location = args[:location] if args.key?(:location)
461
+ @title = args[:title] if args.key?(:title)
462
+ end
463
+ end
464
+
465
+ # A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-
466
+ # Consumer specific actions based on an API Config such as authentication,
467
+ # policy enforcement, and backend selection.
468
+ class ApigatewayGateway
469
+ include Google::Apis::Core::Hashable
470
+
471
+ # Required. Resource name of the API Config for this Gateway. Format: projects/`
472
+ # project`/locations/global/apis/`api`/configs/`apiConfig`
473
+ # Corresponds to the JSON property `apiConfig`
474
+ # @return [String]
475
+ attr_accessor :api_config
476
+
477
+ # Output only. Created time.
478
+ # Corresponds to the JSON property `createTime`
479
+ # @return [String]
480
+ attr_accessor :create_time
481
+
482
+ # Output only. The default API Gateway host name of the form ``gateway_id`-`hash`
483
+ # .`region_code`.gateway.dev`.
484
+ # Corresponds to the JSON property `defaultHostname`
485
+ # @return [String]
486
+ attr_accessor :default_hostname
487
+
488
+ # Optional. Display name.
489
+ # Corresponds to the JSON property `displayName`
490
+ # @return [String]
491
+ attr_accessor :display_name
492
+
493
+ # Optional. Resource labels to represent user-provided metadata. Refer to cloud
494
+ # documentation on labels for more details. https://cloud.google.com/compute/
495
+ # docs/labeling-resources
496
+ # Corresponds to the JSON property `labels`
497
+ # @return [Hash<String,String>]
498
+ attr_accessor :labels
499
+
500
+ # Output only. Resource name of the Gateway. Format: projects/`project`/
501
+ # locations/`location`/gateways/`gateway`
502
+ # Corresponds to the JSON property `name`
503
+ # @return [String]
504
+ attr_accessor :name
505
+
506
+ # Output only. The current state of the Gateway.
507
+ # Corresponds to the JSON property `state`
508
+ # @return [String]
509
+ attr_accessor :state
510
+
511
+ # Output only. Updated time.
512
+ # Corresponds to the JSON property `updateTime`
513
+ # @return [String]
514
+ attr_accessor :update_time
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @api_config = args[:api_config] if args.key?(:api_config)
523
+ @create_time = args[:create_time] if args.key?(:create_time)
524
+ @default_hostname = args[:default_hostname] if args.key?(:default_hostname)
525
+ @display_name = args[:display_name] if args.key?(:display_name)
526
+ @labels = args[:labels] if args.key?(:labels)
527
+ @name = args[:name] if args.key?(:name)
528
+ @state = args[:state] if args.key?(:state)
529
+ @update_time = args[:update_time] if args.key?(:update_time)
530
+ end
531
+ end
532
+
533
+ # Response message for ApiGatewayService.ListApiConfigs
534
+ class ApigatewayListApiConfigsResponse
535
+ include Google::Apis::Core::Hashable
536
+
537
+ # API Configs.
538
+ # Corresponds to the JSON property `apiConfigs`
539
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApiConfig>]
540
+ attr_accessor :api_configs
541
+
542
+ # Next page token.
543
+ # Corresponds to the JSON property `nextPageToken`
544
+ # @return [String]
545
+ attr_accessor :next_page_token
546
+
547
+ # Locations that could not be reached.
548
+ # Corresponds to the JSON property `unreachableLocations`
549
+ # @return [Array<String>]
550
+ attr_accessor :unreachable_locations
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @api_configs = args[:api_configs] if args.key?(:api_configs)
559
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
560
+ @unreachable_locations = args[:unreachable_locations] if args.key?(:unreachable_locations)
561
+ end
562
+ end
563
+
564
+ # Response message for ApiGatewayService.ListApis
565
+ class ApigatewayListApisResponse
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # APIs.
569
+ # Corresponds to the JSON property `apis`
570
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayApi>]
571
+ attr_accessor :apis
572
+
573
+ # Next page token.
574
+ # Corresponds to the JSON property `nextPageToken`
575
+ # @return [String]
576
+ attr_accessor :next_page_token
577
+
578
+ # Locations that could not be reached.
579
+ # Corresponds to the JSON property `unreachableLocations`
580
+ # @return [Array<String>]
581
+ attr_accessor :unreachable_locations
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @apis = args[:apis] if args.key?(:apis)
590
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
591
+ @unreachable_locations = args[:unreachable_locations] if args.key?(:unreachable_locations)
592
+ end
593
+ end
594
+
595
+ # Response message for ApiGatewayService.ListGateways
596
+ class ApigatewayListGatewaysResponse
597
+ include Google::Apis::Core::Hashable
598
+
599
+ # Gateways.
600
+ # Corresponds to the JSON property `gateways`
601
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayGateway>]
602
+ attr_accessor :gateways
603
+
604
+ # Next page token.
605
+ # Corresponds to the JSON property `nextPageToken`
606
+ # @return [String]
607
+ attr_accessor :next_page_token
608
+
609
+ # Locations that could not be reached.
610
+ # Corresponds to the JSON property `unreachableLocations`
611
+ # @return [Array<String>]
612
+ attr_accessor :unreachable_locations
613
+
614
+ def initialize(**args)
615
+ update!(**args)
616
+ end
617
+
618
+ # Update properties of this object
619
+ def update!(**args)
620
+ @gateways = args[:gateways] if args.key?(:gateways)
621
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
622
+ @unreachable_locations = args[:unreachable_locations] if args.key?(:unreachable_locations)
623
+ end
624
+ end
625
+
626
+ # The response message for Locations.ListLocations.
627
+ class ApigatewayListLocationsResponse
628
+ include Google::Apis::Core::Hashable
629
+
630
+ # A list of locations that matches the specified filter in the request.
631
+ # Corresponds to the JSON property `locations`
632
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayLocation>]
633
+ attr_accessor :locations
634
+
635
+ # The standard List next-page token.
636
+ # Corresponds to the JSON property `nextPageToken`
637
+ # @return [String]
638
+ attr_accessor :next_page_token
639
+
640
+ def initialize(**args)
641
+ update!(**args)
642
+ end
643
+
644
+ # Update properties of this object
645
+ def update!(**args)
646
+ @locations = args[:locations] if args.key?(:locations)
647
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
648
+ end
649
+ end
650
+
651
+ # The response message for Operations.ListOperations.
652
+ class ApigatewayListOperationsResponse
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # The standard List next-page token.
656
+ # Corresponds to the JSON property `nextPageToken`
657
+ # @return [String]
658
+ attr_accessor :next_page_token
659
+
660
+ # A list of operations that matches the specified filter in the request.
661
+ # Corresponds to the JSON property `operations`
662
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayOperation>]
663
+ attr_accessor :operations
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
672
+ @operations = args[:operations] if args.key?(:operations)
673
+ end
674
+ end
675
+
676
+ # A resource that represents Google Cloud Platform location.
677
+ class ApigatewayLocation
678
+ include Google::Apis::Core::Hashable
679
+
680
+ # The friendly name for this location, typically a nearby city name. For example,
681
+ # "Tokyo".
682
+ # Corresponds to the JSON property `displayName`
683
+ # @return [String]
684
+ attr_accessor :display_name
685
+
686
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
687
+ # region": "us-east1"`
688
+ # Corresponds to the JSON property `labels`
689
+ # @return [Hash<String,String>]
690
+ attr_accessor :labels
691
+
692
+ # The canonical id for this location. For example: `"us-east1"`.
693
+ # Corresponds to the JSON property `locationId`
694
+ # @return [String]
695
+ attr_accessor :location_id
696
+
697
+ # Service-specific metadata. For example the available capacity at the given
698
+ # location.
699
+ # Corresponds to the JSON property `metadata`
700
+ # @return [Hash<String,Object>]
701
+ attr_accessor :metadata
702
+
703
+ # Resource name for the location, which may vary between implementations. For
704
+ # example: `"projects/example-project/locations/us-east1"`
705
+ # Corresponds to the JSON property `name`
706
+ # @return [String]
707
+ attr_accessor :name
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @display_name = args[:display_name] if args.key?(:display_name)
716
+ @labels = args[:labels] if args.key?(:labels)
717
+ @location_id = args[:location_id] if args.key?(:location_id)
718
+ @metadata = args[:metadata] if args.key?(:metadata)
719
+ @name = args[:name] if args.key?(:name)
720
+ end
721
+ end
722
+
723
+ # This resource represents a long-running operation that is the result of a
724
+ # network API call.
725
+ class ApigatewayOperation
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # If the value is `false`, it means the operation is still in progress. If `true`
729
+ # , the operation is completed, and either `error` or `response` is available.
730
+ # Corresponds to the JSON property `done`
731
+ # @return [Boolean]
732
+ attr_accessor :done
733
+ alias_method :done?, :done
734
+
735
+ # The `Status` type defines a logical error model that is suitable for different
736
+ # programming environments, including REST APIs and RPC APIs. It is used by [
737
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
738
+ # data: error code, error message, and error details. You can find out more
739
+ # about this error model and how to work with it in the [API Design Guide](https:
740
+ # //cloud.google.com/apis/design/errors).
741
+ # Corresponds to the JSON property `error`
742
+ # @return [Google::Apis::ApigatewayV1::ApigatewayStatus]
743
+ attr_accessor :error
744
+
745
+ # Service-specific metadata associated with the operation. It typically contains
746
+ # progress information and common metadata such as create time. Some services
747
+ # might not provide such metadata. Any method that returns a long-running
748
+ # operation should document the metadata type, if any.
749
+ # Corresponds to the JSON property `metadata`
750
+ # @return [Hash<String,Object>]
751
+ attr_accessor :metadata
752
+
753
+ # The server-assigned name, which is only unique within the same service that
754
+ # originally returns it. If you use the default HTTP mapping, the `name` should
755
+ # be a resource name ending with `operations/`unique_id``.
756
+ # Corresponds to the JSON property `name`
757
+ # @return [String]
758
+ attr_accessor :name
759
+
760
+ # The normal response of the operation in case of success. If the original
761
+ # method returns no data on success, such as `Delete`, the response is `google.
762
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
763
+ # the response should be the resource. For other methods, the response should
764
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
765
+ # example, if the original method name is `TakeSnapshot()`, the inferred
766
+ # response type is `TakeSnapshotResponse`.
767
+ # Corresponds to the JSON property `response`
768
+ # @return [Hash<String,Object>]
769
+ attr_accessor :response
770
+
771
+ def initialize(**args)
772
+ update!(**args)
773
+ end
774
+
775
+ # Update properties of this object
776
+ def update!(**args)
777
+ @done = args[:done] if args.key?(:done)
778
+ @error = args[:error] if args.key?(:error)
779
+ @metadata = args[:metadata] if args.key?(:metadata)
780
+ @name = args[:name] if args.key?(:name)
781
+ @response = args[:response] if args.key?(:response)
782
+ end
783
+ end
784
+
785
+ # Represents the metadata of the long-running operation.
786
+ class ApigatewayOperationMetadata
787
+ include Google::Apis::Core::Hashable
788
+
789
+ # Output only. API version used to start the operation.
790
+ # Corresponds to the JSON property `apiVersion`
791
+ # @return [String]
792
+ attr_accessor :api_version
793
+
794
+ # Output only. The time the operation was created.
795
+ # Corresponds to the JSON property `createTime`
796
+ # @return [String]
797
+ attr_accessor :create_time
798
+
799
+ # Output only. Diagnostics generated during processing of configuration source
800
+ # files.
801
+ # Corresponds to the JSON property `diagnostics`
802
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayOperationMetadataDiagnostic>]
803
+ attr_accessor :diagnostics
804
+
805
+ # Output only. The time the operation finished running.
806
+ # Corresponds to the JSON property `endTime`
807
+ # @return [String]
808
+ attr_accessor :end_time
809
+
810
+ # Output only. Identifies whether the user has requested cancellation of the
811
+ # operation. Operations that have successfully been cancelled have Operation.
812
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
813
+ # CANCELLED`.
814
+ # Corresponds to the JSON property `requestedCancellation`
815
+ # @return [Boolean]
816
+ attr_accessor :requested_cancellation
817
+ alias_method :requested_cancellation?, :requested_cancellation
818
+
819
+ # Output only. Human-readable status of the operation, if any.
820
+ # Corresponds to the JSON property `statusMessage`
821
+ # @return [String]
822
+ attr_accessor :status_message
823
+
824
+ # Output only. Server-defined resource path for the target of the operation.
825
+ # Corresponds to the JSON property `target`
826
+ # @return [String]
827
+ attr_accessor :target
828
+
829
+ # Output only. Name of the verb executed by the operation.
830
+ # Corresponds to the JSON property `verb`
831
+ # @return [String]
832
+ attr_accessor :verb
833
+
834
+ def initialize(**args)
835
+ update!(**args)
836
+ end
837
+
838
+ # Update properties of this object
839
+ def update!(**args)
840
+ @api_version = args[:api_version] if args.key?(:api_version)
841
+ @create_time = args[:create_time] if args.key?(:create_time)
842
+ @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
843
+ @end_time = args[:end_time] if args.key?(:end_time)
844
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
845
+ @status_message = args[:status_message] if args.key?(:status_message)
846
+ @target = args[:target] if args.key?(:target)
847
+ @verb = args[:verb] if args.key?(:verb)
848
+ end
849
+ end
850
+
851
+ # Diagnostic information from configuration processing.
852
+ class ApigatewayOperationMetadataDiagnostic
853
+ include Google::Apis::Core::Hashable
854
+
855
+ # Location of the diagnostic.
856
+ # Corresponds to the JSON property `location`
857
+ # @return [String]
858
+ attr_accessor :location
859
+
860
+ # The diagnostic message.
861
+ # Corresponds to the JSON property `message`
862
+ # @return [String]
863
+ attr_accessor :message
864
+
865
+ def initialize(**args)
866
+ update!(**args)
867
+ end
868
+
869
+ # Update properties of this object
870
+ def update!(**args)
871
+ @location = args[:location] if args.key?(:location)
872
+ @message = args[:message] if args.key?(:message)
873
+ end
874
+ end
875
+
876
+ # An Identity and Access Management (IAM) policy, which specifies access
877
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
878
+ # A `binding` binds one or more `members` to a single `role`. Members can be
879
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
880
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
881
+ # role or a user-created custom role. For some types of Google Cloud resources,
882
+ # a `binding` can also specify a `condition`, which is a logical expression that
883
+ # allows access to a resource only if the expression evaluates to `true`. A
884
+ # condition can add constraints based on attributes of the request, the resource,
885
+ # or both. To learn which resources support conditions in their IAM policies,
886
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
887
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
888
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
889
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
890
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
891
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
892
+ # title": "expirable access", "description": "Does not grant access after Sep
893
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
894
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
895
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
896
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
897
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
898
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
899
+ # description: Does not grant access after Sep 2020 expression: request.time <
900
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
901
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
902
+ # google.com/iam/docs/).
903
+ class ApigatewayPolicy
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # Specifies cloud audit logging configuration for this policy.
907
+ # Corresponds to the JSON property `auditConfigs`
908
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayAuditConfig>]
909
+ attr_accessor :audit_configs
910
+
911
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
912
+ # condition` that determines how and when the `bindings` are applied. Each of
913
+ # the `bindings` must contain at least one member.
914
+ # Corresponds to the JSON property `bindings`
915
+ # @return [Array<Google::Apis::ApigatewayV1::ApigatewayBinding>]
916
+ attr_accessor :bindings
917
+
918
+ # `etag` is used for optimistic concurrency control as a way to help prevent
919
+ # simultaneous updates of a policy from overwriting each other. It is strongly
920
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
921
+ # to perform policy updates in order to avoid race conditions: An `etag` is
922
+ # returned in the response to `getIamPolicy`, and systems are expected to put
923
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
924
+ # applied to the same version of the policy. **Important:** If you use IAM
925
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
926
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
927
+ # with a version `1` policy, and all of the conditions in the version `3` policy
928
+ # are lost.
929
+ # Corresponds to the JSON property `etag`
930
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
931
+ # @return [String]
932
+ attr_accessor :etag
933
+
934
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
935
+ # Requests that specify an invalid value are rejected. Any operation that
936
+ # affects conditional role bindings must specify version `3`. This requirement
937
+ # applies to the following operations: * Getting a policy that includes a
938
+ # conditional role binding * Adding a conditional role binding to a policy *
939
+ # Changing a conditional role binding in a policy * Removing any role binding,
940
+ # with or without a condition, from a policy that includes conditions **
941
+ # Important:** If you use IAM Conditions, you must include the `etag` field
942
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
943
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
944
+ # conditions in the version `3` policy are lost. If a policy does not include
945
+ # any conditions, operations on that policy may specify any valid version or
946
+ # leave the field unset. To learn which resources support conditions in their
947
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
948
+ # conditions/resource-policies).
949
+ # Corresponds to the JSON property `version`
950
+ # @return [Fixnum]
951
+ attr_accessor :version
952
+
953
+ def initialize(**args)
954
+ update!(**args)
955
+ end
956
+
957
+ # Update properties of this object
958
+ def update!(**args)
959
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
960
+ @bindings = args[:bindings] if args.key?(:bindings)
961
+ @etag = args[:etag] if args.key?(:etag)
962
+ @version = args[:version] if args.key?(:version)
963
+ end
964
+ end
965
+
966
+ # Request message for `SetIamPolicy` method.
967
+ class ApigatewaySetIamPolicyRequest
968
+ include Google::Apis::Core::Hashable
969
+
970
+ # An Identity and Access Management (IAM) policy, which specifies access
971
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
972
+ # A `binding` binds one or more `members` to a single `role`. Members can be
973
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
974
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
975
+ # role or a user-created custom role. For some types of Google Cloud resources,
976
+ # a `binding` can also specify a `condition`, which is a logical expression that
977
+ # allows access to a resource only if the expression evaluates to `true`. A
978
+ # condition can add constraints based on attributes of the request, the resource,
979
+ # or both. To learn which resources support conditions in their IAM policies,
980
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
981
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
982
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
983
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
984
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
985
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
986
+ # title": "expirable access", "description": "Does not grant access after Sep
987
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
988
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
989
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
990
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
991
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
992
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
993
+ # description: Does not grant access after Sep 2020 expression: request.time <
994
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
995
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
996
+ # google.com/iam/docs/).
997
+ # Corresponds to the JSON property `policy`
998
+ # @return [Google::Apis::ApigatewayV1::ApigatewayPolicy]
999
+ attr_accessor :policy
1000
+
1001
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1002
+ # the fields in the mask will be modified. If no mask is provided, the following
1003
+ # default mask is used: `paths: "bindings, etag"`
1004
+ # Corresponds to the JSON property `updateMask`
1005
+ # @return [String]
1006
+ attr_accessor :update_mask
1007
+
1008
+ def initialize(**args)
1009
+ update!(**args)
1010
+ end
1011
+
1012
+ # Update properties of this object
1013
+ def update!(**args)
1014
+ @policy = args[:policy] if args.key?(:policy)
1015
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1016
+ end
1017
+ end
1018
+
1019
+ # The `Status` type defines a logical error model that is suitable for different
1020
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1021
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1022
+ # data: error code, error message, and error details. You can find out more
1023
+ # about this error model and how to work with it in the [API Design Guide](https:
1024
+ # //cloud.google.com/apis/design/errors).
1025
+ class ApigatewayStatus
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # The status code, which should be an enum value of google.rpc.Code.
1029
+ # Corresponds to the JSON property `code`
1030
+ # @return [Fixnum]
1031
+ attr_accessor :code
1032
+
1033
+ # A list of messages that carry the error details. There is a common set of
1034
+ # message types for APIs to use.
1035
+ # Corresponds to the JSON property `details`
1036
+ # @return [Array<Hash<String,Object>>]
1037
+ attr_accessor :details
1038
+
1039
+ # A developer-facing error message, which should be in English. Any user-facing
1040
+ # error message should be localized and sent in the google.rpc.Status.details
1041
+ # field, or localized by the client.
1042
+ # Corresponds to the JSON property `message`
1043
+ # @return [String]
1044
+ attr_accessor :message
1045
+
1046
+ def initialize(**args)
1047
+ update!(**args)
1048
+ end
1049
+
1050
+ # Update properties of this object
1051
+ def update!(**args)
1052
+ @code = args[:code] if args.key?(:code)
1053
+ @details = args[:details] if args.key?(:details)
1054
+ @message = args[:message] if args.key?(:message)
1055
+ end
1056
+ end
1057
+
1058
+ # Request message for `TestIamPermissions` method.
1059
+ class ApigatewayTestIamPermissionsRequest
1060
+ include Google::Apis::Core::Hashable
1061
+
1062
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1063
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1064
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1065
+ # Corresponds to the JSON property `permissions`
1066
+ # @return [Array<String>]
1067
+ attr_accessor :permissions
1068
+
1069
+ def initialize(**args)
1070
+ update!(**args)
1071
+ end
1072
+
1073
+ # Update properties of this object
1074
+ def update!(**args)
1075
+ @permissions = args[:permissions] if args.key?(:permissions)
1076
+ end
1077
+ end
1078
+
1079
+ # Response message for `TestIamPermissions` method.
1080
+ class ApigatewayTestIamPermissionsResponse
1081
+ include Google::Apis::Core::Hashable
1082
+
1083
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1084
+ # Corresponds to the JSON property `permissions`
1085
+ # @return [Array<String>]
1086
+ attr_accessor :permissions
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @permissions = args[:permissions] if args.key?(:permissions)
1095
+ end
1096
+ end
1097
+
1098
+ # A generic empty message that you can re-use to avoid defining duplicated empty
1099
+ # messages in your APIs. A typical example is to use it as the request or the
1100
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
1101
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
1102
+ # `Empty` is empty JSON object ````.
1103
+ class Empty
1104
+ include Google::Apis::Core::Hashable
1105
+
1106
+ def initialize(**args)
1107
+ update!(**args)
1108
+ end
1109
+
1110
+ # Update properties of this object
1111
+ def update!(**args)
1112
+ end
1113
+ end
1114
+ end
1115
+ end
1116
+ end