google-apis-networkmanagement_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: 758c0acee10fb66bb34cc4d7facd8df3995650caae16a844e88312edc80808ab
4
+ data.tar.gz: bc38fb8adfe354c16bcfc8fb116c8c58bc1df2ab95abbdd21d7188a59f7ef3eb
5
+ SHA512:
6
+ metadata.gz: fb939ad94a6093f696dda834ee7e5ae750ca7cc8fea2b315946e6215b7c183d7d838cfda3cd49047b77d940b46d3a2e0a05380833d3dafab79b6e4ceabce8c51
7
+ data.tar.gz: 15efe08520336c3b505f44d0c1c5db7db73eecc0dd3b4d511a042ab97029f5326f6f03d2bc512a05dd02dee8efa9987b6dc532544ad3668fe9533808b0a9c118
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-networkmanagement_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/networkmanagement_v1/*.rb
9
+ lib/google/apis/networkmanagement_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-networkmanagement_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201029
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 Network Management API
2
+
3
+ This is a simple client library for version V1 of the Network Management 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/networkmanagement.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-networkmanagement_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-networkmanagement_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/networkmanagement_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::NetworkmanagementV1::NetworkManagementService.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 Networkmanagement service in particular.)
67
+
68
+ For reference information on specific calls in the Network Management API, see the {Google::Apis::NetworkmanagementV1::NetworkManagementService 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-networkmanagement_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/) 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/networkmanagement_v1"
@@ -0,0 +1,37 @@
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/networkmanagement_v1/service.rb'
16
+ require 'google/apis/networkmanagement_v1/classes.rb'
17
+ require 'google/apis/networkmanagement_v1/representations.rb'
18
+ require 'google/apis/networkmanagement_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Network Management API
23
+ #
24
+ # The Network Management API provides a collection of network performance
25
+ # monitoring and diagnostic capabilities.
26
+ #
27
+ # @see https://cloud.google.com/
28
+ module NetworkmanagementV1
29
+ # Version of the Network Management API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1718 @@
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 NetworkmanagementV1
24
+
25
+ # Details of the final state "abort" and associated resource.
26
+ class AbortInfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Causes that the analysis is aborted.
30
+ # Corresponds to the JSON property `cause`
31
+ # @return [String]
32
+ attr_accessor :cause
33
+
34
+ # URI of the resource that caused the abort.
35
+ # Corresponds to the JSON property `resourceUri`
36
+ # @return [String]
37
+ attr_accessor :resource_uri
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @cause = args[:cause] if args.key?(:cause)
46
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
47
+ end
48
+ end
49
+
50
+ # Specifies the audit configuration for a service. The configuration determines
51
+ # which permission types are logged, and what identities, if any, are exempted
52
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
53
+ # are AuditConfigs for both `allServices` and a specific service, the union of
54
+ # the two AuditConfigs is used for that service: the log_types specified in each
55
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
56
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
57
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
58
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
59
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
60
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
61
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
62
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
63
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
64
+ # DATA_WRITE logging.
65
+ class AuditConfig
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # The configuration for logging of each type of permission.
69
+ # Corresponds to the JSON property `auditLogConfigs`
70
+ # @return [Array<Google::Apis::NetworkmanagementV1::AuditLogConfig>]
71
+ attr_accessor :audit_log_configs
72
+
73
+ # Specifies a service that will be enabled for audit logging. For example, `
74
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
75
+ # value that covers all services.
76
+ # Corresponds to the JSON property `service`
77
+ # @return [String]
78
+ attr_accessor :service
79
+
80
+ def initialize(**args)
81
+ update!(**args)
82
+ end
83
+
84
+ # Update properties of this object
85
+ def update!(**args)
86
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
87
+ @service = args[:service] if args.key?(:service)
88
+ end
89
+ end
90
+
91
+ # Provides the configuration for logging a type of permissions. Example: ` "
92
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
93
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
94
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
95
+ # DATA_READ logging.
96
+ class AuditLogConfig
97
+ include Google::Apis::Core::Hashable
98
+
99
+ # Specifies the identities that do not cause logging for this type of permission.
100
+ # Follows the same format of Binding.members.
101
+ # Corresponds to the JSON property `exemptedMembers`
102
+ # @return [Array<String>]
103
+ attr_accessor :exempted_members
104
+
105
+ # The log type that this config enables.
106
+ # Corresponds to the JSON property `logType`
107
+ # @return [String]
108
+ attr_accessor :log_type
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
117
+ @log_type = args[:log_type] if args.key?(:log_type)
118
+ end
119
+ end
120
+
121
+ # Associates `members` with a `role`.
122
+ class Binding
123
+ include Google::Apis::Core::Hashable
124
+
125
+ #
126
+ # Corresponds to the JSON property `bindingId`
127
+ # @return [String]
128
+ attr_accessor :binding_id
129
+
130
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
131
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
132
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
133
+ # "Summary size limit" description: "Determines if a summary is less than 100
134
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
135
+ # Requestor is owner" description: "Determines if requestor is the document
136
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
137
+ # Logic): title: "Public documents" description: "Determine whether the document
138
+ # should be publicly visible" expression: "document.type != 'private' &&
139
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
140
+ # string" description: "Create a notification string with a timestamp."
141
+ # expression: "'New message received at ' + string(document.create_time)" The
142
+ # exact variables and functions that may be referenced within an expression are
143
+ # determined by the service that evaluates it. See the service documentation for
144
+ # additional information.
145
+ # Corresponds to the JSON property `condition`
146
+ # @return [Google::Apis::NetworkmanagementV1::Expr]
147
+ attr_accessor :condition
148
+
149
+ # Specifies the identities requesting access for a Cloud Platform resource. `
150
+ # members` can have the following values: * `allUsers`: A special identifier
151
+ # that represents anyone who is on the internet; with or without a Google
152
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
153
+ # anyone who is authenticated with a Google account or a service account. * `
154
+ # user:`emailid``: An email address that represents a specific Google account.
155
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
156
+ # address that represents a service account. For example, `my-other-app@appspot.
157
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
158
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
159
+ # `uniqueid``: An email address (plus unique identifier) representing a user
160
+ # that has been recently deleted. For example, `alice@example.com?uid=
161
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
162
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
163
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
164
+ # identifier) representing a service account that has been recently deleted. For
165
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
166
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
167
+ # emailid`` and the undeleted service account retains the role in the binding. *
168
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
169
+ # identifier) representing a Google group that has been recently deleted. For
170
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
171
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
172
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
173
+ # primary) that represents all the users of that domain. For example, `google.
174
+ # com` or `example.com`.
175
+ # Corresponds to the JSON property `members`
176
+ # @return [Array<String>]
177
+ attr_accessor :members
178
+
179
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
180
+ # , or `roles/owner`.
181
+ # Corresponds to the JSON property `role`
182
+ # @return [String]
183
+ attr_accessor :role
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @binding_id = args[:binding_id] if args.key?(:binding_id)
192
+ @condition = args[:condition] if args.key?(:condition)
193
+ @members = args[:members] if args.key?(:members)
194
+ @role = args[:role] if args.key?(:role)
195
+ end
196
+ end
197
+
198
+ # The request message for Operations.CancelOperation.
199
+ class CancelOperationRequest
200
+ include Google::Apis::Core::Hashable
201
+
202
+ def initialize(**args)
203
+ update!(**args)
204
+ end
205
+
206
+ # Update properties of this object
207
+ def update!(**args)
208
+ end
209
+ end
210
+
211
+ # A Connectivity Test for a network reachability analysis.
212
+ class ConnectivityTest
213
+ include Google::Apis::Core::Hashable
214
+
215
+ # Output only. The time the test was created.
216
+ # Corresponds to the JSON property `createTime`
217
+ # @return [String]
218
+ attr_accessor :create_time
219
+
220
+ # The user-supplied description of the Connectivity Test. Maximum of 512
221
+ # characters.
222
+ # Corresponds to the JSON property `description`
223
+ # @return [String]
224
+ attr_accessor :description
225
+
226
+ # Source or destination of the Connectivity Test.
227
+ # Corresponds to the JSON property `destination`
228
+ # @return [Google::Apis::NetworkmanagementV1::Endpoint]
229
+ attr_accessor :destination
230
+
231
+ # Output only. The display name of a Connectivity Test.
232
+ # Corresponds to the JSON property `displayName`
233
+ # @return [String]
234
+ attr_accessor :display_name
235
+
236
+ # Resource labels to represent user-provided metadata.
237
+ # Corresponds to the JSON property `labels`
238
+ # @return [Hash<String,String>]
239
+ attr_accessor :labels
240
+
241
+ # Required. Unique name of the resource using the form: `projects/`project_id`/
242
+ # locations/global/connectivityTests/`test_id``
243
+ # Corresponds to the JSON property `name`
244
+ # @return [String]
245
+ attr_accessor :name
246
+
247
+ # IP Protocol of the test. When not provided, "TCP" is assumed.
248
+ # Corresponds to the JSON property `protocol`
249
+ # @return [String]
250
+ attr_accessor :protocol
251
+
252
+ # The details of reachability state from the latest run.
253
+ # Corresponds to the JSON property `reachabilityDetails`
254
+ # @return [Google::Apis::NetworkmanagementV1::ReachabilityDetails]
255
+ attr_accessor :reachability_details
256
+
257
+ # Other projects that may be relevant for reachability analysis. This is
258
+ # applicable to scenarios where a test can cross project boundaries.
259
+ # Corresponds to the JSON property `relatedProjects`
260
+ # @return [Array<String>]
261
+ attr_accessor :related_projects
262
+
263
+ # Source or destination of the Connectivity Test.
264
+ # Corresponds to the JSON property `source`
265
+ # @return [Google::Apis::NetworkmanagementV1::Endpoint]
266
+ attr_accessor :source
267
+
268
+ # Output only. The time the test's configuration was updated.
269
+ # Corresponds to the JSON property `updateTime`
270
+ # @return [String]
271
+ attr_accessor :update_time
272
+
273
+ def initialize(**args)
274
+ update!(**args)
275
+ end
276
+
277
+ # Update properties of this object
278
+ def update!(**args)
279
+ @create_time = args[:create_time] if args.key?(:create_time)
280
+ @description = args[:description] if args.key?(:description)
281
+ @destination = args[:destination] if args.key?(:destination)
282
+ @display_name = args[:display_name] if args.key?(:display_name)
283
+ @labels = args[:labels] if args.key?(:labels)
284
+ @name = args[:name] if args.key?(:name)
285
+ @protocol = args[:protocol] if args.key?(:protocol)
286
+ @reachability_details = args[:reachability_details] if args.key?(:reachability_details)
287
+ @related_projects = args[:related_projects] if args.key?(:related_projects)
288
+ @source = args[:source] if args.key?(:source)
289
+ @update_time = args[:update_time] if args.key?(:update_time)
290
+ end
291
+ end
292
+
293
+ # Details of the final state "deliver" and associated resource.
294
+ class DeliverInfo
295
+ include Google::Apis::Core::Hashable
296
+
297
+ # URI of the resource that the packet is delivered to.
298
+ # Corresponds to the JSON property `resourceUri`
299
+ # @return [String]
300
+ attr_accessor :resource_uri
301
+
302
+ # Target type where the packet is delivered to.
303
+ # Corresponds to the JSON property `target`
304
+ # @return [String]
305
+ attr_accessor :target
306
+
307
+ def initialize(**args)
308
+ update!(**args)
309
+ end
310
+
311
+ # Update properties of this object
312
+ def update!(**args)
313
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
314
+ @target = args[:target] if args.key?(:target)
315
+ end
316
+ end
317
+
318
+ # Details of the final state "drop" and associated resource.
319
+ class DropInfo
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # Cause that the packet is dropped.
323
+ # Corresponds to the JSON property `cause`
324
+ # @return [String]
325
+ attr_accessor :cause
326
+
327
+ # URI of the resource that caused the drop.
328
+ # Corresponds to the JSON property `resourceUri`
329
+ # @return [String]
330
+ attr_accessor :resource_uri
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @cause = args[:cause] if args.key?(:cause)
339
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
340
+ end
341
+ end
342
+
343
+ # A generic empty message that you can re-use to avoid defining duplicated empty
344
+ # messages in your APIs. A typical example is to use it as the request or the
345
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
346
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
347
+ # `Empty` is empty JSON object ````.
348
+ class Empty
349
+ include Google::Apis::Core::Hashable
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ end
358
+ end
359
+
360
+ # Source or destination of the Connectivity Test.
361
+ class Endpoint
362
+ include Google::Apis::Core::Hashable
363
+
364
+ # A Compute Engine instance URI.
365
+ # Corresponds to the JSON property `instance`
366
+ # @return [String]
367
+ attr_accessor :instance
368
+
369
+ # The IP address of the endpoint, which can be an external or internal IP. An
370
+ # IPv6 address is only allowed when the test's destination is a [global load
371
+ # balancer VIP](/load-balancing/docs/load-balancing-overview).
372
+ # Corresponds to the JSON property `ipAddress`
373
+ # @return [String]
374
+ attr_accessor :ip_address
375
+
376
+ # A Compute Engine network URI.
377
+ # Corresponds to the JSON property `network`
378
+ # @return [String]
379
+ attr_accessor :network
380
+
381
+ # Type of the network where the endpoint is located. Applicable only to source
382
+ # endpoint, as destination network type can be inferred from the source.
383
+ # Corresponds to the JSON property `networkType`
384
+ # @return [String]
385
+ attr_accessor :network_type
386
+
387
+ # The IP protocol port of the endpoint. Only applicable when protocol is TCP or
388
+ # UDP.
389
+ # Corresponds to the JSON property `port`
390
+ # @return [Fixnum]
391
+ attr_accessor :port
392
+
393
+ # Project ID where the endpoint is located. The Project ID can be derived from
394
+ # the URI if you provide a VM instance or network URI. The following are two
395
+ # cases where you must provide the project ID: 1. Only the IP address is
396
+ # specified, and the IP address is within a GCP project. 2. When you are using
397
+ # Shared VPC and the IP address that you provide is from the service project. In
398
+ # this case, the network that the IP address resides in is defined in the host
399
+ # project.
400
+ # Corresponds to the JSON property `projectId`
401
+ # @return [String]
402
+ attr_accessor :project_id
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @instance = args[:instance] if args.key?(:instance)
411
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
412
+ @network = args[:network] if args.key?(:network)
413
+ @network_type = args[:network_type] if args.key?(:network_type)
414
+ @port = args[:port] if args.key?(:port)
415
+ @project_id = args[:project_id] if args.key?(:project_id)
416
+ end
417
+ end
418
+
419
+ # For display only. The specification of the endpoints for the test.
420
+ # EndpointInfo is derived from source and destination Endpoint and validated by
421
+ # the backend data plane model.
422
+ class EndpointInfo
423
+ include Google::Apis::Core::Hashable
424
+
425
+ # Destination IP address.
426
+ # Corresponds to the JSON property `destinationIp`
427
+ # @return [String]
428
+ attr_accessor :destination_ip
429
+
430
+ # URI of the network where this packet is sent to.
431
+ # Corresponds to the JSON property `destinationNetworkUri`
432
+ # @return [String]
433
+ attr_accessor :destination_network_uri
434
+
435
+ # Destination port. Only valid when protocol is TCP or UDP.
436
+ # Corresponds to the JSON property `destinationPort`
437
+ # @return [Fixnum]
438
+ attr_accessor :destination_port
439
+
440
+ # IP protocol in string format, for example: "TCP", "UDP", "ICMP".
441
+ # Corresponds to the JSON property `protocol`
442
+ # @return [String]
443
+ attr_accessor :protocol
444
+
445
+ # Source IP address.
446
+ # Corresponds to the JSON property `sourceIp`
447
+ # @return [String]
448
+ attr_accessor :source_ip
449
+
450
+ # URI of the network where this packet originates from.
451
+ # Corresponds to the JSON property `sourceNetworkUri`
452
+ # @return [String]
453
+ attr_accessor :source_network_uri
454
+
455
+ # Source port. Only valid when protocol is TCP or UDP.
456
+ # Corresponds to the JSON property `sourcePort`
457
+ # @return [Fixnum]
458
+ attr_accessor :source_port
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @destination_ip = args[:destination_ip] if args.key?(:destination_ip)
467
+ @destination_network_uri = args[:destination_network_uri] if args.key?(:destination_network_uri)
468
+ @destination_port = args[:destination_port] if args.key?(:destination_port)
469
+ @protocol = args[:protocol] if args.key?(:protocol)
470
+ @source_ip = args[:source_ip] if args.key?(:source_ip)
471
+ @source_network_uri = args[:source_network_uri] if args.key?(:source_network_uri)
472
+ @source_port = args[:source_port] if args.key?(:source_port)
473
+ end
474
+ end
475
+
476
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
477
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
478
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
479
+ # "Summary size limit" description: "Determines if a summary is less than 100
480
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
481
+ # Requestor is owner" description: "Determines if requestor is the document
482
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
483
+ # Logic): title: "Public documents" description: "Determine whether the document
484
+ # should be publicly visible" expression: "document.type != 'private' &&
485
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
486
+ # string" description: "Create a notification string with a timestamp."
487
+ # expression: "'New message received at ' + string(document.create_time)" The
488
+ # exact variables and functions that may be referenced within an expression are
489
+ # determined by the service that evaluates it. See the service documentation for
490
+ # additional information.
491
+ class Expr
492
+ include Google::Apis::Core::Hashable
493
+
494
+ # Optional. Description of the expression. This is a longer text which describes
495
+ # the expression, e.g. when hovered over it in a UI.
496
+ # Corresponds to the JSON property `description`
497
+ # @return [String]
498
+ attr_accessor :description
499
+
500
+ # Textual representation of an expression in Common Expression Language syntax.
501
+ # Corresponds to the JSON property `expression`
502
+ # @return [String]
503
+ attr_accessor :expression
504
+
505
+ # Optional. String indicating the location of the expression for error reporting,
506
+ # e.g. a file name and a position in the file.
507
+ # Corresponds to the JSON property `location`
508
+ # @return [String]
509
+ attr_accessor :location
510
+
511
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
512
+ # This can be used e.g. in UIs which allow to enter the expression.
513
+ # Corresponds to the JSON property `title`
514
+ # @return [String]
515
+ attr_accessor :title
516
+
517
+ def initialize(**args)
518
+ update!(**args)
519
+ end
520
+
521
+ # Update properties of this object
522
+ def update!(**args)
523
+ @description = args[:description] if args.key?(:description)
524
+ @expression = args[:expression] if args.key?(:expression)
525
+ @location = args[:location] if args.key?(:location)
526
+ @title = args[:title] if args.key?(:title)
527
+ end
528
+ end
529
+
530
+ # For display only. Metadata associated with a Compute Engine firewall rule.
531
+ class FirewallInfo
532
+ include Google::Apis::Core::Hashable
533
+
534
+ # Possible values: ALLOW, DENY
535
+ # Corresponds to the JSON property `action`
536
+ # @return [String]
537
+ attr_accessor :action
538
+
539
+ # Possible values: INGRESS, EGRESS
540
+ # Corresponds to the JSON property `direction`
541
+ # @return [String]
542
+ attr_accessor :direction
543
+
544
+ # Name of a Compute Engine firewall rule.
545
+ # Corresponds to the JSON property `displayName`
546
+ # @return [String]
547
+ attr_accessor :display_name
548
+
549
+ # URI of a Compute Engine network.
550
+ # Corresponds to the JSON property `networkUri`
551
+ # @return [String]
552
+ attr_accessor :network_uri
553
+
554
+ # Priority of the firewall rule.
555
+ # Corresponds to the JSON property `priority`
556
+ # @return [Fixnum]
557
+ attr_accessor :priority
558
+
559
+ # Target service accounts of the firewall rule.
560
+ # Corresponds to the JSON property `targetServiceAccounts`
561
+ # @return [Array<String>]
562
+ attr_accessor :target_service_accounts
563
+
564
+ # Target tags of the firewall rule.
565
+ # Corresponds to the JSON property `targetTags`
566
+ # @return [Array<String>]
567
+ attr_accessor :target_tags
568
+
569
+ # URI of a Compute Engine firewall rule. Implied default rule does not have URI.
570
+ # Corresponds to the JSON property `uri`
571
+ # @return [String]
572
+ attr_accessor :uri
573
+
574
+ def initialize(**args)
575
+ update!(**args)
576
+ end
577
+
578
+ # Update properties of this object
579
+ def update!(**args)
580
+ @action = args[:action] if args.key?(:action)
581
+ @direction = args[:direction] if args.key?(:direction)
582
+ @display_name = args[:display_name] if args.key?(:display_name)
583
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
584
+ @priority = args[:priority] if args.key?(:priority)
585
+ @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts)
586
+ @target_tags = args[:target_tags] if args.key?(:target_tags)
587
+ @uri = args[:uri] if args.key?(:uri)
588
+ end
589
+ end
590
+
591
+ # Details of the final state "forward" and associated resource.
592
+ class ForwardInfo
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # URI of the resource that the packet is forwarded to.
596
+ # Corresponds to the JSON property `resourceUri`
597
+ # @return [String]
598
+ attr_accessor :resource_uri
599
+
600
+ # Target type where this packet is forwarded to.
601
+ # Corresponds to the JSON property `target`
602
+ # @return [String]
603
+ attr_accessor :target
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
612
+ @target = args[:target] if args.key?(:target)
613
+ end
614
+ end
615
+
616
+ # For display only. Metadata associated with a Compute Engine forwarding rule.
617
+ class ForwardingRuleInfo
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # Name of a Compute Engine forwarding rule.
621
+ # Corresponds to the JSON property `displayName`
622
+ # @return [String]
623
+ attr_accessor :display_name
624
+
625
+ # Port range defined in the forwarding rule that matches the test.
626
+ # Corresponds to the JSON property `matchedPortRange`
627
+ # @return [String]
628
+ attr_accessor :matched_port_range
629
+
630
+ # Protocol defined in the forwarding rule that matches the test.
631
+ # Corresponds to the JSON property `matchedProtocol`
632
+ # @return [String]
633
+ attr_accessor :matched_protocol
634
+
635
+ # Network URI. Only valid for Internal Load Balancer.
636
+ # Corresponds to the JSON property `networkUri`
637
+ # @return [String]
638
+ attr_accessor :network_uri
639
+
640
+ # Target type of the forwarding rule.
641
+ # Corresponds to the JSON property `target`
642
+ # @return [String]
643
+ attr_accessor :target
644
+
645
+ # URI of a Compute Engine forwarding rule.
646
+ # Corresponds to the JSON property `uri`
647
+ # @return [String]
648
+ attr_accessor :uri
649
+
650
+ # VIP of the forwarding rule.
651
+ # Corresponds to the JSON property `vip`
652
+ # @return [String]
653
+ attr_accessor :vip
654
+
655
+ def initialize(**args)
656
+ update!(**args)
657
+ end
658
+
659
+ # Update properties of this object
660
+ def update!(**args)
661
+ @display_name = args[:display_name] if args.key?(:display_name)
662
+ @matched_port_range = args[:matched_port_range] if args.key?(:matched_port_range)
663
+ @matched_protocol = args[:matched_protocol] if args.key?(:matched_protocol)
664
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
665
+ @target = args[:target] if args.key?(:target)
666
+ @uri = args[:uri] if args.key?(:uri)
667
+ @vip = args[:vip] if args.key?(:vip)
668
+ end
669
+ end
670
+
671
+ # For display only. Metadata associated with a Compute Engine instance.
672
+ class InstanceInfo
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # Name of a Compute Engine instance.
676
+ # Corresponds to the JSON property `displayName`
677
+ # @return [String]
678
+ attr_accessor :display_name
679
+
680
+ # External IP address of the network interface.
681
+ # Corresponds to the JSON property `externalIp`
682
+ # @return [String]
683
+ attr_accessor :external_ip
684
+
685
+ # Name of the network interface of a Compute Engine instance.
686
+ # Corresponds to the JSON property `interface`
687
+ # @return [String]
688
+ attr_accessor :interface
689
+
690
+ # Internal IP address of the network interface.
691
+ # Corresponds to the JSON property `internalIp`
692
+ # @return [String]
693
+ attr_accessor :internal_ip
694
+
695
+ # Network tags configured on the instance.
696
+ # Corresponds to the JSON property `networkTags`
697
+ # @return [Array<String>]
698
+ attr_accessor :network_tags
699
+
700
+ # URI of a Compute Engine network.
701
+ # Corresponds to the JSON property `networkUri`
702
+ # @return [String]
703
+ attr_accessor :network_uri
704
+
705
+ # Service account authorized for the instance.
706
+ # Corresponds to the JSON property `serviceAccount`
707
+ # @return [String]
708
+ attr_accessor :service_account
709
+
710
+ # URI of a Compute Engine instance.
711
+ # Corresponds to the JSON property `uri`
712
+ # @return [String]
713
+ attr_accessor :uri
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @display_name = args[:display_name] if args.key?(:display_name)
722
+ @external_ip = args[:external_ip] if args.key?(:external_ip)
723
+ @interface = args[:interface] if args.key?(:interface)
724
+ @internal_ip = args[:internal_ip] if args.key?(:internal_ip)
725
+ @network_tags = args[:network_tags] if args.key?(:network_tags)
726
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
727
+ @service_account = args[:service_account] if args.key?(:service_account)
728
+ @uri = args[:uri] if args.key?(:uri)
729
+ end
730
+ end
731
+
732
+ # Response for the `ListConnectivityTests` method.
733
+ class ListConnectivityTestsResponse
734
+ include Google::Apis::Core::Hashable
735
+
736
+ # Page token to fetch the next set of Connectivity Tests.
737
+ # Corresponds to the JSON property `nextPageToken`
738
+ # @return [String]
739
+ attr_accessor :next_page_token
740
+
741
+ # List of Connectivity Tests.
742
+ # Corresponds to the JSON property `resources`
743
+ # @return [Array<Google::Apis::NetworkmanagementV1::ConnectivityTest>]
744
+ attr_accessor :resources
745
+
746
+ # Locations that could not be reached (when querying all locations with `-`).
747
+ # Corresponds to the JSON property `unreachable`
748
+ # @return [Array<String>]
749
+ attr_accessor :unreachable
750
+
751
+ def initialize(**args)
752
+ update!(**args)
753
+ end
754
+
755
+ # Update properties of this object
756
+ def update!(**args)
757
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
758
+ @resources = args[:resources] if args.key?(:resources)
759
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
760
+ end
761
+ end
762
+
763
+ # The response message for Locations.ListLocations.
764
+ class ListLocationsResponse
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # A list of locations that matches the specified filter in the request.
768
+ # Corresponds to the JSON property `locations`
769
+ # @return [Array<Google::Apis::NetworkmanagementV1::Location>]
770
+ attr_accessor :locations
771
+
772
+ # The standard List next-page token.
773
+ # Corresponds to the JSON property `nextPageToken`
774
+ # @return [String]
775
+ attr_accessor :next_page_token
776
+
777
+ def initialize(**args)
778
+ update!(**args)
779
+ end
780
+
781
+ # Update properties of this object
782
+ def update!(**args)
783
+ @locations = args[:locations] if args.key?(:locations)
784
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
785
+ end
786
+ end
787
+
788
+ # The response message for Operations.ListOperations.
789
+ class ListOperationsResponse
790
+ include Google::Apis::Core::Hashable
791
+
792
+ # The standard List next-page token.
793
+ # Corresponds to the JSON property `nextPageToken`
794
+ # @return [String]
795
+ attr_accessor :next_page_token
796
+
797
+ # A list of operations that matches the specified filter in the request.
798
+ # Corresponds to the JSON property `operations`
799
+ # @return [Array<Google::Apis::NetworkmanagementV1::Operation>]
800
+ attr_accessor :operations
801
+
802
+ def initialize(**args)
803
+ update!(**args)
804
+ end
805
+
806
+ # Update properties of this object
807
+ def update!(**args)
808
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
809
+ @operations = args[:operations] if args.key?(:operations)
810
+ end
811
+ end
812
+
813
+ # For display only. Metadata associated with a specific load balancer backend.
814
+ class LoadBalancerBackend
815
+ include Google::Apis::Core::Hashable
816
+
817
+ # Name of a Compute Engine instance or network endpoint.
818
+ # Corresponds to the JSON property `displayName`
819
+ # @return [String]
820
+ attr_accessor :display_name
821
+
822
+ # A list of firewall rule URIs allowing probes from health check IP ranges.
823
+ # Corresponds to the JSON property `healthCheckAllowingFirewallRules`
824
+ # @return [Array<String>]
825
+ attr_accessor :health_check_allowing_firewall_rules
826
+
827
+ # A list of firewall rule URIs blocking probes from health check IP ranges.
828
+ # Corresponds to the JSON property `healthCheckBlockingFirewallRules`
829
+ # @return [Array<String>]
830
+ attr_accessor :health_check_blocking_firewall_rules
831
+
832
+ # State of the health check firewall configuration.
833
+ # Corresponds to the JSON property `healthCheckFirewallState`
834
+ # @return [String]
835
+ attr_accessor :health_check_firewall_state
836
+
837
+ # URI of a Compute Engine instance or network endpoint.
838
+ # Corresponds to the JSON property `uri`
839
+ # @return [String]
840
+ attr_accessor :uri
841
+
842
+ def initialize(**args)
843
+ update!(**args)
844
+ end
845
+
846
+ # Update properties of this object
847
+ def update!(**args)
848
+ @display_name = args[:display_name] if args.key?(:display_name)
849
+ @health_check_allowing_firewall_rules = args[:health_check_allowing_firewall_rules] if args.key?(:health_check_allowing_firewall_rules)
850
+ @health_check_blocking_firewall_rules = args[:health_check_blocking_firewall_rules] if args.key?(:health_check_blocking_firewall_rules)
851
+ @health_check_firewall_state = args[:health_check_firewall_state] if args.key?(:health_check_firewall_state)
852
+ @uri = args[:uri] if args.key?(:uri)
853
+ end
854
+ end
855
+
856
+ # For display only. Metadata associated with a load balancer.
857
+ class LoadBalancerInfo
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # Type of load balancer's backend configuration.
861
+ # Corresponds to the JSON property `backendType`
862
+ # @return [String]
863
+ attr_accessor :backend_type
864
+
865
+ # Backend configuration URI.
866
+ # Corresponds to the JSON property `backendUri`
867
+ # @return [String]
868
+ attr_accessor :backend_uri
869
+
870
+ # Information for the loadbalancer backends.
871
+ # Corresponds to the JSON property `backends`
872
+ # @return [Array<Google::Apis::NetworkmanagementV1::LoadBalancerBackend>]
873
+ attr_accessor :backends
874
+
875
+ # URI of the health check for the load balancer.
876
+ # Corresponds to the JSON property `healthCheckUri`
877
+ # @return [String]
878
+ attr_accessor :health_check_uri
879
+
880
+ # Type of the load balancer.
881
+ # Corresponds to the JSON property `loadBalancerType`
882
+ # @return [String]
883
+ attr_accessor :load_balancer_type
884
+
885
+ def initialize(**args)
886
+ update!(**args)
887
+ end
888
+
889
+ # Update properties of this object
890
+ def update!(**args)
891
+ @backend_type = args[:backend_type] if args.key?(:backend_type)
892
+ @backend_uri = args[:backend_uri] if args.key?(:backend_uri)
893
+ @backends = args[:backends] if args.key?(:backends)
894
+ @health_check_uri = args[:health_check_uri] if args.key?(:health_check_uri)
895
+ @load_balancer_type = args[:load_balancer_type] if args.key?(:load_balancer_type)
896
+ end
897
+ end
898
+
899
+ # A resource that represents Google Cloud Platform location.
900
+ class Location
901
+ include Google::Apis::Core::Hashable
902
+
903
+ # The friendly name for this location, typically a nearby city name. For example,
904
+ # "Tokyo".
905
+ # Corresponds to the JSON property `displayName`
906
+ # @return [String]
907
+ attr_accessor :display_name
908
+
909
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
910
+ # region": "us-east1"`
911
+ # Corresponds to the JSON property `labels`
912
+ # @return [Hash<String,String>]
913
+ attr_accessor :labels
914
+
915
+ # The canonical id for this location. For example: `"us-east1"`.
916
+ # Corresponds to the JSON property `locationId`
917
+ # @return [String]
918
+ attr_accessor :location_id
919
+
920
+ # Service-specific metadata. For example the available capacity at the given
921
+ # location.
922
+ # Corresponds to the JSON property `metadata`
923
+ # @return [Hash<String,Object>]
924
+ attr_accessor :metadata
925
+
926
+ # Resource name for the location, which may vary between implementations. For
927
+ # example: `"projects/example-project/locations/us-east1"`
928
+ # Corresponds to the JSON property `name`
929
+ # @return [String]
930
+ attr_accessor :name
931
+
932
+ def initialize(**args)
933
+ update!(**args)
934
+ end
935
+
936
+ # Update properties of this object
937
+ def update!(**args)
938
+ @display_name = args[:display_name] if args.key?(:display_name)
939
+ @labels = args[:labels] if args.key?(:labels)
940
+ @location_id = args[:location_id] if args.key?(:location_id)
941
+ @metadata = args[:metadata] if args.key?(:metadata)
942
+ @name = args[:name] if args.key?(:name)
943
+ end
944
+ end
945
+
946
+ # For display only. Metadata associated with a Compute Engine network.
947
+ class NetworkInfo
948
+ include Google::Apis::Core::Hashable
949
+
950
+ # Name of a Compute Engine network.
951
+ # Corresponds to the JSON property `displayName`
952
+ # @return [String]
953
+ attr_accessor :display_name
954
+
955
+ # The IP range that matches the test.
956
+ # Corresponds to the JSON property `matchedIpRange`
957
+ # @return [String]
958
+ attr_accessor :matched_ip_range
959
+
960
+ # URI of a Compute Engine network.
961
+ # Corresponds to the JSON property `uri`
962
+ # @return [String]
963
+ attr_accessor :uri
964
+
965
+ def initialize(**args)
966
+ update!(**args)
967
+ end
968
+
969
+ # Update properties of this object
970
+ def update!(**args)
971
+ @display_name = args[:display_name] if args.key?(:display_name)
972
+ @matched_ip_range = args[:matched_ip_range] if args.key?(:matched_ip_range)
973
+ @uri = args[:uri] if args.key?(:uri)
974
+ end
975
+ end
976
+
977
+ # This resource represents a long-running operation that is the result of a
978
+ # network API call.
979
+ class Operation
980
+ include Google::Apis::Core::Hashable
981
+
982
+ # If the value is `false`, it means the operation is still in progress. If `true`
983
+ # , the operation is completed, and either `error` or `response` is available.
984
+ # Corresponds to the JSON property `done`
985
+ # @return [Boolean]
986
+ attr_accessor :done
987
+ alias_method :done?, :done
988
+
989
+ # The `Status` type defines a logical error model that is suitable for different
990
+ # programming environments, including REST APIs and RPC APIs. It is used by [
991
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
992
+ # data: error code, error message, and error details. You can find out more
993
+ # about this error model and how to work with it in the [API Design Guide](https:
994
+ # //cloud.google.com/apis/design/errors).
995
+ # Corresponds to the JSON property `error`
996
+ # @return [Google::Apis::NetworkmanagementV1::Status]
997
+ attr_accessor :error
998
+
999
+ # Service-specific metadata associated with the operation. It typically contains
1000
+ # progress information and common metadata such as create time. Some services
1001
+ # might not provide such metadata. Any method that returns a long-running
1002
+ # operation should document the metadata type, if any.
1003
+ # Corresponds to the JSON property `metadata`
1004
+ # @return [Hash<String,Object>]
1005
+ attr_accessor :metadata
1006
+
1007
+ # The server-assigned name, which is only unique within the same service that
1008
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1009
+ # be a resource name ending with `operations/`unique_id``.
1010
+ # Corresponds to the JSON property `name`
1011
+ # @return [String]
1012
+ attr_accessor :name
1013
+
1014
+ # The normal response of the operation in case of success. If the original
1015
+ # method returns no data on success, such as `Delete`, the response is `google.
1016
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1017
+ # the response should be the resource. For other methods, the response should
1018
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1019
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1020
+ # response type is `TakeSnapshotResponse`.
1021
+ # Corresponds to the JSON property `response`
1022
+ # @return [Hash<String,Object>]
1023
+ attr_accessor :response
1024
+
1025
+ def initialize(**args)
1026
+ update!(**args)
1027
+ end
1028
+
1029
+ # Update properties of this object
1030
+ def update!(**args)
1031
+ @done = args[:done] if args.key?(:done)
1032
+ @error = args[:error] if args.key?(:error)
1033
+ @metadata = args[:metadata] if args.key?(:metadata)
1034
+ @name = args[:name] if args.key?(:name)
1035
+ @response = args[:response] if args.key?(:response)
1036
+ end
1037
+ end
1038
+
1039
+ # Metadata describing an Operation
1040
+ class OperationMetadata
1041
+ include Google::Apis::Core::Hashable
1042
+
1043
+ # API version.
1044
+ # Corresponds to the JSON property `apiVersion`
1045
+ # @return [String]
1046
+ attr_accessor :api_version
1047
+
1048
+ # Specifies if cancellation was requested for the operation.
1049
+ # Corresponds to the JSON property `cancelRequested`
1050
+ # @return [Boolean]
1051
+ attr_accessor :cancel_requested
1052
+ alias_method :cancel_requested?, :cancel_requested
1053
+
1054
+ # The time the operation was created.
1055
+ # Corresponds to the JSON property `createTime`
1056
+ # @return [String]
1057
+ attr_accessor :create_time
1058
+
1059
+ # The time the operation finished running.
1060
+ # Corresponds to the JSON property `endTime`
1061
+ # @return [String]
1062
+ attr_accessor :end_time
1063
+
1064
+ # Human-readable status of the operation, if any.
1065
+ # Corresponds to the JSON property `statusDetail`
1066
+ # @return [String]
1067
+ attr_accessor :status_detail
1068
+
1069
+ # Target of the operation - for example projects/project-1/locations/global/
1070
+ # connectivityTests/test-1
1071
+ # Corresponds to the JSON property `target`
1072
+ # @return [String]
1073
+ attr_accessor :target
1074
+
1075
+ # Name of the verb executed by the operation.
1076
+ # Corresponds to the JSON property `verb`
1077
+ # @return [String]
1078
+ attr_accessor :verb
1079
+
1080
+ def initialize(**args)
1081
+ update!(**args)
1082
+ end
1083
+
1084
+ # Update properties of this object
1085
+ def update!(**args)
1086
+ @api_version = args[:api_version] if args.key?(:api_version)
1087
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1088
+ @create_time = args[:create_time] if args.key?(:create_time)
1089
+ @end_time = args[:end_time] if args.key?(:end_time)
1090
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1091
+ @target = args[:target] if args.key?(:target)
1092
+ @verb = args[:verb] if args.key?(:verb)
1093
+ end
1094
+ end
1095
+
1096
+ # An Identity and Access Management (IAM) policy, which specifies access
1097
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1098
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1099
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1100
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1101
+ # role or a user-created custom role. For some types of Google Cloud resources,
1102
+ # a `binding` can also specify a `condition`, which is a logical expression that
1103
+ # allows access to a resource only if the expression evaluates to `true`. A
1104
+ # condition can add constraints based on attributes of the request, the resource,
1105
+ # or both. To learn which resources support conditions in their IAM policies,
1106
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1107
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1108
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1109
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1110
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1111
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1112
+ # title": "expirable access", "description": "Does not grant access after Sep
1113
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1114
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1115
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1116
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1117
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1118
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1119
+ # description: Does not grant access after Sep 2020 expression: request.time <
1120
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1121
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1122
+ # google.com/iam/docs/).
1123
+ class Policy
1124
+ include Google::Apis::Core::Hashable
1125
+
1126
+ # Specifies cloud audit logging configuration for this policy.
1127
+ # Corresponds to the JSON property `auditConfigs`
1128
+ # @return [Array<Google::Apis::NetworkmanagementV1::AuditConfig>]
1129
+ attr_accessor :audit_configs
1130
+
1131
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
1132
+ # condition` that determines how and when the `bindings` are applied. Each of
1133
+ # the `bindings` must contain at least one member.
1134
+ # Corresponds to the JSON property `bindings`
1135
+ # @return [Array<Google::Apis::NetworkmanagementV1::Binding>]
1136
+ attr_accessor :bindings
1137
+
1138
+ # `etag` is used for optimistic concurrency control as a way to help prevent
1139
+ # simultaneous updates of a policy from overwriting each other. It is strongly
1140
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
1141
+ # to perform policy updates in order to avoid race conditions: An `etag` is
1142
+ # returned in the response to `getIamPolicy`, and systems are expected to put
1143
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
1144
+ # applied to the same version of the policy. **Important:** If you use IAM
1145
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1146
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
1147
+ # with a version `1` policy, and all of the conditions in the version `3` policy
1148
+ # are lost.
1149
+ # Corresponds to the JSON property `etag`
1150
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1151
+ # @return [String]
1152
+ attr_accessor :etag
1153
+
1154
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1155
+ # Requests that specify an invalid value are rejected. Any operation that
1156
+ # affects conditional role bindings must specify version `3`. This requirement
1157
+ # applies to the following operations: * Getting a policy that includes a
1158
+ # conditional role binding * Adding a conditional role binding to a policy *
1159
+ # Changing a conditional role binding in a policy * Removing any role binding,
1160
+ # with or without a condition, from a policy that includes conditions **
1161
+ # Important:** If you use IAM Conditions, you must include the `etag` field
1162
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1163
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
1164
+ # conditions in the version `3` policy are lost. If a policy does not include
1165
+ # any conditions, operations on that policy may specify any valid version or
1166
+ # leave the field unset. To learn which resources support conditions in their
1167
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1168
+ # conditions/resource-policies).
1169
+ # Corresponds to the JSON property `version`
1170
+ # @return [Fixnum]
1171
+ attr_accessor :version
1172
+
1173
+ def initialize(**args)
1174
+ update!(**args)
1175
+ end
1176
+
1177
+ # Update properties of this object
1178
+ def update!(**args)
1179
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1180
+ @bindings = args[:bindings] if args.key?(:bindings)
1181
+ @etag = args[:etag] if args.key?(:etag)
1182
+ @version = args[:version] if args.key?(:version)
1183
+ end
1184
+ end
1185
+
1186
+ # The details of reachability state from the latest run.
1187
+ class ReachabilityDetails
1188
+ include Google::Apis::Core::Hashable
1189
+
1190
+ # The `Status` type defines a logical error model that is suitable for different
1191
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1192
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1193
+ # data: error code, error message, and error details. You can find out more
1194
+ # about this error model and how to work with it in the [API Design Guide](https:
1195
+ # //cloud.google.com/apis/design/errors).
1196
+ # Corresponds to the JSON property `error`
1197
+ # @return [Google::Apis::NetworkmanagementV1::Status]
1198
+ attr_accessor :error
1199
+
1200
+ # The overall reachability result of the test.
1201
+ # Corresponds to the JSON property `result`
1202
+ # @return [String]
1203
+ attr_accessor :result
1204
+
1205
+ # Result may contain a list of traces if a test has multiple possible paths in
1206
+ # the network, such as when destination endpoint is a load balancer with
1207
+ # multiple backends.
1208
+ # Corresponds to the JSON property `traces`
1209
+ # @return [Array<Google::Apis::NetworkmanagementV1::Trace>]
1210
+ attr_accessor :traces
1211
+
1212
+ # The time the reachability state was verified.
1213
+ # Corresponds to the JSON property `verifyTime`
1214
+ # @return [String]
1215
+ attr_accessor :verify_time
1216
+
1217
+ def initialize(**args)
1218
+ update!(**args)
1219
+ end
1220
+
1221
+ # Update properties of this object
1222
+ def update!(**args)
1223
+ @error = args[:error] if args.key?(:error)
1224
+ @result = args[:result] if args.key?(:result)
1225
+ @traces = args[:traces] if args.key?(:traces)
1226
+ @verify_time = args[:verify_time] if args.key?(:verify_time)
1227
+ end
1228
+ end
1229
+
1230
+ # Request for the `RerunConnectivityTest` method.
1231
+ class RerunConnectivityTestRequest
1232
+ include Google::Apis::Core::Hashable
1233
+
1234
+ def initialize(**args)
1235
+ update!(**args)
1236
+ end
1237
+
1238
+ # Update properties of this object
1239
+ def update!(**args)
1240
+ end
1241
+ end
1242
+
1243
+ # For display only. Metadata associated with a Compute Engine route.
1244
+ class RouteInfo
1245
+ include Google::Apis::Core::Hashable
1246
+
1247
+ # Destination IP range of the route.
1248
+ # Corresponds to the JSON property `destIpRange`
1249
+ # @return [String]
1250
+ attr_accessor :dest_ip_range
1251
+
1252
+ # Name of a Compute Engine route.
1253
+ # Corresponds to the JSON property `displayName`
1254
+ # @return [String]
1255
+ attr_accessor :display_name
1256
+
1257
+ # Instance tags of the route.
1258
+ # Corresponds to the JSON property `instanceTags`
1259
+ # @return [Array<String>]
1260
+ attr_accessor :instance_tags
1261
+
1262
+ # URI of a Compute Engine network.
1263
+ # Corresponds to the JSON property `networkUri`
1264
+ # @return [String]
1265
+ attr_accessor :network_uri
1266
+
1267
+ # Next hop of the route.
1268
+ # Corresponds to the JSON property `nextHop`
1269
+ # @return [String]
1270
+ attr_accessor :next_hop
1271
+
1272
+ # Type of next hop.
1273
+ # Corresponds to the JSON property `nextHopType`
1274
+ # @return [String]
1275
+ attr_accessor :next_hop_type
1276
+
1277
+ # Priority of the route.
1278
+ # Corresponds to the JSON property `priority`
1279
+ # @return [Fixnum]
1280
+ attr_accessor :priority
1281
+
1282
+ # Type of route.
1283
+ # Corresponds to the JSON property `routeType`
1284
+ # @return [String]
1285
+ attr_accessor :route_type
1286
+
1287
+ # URI of a Compute Engine route. Dynamic route from cloud router does not have a
1288
+ # URI. Advertised route from Google Cloud VPC to on-premises network also does
1289
+ # not have a URI.
1290
+ # Corresponds to the JSON property `uri`
1291
+ # @return [String]
1292
+ attr_accessor :uri
1293
+
1294
+ def initialize(**args)
1295
+ update!(**args)
1296
+ end
1297
+
1298
+ # Update properties of this object
1299
+ def update!(**args)
1300
+ @dest_ip_range = args[:dest_ip_range] if args.key?(:dest_ip_range)
1301
+ @display_name = args[:display_name] if args.key?(:display_name)
1302
+ @instance_tags = args[:instance_tags] if args.key?(:instance_tags)
1303
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
1304
+ @next_hop = args[:next_hop] if args.key?(:next_hop)
1305
+ @next_hop_type = args[:next_hop_type] if args.key?(:next_hop_type)
1306
+ @priority = args[:priority] if args.key?(:priority)
1307
+ @route_type = args[:route_type] if args.key?(:route_type)
1308
+ @uri = args[:uri] if args.key?(:uri)
1309
+ end
1310
+ end
1311
+
1312
+ # Request message for `SetIamPolicy` method.
1313
+ class SetIamPolicyRequest
1314
+ include Google::Apis::Core::Hashable
1315
+
1316
+ # An Identity and Access Management (IAM) policy, which specifies access
1317
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1318
+ # A `binding` binds one or more `members` to a single `role`. Members can be
1319
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
1320
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
1321
+ # role or a user-created custom role. For some types of Google Cloud resources,
1322
+ # a `binding` can also specify a `condition`, which is a logical expression that
1323
+ # allows access to a resource only if the expression evaluates to `true`. A
1324
+ # condition can add constraints based on attributes of the request, the resource,
1325
+ # or both. To learn which resources support conditions in their IAM policies,
1326
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1327
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1328
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1329
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1330
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1331
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1332
+ # title": "expirable access", "description": "Does not grant access after Sep
1333
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1334
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1335
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
1336
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1337
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1338
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
1339
+ # description: Does not grant access after Sep 2020 expression: request.time <
1340
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1341
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
1342
+ # google.com/iam/docs/).
1343
+ # Corresponds to the JSON property `policy`
1344
+ # @return [Google::Apis::NetworkmanagementV1::Policy]
1345
+ attr_accessor :policy
1346
+
1347
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1348
+ # the fields in the mask will be modified. If no mask is provided, the following
1349
+ # default mask is used: `paths: "bindings, etag"`
1350
+ # Corresponds to the JSON property `updateMask`
1351
+ # @return [String]
1352
+ attr_accessor :update_mask
1353
+
1354
+ def initialize(**args)
1355
+ update!(**args)
1356
+ end
1357
+
1358
+ # Update properties of this object
1359
+ def update!(**args)
1360
+ @policy = args[:policy] if args.key?(:policy)
1361
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1362
+ end
1363
+ end
1364
+
1365
+ # The `Status` type defines a logical error model that is suitable for different
1366
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1367
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1368
+ # data: error code, error message, and error details. You can find out more
1369
+ # about this error model and how to work with it in the [API Design Guide](https:
1370
+ # //cloud.google.com/apis/design/errors).
1371
+ class Status
1372
+ include Google::Apis::Core::Hashable
1373
+
1374
+ # The status code, which should be an enum value of google.rpc.Code.
1375
+ # Corresponds to the JSON property `code`
1376
+ # @return [Fixnum]
1377
+ attr_accessor :code
1378
+
1379
+ # A list of messages that carry the error details. There is a common set of
1380
+ # message types for APIs to use.
1381
+ # Corresponds to the JSON property `details`
1382
+ # @return [Array<Hash<String,Object>>]
1383
+ attr_accessor :details
1384
+
1385
+ # A developer-facing error message, which should be in English. Any user-facing
1386
+ # error message should be localized and sent in the google.rpc.Status.details
1387
+ # field, or localized by the client.
1388
+ # Corresponds to the JSON property `message`
1389
+ # @return [String]
1390
+ attr_accessor :message
1391
+
1392
+ def initialize(**args)
1393
+ update!(**args)
1394
+ end
1395
+
1396
+ # Update properties of this object
1397
+ def update!(**args)
1398
+ @code = args[:code] if args.key?(:code)
1399
+ @details = args[:details] if args.key?(:details)
1400
+ @message = args[:message] if args.key?(:message)
1401
+ end
1402
+ end
1403
+
1404
+ # A simulated forwarding path is composed of multiple steps. Each step has a
1405
+ # well-defined state and an associated configuration.
1406
+ class Step
1407
+ include Google::Apis::Core::Hashable
1408
+
1409
+ # Details of the final state "abort" and associated resource.
1410
+ # Corresponds to the JSON property `abort`
1411
+ # @return [Google::Apis::NetworkmanagementV1::AbortInfo]
1412
+ attr_accessor :abort
1413
+
1414
+ # This is a step that leads to the final state Drop.
1415
+ # Corresponds to the JSON property `causesDrop`
1416
+ # @return [Boolean]
1417
+ attr_accessor :causes_drop
1418
+ alias_method :causes_drop?, :causes_drop
1419
+
1420
+ # Details of the final state "deliver" and associated resource.
1421
+ # Corresponds to the JSON property `deliver`
1422
+ # @return [Google::Apis::NetworkmanagementV1::DeliverInfo]
1423
+ attr_accessor :deliver
1424
+
1425
+ # A description of the step. Usually this is a summary of the state.
1426
+ # Corresponds to the JSON property `description`
1427
+ # @return [String]
1428
+ attr_accessor :description
1429
+
1430
+ # Details of the final state "drop" and associated resource.
1431
+ # Corresponds to the JSON property `drop`
1432
+ # @return [Google::Apis::NetworkmanagementV1::DropInfo]
1433
+ attr_accessor :drop
1434
+
1435
+ # For display only. The specification of the endpoints for the test.
1436
+ # EndpointInfo is derived from source and destination Endpoint and validated by
1437
+ # the backend data plane model.
1438
+ # Corresponds to the JSON property `endpoint`
1439
+ # @return [Google::Apis::NetworkmanagementV1::EndpointInfo]
1440
+ attr_accessor :endpoint
1441
+
1442
+ # For display only. Metadata associated with a Compute Engine firewall rule.
1443
+ # Corresponds to the JSON property `firewall`
1444
+ # @return [Google::Apis::NetworkmanagementV1::FirewallInfo]
1445
+ attr_accessor :firewall
1446
+
1447
+ # Details of the final state "forward" and associated resource.
1448
+ # Corresponds to the JSON property `forward`
1449
+ # @return [Google::Apis::NetworkmanagementV1::ForwardInfo]
1450
+ attr_accessor :forward
1451
+
1452
+ # For display only. Metadata associated with a Compute Engine forwarding rule.
1453
+ # Corresponds to the JSON property `forwardingRule`
1454
+ # @return [Google::Apis::NetworkmanagementV1::ForwardingRuleInfo]
1455
+ attr_accessor :forwarding_rule
1456
+
1457
+ # For display only. Metadata associated with a Compute Engine instance.
1458
+ # Corresponds to the JSON property `instance`
1459
+ # @return [Google::Apis::NetworkmanagementV1::InstanceInfo]
1460
+ attr_accessor :instance
1461
+
1462
+ # For display only. Metadata associated with a load balancer.
1463
+ # Corresponds to the JSON property `loadBalancer`
1464
+ # @return [Google::Apis::NetworkmanagementV1::LoadBalancerInfo]
1465
+ attr_accessor :load_balancer
1466
+
1467
+ # For display only. Metadata associated with a Compute Engine network.
1468
+ # Corresponds to the JSON property `network`
1469
+ # @return [Google::Apis::NetworkmanagementV1::NetworkInfo]
1470
+ attr_accessor :network
1471
+
1472
+ # Project ID that contains the configuration this step is validating.
1473
+ # Corresponds to the JSON property `projectId`
1474
+ # @return [String]
1475
+ attr_accessor :project_id
1476
+
1477
+ # For display only. Metadata associated with a Compute Engine route.
1478
+ # Corresponds to the JSON property `route`
1479
+ # @return [Google::Apis::NetworkmanagementV1::RouteInfo]
1480
+ attr_accessor :route
1481
+
1482
+ # Each step is in one of the pre-defined states.
1483
+ # Corresponds to the JSON property `state`
1484
+ # @return [String]
1485
+ attr_accessor :state
1486
+
1487
+ # For display only. Metadata associated with a Compute Engine VPN gateway.
1488
+ # Corresponds to the JSON property `vpnGateway`
1489
+ # @return [Google::Apis::NetworkmanagementV1::VpnGatewayInfo]
1490
+ attr_accessor :vpn_gateway
1491
+
1492
+ # For display only. Metadata associated with a Compute Engine VPN tunnel.
1493
+ # Corresponds to the JSON property `vpnTunnel`
1494
+ # @return [Google::Apis::NetworkmanagementV1::VpnTunnelInfo]
1495
+ attr_accessor :vpn_tunnel
1496
+
1497
+ def initialize(**args)
1498
+ update!(**args)
1499
+ end
1500
+
1501
+ # Update properties of this object
1502
+ def update!(**args)
1503
+ @abort = args[:abort] if args.key?(:abort)
1504
+ @causes_drop = args[:causes_drop] if args.key?(:causes_drop)
1505
+ @deliver = args[:deliver] if args.key?(:deliver)
1506
+ @description = args[:description] if args.key?(:description)
1507
+ @drop = args[:drop] if args.key?(:drop)
1508
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
1509
+ @firewall = args[:firewall] if args.key?(:firewall)
1510
+ @forward = args[:forward] if args.key?(:forward)
1511
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
1512
+ @instance = args[:instance] if args.key?(:instance)
1513
+ @load_balancer = args[:load_balancer] if args.key?(:load_balancer)
1514
+ @network = args[:network] if args.key?(:network)
1515
+ @project_id = args[:project_id] if args.key?(:project_id)
1516
+ @route = args[:route] if args.key?(:route)
1517
+ @state = args[:state] if args.key?(:state)
1518
+ @vpn_gateway = args[:vpn_gateway] if args.key?(:vpn_gateway)
1519
+ @vpn_tunnel = args[:vpn_tunnel] if args.key?(:vpn_tunnel)
1520
+ end
1521
+ end
1522
+
1523
+ # Request message for `TestIamPermissions` method.
1524
+ class TestIamPermissionsRequest
1525
+ include Google::Apis::Core::Hashable
1526
+
1527
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1528
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
1529
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1530
+ # Corresponds to the JSON property `permissions`
1531
+ # @return [Array<String>]
1532
+ attr_accessor :permissions
1533
+
1534
+ def initialize(**args)
1535
+ update!(**args)
1536
+ end
1537
+
1538
+ # Update properties of this object
1539
+ def update!(**args)
1540
+ @permissions = args[:permissions] if args.key?(:permissions)
1541
+ end
1542
+ end
1543
+
1544
+ # Response message for `TestIamPermissions` method.
1545
+ class TestIamPermissionsResponse
1546
+ include Google::Apis::Core::Hashable
1547
+
1548
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1549
+ # Corresponds to the JSON property `permissions`
1550
+ # @return [Array<String>]
1551
+ attr_accessor :permissions
1552
+
1553
+ def initialize(**args)
1554
+ update!(**args)
1555
+ end
1556
+
1557
+ # Update properties of this object
1558
+ def update!(**args)
1559
+ @permissions = args[:permissions] if args.key?(:permissions)
1560
+ end
1561
+ end
1562
+
1563
+ # Trace represents one simulated packet forwarding path. - Each trace contains
1564
+ # multiple ordered steps. - Each step is in a particular state and has an
1565
+ # associated configuration. - State is categorized as a final or non-final state.
1566
+ # - Each final state has a reason associated with it. - Each trace must end
1567
+ # with a final state (the last step). |---------------------Trace----------------
1568
+ # ------| Step1(State) Step2(State) --- StepN(State(final))
1569
+ class Trace
1570
+ include Google::Apis::Core::Hashable
1571
+
1572
+ # For display only. The specification of the endpoints for the test.
1573
+ # EndpointInfo is derived from source and destination Endpoint and validated by
1574
+ # the backend data plane model.
1575
+ # Corresponds to the JSON property `endpointInfo`
1576
+ # @return [Google::Apis::NetworkmanagementV1::EndpointInfo]
1577
+ attr_accessor :endpoint_info
1578
+
1579
+ # A trace of a test contains multiple steps from the initial state to the final
1580
+ # state (delivered, dropped, forwarded, or aborted). The steps are ordered by
1581
+ # the processing sequence within the simulated network state machine. It is
1582
+ # critical to preserve the order of the steps and avoid reordering or sorting
1583
+ # them.
1584
+ # Corresponds to the JSON property `steps`
1585
+ # @return [Array<Google::Apis::NetworkmanagementV1::Step>]
1586
+ attr_accessor :steps
1587
+
1588
+ def initialize(**args)
1589
+ update!(**args)
1590
+ end
1591
+
1592
+ # Update properties of this object
1593
+ def update!(**args)
1594
+ @endpoint_info = args[:endpoint_info] if args.key?(:endpoint_info)
1595
+ @steps = args[:steps] if args.key?(:steps)
1596
+ end
1597
+ end
1598
+
1599
+ # For display only. Metadata associated with a Compute Engine VPN gateway.
1600
+ class VpnGatewayInfo
1601
+ include Google::Apis::Core::Hashable
1602
+
1603
+ # Name of a VPN gateway.
1604
+ # Corresponds to the JSON property `displayName`
1605
+ # @return [String]
1606
+ attr_accessor :display_name
1607
+
1608
+ # IP address of the VPN gateway.
1609
+ # Corresponds to the JSON property `ipAddress`
1610
+ # @return [String]
1611
+ attr_accessor :ip_address
1612
+
1613
+ # URI of a Compute Engine network where the VPN gateway is configured.
1614
+ # Corresponds to the JSON property `networkUri`
1615
+ # @return [String]
1616
+ attr_accessor :network_uri
1617
+
1618
+ # Name of a GCP region where this VPN gateway is configured.
1619
+ # Corresponds to the JSON property `region`
1620
+ # @return [String]
1621
+ attr_accessor :region
1622
+
1623
+ # URI of a VPN gateway.
1624
+ # Corresponds to the JSON property `uri`
1625
+ # @return [String]
1626
+ attr_accessor :uri
1627
+
1628
+ # A VPN tunnel that is associated with this VPN gateway. There may be multiple
1629
+ # VPN tunnels configured on a VPN gateway, and only the one relevant to the test
1630
+ # is displayed.
1631
+ # Corresponds to the JSON property `vpnTunnelUri`
1632
+ # @return [String]
1633
+ attr_accessor :vpn_tunnel_uri
1634
+
1635
+ def initialize(**args)
1636
+ update!(**args)
1637
+ end
1638
+
1639
+ # Update properties of this object
1640
+ def update!(**args)
1641
+ @display_name = args[:display_name] if args.key?(:display_name)
1642
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
1643
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
1644
+ @region = args[:region] if args.key?(:region)
1645
+ @uri = args[:uri] if args.key?(:uri)
1646
+ @vpn_tunnel_uri = args[:vpn_tunnel_uri] if args.key?(:vpn_tunnel_uri)
1647
+ end
1648
+ end
1649
+
1650
+ # For display only. Metadata associated with a Compute Engine VPN tunnel.
1651
+ class VpnTunnelInfo
1652
+ include Google::Apis::Core::Hashable
1653
+
1654
+ # Name of a VPN tunnel.
1655
+ # Corresponds to the JSON property `displayName`
1656
+ # @return [String]
1657
+ attr_accessor :display_name
1658
+
1659
+ # URI of a Compute Engine network where the VPN tunnel is configured.
1660
+ # Corresponds to the JSON property `networkUri`
1661
+ # @return [String]
1662
+ attr_accessor :network_uri
1663
+
1664
+ # Name of a GCP region where this VPN tunnel is configured.
1665
+ # Corresponds to the JSON property `region`
1666
+ # @return [String]
1667
+ attr_accessor :region
1668
+
1669
+ # URI of a VPN gateway at remote end of the tunnel.
1670
+ # Corresponds to the JSON property `remoteGateway`
1671
+ # @return [String]
1672
+ attr_accessor :remote_gateway
1673
+
1674
+ # Remote VPN gateway's IP address.
1675
+ # Corresponds to the JSON property `remoteGatewayIp`
1676
+ # @return [String]
1677
+ attr_accessor :remote_gateway_ip
1678
+
1679
+ # Type of the routing policy.
1680
+ # Corresponds to the JSON property `routingType`
1681
+ # @return [String]
1682
+ attr_accessor :routing_type
1683
+
1684
+ # URI of the VPN gateway at local end of the tunnel.
1685
+ # Corresponds to the JSON property `sourceGateway`
1686
+ # @return [String]
1687
+ attr_accessor :source_gateway
1688
+
1689
+ # Local VPN gateway's IP address.
1690
+ # Corresponds to the JSON property `sourceGatewayIp`
1691
+ # @return [String]
1692
+ attr_accessor :source_gateway_ip
1693
+
1694
+ # URI of a VPN tunnel.
1695
+ # Corresponds to the JSON property `uri`
1696
+ # @return [String]
1697
+ attr_accessor :uri
1698
+
1699
+ def initialize(**args)
1700
+ update!(**args)
1701
+ end
1702
+
1703
+ # Update properties of this object
1704
+ def update!(**args)
1705
+ @display_name = args[:display_name] if args.key?(:display_name)
1706
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
1707
+ @region = args[:region] if args.key?(:region)
1708
+ @remote_gateway = args[:remote_gateway] if args.key?(:remote_gateway)
1709
+ @remote_gateway_ip = args[:remote_gateway_ip] if args.key?(:remote_gateway_ip)
1710
+ @routing_type = args[:routing_type] if args.key?(:routing_type)
1711
+ @source_gateway = args[:source_gateway] if args.key?(:source_gateway)
1712
+ @source_gateway_ip = args[:source_gateway_ip] if args.key?(:source_gateway_ip)
1713
+ @uri = args[:uri] if args.key?(:uri)
1714
+ end
1715
+ end
1716
+ end
1717
+ end
1718
+ end