google-apis-redis_v1 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: ee9d04c1c400ad4218aef4cfcc7338b2452e664229beca604f8e9118f026b761
4
+ data.tar.gz: 45c4fef8982c9f840d87fd14518558e74aa0797f44b89ba12683afc73e163a85
5
+ SHA512:
6
+ metadata.gz: f3d04d59ba8fbbc6af36963b8d35c33ca66c26805e75401d7051818ab25e26a18465a454eb6e83ce9298bb53ee1455beb742a85b49f71e572b52ff275b021d3f
7
+ data.tar.gz: 2941d20e8f0845ed7956d78cb9c2484c195d0511c526976c0245969e32ff6381b750cfed22c3f070d4c99257da49ad893f60252ec993318bf172afea013fd27e
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-redis_v1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/redis_v1/*.rb
9
+ lib/google/apis/redis_v1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-redis_v1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201210
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 V1 of the Google Cloud Memorystore for Redis API
2
+
3
+ This is a simple client library for version V1 of the Google Cloud Memorystore for Redis 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/redis.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-redis_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-redis_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/redis_v1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::RedisV1::CloudRedisService.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 Redis service in particular.)
67
+
68
+ For reference information on specific calls in the Google Cloud Memorystore for Redis API, see the {Google::Apis::RedisV1::CloudRedisService 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-redis_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/docs/redis/) 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/redis_v1"
@@ -0,0 +1,36 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/redis_v1/service.rb'
16
+ require 'google/apis/redis_v1/classes.rb'
17
+ require 'google/apis/redis_v1/representations.rb'
18
+ require 'google/apis/redis_v1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Google Cloud Memorystore for Redis API
23
+ #
24
+ # Creates and manages Redis instances on the Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/memorystore/docs/redis/
27
+ module RedisV1
28
+ # Version of the Google Cloud Memorystore for Redis API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,780 @@
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 RedisV1
24
+
25
+ # A generic empty message that you can re-use to avoid defining duplicated empty
26
+ # messages in your APIs. A typical example is to use it as the request or the
27
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
28
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
29
+ # `Empty` is empty JSON object ````.
30
+ class Empty
31
+ include Google::Apis::Core::Hashable
32
+
33
+ def initialize(**args)
34
+ update!(**args)
35
+ end
36
+
37
+ # Update properties of this object
38
+ def update!(**args)
39
+ end
40
+ end
41
+
42
+ # Request for Export.
43
+ class ExportInstanceRequest
44
+ include Google::Apis::Core::Hashable
45
+
46
+ # The output content
47
+ # Corresponds to the JSON property `outputConfig`
48
+ # @return [Google::Apis::RedisV1::OutputConfig]
49
+ attr_accessor :output_config
50
+
51
+ def initialize(**args)
52
+ update!(**args)
53
+ end
54
+
55
+ # Update properties of this object
56
+ def update!(**args)
57
+ @output_config = args[:output_config] if args.key?(:output_config)
58
+ end
59
+ end
60
+
61
+ # Request for Failover.
62
+ class FailoverInstanceRequest
63
+ include Google::Apis::Core::Hashable
64
+
65
+ # Optional. Available data protection modes that the user can choose. If it's
66
+ # unspecified, data protection mode will be LIMITED_DATA_LOSS by default.
67
+ # Corresponds to the JSON property `dataProtectionMode`
68
+ # @return [String]
69
+ attr_accessor :data_protection_mode
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @data_protection_mode = args[:data_protection_mode] if args.key?(:data_protection_mode)
78
+ end
79
+ end
80
+
81
+ # The Cloud Storage location for the output content
82
+ class GcsDestination
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # Required. Data destination URI (e.g. 'gs://my_bucket/my_object'). Existing
86
+ # files will be overwritten.
87
+ # Corresponds to the JSON property `uri`
88
+ # @return [String]
89
+ attr_accessor :uri
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @uri = args[:uri] if args.key?(:uri)
98
+ end
99
+ end
100
+
101
+ # The Cloud Storage location for the input content
102
+ class GcsSource
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # Required. Source data URI. (e.g. 'gs://my_bucket/my_object').
106
+ # Corresponds to the JSON property `uri`
107
+ # @return [String]
108
+ attr_accessor :uri
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @uri = args[:uri] if args.key?(:uri)
117
+ end
118
+ end
119
+
120
+ # This location metadata represents additional configuration options for a given
121
+ # location where a Redis instance may be created. All fields are output only. It
122
+ # is returned as content of the `google.cloud.location.Location.metadata` field.
123
+ class GoogleCloudRedisV1LocationMetadata
124
+ include Google::Apis::Core::Hashable
125
+
126
+ # Output only. The set of available zones in the location. The map is keyed by
127
+ # the lowercase ID of each zone, as defined by GCE. These keys can be specified
128
+ # in `location_id` or `alternative_location_id` fields when creating a Redis
129
+ # instance.
130
+ # Corresponds to the JSON property `availableZones`
131
+ # @return [Hash<String,Google::Apis::RedisV1::GoogleCloudRedisV1ZoneMetadata>]
132
+ attr_accessor :available_zones
133
+
134
+ def initialize(**args)
135
+ update!(**args)
136
+ end
137
+
138
+ # Update properties of this object
139
+ def update!(**args)
140
+ @available_zones = args[:available_zones] if args.key?(:available_zones)
141
+ end
142
+ end
143
+
144
+ # Represents the v1 metadata of the long-running operation.
145
+ class GoogleCloudRedisV1OperationMetadata
146
+ include Google::Apis::Core::Hashable
147
+
148
+ # API version.
149
+ # Corresponds to the JSON property `apiVersion`
150
+ # @return [String]
151
+ attr_accessor :api_version
152
+
153
+ # Specifies if cancellation was requested for the operation.
154
+ # Corresponds to the JSON property `cancelRequested`
155
+ # @return [Boolean]
156
+ attr_accessor :cancel_requested
157
+ alias_method :cancel_requested?, :cancel_requested
158
+
159
+ # Creation timestamp.
160
+ # Corresponds to the JSON property `createTime`
161
+ # @return [String]
162
+ attr_accessor :create_time
163
+
164
+ # End timestamp.
165
+ # Corresponds to the JSON property `endTime`
166
+ # @return [String]
167
+ attr_accessor :end_time
168
+
169
+ # Operation status details.
170
+ # Corresponds to the JSON property `statusDetail`
171
+ # @return [String]
172
+ attr_accessor :status_detail
173
+
174
+ # Operation target.
175
+ # Corresponds to the JSON property `target`
176
+ # @return [String]
177
+ attr_accessor :target
178
+
179
+ # Operation verb.
180
+ # Corresponds to the JSON property `verb`
181
+ # @return [String]
182
+ attr_accessor :verb
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @api_version = args[:api_version] if args.key?(:api_version)
191
+ @cancel_requested = args[:cancel_requested] if args.key?(:cancel_requested)
192
+ @create_time = args[:create_time] if args.key?(:create_time)
193
+ @end_time = args[:end_time] if args.key?(:end_time)
194
+ @status_detail = args[:status_detail] if args.key?(:status_detail)
195
+ @target = args[:target] if args.key?(:target)
196
+ @verb = args[:verb] if args.key?(:verb)
197
+ end
198
+ end
199
+
200
+ # Defines specific information for a particular zone. Currently empty and
201
+ # reserved for future use only.
202
+ class GoogleCloudRedisV1ZoneMetadata
203
+ include Google::Apis::Core::Hashable
204
+
205
+ def initialize(**args)
206
+ update!(**args)
207
+ end
208
+
209
+ # Update properties of this object
210
+ def update!(**args)
211
+ end
212
+ end
213
+
214
+ # Request for Import.
215
+ class ImportInstanceRequest
216
+ include Google::Apis::Core::Hashable
217
+
218
+ # The input content
219
+ # Corresponds to the JSON property `inputConfig`
220
+ # @return [Google::Apis::RedisV1::InputConfig]
221
+ attr_accessor :input_config
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @input_config = args[:input_config] if args.key?(:input_config)
230
+ end
231
+ end
232
+
233
+ # The input content
234
+ class InputConfig
235
+ include Google::Apis::Core::Hashable
236
+
237
+ # The Cloud Storage location for the input content
238
+ # Corresponds to the JSON property `gcsSource`
239
+ # @return [Google::Apis::RedisV1::GcsSource]
240
+ attr_accessor :gcs_source
241
+
242
+ def initialize(**args)
243
+ update!(**args)
244
+ end
245
+
246
+ # Update properties of this object
247
+ def update!(**args)
248
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
249
+ end
250
+ end
251
+
252
+ # A Google Cloud Redis instance.
253
+ class Instance
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # Optional. Only applicable to STANDARD_HA tier which protects the instance
257
+ # against zonal failures by provisioning it across two zones. If provided, it
258
+ # must be a different zone from the one provided in location_id.
259
+ # Corresponds to the JSON property `alternativeLocationId`
260
+ # @return [String]
261
+ attr_accessor :alternative_location_id
262
+
263
+ # Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set
264
+ # to "true" AUTH is enabled on the instance. Default value is "false" meaning
265
+ # AUTH is disabled.
266
+ # Corresponds to the JSON property `authEnabled`
267
+ # @return [Boolean]
268
+ attr_accessor :auth_enabled
269
+ alias_method :auth_enabled?, :auth_enabled
270
+
271
+ # Optional. The full name of the Google Compute Engine [network](https://cloud.
272
+ # google.com/vpc/docs/vpc) to which the instance is connected. If left
273
+ # unspecified, the `default` network will be used.
274
+ # Corresponds to the JSON property `authorizedNetwork`
275
+ # @return [String]
276
+ attr_accessor :authorized_network
277
+
278
+ # Optional. The network connect mode of the Redis instance. If not provided, the
279
+ # connect mode defaults to DIRECT_PEERING.
280
+ # Corresponds to the JSON property `connectMode`
281
+ # @return [String]
282
+ attr_accessor :connect_mode
283
+
284
+ # Output only. The time the instance was created.
285
+ # Corresponds to the JSON property `createTime`
286
+ # @return [String]
287
+ attr_accessor :create_time
288
+
289
+ # Output only. The current zone where the Redis endpoint is placed. For Basic
290
+ # Tier instances, this will always be the same as the location_id provided by
291
+ # the user at creation time. For Standard Tier instances, this can be either
292
+ # location_id or alternative_location_id and can change after a failover event.
293
+ # Corresponds to the JSON property `currentLocationId`
294
+ # @return [String]
295
+ attr_accessor :current_location_id
296
+
297
+ # An arbitrary and optional user-provided name for the instance.
298
+ # Corresponds to the JSON property `displayName`
299
+ # @return [String]
300
+ attr_accessor :display_name
301
+
302
+ # Output only. Hostname or IP address of the exposed Redis endpoint used by
303
+ # clients to connect to the service.
304
+ # Corresponds to the JSON property `host`
305
+ # @return [String]
306
+ attr_accessor :host
307
+
308
+ # Resource labels to represent user provided metadata
309
+ # Corresponds to the JSON property `labels`
310
+ # @return [Hash<String,String>]
311
+ attr_accessor :labels
312
+
313
+ # Optional. The zone where the instance will be provisioned. If not provided,
314
+ # the service will choose a zone for the instance. For STANDARD_HA tier,
315
+ # instances will be created across two zones for protection against zonal
316
+ # failures. If alternative_location_id is also provided, it must be different
317
+ # from location_id.
318
+ # Corresponds to the JSON property `locationId`
319
+ # @return [String]
320
+ attr_accessor :location_id
321
+
322
+ # Required. Redis memory size in GiB.
323
+ # Corresponds to the JSON property `memorySizeGb`
324
+ # @return [Fixnum]
325
+ attr_accessor :memory_size_gb
326
+
327
+ # Required. Unique name of the resource in this scope including project and
328
+ # location using the form: `projects/`project_id`/locations/`location_id`/
329
+ # instances/`instance_id`` Note: Redis instances are managed and addressed at
330
+ # regional level so location_id here refers to a GCP region; however, users may
331
+ # choose which specific zone (or collection of zones for cross-zone instances)
332
+ # an instance should be provisioned in. Refer to location_id and
333
+ # alternative_location_id fields for more details.
334
+ # Corresponds to the JSON property `name`
335
+ # @return [String]
336
+ attr_accessor :name
337
+
338
+ # Output only. Cloud IAM identity used by import / export operations to transfer
339
+ # data to/from Cloud Storage. Format is "serviceAccount:". The value may change
340
+ # over time for a given instance so should be checked before each import/export
341
+ # operation.
342
+ # Corresponds to the JSON property `persistenceIamIdentity`
343
+ # @return [String]
344
+ attr_accessor :persistence_iam_identity
345
+
346
+ # Output only. The port number of the exposed Redis endpoint.
347
+ # Corresponds to the JSON property `port`
348
+ # @return [Fixnum]
349
+ attr_accessor :port
350
+
351
+ # Optional. Redis configuration parameters, according to http://redis.io/topics/
352
+ # config. Currently, the only supported parameters are: Redis version 3.2 and
353
+ # newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer:
354
+ # * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version
355
+ # 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
356
+ # Corresponds to the JSON property `redisConfigs`
357
+ # @return [Hash<String,String>]
358
+ attr_accessor :redis_configs
359
+
360
+ # Optional. The version of Redis software. If not provided, latest supported
361
+ # version will be used. Currently, the supported values are: * `REDIS_3_2` for
362
+ # Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `
363
+ # REDIS_5_0` for Redis 5.0 compatibility
364
+ # Corresponds to the JSON property `redisVersion`
365
+ # @return [String]
366
+ attr_accessor :redis_version
367
+
368
+ # Optional. The CIDR range of internal addresses that are reserved for this
369
+ # instance. If not provided, the service will choose an unused /29 block, for
370
+ # example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique and non-
371
+ # overlapping with existing subnets in an authorized network.
372
+ # Corresponds to the JSON property `reservedIpRange`
373
+ # @return [String]
374
+ attr_accessor :reserved_ip_range
375
+
376
+ # Output only. List of server CA certificates for the instance.
377
+ # Corresponds to the JSON property `serverCaCerts`
378
+ # @return [Array<Google::Apis::RedisV1::TlsCertificate>]
379
+ attr_accessor :server_ca_certs
380
+
381
+ # Output only. The current state of this instance.
382
+ # Corresponds to the JSON property `state`
383
+ # @return [String]
384
+ attr_accessor :state
385
+
386
+ # Output only. Additional information about the current status of this instance,
387
+ # if available.
388
+ # Corresponds to the JSON property `statusMessage`
389
+ # @return [String]
390
+ attr_accessor :status_message
391
+
392
+ # Required. The service tier of the instance.
393
+ # Corresponds to the JSON property `tier`
394
+ # @return [String]
395
+ attr_accessor :tier
396
+
397
+ # Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled
398
+ # for the instance.
399
+ # Corresponds to the JSON property `transitEncryptionMode`
400
+ # @return [String]
401
+ attr_accessor :transit_encryption_mode
402
+
403
+ def initialize(**args)
404
+ update!(**args)
405
+ end
406
+
407
+ # Update properties of this object
408
+ def update!(**args)
409
+ @alternative_location_id = args[:alternative_location_id] if args.key?(:alternative_location_id)
410
+ @auth_enabled = args[:auth_enabled] if args.key?(:auth_enabled)
411
+ @authorized_network = args[:authorized_network] if args.key?(:authorized_network)
412
+ @connect_mode = args[:connect_mode] if args.key?(:connect_mode)
413
+ @create_time = args[:create_time] if args.key?(:create_time)
414
+ @current_location_id = args[:current_location_id] if args.key?(:current_location_id)
415
+ @display_name = args[:display_name] if args.key?(:display_name)
416
+ @host = args[:host] if args.key?(:host)
417
+ @labels = args[:labels] if args.key?(:labels)
418
+ @location_id = args[:location_id] if args.key?(:location_id)
419
+ @memory_size_gb = args[:memory_size_gb] if args.key?(:memory_size_gb)
420
+ @name = args[:name] if args.key?(:name)
421
+ @persistence_iam_identity = args[:persistence_iam_identity] if args.key?(:persistence_iam_identity)
422
+ @port = args[:port] if args.key?(:port)
423
+ @redis_configs = args[:redis_configs] if args.key?(:redis_configs)
424
+ @redis_version = args[:redis_version] if args.key?(:redis_version)
425
+ @reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
426
+ @server_ca_certs = args[:server_ca_certs] if args.key?(:server_ca_certs)
427
+ @state = args[:state] if args.key?(:state)
428
+ @status_message = args[:status_message] if args.key?(:status_message)
429
+ @tier = args[:tier] if args.key?(:tier)
430
+ @transit_encryption_mode = args[:transit_encryption_mode] if args.key?(:transit_encryption_mode)
431
+ end
432
+ end
433
+
434
+ # Instance AUTH string details.
435
+ class InstanceAuthString
436
+ include Google::Apis::Core::Hashable
437
+
438
+ # AUTH string set on the instance.
439
+ # Corresponds to the JSON property `authString`
440
+ # @return [String]
441
+ attr_accessor :auth_string
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @auth_string = args[:auth_string] if args.key?(:auth_string)
450
+ end
451
+ end
452
+
453
+ # Response for ListInstances.
454
+ class ListInstancesResponse
455
+ include Google::Apis::Core::Hashable
456
+
457
+ # A list of Redis instances in the project in the specified location, or across
458
+ # all locations. If the `location_id` in the parent field of the request is "-",
459
+ # all regions available to the project are queried, and the results aggregated.
460
+ # If in such an aggregated query a location is unavailable, a placeholder Redis
461
+ # entry is included in the response with the `name` field set to a value of the
462
+ # form `projects/`project_id`/locations/`location_id`/instances/`- and the `
463
+ # status` field set to ERROR and `status_message` field set to "location not
464
+ # available for ListInstances".
465
+ # Corresponds to the JSON property `instances`
466
+ # @return [Array<Google::Apis::RedisV1::Instance>]
467
+ attr_accessor :instances
468
+
469
+ # Token to retrieve the next page of results, or empty if there are no more
470
+ # results in the list.
471
+ # Corresponds to the JSON property `nextPageToken`
472
+ # @return [String]
473
+ attr_accessor :next_page_token
474
+
475
+ # Locations that could not be reached.
476
+ # Corresponds to the JSON property `unreachable`
477
+ # @return [Array<String>]
478
+ attr_accessor :unreachable
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @instances = args[:instances] if args.key?(:instances)
487
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
488
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
489
+ end
490
+ end
491
+
492
+ # The response message for Locations.ListLocations.
493
+ class ListLocationsResponse
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # A list of locations that matches the specified filter in the request.
497
+ # Corresponds to the JSON property `locations`
498
+ # @return [Array<Google::Apis::RedisV1::Location>]
499
+ attr_accessor :locations
500
+
501
+ # The standard List next-page token.
502
+ # Corresponds to the JSON property `nextPageToken`
503
+ # @return [String]
504
+ attr_accessor :next_page_token
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @locations = args[:locations] if args.key?(:locations)
513
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
514
+ end
515
+ end
516
+
517
+ # The response message for Operations.ListOperations.
518
+ class ListOperationsResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # The standard List next-page token.
522
+ # Corresponds to the JSON property `nextPageToken`
523
+ # @return [String]
524
+ attr_accessor :next_page_token
525
+
526
+ # A list of operations that matches the specified filter in the request.
527
+ # Corresponds to the JSON property `operations`
528
+ # @return [Array<Google::Apis::RedisV1::Operation>]
529
+ attr_accessor :operations
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
538
+ @operations = args[:operations] if args.key?(:operations)
539
+ end
540
+ end
541
+
542
+ # A resource that represents Google Cloud Platform location.
543
+ class Location
544
+ include Google::Apis::Core::Hashable
545
+
546
+ # The friendly name for this location, typically a nearby city name. For example,
547
+ # "Tokyo".
548
+ # Corresponds to the JSON property `displayName`
549
+ # @return [String]
550
+ attr_accessor :display_name
551
+
552
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
553
+ # region": "us-east1"`
554
+ # Corresponds to the JSON property `labels`
555
+ # @return [Hash<String,String>]
556
+ attr_accessor :labels
557
+
558
+ # Resource ID for the region. For example: "us-east1".
559
+ # Corresponds to the JSON property `locationId`
560
+ # @return [String]
561
+ attr_accessor :location_id
562
+
563
+ # Output only. The set of available zones in the location. The map is keyed by
564
+ # the lowercase ID of each zone, as defined by Compute Engine. These keys can be
565
+ # specified in `location_id` or `alternative_location_id` fields when creating a
566
+ # Redis instance.
567
+ # Corresponds to the JSON property `metadata`
568
+ # @return [Hash<String,Object>]
569
+ attr_accessor :metadata
570
+
571
+ # Full resource name for the region. For example: "projects/example-project/
572
+ # locations/us-east1".
573
+ # Corresponds to the JSON property `name`
574
+ # @return [String]
575
+ attr_accessor :name
576
+
577
+ def initialize(**args)
578
+ update!(**args)
579
+ end
580
+
581
+ # Update properties of this object
582
+ def update!(**args)
583
+ @display_name = args[:display_name] if args.key?(:display_name)
584
+ @labels = args[:labels] if args.key?(:labels)
585
+ @location_id = args[:location_id] if args.key?(:location_id)
586
+ @metadata = args[:metadata] if args.key?(:metadata)
587
+ @name = args[:name] if args.key?(:name)
588
+ end
589
+ end
590
+
591
+ # This resource represents a long-running operation that is the result of a
592
+ # network API call.
593
+ class Operation
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # If the value is `false`, it means the operation is still in progress. If `true`
597
+ # , the operation is completed, and either `error` or `response` is available.
598
+ # Corresponds to the JSON property `done`
599
+ # @return [Boolean]
600
+ attr_accessor :done
601
+ alias_method :done?, :done
602
+
603
+ # The `Status` type defines a logical error model that is suitable for different
604
+ # programming environments, including REST APIs and RPC APIs. It is used by [
605
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
606
+ # data: error code, error message, and error details. You can find out more
607
+ # about this error model and how to work with it in the [API Design Guide](https:
608
+ # //cloud.google.com/apis/design/errors).
609
+ # Corresponds to the JSON property `error`
610
+ # @return [Google::Apis::RedisV1::Status]
611
+ attr_accessor :error
612
+
613
+ # ` `createTime`: The time the operation was created. `endTime`: The time the
614
+ # operation finished running. `target`: Server-defined resource path for the
615
+ # target of the operation. `verb`: Name of the verb executed by the operation. `
616
+ # statusDetail`: Human-readable status of the operation, if any. `
617
+ # cancelRequested`: Identifies whether the user has requested cancellation of
618
+ # the operation. Operations that have successfully been cancelled have Operation.
619
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
620
+ # CANCELLED`. `apiVersion`: API version used to start the operation. `
621
+ # Corresponds to the JSON property `metadata`
622
+ # @return [Hash<String,Object>]
623
+ attr_accessor :metadata
624
+
625
+ # The server-assigned name, which is only unique within the same service that
626
+ # originally returns it. If you use the default HTTP mapping, the `name` should
627
+ # be a resource name ending with `operations/`unique_id``.
628
+ # Corresponds to the JSON property `name`
629
+ # @return [String]
630
+ attr_accessor :name
631
+
632
+ # The normal response of the operation in case of success. If the original
633
+ # method returns no data on success, such as `Delete`, the response is `google.
634
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
635
+ # the response should be the resource. For other methods, the response should
636
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
637
+ # example, if the original method name is `TakeSnapshot()`, the inferred
638
+ # response type is `TakeSnapshotResponse`.
639
+ # Corresponds to the JSON property `response`
640
+ # @return [Hash<String,Object>]
641
+ attr_accessor :response
642
+
643
+ def initialize(**args)
644
+ update!(**args)
645
+ end
646
+
647
+ # Update properties of this object
648
+ def update!(**args)
649
+ @done = args[:done] if args.key?(:done)
650
+ @error = args[:error] if args.key?(:error)
651
+ @metadata = args[:metadata] if args.key?(:metadata)
652
+ @name = args[:name] if args.key?(:name)
653
+ @response = args[:response] if args.key?(:response)
654
+ end
655
+ end
656
+
657
+ # The output content
658
+ class OutputConfig
659
+ include Google::Apis::Core::Hashable
660
+
661
+ # The Cloud Storage location for the output content
662
+ # Corresponds to the JSON property `gcsDestination`
663
+ # @return [Google::Apis::RedisV1::GcsDestination]
664
+ attr_accessor :gcs_destination
665
+
666
+ def initialize(**args)
667
+ update!(**args)
668
+ end
669
+
670
+ # Update properties of this object
671
+ def update!(**args)
672
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
673
+ end
674
+ end
675
+
676
+ # The `Status` type defines a logical error model that is suitable for different
677
+ # programming environments, including REST APIs and RPC APIs. It is used by [
678
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
679
+ # data: error code, error message, and error details. You can find out more
680
+ # about this error model and how to work with it in the [API Design Guide](https:
681
+ # //cloud.google.com/apis/design/errors).
682
+ class Status
683
+ include Google::Apis::Core::Hashable
684
+
685
+ # The status code, which should be an enum value of google.rpc.Code.
686
+ # Corresponds to the JSON property `code`
687
+ # @return [Fixnum]
688
+ attr_accessor :code
689
+
690
+ # A list of messages that carry the error details. There is a common set of
691
+ # message types for APIs to use.
692
+ # Corresponds to the JSON property `details`
693
+ # @return [Array<Hash<String,Object>>]
694
+ attr_accessor :details
695
+
696
+ # A developer-facing error message, which should be in English. Any user-facing
697
+ # error message should be localized and sent in the google.rpc.Status.details
698
+ # field, or localized by the client.
699
+ # Corresponds to the JSON property `message`
700
+ # @return [String]
701
+ attr_accessor :message
702
+
703
+ def initialize(**args)
704
+ update!(**args)
705
+ end
706
+
707
+ # Update properties of this object
708
+ def update!(**args)
709
+ @code = args[:code] if args.key?(:code)
710
+ @details = args[:details] if args.key?(:details)
711
+ @message = args[:message] if args.key?(:message)
712
+ end
713
+ end
714
+
715
+ # TlsCertificate Resource
716
+ class TlsCertificate
717
+ include Google::Apis::Core::Hashable
718
+
719
+ # PEM representation.
720
+ # Corresponds to the JSON property `cert`
721
+ # @return [String]
722
+ attr_accessor :cert
723
+
724
+ # Output only. The time when the certificate was created in [RFC 3339](https://
725
+ # tools.ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
726
+ # Corresponds to the JSON property `createTime`
727
+ # @return [String]
728
+ attr_accessor :create_time
729
+
730
+ # Output only. The time when the certificate expires in [RFC 3339](https://tools.
731
+ # ietf.org/html/rfc3339) format, for example `2020-05-18T00:00:00.094Z`.
732
+ # Corresponds to the JSON property `expireTime`
733
+ # @return [String]
734
+ attr_accessor :expire_time
735
+
736
+ # Serial number, as extracted from the certificate.
737
+ # Corresponds to the JSON property `serialNumber`
738
+ # @return [String]
739
+ attr_accessor :serial_number
740
+
741
+ # Sha1 Fingerprint of the certificate.
742
+ # Corresponds to the JSON property `sha1Fingerprint`
743
+ # @return [String]
744
+ attr_accessor :sha1_fingerprint
745
+
746
+ def initialize(**args)
747
+ update!(**args)
748
+ end
749
+
750
+ # Update properties of this object
751
+ def update!(**args)
752
+ @cert = args[:cert] if args.key?(:cert)
753
+ @create_time = args[:create_time] if args.key?(:create_time)
754
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
755
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
756
+ @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
757
+ end
758
+ end
759
+
760
+ # Request for UpgradeInstance.
761
+ class UpgradeInstanceRequest
762
+ include Google::Apis::Core::Hashable
763
+
764
+ # Required. Specifies the target version of Redis software to upgrade to.
765
+ # Corresponds to the JSON property `redisVersion`
766
+ # @return [String]
767
+ attr_accessor :redis_version
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @redis_version = args[:redis_version] if args.key?(:redis_version)
776
+ end
777
+ end
778
+ end
779
+ end
780
+ end