google-apis-redis_v1beta1 0.1.0

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