google-apis-memcache_v1 0.1.0

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