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