google-apis-file_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: 875ee443e54f43e2680ab06761ce1d475af347b64790b2d22904941c5672d266
4
+ data.tar.gz: 488c70b228bf7d8686afdace3f11cdeebced733916a813619a37ad049deb4b17
5
+ SHA512:
6
+ metadata.gz: ccf3acd2420d0d6ef6e5b46a964083156846ef4a560f9cb3f3df6dbb2e6f8045b7898c8ad35d308c88861a107bcd3f735b33ee6f5f9cf16f90a5829be4861971
7
+ data.tar.gz: 27d1905915e2a6c17d9b580e0a9a8c2fb74509c0db81de633355177ba1daaef56f974270786c9e33a6efbf89aef4d199773a1e81756c36fa2e36e775b042ff27
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-file_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/file_v1beta1/*.rb
9
+ lib/google/apis/file_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-file_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 Cloud Filestore API
2
+
3
+ This is a simple client library for version V1beta1 of the Cloud Filestore 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/file.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-file_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-file_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/file_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::FileV1beta1::CloudFilestoreService.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 File service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Filestore API, see the {Google::Apis::FileV1beta1::CloudFilestoreService 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-file_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/filestore/) 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/file_v1beta1"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/file_v1beta1/service.rb'
16
+ require 'google/apis/file_v1beta1/classes.rb'
17
+ require 'google/apis/file_v1beta1/representations.rb'
18
+ require 'google/apis/file_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Filestore API
23
+ #
24
+ # The Cloud Filestore API is used for creating and managing cloud file servers.
25
+ #
26
+ # @see https://cloud.google.com/filestore/
27
+ module FileV1beta1
28
+ # Version of the Cloud Filestore API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,1450 @@
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 FileV1beta1
24
+
25
+ # A Cloud Filestore backup.
26
+ class Backup
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. Capacity of the source file share when the backup was created.
30
+ # Corresponds to the JSON property `capacityGb`
31
+ # @return [Fixnum]
32
+ attr_accessor :capacity_gb
33
+
34
+ # Output only. The time when the backup was created.
35
+ # Corresponds to the JSON property `createTime`
36
+ # @return [String]
37
+ attr_accessor :create_time
38
+
39
+ # A description of the backup with 2048 characters or less. Requests with longer
40
+ # descriptions will be rejected.
41
+ # Corresponds to the JSON property `description`
42
+ # @return [String]
43
+ attr_accessor :description
44
+
45
+ # Output only. Amount of bytes that will be downloaded if the backup is restored
46
+ # Corresponds to the JSON property `downloadBytes`
47
+ # @return [Fixnum]
48
+ attr_accessor :download_bytes
49
+
50
+ # Resource labels to represent user provided metadata.
51
+ # Corresponds to the JSON property `labels`
52
+ # @return [Hash<String,String>]
53
+ attr_accessor :labels
54
+
55
+ # Output only. The resource name of the backup, in the format projects/`
56
+ # project_id`/locations/`location_id`/backups/`backup_id`.
57
+ # Corresponds to the JSON property `name`
58
+ # @return [String]
59
+ attr_accessor :name
60
+
61
+ # Name of the file share in the source Cloud Filestore instance that the backup
62
+ # is created from.
63
+ # Corresponds to the JSON property `sourceFileShare`
64
+ # @return [String]
65
+ attr_accessor :source_file_share
66
+
67
+ # The resource name of the source Cloud Filestore instance, in the format
68
+ # projects/`project_id`/locations/`location_id`/instances/`instance_id`, used to
69
+ # create this backup.
70
+ # Corresponds to the JSON property `sourceInstance`
71
+ # @return [String]
72
+ attr_accessor :source_instance
73
+
74
+ # Output only. The service tier of the source Cloud Filestore instance that this
75
+ # backup is created from.
76
+ # Corresponds to the JSON property `sourceInstanceTier`
77
+ # @return [String]
78
+ attr_accessor :source_instance_tier
79
+
80
+ # Output only. The backup state.
81
+ # Corresponds to the JSON property `state`
82
+ # @return [String]
83
+ attr_accessor :state
84
+
85
+ # Output only. The size of the storage used by the backup. As backups share
86
+ # storage, this number is expected to change with backup creation/deletion.
87
+ # Corresponds to the JSON property `storageBytes`
88
+ # @return [Fixnum]
89
+ attr_accessor :storage_bytes
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
98
+ @create_time = args[:create_time] if args.key?(:create_time)
99
+ @description = args[:description] if args.key?(:description)
100
+ @download_bytes = args[:download_bytes] if args.key?(:download_bytes)
101
+ @labels = args[:labels] if args.key?(:labels)
102
+ @name = args[:name] if args.key?(:name)
103
+ @source_file_share = args[:source_file_share] if args.key?(:source_file_share)
104
+ @source_instance = args[:source_instance] if args.key?(:source_instance)
105
+ @source_instance_tier = args[:source_instance_tier] if args.key?(:source_instance_tier)
106
+ @state = args[:state] if args.key?(:state)
107
+ @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
108
+ end
109
+ end
110
+
111
+ # The request message for Operations.CancelOperation.
112
+ class CancelOperationRequest
113
+ include Google::Apis::Core::Hashable
114
+
115
+ def initialize(**args)
116
+ update!(**args)
117
+ end
118
+
119
+ # Update properties of this object
120
+ def update!(**args)
121
+ end
122
+ end
123
+
124
+ # Time window specified for daily operations.
125
+ class DailyCycle
126
+ include Google::Apis::Core::Hashable
127
+
128
+ # Output only. Duration of the time window, set by service producer.
129
+ # Corresponds to the JSON property `duration`
130
+ # @return [String]
131
+ attr_accessor :duration
132
+
133
+ # Represents a time of day. The date and time zone are either not significant or
134
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
135
+ # types are google.type.Date and `google.protobuf.Timestamp`.
136
+ # Corresponds to the JSON property `startTime`
137
+ # @return [Google::Apis::FileV1beta1::TimeOfDay]
138
+ attr_accessor :start_time
139
+
140
+ def initialize(**args)
141
+ update!(**args)
142
+ end
143
+
144
+ # Update properties of this object
145
+ def update!(**args)
146
+ @duration = args[:duration] if args.key?(:duration)
147
+ @start_time = args[:start_time] if args.key?(:start_time)
148
+ end
149
+ end
150
+
151
+ # Represents a whole or partial calendar date, such as a birthday. The time of
152
+ # day and time zone are either specified elsewhere or are insignificant. The
153
+ # date is relative to the Gregorian Calendar. This can represent one of the
154
+ # following: * A full date, with non-zero year, month, and day values * A month
155
+ # and day value, with a zero year, such as an anniversary * A year on its own,
156
+ # with zero month and day values * A year and month value, with a zero day, such
157
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
158
+ # google.protobuf.Timestamp`.
159
+ class Date
160
+ include Google::Apis::Core::Hashable
161
+
162
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
163
+ # specify a year by itself or a year and month where the day isn't significant.
164
+ # Corresponds to the JSON property `day`
165
+ # @return [Fixnum]
166
+ attr_accessor :day
167
+
168
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
169
+ # and day.
170
+ # Corresponds to the JSON property `month`
171
+ # @return [Fixnum]
172
+ attr_accessor :month
173
+
174
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
175
+ # year.
176
+ # Corresponds to the JSON property `year`
177
+ # @return [Fixnum]
178
+ attr_accessor :year
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @day = args[:day] if args.key?(:day)
187
+ @month = args[:month] if args.key?(:month)
188
+ @year = args[:year] if args.key?(:year)
189
+ end
190
+ end
191
+
192
+ # DenyMaintenancePeriod definition. Maintenance is forbidden within the deny
193
+ # period. The start_date must be less than the end_date.
194
+ class DenyMaintenancePeriod
195
+ include Google::Apis::Core::Hashable
196
+
197
+ # Represents a whole or partial calendar date, such as a birthday. The time of
198
+ # day and time zone are either specified elsewhere or are insignificant. The
199
+ # date is relative to the Gregorian Calendar. This can represent one of the
200
+ # following: * A full date, with non-zero year, month, and day values * A month
201
+ # and day value, with a zero year, such as an anniversary * A year on its own,
202
+ # with zero month and day values * A year and month value, with a zero day, such
203
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
204
+ # google.protobuf.Timestamp`.
205
+ # Corresponds to the JSON property `endDate`
206
+ # @return [Google::Apis::FileV1beta1::Date]
207
+ attr_accessor :end_date
208
+
209
+ # Represents a whole or partial calendar date, such as a birthday. The time of
210
+ # day and time zone are either specified elsewhere or are insignificant. The
211
+ # date is relative to the Gregorian Calendar. This can represent one of the
212
+ # following: * A full date, with non-zero year, month, and day values * A month
213
+ # and day value, with a zero year, such as an anniversary * A year on its own,
214
+ # with zero month and day values * A year and month value, with a zero day, such
215
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
216
+ # google.protobuf.Timestamp`.
217
+ # Corresponds to the JSON property `startDate`
218
+ # @return [Google::Apis::FileV1beta1::Date]
219
+ attr_accessor :start_date
220
+
221
+ # Represents a time of day. The date and time zone are either not significant or
222
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
223
+ # types are google.type.Date and `google.protobuf.Timestamp`.
224
+ # Corresponds to the JSON property `time`
225
+ # @return [Google::Apis::FileV1beta1::TimeOfDay]
226
+ attr_accessor :time
227
+
228
+ def initialize(**args)
229
+ update!(**args)
230
+ end
231
+
232
+ # Update properties of this object
233
+ def update!(**args)
234
+ @end_date = args[:end_date] if args.key?(:end_date)
235
+ @start_date = args[:start_date] if args.key?(:start_date)
236
+ @time = args[:time] if args.key?(:time)
237
+ end
238
+ end
239
+
240
+ # A generic empty message that you can re-use to avoid defining duplicated empty
241
+ # messages in your APIs. A typical example is to use it as the request or the
242
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
243
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
244
+ # `Empty` is empty JSON object ````.
245
+ class Empty
246
+ include Google::Apis::Core::Hashable
247
+
248
+ def initialize(**args)
249
+ update!(**args)
250
+ end
251
+
252
+ # Update properties of this object
253
+ def update!(**args)
254
+ end
255
+ end
256
+
257
+ # File share configuration for the instance.
258
+ class FileShareConfig
259
+ include Google::Apis::Core::Hashable
260
+
261
+ # File share capacity in gigabytes (GB). Cloud Filestore defines 1 GB as 1024^3
262
+ # bytes.
263
+ # Corresponds to the JSON property `capacityGb`
264
+ # @return [Fixnum]
265
+ attr_accessor :capacity_gb
266
+
267
+ # The name of the file share (must be 16 characters or less).
268
+ # Corresponds to the JSON property `name`
269
+ # @return [String]
270
+ attr_accessor :name
271
+
272
+ # Nfs Export Options. There is a limit of 10 export options per file share.
273
+ # Corresponds to the JSON property `nfsExportOptions`
274
+ # @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
275
+ attr_accessor :nfs_export_options
276
+
277
+ # The resource name of the backup, in the format projects/`project_id`/locations/
278
+ # `location_id`/backups/`backup_id`, that this file share has been restored from.
279
+ # Corresponds to the JSON property `sourceBackup`
280
+ # @return [String]
281
+ attr_accessor :source_backup
282
+
283
+ def initialize(**args)
284
+ update!(**args)
285
+ end
286
+
287
+ # Update properties of this object
288
+ def update!(**args)
289
+ @capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
290
+ @name = args[:name] if args.key?(:name)
291
+ @nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
292
+ @source_backup = args[:source_backup] if args.key?(:source_backup)
293
+ end
294
+ end
295
+
296
+ #
297
+ class GoogleCloudSaasacceleratorManagementProvidersV1Instance
298
+ include Google::Apis::Core::Hashable
299
+
300
+ # consumer_defined_name is the name that is set by the consumer. On the other
301
+ # hand Name field represents system-assigned id of an instance so consumers are
302
+ # not necessarily aware of it. consumer_defined_name is used for notification/UI
303
+ # purposes for consumer to recognize their instances.
304
+ # Corresponds to the JSON property `consumerDefinedName`
305
+ # @return [String]
306
+ attr_accessor :consumer_defined_name
307
+
308
+ # Output only. Timestamp when the resource was created.
309
+ # Corresponds to the JSON property `createTime`
310
+ # @return [String]
311
+ attr_accessor :create_time
312
+
313
+ # Optional. Resource labels to represent user provided metadata. Each label is a
314
+ # key-value pair, where both the key and the value are arbitrary strings
315
+ # provided by the user.
316
+ # Corresponds to the JSON property `labels`
317
+ # @return [Hash<String,String>]
318
+ attr_accessor :labels
319
+
320
+ # Deprecated. The MaintenancePolicies that have been attached to the instance.
321
+ # The key must be of the type name of the oneof policy name defined in
322
+ # MaintenancePolicy, and the referenced policy must define the same policy type.
323
+ # For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
324
+ # Corresponds to the JSON property `maintenancePolicyNames`
325
+ # @return [Hash<String,String>]
326
+ attr_accessor :maintenance_policy_names
327
+
328
+ # The MaintenanceSchedule contains the scheduling information of published
329
+ # maintenance schedule with same key as software_versions.
330
+ # Corresponds to the JSON property `maintenanceSchedules`
331
+ # @return [Hash<String,Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>]
332
+ attr_accessor :maintenance_schedules
333
+
334
+ # Maintenance settings associated with instance. Allows service producers and
335
+ # end users to assign settings that controls maintenance on this instance.
336
+ # Corresponds to the JSON property `maintenanceSettings`
337
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings]
338
+ attr_accessor :maintenance_settings
339
+
340
+ # Unique name of the resource. It uses the form: `projects/`project_id`/
341
+ # locations/`location_id`/instances/`instance_id``
342
+ # Corresponds to the JSON property `name`
343
+ # @return [String]
344
+ attr_accessor :name
345
+
346
+ # Output only. Custom string attributes used primarily to expose producer-
347
+ # specific information in monitoring dashboards. See go/get-instance-metadata.
348
+ # Corresponds to the JSON property `producerMetadata`
349
+ # @return [Hash<String,String>]
350
+ attr_accessor :producer_metadata
351
+
352
+ # Output only. The list of data plane resources provisioned for this instance, e.
353
+ # g. compute VMs. See go/get-instance-metadata.
354
+ # Corresponds to the JSON property `provisionedResources`
355
+ # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>]
356
+ attr_accessor :provisioned_resources
357
+
358
+ # Link to the SLM instance template. Only populated when updating SLM instances
359
+ # via SSA's Actuation service adaptor. Service producers with custom control
360
+ # plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they
361
+ # should use software_versions.
362
+ # Corresponds to the JSON property `slmInstanceTemplate`
363
+ # @return [String]
364
+ attr_accessor :slm_instance_template
365
+
366
+ # SloMetadata contains resources required for proper SLO classification of the
367
+ # instance.
368
+ # Corresponds to the JSON property `sloMetadata`
369
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata]
370
+ attr_accessor :slo_metadata
371
+
372
+ # Software versions that are used to deploy this instance. This can be mutated
373
+ # by rollout services.
374
+ # Corresponds to the JSON property `softwareVersions`
375
+ # @return [Hash<String,String>]
376
+ attr_accessor :software_versions
377
+
378
+ # Output only. Current lifecycle state of the resource (e.g. if it's being
379
+ # created or ready to use).
380
+ # Corresponds to the JSON property `state`
381
+ # @return [String]
382
+ attr_accessor :state
383
+
384
+ # Output only. ID of the associated GCP tenant project. See go/get-instance-
385
+ # metadata.
386
+ # Corresponds to the JSON property `tenantProjectId`
387
+ # @return [String]
388
+ attr_accessor :tenant_project_id
389
+
390
+ # Output only. Timestamp when the resource was last modified.
391
+ # Corresponds to the JSON property `updateTime`
392
+ # @return [String]
393
+ attr_accessor :update_time
394
+
395
+ def initialize(**args)
396
+ update!(**args)
397
+ end
398
+
399
+ # Update properties of this object
400
+ def update!(**args)
401
+ @consumer_defined_name = args[:consumer_defined_name] if args.key?(:consumer_defined_name)
402
+ @create_time = args[:create_time] if args.key?(:create_time)
403
+ @labels = args[:labels] if args.key?(:labels)
404
+ @maintenance_policy_names = args[:maintenance_policy_names] if args.key?(:maintenance_policy_names)
405
+ @maintenance_schedules = args[:maintenance_schedules] if args.key?(:maintenance_schedules)
406
+ @maintenance_settings = args[:maintenance_settings] if args.key?(:maintenance_settings)
407
+ @name = args[:name] if args.key?(:name)
408
+ @producer_metadata = args[:producer_metadata] if args.key?(:producer_metadata)
409
+ @provisioned_resources = args[:provisioned_resources] if args.key?(:provisioned_resources)
410
+ @slm_instance_template = args[:slm_instance_template] if args.key?(:slm_instance_template)
411
+ @slo_metadata = args[:slo_metadata] if args.key?(:slo_metadata)
412
+ @software_versions = args[:software_versions] if args.key?(:software_versions)
413
+ @state = args[:state] if args.key?(:state)
414
+ @tenant_project_id = args[:tenant_project_id] if args.key?(:tenant_project_id)
415
+ @update_time = args[:update_time] if args.key?(:update_time)
416
+ end
417
+ end
418
+
419
+ # Maintenance schedule which is exposed to customer and potentially end user,
420
+ # indicating published upcoming future maintenance schedule
421
+ class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # Can this scheduled update be rescheduled? By default, it's true and API needs
425
+ # to do explicitly check whether it's set, if it's set as false explicitly, it's
426
+ # false
427
+ # Corresponds to the JSON property `canReschedule`
428
+ # @return [Boolean]
429
+ attr_accessor :can_reschedule
430
+ alias_method :can_reschedule?, :can_reschedule
431
+
432
+ # The scheduled end time for the maintenance.
433
+ # Corresponds to the JSON property `endTime`
434
+ # @return [String]
435
+ attr_accessor :end_time
436
+
437
+ # The rollout management policy this maintenance schedule is associated with.
438
+ # When doing reschedule update request, the reschedule should be against this
439
+ # given policy.
440
+ # Corresponds to the JSON property `rolloutManagementPolicy`
441
+ # @return [String]
442
+ attr_accessor :rollout_management_policy
443
+
444
+ # The scheduled start time for the maintenance.
445
+ # Corresponds to the JSON property `startTime`
446
+ # @return [String]
447
+ attr_accessor :start_time
448
+
449
+ def initialize(**args)
450
+ update!(**args)
451
+ end
452
+
453
+ # Update properties of this object
454
+ def update!(**args)
455
+ @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
456
+ @end_time = args[:end_time] if args.key?(:end_time)
457
+ @rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy)
458
+ @start_time = args[:start_time] if args.key?(:start_time)
459
+ end
460
+ end
461
+
462
+ # Maintenance settings associated with instance. Allows service producers and
463
+ # end users to assign settings that controls maintenance on this instance.
464
+ class GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings
465
+ include Google::Apis::Core::Hashable
466
+
467
+ # Optional. Exclude instance from maintenance. When true, rollout service will
468
+ # not attempt maintenance on the instance. Rollout service will include the
469
+ # instance in reported rollout progress as not attempted.
470
+ # Corresponds to the JSON property `exclude`
471
+ # @return [Boolean]
472
+ attr_accessor :exclude
473
+ alias_method :exclude?, :exclude
474
+
475
+ # Optional. The MaintenancePolicies that have been attached to the instance. The
476
+ # key must be of the type name of the oneof policy name defined in
477
+ # MaintenancePolicy, and the embedded policy must define the same policy type.
478
+ # For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug.
479
+ # If only the name is needed (like in the deprecated Instance.
480
+ # maintenance_policy_names field) then only populate MaintenancePolicy.name.
481
+ # Corresponds to the JSON property `maintenancePolicies`
482
+ # @return [Hash<String,Google::Apis::FileV1beta1::MaintenancePolicy>]
483
+ attr_accessor :maintenance_policies
484
+
485
+ def initialize(**args)
486
+ update!(**args)
487
+ end
488
+
489
+ # Update properties of this object
490
+ def update!(**args)
491
+ @exclude = args[:exclude] if args.key?(:exclude)
492
+ @maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
493
+ end
494
+ end
495
+
496
+ # Node information for custom per-node SLO implementations. SSA does not support
497
+ # per-node SLO, but producers can populate per-node information in SloMetadata
498
+ # for custom precomputations. SSA Eligibility Exporter will emit per-node metric
499
+ # based on this information.
500
+ class GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata
501
+ include Google::Apis::Core::Hashable
502
+
503
+ # By default node is eligible if instance is eligible. But individual node might
504
+ # be excluded from SLO by adding entry here. For semantic see SloMetadata.
505
+ # exclusions. If both instance and node level exclusions are present for time
506
+ # period, the node level's reason will be reported by Eligibility Exporter.
507
+ # Corresponds to the JSON property `exclusions`
508
+ # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
509
+ attr_accessor :exclusions
510
+
511
+ # The location of the node, if different from instance location.
512
+ # Corresponds to the JSON property `location`
513
+ # @return [String]
514
+ attr_accessor :location
515
+
516
+ # The id of the node. This should be equal to SaasInstanceNode.node_id.
517
+ # Corresponds to the JSON property `nodeId`
518
+ # @return [String]
519
+ attr_accessor :node_id
520
+
521
+ def initialize(**args)
522
+ update!(**args)
523
+ end
524
+
525
+ # Update properties of this object
526
+ def update!(**args)
527
+ @exclusions = args[:exclusions] if args.key?(:exclusions)
528
+ @location = args[:location] if args.key?(:location)
529
+ @node_id = args[:node_id] if args.key?(:node_id)
530
+ end
531
+ end
532
+
533
+ # Describes provisioned dataplane resources.
534
+ class GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource
535
+ include Google::Apis::Core::Hashable
536
+
537
+ # Type of the resource. This can be either a GCP resource or a custom one (e.g.
538
+ # another cloud provider's VM). For GCP compute resources use singular form of
539
+ # the names listed in GCP compute API documentation (https://cloud.google.com/
540
+ # compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: '
541
+ # compute-instance', 'compute-disk', 'compute-autoscaler'.
542
+ # Corresponds to the JSON property `resourceType`
543
+ # @return [String]
544
+ attr_accessor :resource_type
545
+
546
+ # URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/
547
+ # projects/...)".
548
+ # Corresponds to the JSON property `resourceUrl`
549
+ # @return [String]
550
+ attr_accessor :resource_url
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
559
+ @resource_url = args[:resource_url] if args.key?(:resource_url)
560
+ end
561
+ end
562
+
563
+ # SloEligibility is a tuple containing eligibility value: true if an instance is
564
+ # eligible for SLO calculation or false if it should be excluded from all SLO-
565
+ # related calculations along with a user-defined reason.
566
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility
567
+ include Google::Apis::Core::Hashable
568
+
569
+ # Whether an instance is eligible or ineligible.
570
+ # Corresponds to the JSON property `eligible`
571
+ # @return [Boolean]
572
+ attr_accessor :eligible
573
+ alias_method :eligible?, :eligible
574
+
575
+ # User-defined reason for the current value of instance eligibility. Usually,
576
+ # this can be directly mapped to the internal state. An empty reason is allowed.
577
+ # Corresponds to the JSON property `reason`
578
+ # @return [String]
579
+ attr_accessor :reason
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @eligible = args[:eligible] if args.key?(:eligible)
588
+ @reason = args[:reason] if args.key?(:reason)
589
+ end
590
+ end
591
+
592
+ # SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
593
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # Exclusion duration. No restrictions on the possible values. When an ongoing
597
+ # operation is taking longer than initially expected, an existing entry in the
598
+ # exclusion list can be updated by extending the duration. This is supported by
599
+ # the subsystem exporting eligibility data as long as such extension is
600
+ # committed at least 10 minutes before the original exclusion expiration -
601
+ # otherwise it is possible that there will be "gaps" in the exclusion
602
+ # application in the exported timeseries.
603
+ # Corresponds to the JSON property `duration`
604
+ # @return [String]
605
+ attr_accessor :duration
606
+
607
+ # Human-readable reason for the exclusion. This should be a static string (e.g. "
608
+ # Disruptive update in progress") and should not contain dynamically generated
609
+ # data (e.g. instance name). Can be left empty.
610
+ # Corresponds to the JSON property `reason`
611
+ # @return [String]
612
+ attr_accessor :reason
613
+
614
+ # Name of an SLI that this exclusion applies to. Can be left empty, signaling
615
+ # that the instance should be excluded from all SLIs defined in the service SLO
616
+ # configuration.
617
+ # Corresponds to the JSON property `sliName`
618
+ # @return [String]
619
+ attr_accessor :sli_name
620
+
621
+ # Start time of the exclusion. No alignment (e.g. to a full minute) needed.
622
+ # Corresponds to the JSON property `startTime`
623
+ # @return [String]
624
+ attr_accessor :start_time
625
+
626
+ def initialize(**args)
627
+ update!(**args)
628
+ end
629
+
630
+ # Update properties of this object
631
+ def update!(**args)
632
+ @duration = args[:duration] if args.key?(:duration)
633
+ @reason = args[:reason] if args.key?(:reason)
634
+ @sli_name = args[:sli_name] if args.key?(:sli_name)
635
+ @start_time = args[:start_time] if args.key?(:start_time)
636
+ end
637
+ end
638
+
639
+ # SloMetadata contains resources required for proper SLO classification of the
640
+ # instance.
641
+ class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata
642
+ include Google::Apis::Core::Hashable
643
+
644
+ # SloEligibility is a tuple containing eligibility value: true if an instance is
645
+ # eligible for SLO calculation or false if it should be excluded from all SLO-
646
+ # related calculations along with a user-defined reason.
647
+ # Corresponds to the JSON property `eligibility`
648
+ # @return [Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloEligibility]
649
+ attr_accessor :eligibility
650
+
651
+ # List of SLO exclusion windows. When multiple entries in the list match (
652
+ # matching the exclusion time-window against current time point) the exclusion
653
+ # reason used in the first matching entry will be published. It is not needed to
654
+ # include expired exclusion in this list, as only the currently applicable
655
+ # exclusions are taken into account by the eligibility exporting subsystem (the
656
+ # historical state of exclusions will be reflected in the historically produced
657
+ # timeseries regardless of the current state). This field can be used to mark
658
+ # the instance as temporary ineligible for the purpose of SLO calculation. For
659
+ # permanent instance SLO exclusion, use of custom instance eligibility is
660
+ # recommended. See 'eligibility' field below.
661
+ # Corresponds to the JSON property `exclusions`
662
+ # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>]
663
+ attr_accessor :exclusions
664
+
665
+ # Optional. List of nodes. Some producers need to use per-node metadata to
666
+ # calculate SLO. This field allows such producers to publish per-node SLO meta
667
+ # data, which will be consumed by SSA Eligibility Exporter and published in the
668
+ # form of per node metric to Monarch.
669
+ # Corresponds to the JSON property `nodes`
670
+ # @return [Array<Google::Apis::FileV1beta1::GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>]
671
+ attr_accessor :nodes
672
+
673
+ # Name of the SLO tier the Instance belongs to. This name will be expected to
674
+ # match the tiers specified in the service SLO configuration. Field is mandatory
675
+ # and must not be empty.
676
+ # Corresponds to the JSON property `tier`
677
+ # @return [String]
678
+ attr_accessor :tier
679
+
680
+ def initialize(**args)
681
+ update!(**args)
682
+ end
683
+
684
+ # Update properties of this object
685
+ def update!(**args)
686
+ @eligibility = args[:eligibility] if args.key?(:eligibility)
687
+ @exclusions = args[:exclusions] if args.key?(:exclusions)
688
+ @nodes = args[:nodes] if args.key?(:nodes)
689
+ @tier = args[:tier] if args.key?(:tier)
690
+ end
691
+ end
692
+
693
+ # A Cloud Filestore instance.
694
+ class Instance
695
+ include Google::Apis::Core::Hashable
696
+
697
+ # Output only. The time when the instance was created.
698
+ # Corresponds to the JSON property `createTime`
699
+ # @return [String]
700
+ attr_accessor :create_time
701
+
702
+ # The description of the instance (2048 characters or less).
703
+ # Corresponds to the JSON property `description`
704
+ # @return [String]
705
+ attr_accessor :description
706
+
707
+ # Server-specified ETag for the instance resource to prevent simultaneous
708
+ # updates from overwriting each other.
709
+ # Corresponds to the JSON property `etag`
710
+ # @return [String]
711
+ attr_accessor :etag
712
+
713
+ # File system shares on the instance. For this version, only a single file share
714
+ # is supported.
715
+ # Corresponds to the JSON property `fileShares`
716
+ # @return [Array<Google::Apis::FileV1beta1::FileShareConfig>]
717
+ attr_accessor :file_shares
718
+
719
+ # Resource labels to represent user provided metadata.
720
+ # Corresponds to the JSON property `labels`
721
+ # @return [Hash<String,String>]
722
+ attr_accessor :labels
723
+
724
+ # Output only. The resource name of the instance, in the format projects/`
725
+ # project_id`/locations/`location_id`/instances/`instance_id`.
726
+ # Corresponds to the JSON property `name`
727
+ # @return [String]
728
+ attr_accessor :name
729
+
730
+ # VPC networks to which the instance is connected. For this version, only a
731
+ # single network is supported.
732
+ # Corresponds to the JSON property `networks`
733
+ # @return [Array<Google::Apis::FileV1beta1::NetworkConfig>]
734
+ attr_accessor :networks
735
+
736
+ # Output only. The instance state.
737
+ # Corresponds to the JSON property `state`
738
+ # @return [String]
739
+ attr_accessor :state
740
+
741
+ # Output only. Additional information about the instance state, if available.
742
+ # Corresponds to the JSON property `statusMessage`
743
+ # @return [String]
744
+ attr_accessor :status_message
745
+
746
+ # The service tier of the instance.
747
+ # Corresponds to the JSON property `tier`
748
+ # @return [String]
749
+ attr_accessor :tier
750
+
751
+ def initialize(**args)
752
+ update!(**args)
753
+ end
754
+
755
+ # Update properties of this object
756
+ def update!(**args)
757
+ @create_time = args[:create_time] if args.key?(:create_time)
758
+ @description = args[:description] if args.key?(:description)
759
+ @etag = args[:etag] if args.key?(:etag)
760
+ @file_shares = args[:file_shares] if args.key?(:file_shares)
761
+ @labels = args[:labels] if args.key?(:labels)
762
+ @name = args[:name] if args.key?(:name)
763
+ @networks = args[:networks] if args.key?(:networks)
764
+ @state = args[:state] if args.key?(:state)
765
+ @status_message = args[:status_message] if args.key?(:status_message)
766
+ @tier = args[:tier] if args.key?(:tier)
767
+ end
768
+ end
769
+
770
+ # ListBackupsResponse is the result of ListBackupsRequest.
771
+ class ListBackupsResponse
772
+ include Google::Apis::Core::Hashable
773
+
774
+ # A list of backups in the project for the specified location. If the `location`
775
+ # value in the request is "-", the response contains a list of backups from all
776
+ # locations. If any location is unreachable, the response will only return
777
+ # backups in reachable locations and the "unreachable" field will be populated
778
+ # with a list of unreachable locations.
779
+ # Corresponds to the JSON property `backups`
780
+ # @return [Array<Google::Apis::FileV1beta1::Backup>]
781
+ attr_accessor :backups
782
+
783
+ # The token you can use to retrieve the next page of results. Not returned if
784
+ # there are no more results in the list.
785
+ # Corresponds to the JSON property `nextPageToken`
786
+ # @return [String]
787
+ attr_accessor :next_page_token
788
+
789
+ # Locations that could not be reached.
790
+ # Corresponds to the JSON property `unreachable`
791
+ # @return [Array<String>]
792
+ attr_accessor :unreachable
793
+
794
+ def initialize(**args)
795
+ update!(**args)
796
+ end
797
+
798
+ # Update properties of this object
799
+ def update!(**args)
800
+ @backups = args[:backups] if args.key?(:backups)
801
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
802
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
803
+ end
804
+ end
805
+
806
+ # ListInstancesResponse is the result of ListInstancesRequest.
807
+ class ListInstancesResponse
808
+ include Google::Apis::Core::Hashable
809
+
810
+ # A list of instances in the project for the specified location. If the `
811
+ # location` value in the request is "-", the response contains a list of
812
+ # instances from all locations. If any location is unreachable, the response
813
+ # will only return instances in reachable locations and the "unreachable" field
814
+ # will be populated with a list of unreachable locations.
815
+ # Corresponds to the JSON property `instances`
816
+ # @return [Array<Google::Apis::FileV1beta1::Instance>]
817
+ attr_accessor :instances
818
+
819
+ # The token you can use to retrieve the next page of results. Not returned if
820
+ # there are no more results in the list.
821
+ # Corresponds to the JSON property `nextPageToken`
822
+ # @return [String]
823
+ attr_accessor :next_page_token
824
+
825
+ # Locations that could not be reached.
826
+ # Corresponds to the JSON property `unreachable`
827
+ # @return [Array<String>]
828
+ attr_accessor :unreachable
829
+
830
+ def initialize(**args)
831
+ update!(**args)
832
+ end
833
+
834
+ # Update properties of this object
835
+ def update!(**args)
836
+ @instances = args[:instances] if args.key?(:instances)
837
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
838
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
839
+ end
840
+ end
841
+
842
+ # The response message for Locations.ListLocations.
843
+ class ListLocationsResponse
844
+ include Google::Apis::Core::Hashable
845
+
846
+ # A list of locations that matches the specified filter in the request.
847
+ # Corresponds to the JSON property `locations`
848
+ # @return [Array<Google::Apis::FileV1beta1::Location>]
849
+ attr_accessor :locations
850
+
851
+ # The standard List next-page token.
852
+ # Corresponds to the JSON property `nextPageToken`
853
+ # @return [String]
854
+ attr_accessor :next_page_token
855
+
856
+ def initialize(**args)
857
+ update!(**args)
858
+ end
859
+
860
+ # Update properties of this object
861
+ def update!(**args)
862
+ @locations = args[:locations] if args.key?(:locations)
863
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
864
+ end
865
+ end
866
+
867
+ # The response message for Operations.ListOperations.
868
+ class ListOperationsResponse
869
+ include Google::Apis::Core::Hashable
870
+
871
+ # The standard List next-page token.
872
+ # Corresponds to the JSON property `nextPageToken`
873
+ # @return [String]
874
+ attr_accessor :next_page_token
875
+
876
+ # A list of operations that matches the specified filter in the request.
877
+ # Corresponds to the JSON property `operations`
878
+ # @return [Array<Google::Apis::FileV1beta1::Operation>]
879
+ attr_accessor :operations
880
+
881
+ def initialize(**args)
882
+ update!(**args)
883
+ end
884
+
885
+ # Update properties of this object
886
+ def update!(**args)
887
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
888
+ @operations = args[:operations] if args.key?(:operations)
889
+ end
890
+ end
891
+
892
+ # A resource that represents Google Cloud Platform location.
893
+ class Location
894
+ include Google::Apis::Core::Hashable
895
+
896
+ # The friendly name for this location, typically a nearby city name. For example,
897
+ # "Tokyo".
898
+ # Corresponds to the JSON property `displayName`
899
+ # @return [String]
900
+ attr_accessor :display_name
901
+
902
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
903
+ # region": "us-east1"`
904
+ # Corresponds to the JSON property `labels`
905
+ # @return [Hash<String,String>]
906
+ attr_accessor :labels
907
+
908
+ # The canonical id for this location. For example: `"us-east1"`.
909
+ # Corresponds to the JSON property `locationId`
910
+ # @return [String]
911
+ attr_accessor :location_id
912
+
913
+ # Service-specific metadata. For example the available capacity at the given
914
+ # location.
915
+ # Corresponds to the JSON property `metadata`
916
+ # @return [Hash<String,Object>]
917
+ attr_accessor :metadata
918
+
919
+ # Resource name for the location, which may vary between implementations. For
920
+ # example: `"projects/example-project/locations/us-east1"`
921
+ # Corresponds to the JSON property `name`
922
+ # @return [String]
923
+ attr_accessor :name
924
+
925
+ def initialize(**args)
926
+ update!(**args)
927
+ end
928
+
929
+ # Update properties of this object
930
+ def update!(**args)
931
+ @display_name = args[:display_name] if args.key?(:display_name)
932
+ @labels = args[:labels] if args.key?(:labels)
933
+ @location_id = args[:location_id] if args.key?(:location_id)
934
+ @metadata = args[:metadata] if args.key?(:metadata)
935
+ @name = args[:name] if args.key?(:name)
936
+ end
937
+ end
938
+
939
+ # Defines policies to service maintenance events.
940
+ class MaintenancePolicy
941
+ include Google::Apis::Core::Hashable
942
+
943
+ # Output only. The time when the resource was created.
944
+ # Corresponds to the JSON property `createTime`
945
+ # @return [String]
946
+ attr_accessor :create_time
947
+
948
+ # Optional. Description of what this policy is for. Create/Update methods return
949
+ # INVALID_ARGUMENT if the length is greater than 512.
950
+ # Corresponds to the JSON property `description`
951
+ # @return [String]
952
+ attr_accessor :description
953
+
954
+ # Optional. Resource labels to represent user provided metadata. Each label is a
955
+ # key-value pair, where both the key and the value are arbitrary strings
956
+ # provided by the user.
957
+ # Corresponds to the JSON property `labels`
958
+ # @return [Hash<String,String>]
959
+ attr_accessor :labels
960
+
961
+ # Required. MaintenancePolicy name using the form: `projects/`project_id`/
962
+ # locations/`location_id`/maintenancePolicies/`maintenance_policy_id`` where `
963
+ # project_id` refers to a GCP consumer project ID, `location_id` refers to a GCP
964
+ # region/zone, `maintenance_policy_id` must be 1-63 characters long and match
965
+ # the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`.
966
+ # Corresponds to the JSON property `name`
967
+ # @return [String]
968
+ attr_accessor :name
969
+
970
+ # Optional. The state of the policy.
971
+ # Corresponds to the JSON property `state`
972
+ # @return [String]
973
+ attr_accessor :state
974
+
975
+ # Maintenance policy applicable to instance updates.
976
+ # Corresponds to the JSON property `updatePolicy`
977
+ # @return [Google::Apis::FileV1beta1::UpdatePolicy]
978
+ attr_accessor :update_policy
979
+
980
+ # Output only. The time when the resource was updated.
981
+ # Corresponds to the JSON property `updateTime`
982
+ # @return [String]
983
+ attr_accessor :update_time
984
+
985
+ def initialize(**args)
986
+ update!(**args)
987
+ end
988
+
989
+ # Update properties of this object
990
+ def update!(**args)
991
+ @create_time = args[:create_time] if args.key?(:create_time)
992
+ @description = args[:description] if args.key?(:description)
993
+ @labels = args[:labels] if args.key?(:labels)
994
+ @name = args[:name] if args.key?(:name)
995
+ @state = args[:state] if args.key?(:state)
996
+ @update_policy = args[:update_policy] if args.key?(:update_policy)
997
+ @update_time = args[:update_time] if args.key?(:update_time)
998
+ end
999
+ end
1000
+
1001
+ # MaintenanceWindow definition.
1002
+ class MaintenanceWindow
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ # Time window specified for daily operations.
1006
+ # Corresponds to the JSON property `dailyCycle`
1007
+ # @return [Google::Apis::FileV1beta1::DailyCycle]
1008
+ attr_accessor :daily_cycle
1009
+
1010
+ # Time window specified for weekly operations.
1011
+ # Corresponds to the JSON property `weeklyCycle`
1012
+ # @return [Google::Apis::FileV1beta1::WeeklyCycle]
1013
+ attr_accessor :weekly_cycle
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @daily_cycle = args[:daily_cycle] if args.key?(:daily_cycle)
1022
+ @weekly_cycle = args[:weekly_cycle] if args.key?(:weekly_cycle)
1023
+ end
1024
+ end
1025
+
1026
+ # Network configuration for the instance.
1027
+ class NetworkConfig
1028
+ include Google::Apis::Core::Hashable
1029
+
1030
+ # Output only. IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`octet
1031
+ # 4` or IPv6 addresses in the format `block 1`:`block 2`:`block 3`:`block 4`:`
1032
+ # block 5`:`block 6`:`block 7`:`block 8`.
1033
+ # Corresponds to the JSON property `ipAddresses`
1034
+ # @return [Array<String>]
1035
+ attr_accessor :ip_addresses
1036
+
1037
+ # Internet protocol versions for which the instance has IP addresses assigned.
1038
+ # For this version, only MODE_IPV4 is supported.
1039
+ # Corresponds to the JSON property `modes`
1040
+ # @return [Array<String>]
1041
+ attr_accessor :modes
1042
+
1043
+ # The name of the Google Compute Engine [VPC network](/compute/docs/networks-and-
1044
+ # firewalls#networks) to which the instance is connected.
1045
+ # Corresponds to the JSON property `network`
1046
+ # @return [String]
1047
+ attr_accessor :network
1048
+
1049
+ # A /29 CIDR block for Basic or a /23 CIDR block for High Scale in one of the [
1050
+ # internal IP address ranges](https://www.arin.net/knowledge/address_filters.
1051
+ # html) that identifies the range of IP addresses reserved for this instance.
1052
+ # For example, 10.0.0.0/29 or 192.168.0.0/23. The range you specify can't
1053
+ # overlap with either existing subnets or assigned IP address ranges for other
1054
+ # Cloud Filestore instances in the selected VPC network.
1055
+ # Corresponds to the JSON property `reservedIpRange`
1056
+ # @return [String]
1057
+ attr_accessor :reserved_ip_range
1058
+
1059
+ def initialize(**args)
1060
+ update!(**args)
1061
+ end
1062
+
1063
+ # Update properties of this object
1064
+ def update!(**args)
1065
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1066
+ @modes = args[:modes] if args.key?(:modes)
1067
+ @network = args[:network] if args.key?(:network)
1068
+ @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
1069
+ end
1070
+ end
1071
+
1072
+ # NFS export options specifications.
1073
+ class NfsExportOptions
1074
+ include Google::Apis::Core::Hashable
1075
+
1076
+ # Either READ_ONLY, for allowing only read requests on the exported directory,
1077
+ # or READ_WRITE, for allowing both read and write requests. The default is
1078
+ # READ_WRITE.
1079
+ # Corresponds to the JSON property `accessMode`
1080
+ # @return [String]
1081
+ attr_accessor :access_mode
1082
+
1083
+ # An integer representing the anonymous group id with a default value of 65534.
1084
+ # Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
1085
+ # returned if this field is specified for other squash_mode settings.
1086
+ # Corresponds to the JSON property `anonGid`
1087
+ # @return [Fixnum]
1088
+ attr_accessor :anon_gid
1089
+
1090
+ # An integer representing the anonymous user id with a default value of 65534.
1091
+ # Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
1092
+ # returned if this field is specified for other squash_mode settings.
1093
+ # Corresponds to the JSON property `anonUid`
1094
+ # @return [Fixnum]
1095
+ attr_accessor :anon_uid
1096
+
1097
+ # List of either an IPv4 addresses in the format `octet 1`.`octet 2`.`octet 3`.`
1098
+ # octet 4` or CIDR ranges in the format `octet 1`.`octet 2`.`octet 3`.`octet 4`/`
1099
+ # mask size` which may mount the file share. Overlapping IP ranges are not
1100
+ # allowed, both within and across NfsExportOptions. An error will be returned.
1101
+ # The limit is 64 IP ranges/addresses for each FileShareConfig among all
1102
+ # NfsExportOptions.
1103
+ # Corresponds to the JSON property `ipRanges`
1104
+ # @return [Array<String>]
1105
+ attr_accessor :ip_ranges
1106
+
1107
+ # Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or
1108
+ # ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
1109
+ # Corresponds to the JSON property `squashMode`
1110
+ # @return [String]
1111
+ attr_accessor :squash_mode
1112
+
1113
+ def initialize(**args)
1114
+ update!(**args)
1115
+ end
1116
+
1117
+ # Update properties of this object
1118
+ def update!(**args)
1119
+ @access_mode = args[:access_mode] if args.key?(:access_mode)
1120
+ @anon_gid = args[:anon_gid] if args.key?(:anon_gid)
1121
+ @anon_uid = args[:anon_uid] if args.key?(:anon_uid)
1122
+ @ip_ranges = args[:ip_ranges] if args.key?(:ip_ranges)
1123
+ @squash_mode = args[:squash_mode] if args.key?(:squash_mode)
1124
+ end
1125
+ end
1126
+
1127
+ # This resource represents a long-running operation that is the result of a
1128
+ # network API call.
1129
+ class Operation
1130
+ include Google::Apis::Core::Hashable
1131
+
1132
+ # If the value is `false`, it means the operation is still in progress. If `true`
1133
+ # , the operation is completed, and either `error` or `response` is available.
1134
+ # Corresponds to the JSON property `done`
1135
+ # @return [Boolean]
1136
+ attr_accessor :done
1137
+ alias_method :done?, :done
1138
+
1139
+ # The `Status` type defines a logical error model that is suitable for different
1140
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1141
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1142
+ # data: error code, error message, and error details. You can find out more
1143
+ # about this error model and how to work with it in the [API Design Guide](https:
1144
+ # //cloud.google.com/apis/design/errors).
1145
+ # Corresponds to the JSON property `error`
1146
+ # @return [Google::Apis::FileV1beta1::Status]
1147
+ attr_accessor :error
1148
+
1149
+ # Service-specific metadata associated with the operation. It typically contains
1150
+ # progress information and common metadata such as create time. Some services
1151
+ # might not provide such metadata. Any method that returns a long-running
1152
+ # operation should document the metadata type, if any.
1153
+ # Corresponds to the JSON property `metadata`
1154
+ # @return [Hash<String,Object>]
1155
+ attr_accessor :metadata
1156
+
1157
+ # The server-assigned name, which is only unique within the same service that
1158
+ # originally returns it. If you use the default HTTP mapping, the `name` should
1159
+ # be a resource name ending with `operations/`unique_id``.
1160
+ # Corresponds to the JSON property `name`
1161
+ # @return [String]
1162
+ attr_accessor :name
1163
+
1164
+ # The normal response of the operation in case of success. If the original
1165
+ # method returns no data on success, such as `Delete`, the response is `google.
1166
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1167
+ # the response should be the resource. For other methods, the response should
1168
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
1169
+ # example, if the original method name is `TakeSnapshot()`, the inferred
1170
+ # response type is `TakeSnapshotResponse`.
1171
+ # Corresponds to the JSON property `response`
1172
+ # @return [Hash<String,Object>]
1173
+ attr_accessor :response
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @done = args[:done] if args.key?(:done)
1182
+ @error = args[:error] if args.key?(:error)
1183
+ @metadata = args[:metadata] if args.key?(:metadata)
1184
+ @name = args[:name] if args.key?(:name)
1185
+ @response = args[:response] if args.key?(:response)
1186
+ end
1187
+ end
1188
+
1189
+ # Represents the metadata of the long-running operation.
1190
+ class OperationMetadata
1191
+ include Google::Apis::Core::Hashable
1192
+
1193
+ # [Output only] API version used to start the operation.
1194
+ # Corresponds to the JSON property `apiVersion`
1195
+ # @return [String]
1196
+ attr_accessor :api_version
1197
+
1198
+ # [Output only] Identifies whether the user has requested cancellation of the
1199
+ # operation. Operations that have successfully been cancelled have Operation.
1200
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
1201
+ # CANCELLED`.
1202
+ # Corresponds to the JSON property `cancelRequested`
1203
+ # @return [Boolean]
1204
+ attr_accessor :cancel_requested
1205
+ alias_method :cancel_requested?, :cancel_requested
1206
+
1207
+ # [Output only] The time the operation was created.
1208
+ # Corresponds to the JSON property `createTime`
1209
+ # @return [String]
1210
+ attr_accessor :create_time
1211
+
1212
+ # [Output only] The time the operation finished running.
1213
+ # Corresponds to the JSON property `endTime`
1214
+ # @return [String]
1215
+ attr_accessor :end_time
1216
+
1217
+ # [Output only] 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
+ # [Output only] Server-defined resource path for the target of the operation.
1223
+ # Corresponds to the JSON property `target`
1224
+ # @return [String]
1225
+ attr_accessor :target
1226
+
1227
+ # [Output only] Name of the verb executed by the operation.
1228
+ # Corresponds to the JSON property `verb`
1229
+ # @return [String]
1230
+ attr_accessor :verb
1231
+
1232
+ def initialize(**args)
1233
+ update!(**args)
1234
+ end
1235
+
1236
+ # Update properties of this object
1237
+ def update!(**args)
1238
+ @api_version = args[:api_version] if args.key?(:api_version)
1239
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
1240
+ @create_time = args[:create_time] if args.key?(:create_time)
1241
+ @end_time = args[:end_time] if args.key?(:end_time)
1242
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
1243
+ @target = args[:target] if args.key?(:target)
1244
+ @verb = args[:verb] if args.key?(:verb)
1245
+ end
1246
+ end
1247
+
1248
+ # RestoreInstanceRequest restores an existing instances's file share from a
1249
+ # snapshot or backup.
1250
+ class RestoreInstanceRequest
1251
+ include Google::Apis::Core::Hashable
1252
+
1253
+ # Required. Name of the file share in the Cloud Filestore instance that the
1254
+ # snapshot is being restored to.
1255
+ # Corresponds to the JSON property `fileShare`
1256
+ # @return [String]
1257
+ attr_accessor :file_share
1258
+
1259
+ # The resource name of the backup, in the format projects/`project_id`/locations/
1260
+ # `location_id`/backups/`backup_id`.
1261
+ # Corresponds to the JSON property `sourceBackup`
1262
+ # @return [String]
1263
+ attr_accessor :source_backup
1264
+
1265
+ # The resource name of the snapshot, in the format projects/`project_id`/
1266
+ # locations/`location_id`/snapshots/`snapshot_id`.
1267
+ # Corresponds to the JSON property `sourceSnapshot`
1268
+ # @return [String]
1269
+ attr_accessor :source_snapshot
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @file_share = args[:file_share] if args.key?(:file_share)
1278
+ @source_backup = args[:source_backup] if args.key?(:source_backup)
1279
+ @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot)
1280
+ end
1281
+ end
1282
+
1283
+ # Configure the schedule.
1284
+ class Schedule
1285
+ include Google::Apis::Core::Hashable
1286
+
1287
+ # Allows to define schedule that runs specified day of the week.
1288
+ # Corresponds to the JSON property `day`
1289
+ # @return [String]
1290
+ attr_accessor :day
1291
+
1292
+ # Output only. Duration of the time window, set by service producer.
1293
+ # Corresponds to the JSON property `duration`
1294
+ # @return [String]
1295
+ attr_accessor :duration
1296
+
1297
+ # Represents a time of day. The date and time zone are either not significant or
1298
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1299
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1300
+ # Corresponds to the JSON property `startTime`
1301
+ # @return [Google::Apis::FileV1beta1::TimeOfDay]
1302
+ attr_accessor :start_time
1303
+
1304
+ def initialize(**args)
1305
+ update!(**args)
1306
+ end
1307
+
1308
+ # Update properties of this object
1309
+ def update!(**args)
1310
+ @day = args[:day] if args.key?(:day)
1311
+ @duration = args[:duration] if args.key?(:duration)
1312
+ @start_time = args[:start_time] if args.key?(:start_time)
1313
+ end
1314
+ end
1315
+
1316
+ # The `Status` type defines a logical error model that is suitable for different
1317
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1318
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1319
+ # data: error code, error message, and error details. You can find out more
1320
+ # about this error model and how to work with it in the [API Design Guide](https:
1321
+ # //cloud.google.com/apis/design/errors).
1322
+ class Status
1323
+ include Google::Apis::Core::Hashable
1324
+
1325
+ # The status code, which should be an enum value of google.rpc.Code.
1326
+ # Corresponds to the JSON property `code`
1327
+ # @return [Fixnum]
1328
+ attr_accessor :code
1329
+
1330
+ # A list of messages that carry the error details. There is a common set of
1331
+ # message types for APIs to use.
1332
+ # Corresponds to the JSON property `details`
1333
+ # @return [Array<Hash<String,Object>>]
1334
+ attr_accessor :details
1335
+
1336
+ # A developer-facing error message, which should be in English. Any user-facing
1337
+ # error message should be localized and sent in the google.rpc.Status.details
1338
+ # field, or localized by the client.
1339
+ # Corresponds to the JSON property `message`
1340
+ # @return [String]
1341
+ attr_accessor :message
1342
+
1343
+ def initialize(**args)
1344
+ update!(**args)
1345
+ end
1346
+
1347
+ # Update properties of this object
1348
+ def update!(**args)
1349
+ @code = args[:code] if args.key?(:code)
1350
+ @details = args[:details] if args.key?(:details)
1351
+ @message = args[:message] if args.key?(:message)
1352
+ end
1353
+ end
1354
+
1355
+ # Represents a time of day. The date and time zone are either not significant or
1356
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1357
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1358
+ class TimeOfDay
1359
+ include Google::Apis::Core::Hashable
1360
+
1361
+ # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to
1362
+ # allow the value "24:00:00" for scenarios like business closing time.
1363
+ # Corresponds to the JSON property `hours`
1364
+ # @return [Fixnum]
1365
+ attr_accessor :hours
1366
+
1367
+ # Minutes of hour of day. Must be from 0 to 59.
1368
+ # Corresponds to the JSON property `minutes`
1369
+ # @return [Fixnum]
1370
+ attr_accessor :minutes
1371
+
1372
+ # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
1373
+ # Corresponds to the JSON property `nanos`
1374
+ # @return [Fixnum]
1375
+ attr_accessor :nanos
1376
+
1377
+ # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
1378
+ # allow the value 60 if it allows leap-seconds.
1379
+ # Corresponds to the JSON property `seconds`
1380
+ # @return [Fixnum]
1381
+ attr_accessor :seconds
1382
+
1383
+ def initialize(**args)
1384
+ update!(**args)
1385
+ end
1386
+
1387
+ # Update properties of this object
1388
+ def update!(**args)
1389
+ @hours = args[:hours] if args.key?(:hours)
1390
+ @minutes = args[:minutes] if args.key?(:minutes)
1391
+ @nanos = args[:nanos] if args.key?(:nanos)
1392
+ @seconds = args[:seconds] if args.key?(:seconds)
1393
+ end
1394
+ end
1395
+
1396
+ # Maintenance policy applicable to instance updates.
1397
+ class UpdatePolicy
1398
+ include Google::Apis::Core::Hashable
1399
+
1400
+ # Optional. Relative scheduling channel applied to resource.
1401
+ # Corresponds to the JSON property `channel`
1402
+ # @return [String]
1403
+ attr_accessor :channel
1404
+
1405
+ # Deny Maintenance Period that is applied to resource to indicate when
1406
+ # maintenance is forbidden. User can specify zero or more non-overlapping deny
1407
+ # periods. For V1, Maximum number of deny_maintenance_periods is expected to be
1408
+ # one.
1409
+ # Corresponds to the JSON property `denyMaintenancePeriods`
1410
+ # @return [Array<Google::Apis::FileV1beta1::DenyMaintenancePeriod>]
1411
+ attr_accessor :deny_maintenance_periods
1412
+
1413
+ # MaintenanceWindow definition.
1414
+ # Corresponds to the JSON property `window`
1415
+ # @return [Google::Apis::FileV1beta1::MaintenanceWindow]
1416
+ attr_accessor :window
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @channel = args[:channel] if args.key?(:channel)
1425
+ @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
1426
+ @window = args[:window] if args.key?(:window)
1427
+ end
1428
+ end
1429
+
1430
+ # Time window specified for weekly operations.
1431
+ class WeeklyCycle
1432
+ include Google::Apis::Core::Hashable
1433
+
1434
+ # User can specify multiple windows in a week. Minimum of 1 window.
1435
+ # Corresponds to the JSON property `schedule`
1436
+ # @return [Array<Google::Apis::FileV1beta1::Schedule>]
1437
+ attr_accessor :schedule
1438
+
1439
+ def initialize(**args)
1440
+ update!(**args)
1441
+ end
1442
+
1443
+ # Update properties of this object
1444
+ def update!(**args)
1445
+ @schedule = args[:schedule] if args.key?(:schedule)
1446
+ end
1447
+ end
1448
+ end
1449
+ end
1450
+ end