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