google-apis-baremetalsolution_v1alpha1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 699186874825529cb5879be8938fbb9b79dbdb3ea1990c03a973c57e8365ecf0
4
+ data.tar.gz: 31120afe875fb0b2398a2615ee635f1d3ceb9d91d619444c32ad41f2a4a6bb96
5
+ SHA512:
6
+ metadata.gz: 0ca8a7fee66925c2efef9e7256ffa7c3cd8bc3fea3abad7af79a2c167173a4d1b7051be8ad55ee79e4c4e744606aaf4ba7aff6a5338fd5ac8591733a0b7ab17c
7
+ data.tar.gz: 5fdf44c824a254dc384e2b03128994ed45812b83228bf78fe610510efda38547c465f5b4a5869e17f03baf1dc104fab5414c29678bd56e745098c2f09a5691c2
data/.yardopts ADDED
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-baremetalsolution_v1alpha1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/baremetalsolution_v1alpha1/*.rb
9
+ lib/google/apis/baremetalsolution_v1alpha1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-baremetalsolution_v1alpha1
2
+
3
+ ### v0.1.0 (2021-07-06)
4
+
5
+ * Regenerated from discovery document revision 20210701
6
+ * Regenerated using generator version 0.4.0
7
+
data/LICENSE.md ADDED
@@ -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.
data/OVERVIEW.md ADDED
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1alpha1 of the Bare Metal Solution API
2
+
3
+ This is a simple client library for version V1alpha1 of the Bare Metal Solution 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/baremetalsolution.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-baremetalsolution_v1alpha1', '~> 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-baremetalsolution_v1alpha1
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/baremetalsolution_v1alpha1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::BaremetalsolutionV1alpha1::BaremetalsolutionService.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 Baremetalsolution service in particular.)
67
+
68
+ For reference information on specific calls in the Bare Metal Solution API, see the {Google::Apis::BaremetalsolutionV1alpha1::BaremetalsolutionService 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-baremetalsolution_v1alpha1`, 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/bare-metal) 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/baremetalsolution_v1alpha1"
@@ -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/baremetalsolution_v1alpha1/service.rb'
16
+ require 'google/apis/baremetalsolution_v1alpha1/classes.rb'
17
+ require 'google/apis/baremetalsolution_v1alpha1/representations.rb'
18
+ require 'google/apis/baremetalsolution_v1alpha1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Bare Metal Solution API
23
+ #
24
+ # Provides ways to manage Bare Metal Solution hardware installed in a regional
25
+ # extension located near a Google Cloud data center.
26
+ #
27
+ # @see https://cloud.google.com/bare-metal
28
+ module BaremetalsolutionV1alpha1
29
+ # Version of the Bare Metal Solution API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1alpha1'
32
+
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1123 @@
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 BaremetalsolutionV1alpha1
24
+
25
+ # Request for DisableInteractiveSerialConsole.
26
+ class DisableInteractiveSerialConsoleRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # Response for DisableInteractiveSerialConsole.
39
+ class DisableInteractiveSerialConsoleResponse
40
+ include Google::Apis::Core::Hashable
41
+
42
+ def initialize(**args)
43
+ update!(**args)
44
+ end
45
+
46
+ # Update properties of this object
47
+ def update!(**args)
48
+ end
49
+ end
50
+
51
+ # A generic empty message that you can re-use to avoid defining duplicated empty
52
+ # messages in your APIs. A typical example is to use it as the request or the
53
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
54
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
55
+ # `Empty` is empty JSON object ````.
56
+ class Empty
57
+ include Google::Apis::Core::Hashable
58
+
59
+ def initialize(**args)
60
+ update!(**args)
61
+ end
62
+
63
+ # Update properties of this object
64
+ def update!(**args)
65
+ end
66
+ end
67
+
68
+ # Request for EnableInteractiveSerialConsole.
69
+ class EnableInteractiveSerialConsoleRequest
70
+ include Google::Apis::Core::Hashable
71
+
72
+ def initialize(**args)
73
+ update!(**args)
74
+ end
75
+
76
+ # Update properties of this object
77
+ def update!(**args)
78
+ end
79
+ end
80
+
81
+ # Response for EnableInteractiveSerialConsole.
82
+ class EnableInteractiveSerialConsoleResponse
83
+ include Google::Apis::Core::Hashable
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ end
92
+ end
93
+
94
+ # An Instance.
95
+ class Instance
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # Is hyperthreading enabled for this instance?
99
+ # Corresponds to the JSON property `hyperthreadingEnabled`
100
+ # @return [Boolean]
101
+ attr_accessor :hyperthreading_enabled
102
+ alias_method :hyperthreading_enabled?, :hyperthreading_enabled
103
+
104
+ # The Luns attached to this instance
105
+ # Corresponds to the JSON property `luns`
106
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::Lun>]
107
+ attr_accessor :luns
108
+
109
+ # Output only. The name of this Instance.
110
+ # Corresponds to the JSON property `name`
111
+ # @return [String]
112
+ attr_accessor :name
113
+
114
+ # The scheduled power reset time.
115
+ # Corresponds to the JSON property `scheduledPowerResetTime`
116
+ # @return [String]
117
+ attr_accessor :scheduled_power_reset_time
118
+
119
+ # Is SSH enabled for this instance?
120
+ # Corresponds to the JSON property `sshEnabled`
121
+ # @return [Boolean]
122
+ attr_accessor :ssh_enabled
123
+ alias_method :ssh_enabled?, :ssh_enabled
124
+
125
+ # The state of this Instance.
126
+ # Corresponds to the JSON property `state`
127
+ # @return [String]
128
+ attr_accessor :state
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @hyperthreading_enabled = args[:hyperthreading_enabled] if args.key?(:hyperthreading_enabled)
137
+ @luns = args[:luns] if args.key?(:luns)
138
+ @name = args[:name] if args.key?(:name)
139
+ @scheduled_power_reset_time = args[:scheduled_power_reset_time] if args.key?(:scheduled_power_reset_time)
140
+ @ssh_enabled = args[:ssh_enabled] if args.key?(:ssh_enabled)
141
+ @state = args[:state] if args.key?(:state)
142
+ end
143
+ end
144
+
145
+ # Configuration parameters for a new instance.
146
+ class InstanceConfig
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # A network.
150
+ # Corresponds to the JSON property `clientNetwork`
151
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress]
152
+ attr_accessor :client_network
153
+
154
+ # Whether the instance should be provisioned with Hyperthreading enabled.
155
+ # Corresponds to the JSON property `hyperthreading`
156
+ # @return [Boolean]
157
+ attr_accessor :hyperthreading
158
+ alias_method :hyperthreading?, :hyperthreading
159
+
160
+ # A transient unique identifier to idenfity an instance within an
161
+ # ProvisioningConfig request.
162
+ # Corresponds to the JSON property `id`
163
+ # @return [String]
164
+ attr_accessor :id
165
+
166
+ # Instance type.
167
+ # Corresponds to the JSON property `instanceType`
168
+ # @return [String]
169
+ attr_accessor :instance_type
170
+
171
+ # Location where to deploy the instance.
172
+ # Corresponds to the JSON property `location`
173
+ # @return [String]
174
+ attr_accessor :location
175
+
176
+ # OS image to initialize the instance.
177
+ # Corresponds to the JSON property `osImage`
178
+ # @return [String]
179
+ attr_accessor :os_image
180
+
181
+ # A network.
182
+ # Corresponds to the JSON property `privateNetwork`
183
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::NetworkAddress]
184
+ attr_accessor :private_network
185
+
186
+ def initialize(**args)
187
+ update!(**args)
188
+ end
189
+
190
+ # Update properties of this object
191
+ def update!(**args)
192
+ @client_network = args[:client_network] if args.key?(:client_network)
193
+ @hyperthreading = args[:hyperthreading] if args.key?(:hyperthreading)
194
+ @id = args[:id] if args.key?(:id)
195
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
196
+ @location = args[:location] if args.key?(:location)
197
+ @os_image = args[:os_image] if args.key?(:os_image)
198
+ @private_network = args[:private_network] if args.key?(:private_network)
199
+ end
200
+ end
201
+
202
+ # A resource budget.
203
+ class InstanceQuota
204
+ include Google::Apis::Core::Hashable
205
+
206
+ # Number of machines than can be created for the given location and
207
+ # instance_type.
208
+ # Corresponds to the JSON property `availableMachineCount`
209
+ # @return [Fixnum]
210
+ attr_accessor :available_machine_count
211
+
212
+ # Instance type.
213
+ # Corresponds to the JSON property `instanceType`
214
+ # @return [String]
215
+ attr_accessor :instance_type
216
+
217
+ # Location where the quota applies.
218
+ # Corresponds to the JSON property `location`
219
+ # @return [String]
220
+ attr_accessor :location
221
+
222
+ def initialize(**args)
223
+ update!(**args)
224
+ end
225
+
226
+ # Update properties of this object
227
+ def update!(**args)
228
+ @available_machine_count = args[:available_machine_count] if args.key?(:available_machine_count)
229
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
230
+ @location = args[:location] if args.key?(:location)
231
+ end
232
+ end
233
+
234
+ # Response for ListInstances.
235
+ class ListInstancesResponse
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # The Instances in this project.
239
+ # Corresponds to the JSON property `instances`
240
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::Instance>]
241
+ attr_accessor :instances
242
+
243
+ # Token to retrieve the next page of results, or empty if there are no more
244
+ # results in the list.
245
+ # Corresponds to the JSON property `nextPageToken`
246
+ # @return [String]
247
+ attr_accessor :next_page_token
248
+
249
+ def initialize(**args)
250
+ update!(**args)
251
+ end
252
+
253
+ # Update properties of this object
254
+ def update!(**args)
255
+ @instances = args[:instances] if args.key?(:instances)
256
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
257
+ end
258
+ end
259
+
260
+ # Response for ListLuns.
261
+ class ListLunsResponse
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # The Luns in this project.
265
+ # Corresponds to the JSON property `luns`
266
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::Lun>]
267
+ attr_accessor :luns
268
+
269
+ # Token to retrieve the next page of results, or empty if there are no more
270
+ # results in the list.
271
+ # Corresponds to the JSON property `nextPageToken`
272
+ # @return [String]
273
+ attr_accessor :next_page_token
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @luns = args[:luns] if args.key?(:luns)
282
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
283
+ end
284
+ end
285
+
286
+ # Response for ListProvisioningQuotas.
287
+ class ListProvisioningQuotasResponse
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # Token to retrieve the next page of results, or empty if there are no more
291
+ # results in the list.
292
+ # Corresponds to the JSON property `nextPageToken`
293
+ # @return [String]
294
+ attr_accessor :next_page_token
295
+
296
+ # The provisioning quotas registered in this project.
297
+ # Corresponds to the JSON property `provisioningQuotas`
298
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::ProvisioningQuota>]
299
+ attr_accessor :provisioning_quotas
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
308
+ @provisioning_quotas = args[:provisioning_quotas] if args.key?(:provisioning_quotas)
309
+ end
310
+ end
311
+
312
+ # Response for ListSSHKeys.
313
+ class ListSshKeysResponse
314
+ include Google::Apis::Core::Hashable
315
+
316
+ # Token to retrieve the next page of results, or empty if there are no more
317
+ # results in the list.
318
+ # Corresponds to the JSON property `nextPageToken`
319
+ # @return [String]
320
+ attr_accessor :next_page_token
321
+
322
+ # The SSH keys registered in this project.
323
+ # Corresponds to the JSON property `sshKeys`
324
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::SshKey>]
325
+ attr_accessor :ssh_keys
326
+
327
+ def initialize(**args)
328
+ update!(**args)
329
+ end
330
+
331
+ # Update properties of this object
332
+ def update!(**args)
333
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
334
+ @ssh_keys = args[:ssh_keys] if args.key?(:ssh_keys)
335
+ end
336
+ end
337
+
338
+ # Response for ListSnapshotSchedulePolicies.
339
+ class ListSnapshotSchedulePoliciesResponse
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # Token to retrieve the next page of results, or empty if there are no more
343
+ # results in the list.
344
+ # Corresponds to the JSON property `nextPageToken`
345
+ # @return [String]
346
+ attr_accessor :next_page_token
347
+
348
+ # The snapshot schedule policies registered in this project.
349
+ # Corresponds to the JSON property `snapshotSchedulePolicies`
350
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::SnapshotSchedulePolicy>]
351
+ attr_accessor :snapshot_schedule_policies
352
+
353
+ def initialize(**args)
354
+ update!(**args)
355
+ end
356
+
357
+ # Update properties of this object
358
+ def update!(**args)
359
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
360
+ @snapshot_schedule_policies = args[:snapshot_schedule_policies] if args.key?(:snapshot_schedule_policies)
361
+ end
362
+ end
363
+
364
+ # Response for ListVolumeSnapshots.
365
+ class ListVolumeSnapshotsResponse
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # Token to retrieve the next page of results, or empty if there are no more
369
+ # results in the list.
370
+ # Corresponds to the JSON property `nextPageToken`
371
+ # @return [String]
372
+ attr_accessor :next_page_token
373
+
374
+ # The VolumeSnapshots for the volume.
375
+ # Corresponds to the JSON property `volumeSnapshots`
376
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::VolumeSnapshot>]
377
+ attr_accessor :volume_snapshots
378
+
379
+ def initialize(**args)
380
+ update!(**args)
381
+ end
382
+
383
+ # Update properties of this object
384
+ def update!(**args)
385
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
386
+ @volume_snapshots = args[:volume_snapshots] if args.key?(:volume_snapshots)
387
+ end
388
+ end
389
+
390
+ # Response for ListVolumes.
391
+ class ListVolumesResponse
392
+ include Google::Apis::Core::Hashable
393
+
394
+ # Token to retrieve the next page of results, or empty if there are no more
395
+ # results in the list.
396
+ # Corresponds to the JSON property `nextPageToken`
397
+ # @return [String]
398
+ attr_accessor :next_page_token
399
+
400
+ # The volumes registered in this project.
401
+ # Corresponds to the JSON property `volumes`
402
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::Volume>]
403
+ attr_accessor :volumes
404
+
405
+ def initialize(**args)
406
+ update!(**args)
407
+ end
408
+
409
+ # Update properties of this object
410
+ def update!(**args)
411
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
412
+ @volumes = args[:volumes] if args.key?(:volumes)
413
+ end
414
+ end
415
+
416
+ # A storage Lun.
417
+ class Lun
418
+ include Google::Apis::Core::Hashable
419
+
420
+ # Whether this Lun is a boot Lun.
421
+ # Corresponds to the JSON property `isBoot`
422
+ # @return [Boolean]
423
+ attr_accessor :is_boot
424
+ alias_method :is_boot?, :is_boot
425
+
426
+ # The multiprotocol type of this Lun.
427
+ # Corresponds to the JSON property `multiprotocolType`
428
+ # @return [String]
429
+ attr_accessor :multiprotocol_type
430
+
431
+ # Output only. The name of this Lun.
432
+ # Corresponds to the JSON property `name`
433
+ # @return [String]
434
+ attr_accessor :name
435
+
436
+ # Volume registered in the project.
437
+ # Corresponds to the JSON property `remoteVolume`
438
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::Volume]
439
+ attr_accessor :remote_volume
440
+
441
+ # Whether this Lun is allowed to be shared between multiple physical servers.
442
+ # Corresponds to the JSON property `shareable`
443
+ # @return [Boolean]
444
+ attr_accessor :shareable
445
+ alias_method :shareable?, :shareable
446
+
447
+ # The size of this Lun, in gigabytes.
448
+ # Corresponds to the JSON property `sizeGb`
449
+ # @return [Fixnum]
450
+ attr_accessor :size_gb
451
+
452
+ # The state of this Lun.
453
+ # Corresponds to the JSON property `state`
454
+ # @return [String]
455
+ attr_accessor :state
456
+
457
+ def initialize(**args)
458
+ update!(**args)
459
+ end
460
+
461
+ # Update properties of this object
462
+ def update!(**args)
463
+ @is_boot = args[:is_boot] if args.key?(:is_boot)
464
+ @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
465
+ @name = args[:name] if args.key?(:name)
466
+ @remote_volume = args[:remote_volume] if args.key?(:remote_volume)
467
+ @shareable = args[:shareable] if args.key?(:shareable)
468
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
469
+ @state = args[:state] if args.key?(:state)
470
+ end
471
+ end
472
+
473
+ # A LUN range.
474
+ class LunRange
475
+ include Google::Apis::Core::Hashable
476
+
477
+ # Number of LUNs to create.
478
+ # Corresponds to the JSON property `quantity`
479
+ # @return [Fixnum]
480
+ attr_accessor :quantity
481
+
482
+ # The requested size of each LUN, in GB.
483
+ # Corresponds to the JSON property `sizeGb`
484
+ # @return [Fixnum]
485
+ attr_accessor :size_gb
486
+
487
+ def initialize(**args)
488
+ update!(**args)
489
+ end
490
+
491
+ # Update properties of this object
492
+ def update!(**args)
493
+ @quantity = args[:quantity] if args.key?(:quantity)
494
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
495
+ end
496
+ end
497
+
498
+ # A network.
499
+ class NetworkAddress
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # IP address to be assigned to the server.
503
+ # Corresponds to the JSON property `address`
504
+ # @return [String]
505
+ attr_accessor :address
506
+
507
+ # Id of the network to use, within the same ProvisioningConfig request.
508
+ # Corresponds to the JSON property `networkId`
509
+ # @return [String]
510
+ attr_accessor :network_id
511
+
512
+ def initialize(**args)
513
+ update!(**args)
514
+ end
515
+
516
+ # Update properties of this object
517
+ def update!(**args)
518
+ @address = args[:address] if args.key?(:address)
519
+ @network_id = args[:network_id] if args.key?(:network_id)
520
+ end
521
+ end
522
+
523
+ # Configuration parameters for a new network.
524
+ class NetworkConfig
525
+ include Google::Apis::Core::Hashable
526
+
527
+ # Interconnect bandwidth. Set only when type is CLIENT.
528
+ # Corresponds to the JSON property `bandwidth`
529
+ # @return [String]
530
+ attr_accessor :bandwidth
531
+
532
+ # CIDR range of the network.
533
+ # Corresponds to the JSON property `cidr`
534
+ # @return [String]
535
+ attr_accessor :cidr
536
+
537
+ # A transient unique identifier to identify a volume within an
538
+ # ProvisioningConfig request.
539
+ # Corresponds to the JSON property `id`
540
+ # @return [String]
541
+ attr_accessor :id
542
+
543
+ # Location where to deploy the network.
544
+ # Corresponds to the JSON property `location`
545
+ # @return [String]
546
+ attr_accessor :location
547
+
548
+ # Service CIDR, if any.
549
+ # Corresponds to the JSON property `serviceCidr`
550
+ # @return [String]
551
+ attr_accessor :service_cidr
552
+
553
+ # The type of this network.
554
+ # Corresponds to the JSON property `type`
555
+ # @return [String]
556
+ attr_accessor :type
557
+
558
+ # List of VLAN attachments. As of now there are always 2 attachments, but it is
559
+ # going to change in the future (multi vlan).
560
+ # Corresponds to the JSON property `vlanAttachments`
561
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::VlanAttachment>]
562
+ attr_accessor :vlan_attachments
563
+
564
+ def initialize(**args)
565
+ update!(**args)
566
+ end
567
+
568
+ # Update properties of this object
569
+ def update!(**args)
570
+ @bandwidth = args[:bandwidth] if args.key?(:bandwidth)
571
+ @cidr = args[:cidr] if args.key?(:cidr)
572
+ @id = args[:id] if args.key?(:id)
573
+ @location = args[:location] if args.key?(:location)
574
+ @service_cidr = args[:service_cidr] if args.key?(:service_cidr)
575
+ @type = args[:type] if args.key?(:type)
576
+ @vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments)
577
+ end
578
+ end
579
+
580
+ # A NFS export entry.
581
+ class NfsExport
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # Allow dev.
585
+ # Corresponds to the JSON property `allowDev`
586
+ # @return [Boolean]
587
+ attr_accessor :allow_dev
588
+ alias_method :allow_dev?, :allow_dev
589
+
590
+ # Allow the setuid flag.
591
+ # Corresponds to the JSON property `allowSuid`
592
+ # @return [Boolean]
593
+ attr_accessor :allow_suid
594
+ alias_method :allow_suid?, :allow_suid
595
+
596
+ # A CIDR range.
597
+ # Corresponds to the JSON property `cidr`
598
+ # @return [String]
599
+ attr_accessor :cidr
600
+
601
+ # A single machine, identified by an ID.
602
+ # Corresponds to the JSON property `machineId`
603
+ # @return [String]
604
+ attr_accessor :machine_id
605
+
606
+ # Network to use to publish the export.
607
+ # Corresponds to the JSON property `networkId`
608
+ # @return [String]
609
+ attr_accessor :network_id
610
+
611
+ # Disable root squashing.
612
+ # Corresponds to the JSON property `noRootSquash`
613
+ # @return [Boolean]
614
+ attr_accessor :no_root_squash
615
+ alias_method :no_root_squash?, :no_root_squash
616
+
617
+ # Export permissions.
618
+ # Corresponds to the JSON property `permissions`
619
+ # @return [String]
620
+ attr_accessor :permissions
621
+
622
+ def initialize(**args)
623
+ update!(**args)
624
+ end
625
+
626
+ # Update properties of this object
627
+ def update!(**args)
628
+ @allow_dev = args[:allow_dev] if args.key?(:allow_dev)
629
+ @allow_suid = args[:allow_suid] if args.key?(:allow_suid)
630
+ @cidr = args[:cidr] if args.key?(:cidr)
631
+ @machine_id = args[:machine_id] if args.key?(:machine_id)
632
+ @network_id = args[:network_id] if args.key?(:network_id)
633
+ @no_root_squash = args[:no_root_squash] if args.key?(:no_root_squash)
634
+ @permissions = args[:permissions] if args.key?(:permissions)
635
+ end
636
+ end
637
+
638
+ # An provisioning configuration.
639
+ class ProvisioningConfig
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # Instances to be created.
643
+ # Corresponds to the JSON property `instances`
644
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig>]
645
+ attr_accessor :instances
646
+
647
+ # Networks to be created.
648
+ # Corresponds to the JSON property `networks`
649
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::NetworkConfig>]
650
+ attr_accessor :networks
651
+
652
+ # A reference to track the request.
653
+ # Corresponds to the JSON property `ticketId`
654
+ # @return [String]
655
+ attr_accessor :ticket_id
656
+
657
+ # Volumes to be created.
658
+ # Corresponds to the JSON property `volumes`
659
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::VolumeConfig>]
660
+ attr_accessor :volumes
661
+
662
+ def initialize(**args)
663
+ update!(**args)
664
+ end
665
+
666
+ # Update properties of this object
667
+ def update!(**args)
668
+ @instances = args[:instances] if args.key?(:instances)
669
+ @networks = args[:networks] if args.key?(:networks)
670
+ @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
671
+ @volumes = args[:volumes] if args.key?(:volumes)
672
+ end
673
+ end
674
+
675
+ # A provisioning quota for a given project.
676
+ class ProvisioningQuota
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # A resource budget.
680
+ # Corresponds to the JSON property `instanceQuota`
681
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::InstanceQuota]
682
+ attr_accessor :instance_quota
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @instance_quota = args[:instance_quota] if args.key?(:instance_quota)
691
+ end
692
+ end
693
+
694
+ # Request for ResetInstance.
695
+ class ResetInstanceRequest
696
+ include Google::Apis::Core::Hashable
697
+
698
+ def initialize(**args)
699
+ update!(**args)
700
+ end
701
+
702
+ # Update properties of this object
703
+ def update!(**args)
704
+ end
705
+ end
706
+
707
+ # Response for ResetInstance.
708
+ class ResetInstanceResponse
709
+ include Google::Apis::Core::Hashable
710
+
711
+ def initialize(**args)
712
+ update!(**args)
713
+ end
714
+
715
+ # Update properties of this object
716
+ def update!(**args)
717
+ end
718
+ end
719
+
720
+ # Request for RestoreVolumeSnapshot.
721
+ class RestoreVolumeSnapshotRequest
722
+ include Google::Apis::Core::Hashable
723
+
724
+ def initialize(**args)
725
+ update!(**args)
726
+ end
727
+
728
+ # Update properties of this object
729
+ def update!(**args)
730
+ end
731
+ end
732
+
733
+ # A public SSH key registered in the project. Used primarily for the interactive
734
+ # serial console feature.
735
+ class SshKey
736
+ include Google::Apis::Core::Hashable
737
+
738
+ # Output only. The name of this SSH key.
739
+ # Corresponds to the JSON property `name`
740
+ # @return [String]
741
+ attr_accessor :name
742
+
743
+ # The public SSH key.
744
+ # Corresponds to the JSON property `publicKey`
745
+ # @return [String]
746
+ attr_accessor :public_key
747
+
748
+ def initialize(**args)
749
+ update!(**args)
750
+ end
751
+
752
+ # Update properties of this object
753
+ def update!(**args)
754
+ @name = args[:name] if args.key?(:name)
755
+ @public_key = args[:public_key] if args.key?(:public_key)
756
+ end
757
+ end
758
+
759
+ # A snapshot schedule.
760
+ class Schedule
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # The crontab-like specification that this Schedule will use to take snapshots.
764
+ # Corresponds to the JSON property `crontabSpec`
765
+ # @return [String]
766
+ attr_accessor :crontab_spec
767
+
768
+ # A string to prefix names of snapshots created under this Schedule.
769
+ # Corresponds to the JSON property `prefix`
770
+ # @return [String]
771
+ attr_accessor :prefix
772
+
773
+ # The maximum number of snapshots to retain under this Schedule.
774
+ # Corresponds to the JSON property `retentionCount`
775
+ # @return [Fixnum]
776
+ attr_accessor :retention_count
777
+
778
+ def initialize(**args)
779
+ update!(**args)
780
+ end
781
+
782
+ # Update properties of this object
783
+ def update!(**args)
784
+ @crontab_spec = args[:crontab_spec] if args.key?(:crontab_spec)
785
+ @prefix = args[:prefix] if args.key?(:prefix)
786
+ @retention_count = args[:retention_count] if args.key?(:retention_count)
787
+ end
788
+ end
789
+
790
+ # Response for ReadSerialPortOutput.
791
+ class SerialPortOutput
792
+ include Google::Apis::Core::Hashable
793
+
794
+ # The serial port output.
795
+ # Corresponds to the JSON property `contents`
796
+ # @return [String]
797
+ attr_accessor :contents
798
+
799
+ # The byte index to use in a subsequent call to ReadSerialPortOutput to get more
800
+ # output.
801
+ # Corresponds to the JSON property `nextStartByte`
802
+ # @return [Fixnum]
803
+ attr_accessor :next_start_byte
804
+
805
+ # The start byte index of the included contents.
806
+ # Corresponds to the JSON property `start`
807
+ # @return [Fixnum]
808
+ attr_accessor :start
809
+
810
+ def initialize(**args)
811
+ update!(**args)
812
+ end
813
+
814
+ # Update properties of this object
815
+ def update!(**args)
816
+ @contents = args[:contents] if args.key?(:contents)
817
+ @next_start_byte = args[:next_start_byte] if args.key?(:next_start_byte)
818
+ @start = args[:start] if args.key?(:start)
819
+ end
820
+ end
821
+
822
+ # Request for SetVolumeSnapshotSchedulePolicy.
823
+ class SetVolumeSnapshotSchedulePolicyRequest
824
+ include Google::Apis::Core::Hashable
825
+
826
+ # Required. The name of the policy to set on the volume.
827
+ # Corresponds to the JSON property `snapshotSchedulePolicy`
828
+ # @return [String]
829
+ attr_accessor :snapshot_schedule_policy
830
+
831
+ def initialize(**args)
832
+ update!(**args)
833
+ end
834
+
835
+ # Update properties of this object
836
+ def update!(**args)
837
+ @snapshot_schedule_policy = args[:snapshot_schedule_policy] if args.key?(:snapshot_schedule_policy)
838
+ end
839
+ end
840
+
841
+ # Response for SetVolumeSnapshotSchedulePolicy.
842
+ class SetVolumeSnapshotSchedulePolicyResponse
843
+ include Google::Apis::Core::Hashable
844
+
845
+ def initialize(**args)
846
+ update!(**args)
847
+ end
848
+
849
+ # Update properties of this object
850
+ def update!(**args)
851
+ end
852
+ end
853
+
854
+ # A snapshot schedule policy.
855
+ class SnapshotSchedulePolicy
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # The description of this SnapshotSchedulePolicy.
859
+ # Corresponds to the JSON property `description`
860
+ # @return [String]
861
+ attr_accessor :description
862
+
863
+ # Output only. The name of this SnapshotSchedulePolicy.
864
+ # Corresponds to the JSON property `name`
865
+ # @return [String]
866
+ attr_accessor :name
867
+
868
+ # The snapshot Schedules contained in this Policy. At most 5 Schedules may be
869
+ # specified.
870
+ # Corresponds to the JSON property `schedules`
871
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::Schedule>]
872
+ attr_accessor :schedules
873
+
874
+ # The names of the Volumes this policy is associated with.
875
+ # Corresponds to the JSON property `volumes`
876
+ # @return [Array<String>]
877
+ attr_accessor :volumes
878
+
879
+ def initialize(**args)
880
+ update!(**args)
881
+ end
882
+
883
+ # Update properties of this object
884
+ def update!(**args)
885
+ @description = args[:description] if args.key?(:description)
886
+ @name = args[:name] if args.key?(:name)
887
+ @schedules = args[:schedules] if args.key?(:schedules)
888
+ @volumes = args[:volumes] if args.key?(:volumes)
889
+ end
890
+ end
891
+
892
+ # Request for SubmitProvisioningConfig.
893
+ class SubmitProvisioningConfigRequest
894
+ include Google::Apis::Core::Hashable
895
+
896
+ # An provisioning configuration.
897
+ # Corresponds to the JSON property `provisioningConfig`
898
+ # @return [Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig]
899
+ attr_accessor :provisioning_config
900
+
901
+ def initialize(**args)
902
+ update!(**args)
903
+ end
904
+
905
+ # Update properties of this object
906
+ def update!(**args)
907
+ @provisioning_config = args[:provisioning_config] if args.key?(:provisioning_config)
908
+ end
909
+ end
910
+
911
+ # A GCP vlan attachment.
912
+ class VlanAttachment
913
+ include Google::Apis::Core::Hashable
914
+
915
+ # Identifier of the VLAN attachment.
916
+ # Corresponds to the JSON property `id`
917
+ # @return [String]
918
+ attr_accessor :id
919
+
920
+ # Attachment pairing key.
921
+ # Corresponds to the JSON property `pairingKey`
922
+ # @return [String]
923
+ attr_accessor :pairing_key
924
+
925
+ def initialize(**args)
926
+ update!(**args)
927
+ end
928
+
929
+ # Update properties of this object
930
+ def update!(**args)
931
+ @id = args[:id] if args.key?(:id)
932
+ @pairing_key = args[:pairing_key] if args.key?(:pairing_key)
933
+ end
934
+ end
935
+
936
+ # Volume registered in the project.
937
+ class Volume
938
+ include Google::Apis::Core::Hashable
939
+
940
+ # The size, in GB, that this Volume has expanded as a result of an auto grow
941
+ # policy.
942
+ # Corresponds to the JSON property `autoGrownSizeGb`
943
+ # @return [Fixnum]
944
+ attr_accessor :auto_grown_size_gb
945
+
946
+ # The current size of this Volume, in GB, including space reserved for snapshots.
947
+ # This size may be different than the requested size if the Volume has been
948
+ # configured with auto grow or auto shrink.
949
+ # Corresponds to the JSON property `currentSizeGb`
950
+ # @return [Fixnum]
951
+ attr_accessor :current_size_gb
952
+
953
+ # Output only. The name of this Volume.
954
+ # Corresponds to the JSON property `name`
955
+ # @return [String]
956
+ attr_accessor :name
957
+
958
+ # The space remaining in the Volume for new LUNs, in GB, excluding space
959
+ # reserved for snapshots.
960
+ # Corresponds to the JSON property `remainingSpaceGb`
961
+ # @return [Fixnum]
962
+ attr_accessor :remaining_space_gb
963
+
964
+ # The requested size of this Volume, in GB.
965
+ # Corresponds to the JSON property `requestedSizeGb`
966
+ # @return [Fixnum]
967
+ attr_accessor :requested_size_gb
968
+
969
+ # The percent of space on this Volume reserved for snapshots.
970
+ # Corresponds to the JSON property `snapshotReservedSpacePercent`
971
+ # @return [Fixnum]
972
+ attr_accessor :snapshot_reserved_space_percent
973
+
974
+ # The amount, in GB, of space available in this Volume's reserved snapshot space.
975
+ # Corresponds to the JSON property `snapshotReservedSpaceRemainingGb`
976
+ # @return [Fixnum]
977
+ attr_accessor :snapshot_reserved_space_remaining_gb
978
+
979
+ # The percent of reserved snapshot space on this Volume that is actually used by
980
+ # snapshot copies. This may be higher than 100% if snapshot copies are occupying
981
+ # more space than has been reserved on the Volume.
982
+ # Corresponds to the JSON property `snapshotReservedSpaceUsedPercent`
983
+ # @return [Fixnum]
984
+ attr_accessor :snapshot_reserved_space_used_percent
985
+
986
+ # The state of this Volume.
987
+ # Corresponds to the JSON property `state`
988
+ # @return [String]
989
+ attr_accessor :state
990
+
991
+ # The type of this Volume.
992
+ # Corresponds to the JSON property `type`
993
+ # @return [String]
994
+ attr_accessor :type
995
+
996
+ def initialize(**args)
997
+ update!(**args)
998
+ end
999
+
1000
+ # Update properties of this object
1001
+ def update!(**args)
1002
+ @auto_grown_size_gb = args[:auto_grown_size_gb] if args.key?(:auto_grown_size_gb)
1003
+ @current_size_gb = args[:current_size_gb] if args.key?(:current_size_gb)
1004
+ @name = args[:name] if args.key?(:name)
1005
+ @remaining_space_gb = args[:remaining_space_gb] if args.key?(:remaining_space_gb)
1006
+ @requested_size_gb = args[:requested_size_gb] if args.key?(:requested_size_gb)
1007
+ @snapshot_reserved_space_percent = args[:snapshot_reserved_space_percent] if args.key?(:snapshot_reserved_space_percent)
1008
+ @snapshot_reserved_space_remaining_gb = args[:snapshot_reserved_space_remaining_gb] if args.key?(:snapshot_reserved_space_remaining_gb)
1009
+ @snapshot_reserved_space_used_percent = args[:snapshot_reserved_space_used_percent] if args.key?(:snapshot_reserved_space_used_percent)
1010
+ @state = args[:state] if args.key?(:state)
1011
+ @type = args[:type] if args.key?(:type)
1012
+ end
1013
+ end
1014
+
1015
+ # Configuration parameters for a new volume.
1016
+ class VolumeConfig
1017
+ include Google::Apis::Core::Hashable
1018
+
1019
+ # A transient unique identifier to identify a volume within an
1020
+ # ProvisioningConfig request.
1021
+ # Corresponds to the JSON property `id`
1022
+ # @return [String]
1023
+ attr_accessor :id
1024
+
1025
+ # Location where to deploy the volume.
1026
+ # Corresponds to the JSON property `location`
1027
+ # @return [String]
1028
+ attr_accessor :location
1029
+
1030
+ # LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
1031
+ # Corresponds to the JSON property `lunRanges`
1032
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::LunRange>]
1033
+ attr_accessor :lun_ranges
1034
+
1035
+ # Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.
1036
+ # Corresponds to the JSON property `machineIds`
1037
+ # @return [Array<String>]
1038
+ attr_accessor :machine_ids
1039
+
1040
+ # NFS exports. Set only when protocol is PROTOCOL_NFS.
1041
+ # Corresponds to the JSON property `nfsExports`
1042
+ # @return [Array<Google::Apis::BaremetalsolutionV1alpha1::NfsExport>]
1043
+ attr_accessor :nfs_exports
1044
+
1045
+ # Volume protocol.
1046
+ # Corresponds to the JSON property `protocol`
1047
+ # @return [String]
1048
+ attr_accessor :protocol
1049
+
1050
+ # The requested size of this volume, in GB. This will be updated in a later
1051
+ # iteration with a generic size field.
1052
+ # Corresponds to the JSON property `sizeGb`
1053
+ # @return [Fixnum]
1054
+ attr_accessor :size_gb
1055
+
1056
+ # Whether snapshots should be enabled.
1057
+ # Corresponds to the JSON property `snapshotsEnabled`
1058
+ # @return [Boolean]
1059
+ attr_accessor :snapshots_enabled
1060
+ alias_method :snapshots_enabled?, :snapshots_enabled
1061
+
1062
+ # The type of this Volume.
1063
+ # Corresponds to the JSON property `type`
1064
+ # @return [String]
1065
+ attr_accessor :type
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @id = args[:id] if args.key?(:id)
1074
+ @location = args[:location] if args.key?(:location)
1075
+ @lun_ranges = args[:lun_ranges] if args.key?(:lun_ranges)
1076
+ @machine_ids = args[:machine_ids] if args.key?(:machine_ids)
1077
+ @nfs_exports = args[:nfs_exports] if args.key?(:nfs_exports)
1078
+ @protocol = args[:protocol] if args.key?(:protocol)
1079
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
1080
+ @snapshots_enabled = args[:snapshots_enabled] if args.key?(:snapshots_enabled)
1081
+ @type = args[:type] if args.key?(:type)
1082
+ end
1083
+ end
1084
+
1085
+ # VolumeSnapshot registered for given Volume
1086
+ class VolumeSnapshot
1087
+ include Google::Apis::Core::Hashable
1088
+
1089
+ # The description of this Snapshot.
1090
+ # Corresponds to the JSON property `description`
1091
+ # @return [String]
1092
+ attr_accessor :description
1093
+
1094
+ # Output only. The name of this Snapshot.
1095
+ # Corresponds to the JSON property `name`
1096
+ # @return [String]
1097
+ attr_accessor :name
1098
+
1099
+ # The real size of this Snapshot, in bytes.
1100
+ # Corresponds to the JSON property `sizeBytes`
1101
+ # @return [Fixnum]
1102
+ attr_accessor :size_bytes
1103
+
1104
+ # The state of this Snapshot.
1105
+ # Corresponds to the JSON property `state`
1106
+ # @return [String]
1107
+ attr_accessor :state
1108
+
1109
+ def initialize(**args)
1110
+ update!(**args)
1111
+ end
1112
+
1113
+ # Update properties of this object
1114
+ def update!(**args)
1115
+ @description = args[:description] if args.key?(:description)
1116
+ @name = args[:name] if args.key?(:name)
1117
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
1118
+ @state = args[:state] if args.key?(:state)
1119
+ end
1120
+ end
1121
+ end
1122
+ end
1123
+ end