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