google-api-client 0.23.8 → 0.23.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +28 -28
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  7. data/generated/google/apis/calendar_v3.rb +1 -1
  8. data/generated/google/apis/calendar_v3/classes.rb +16 -0
  9. data/generated/google/apis/calendar_v3/representations.rb +2 -0
  10. data/generated/google/apis/cloudkms_v1.rb +1 -1
  11. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  12. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  13. data/generated/google/apis/container_v1.rb +1 -1
  14. data/generated/google/apis/container_v1/classes.rb +1 -0
  15. data/generated/google/apis/container_v1beta1.rb +1 -1
  16. data/generated/google/apis/container_v1beta1/classes.rb +52 -1
  17. data/generated/google/apis/container_v1beta1/representations.rb +22 -0
  18. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  19. data/generated/google/apis/dfareporting_v2_8/classes.rb +63 -61
  20. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -1
  21. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  22. data/generated/google/apis/dfareporting_v3_0/classes.rb +63 -61
  23. data/generated/google/apis/dfareporting_v3_0/service.rb +1 -1
  24. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  25. data/generated/google/apis/dfareporting_v3_1/classes.rb +67 -65
  26. data/generated/google/apis/dfareporting_v3_1/service.rb +1 -1
  27. data/generated/google/apis/dfareporting_v3_2.rb +1 -1
  28. data/generated/google/apis/dfareporting_v3_2/classes.rb +70 -68
  29. data/generated/google/apis/dfareporting_v3_2/service.rb +5 -2
  30. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  31. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +11 -7
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v2/classes.rb +5 -3
  34. data/generated/google/apis/drive_v2/service.rb +1 -1
  35. data/generated/google/apis/drive_v3.rb +1 -1
  36. data/generated/google/apis/drive_v3/classes.rb +3 -1
  37. data/generated/google/apis/genomics_v1.rb +1 -1
  38. data/generated/google/apis/genomics_v1/classes.rb +14 -0
  39. data/generated/google/apis/genomics_v1/representations.rb +12 -0
  40. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  41. data/generated/google/apis/genomics_v1alpha2/classes.rb +14 -0
  42. data/generated/google/apis/genomics_v1alpha2/representations.rb +12 -0
  43. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  44. data/generated/google/apis/genomics_v2alpha1/classes.rb +16 -1
  45. data/generated/google/apis/genomics_v2alpha1/representations.rb +12 -0
  46. data/generated/google/apis/iam_v1.rb +1 -1
  47. data/generated/google/apis/iam_v1/classes.rb +12 -10
  48. data/generated/google/apis/iam_v1/service.rb +2 -1
  49. data/generated/google/apis/jobs_v2.rb +1 -1
  50. data/generated/google/apis/language_v1beta2.rb +1 -1
  51. data/generated/google/apis/language_v1beta2/classes.rb +6 -6
  52. data/generated/google/apis/logging_v2.rb +1 -1
  53. data/generated/google/apis/logging_v2/classes.rb +7 -2
  54. data/generated/google/apis/logging_v2beta1.rb +1 -1
  55. data/generated/google/apis/logging_v2beta1/classes.rb +7 -2
  56. data/generated/google/apis/manufacturers_v1.rb +1 -1
  57. data/generated/google/apis/manufacturers_v1/classes.rb +0 -30
  58. data/generated/google/apis/manufacturers_v1/representations.rb +0 -7
  59. data/generated/google/apis/manufacturers_v1/service.rb +0 -6
  60. data/generated/google/apis/ml_v1.rb +1 -1
  61. data/generated/google/apis/ml_v1/classes.rb +26 -4
  62. data/generated/google/apis/partners_v2.rb +1 -1
  63. data/generated/google/apis/partners_v2/classes.rb +14 -14
  64. data/generated/google/apis/pubsub_v1.rb +1 -1
  65. data/generated/google/apis/pubsub_v1/classes.rb +25 -15
  66. data/generated/google/apis/pubsub_v1/service.rb +47 -16
  67. data/generated/google/apis/{sqladmin_v1beta3.rb → redis_v1.rb} +10 -13
  68. data/generated/google/apis/redis_v1/classes.rb +597 -0
  69. data/generated/google/apis/redis_v1/representations.rb +207 -0
  70. data/generated/google/apis/redis_v1/service.rb +498 -0
  71. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  72. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -2
  73. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  74. data/generated/google/apis/testing_v1.rb +1 -1
  75. data/generated/google/apis/testing_v1/classes.rb +4 -2
  76. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  77. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -3
  78. data/generated/google/apis/tpu_v1.rb +1 -1
  79. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  80. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  81. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  82. data/lib/google/apis/version.rb +1 -1
  83. metadata +6 -6
  84. data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
  85. data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
  86. data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
@@ -0,0 +1,207 @@
1
+ # Copyright 2015 Google Inc.
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
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudRedisV1LocationMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudRedisV1OperationMetadata
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudRedisV1ZoneMetadata
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Instance
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ListInstancesResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListOperationsResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Location
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Operation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Status
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Empty
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ end
95
+ end
96
+
97
+ class GoogleCloudRedisV1LocationMetadata
98
+ # @private
99
+ class Representation < Google::Apis::Core::JsonRepresentation
100
+ hash :available_zones, as: 'availableZones', class: Google::Apis::RedisV1::GoogleCloudRedisV1ZoneMetadata, decorator: Google::Apis::RedisV1::GoogleCloudRedisV1ZoneMetadata::Representation
101
+
102
+ end
103
+ end
104
+
105
+ class GoogleCloudRedisV1OperationMetadata
106
+ # @private
107
+ class Representation < Google::Apis::Core::JsonRepresentation
108
+ property :api_version, as: 'apiVersion'
109
+ property :cancel_requested, as: 'cancelRequested'
110
+ property :create_time, as: 'createTime'
111
+ property :end_time, as: 'endTime'
112
+ property :status_detail, as: 'statusDetail'
113
+ property :target, as: 'target'
114
+ property :verb, as: 'verb'
115
+ end
116
+ end
117
+
118
+ class GoogleCloudRedisV1ZoneMetadata
119
+ # @private
120
+ class Representation < Google::Apis::Core::JsonRepresentation
121
+ end
122
+ end
123
+
124
+ class Instance
125
+ # @private
126
+ class Representation < Google::Apis::Core::JsonRepresentation
127
+ property :alternative_location_id, as: 'alternativeLocationId'
128
+ property :authorized_network, as: 'authorizedNetwork'
129
+ property :create_time, as: 'createTime'
130
+ property :current_location_id, as: 'currentLocationId'
131
+ property :display_name, as: 'displayName'
132
+ property :host, as: 'host'
133
+ hash :labels, as: 'labels'
134
+ property :location_id, as: 'locationId'
135
+ property :memory_size_gb, as: 'memorySizeGb'
136
+ property :name, as: 'name'
137
+ property :port, as: 'port'
138
+ hash :redis_configs, as: 'redisConfigs'
139
+ property :redis_version, as: 'redisVersion'
140
+ property :reserved_ip_range, as: 'reservedIpRange'
141
+ property :state, as: 'state'
142
+ property :status_message, as: 'statusMessage'
143
+ property :tier, as: 'tier'
144
+ end
145
+ end
146
+
147
+ class ListInstancesResponse
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ collection :instances, as: 'instances', class: Google::Apis::RedisV1::Instance, decorator: Google::Apis::RedisV1::Instance::Representation
151
+
152
+ property :next_page_token, as: 'nextPageToken'
153
+ end
154
+ end
155
+
156
+ class ListLocationsResponse
157
+ # @private
158
+ class Representation < Google::Apis::Core::JsonRepresentation
159
+ collection :locations, as: 'locations', class: Google::Apis::RedisV1::Location, decorator: Google::Apis::RedisV1::Location::Representation
160
+
161
+ property :next_page_token, as: 'nextPageToken'
162
+ end
163
+ end
164
+
165
+ class ListOperationsResponse
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :next_page_token, as: 'nextPageToken'
169
+ collection :operations, as: 'operations', class: Google::Apis::RedisV1::Operation, decorator: Google::Apis::RedisV1::Operation::Representation
170
+
171
+ end
172
+ end
173
+
174
+ class Location
175
+ # @private
176
+ class Representation < Google::Apis::Core::JsonRepresentation
177
+ property :display_name, as: 'displayName'
178
+ hash :labels, as: 'labels'
179
+ property :location_id, as: 'locationId'
180
+ hash :metadata, as: 'metadata'
181
+ property :name, as: 'name'
182
+ end
183
+ end
184
+
185
+ class Operation
186
+ # @private
187
+ class Representation < Google::Apis::Core::JsonRepresentation
188
+ property :done, as: 'done'
189
+ property :error, as: 'error', class: Google::Apis::RedisV1::Status, decorator: Google::Apis::RedisV1::Status::Representation
190
+
191
+ hash :metadata, as: 'metadata'
192
+ property :name, as: 'name'
193
+ hash :response, as: 'response'
194
+ end
195
+ end
196
+
197
+ class Status
198
+ # @private
199
+ class Representation < Google::Apis::Core::JsonRepresentation
200
+ property :code, as: 'code'
201
+ collection :details, as: 'details'
202
+ property :message, as: 'message'
203
+ end
204
+ end
205
+ end
206
+ end
207
+ end
@@ -0,0 +1,498 @@
1
+ # Copyright 2015 Google Inc.
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module RedisV1
23
+ # Google Cloud Memorystore for Redis API
24
+ #
25
+ # The Google Cloud Memorystore for Redis API is used for creating and managing
26
+ # Redis instances on the Google Cloud Platform.
27
+ #
28
+ # @example
29
+ # require 'google/apis/redis_v1'
30
+ #
31
+ # Redis = Google::Apis::RedisV1 # Alias the module
32
+ # service = Redis::CloudRedisService.new
33
+ #
34
+ # @see https://cloud.google.com/memorystore/docs/redis/
35
+ class CloudRedisService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://redis.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Gets information about a location.
52
+ # @param [String] name
53
+ # Resource name for the location.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::RedisV1::Location] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::RedisV1::Location]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1/{+name}', options)
73
+ command.response_representation = Google::Apis::RedisV1::Location::Representation
74
+ command.response_class = Google::Apis::RedisV1::Location
75
+ command.params['name'] = name unless name.nil?
76
+ command.query['fields'] = fields unless fields.nil?
77
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
78
+ execute_or_queue_command(command, &block)
79
+ end
80
+
81
+ # Lists information about the supported locations for this service.
82
+ # @param [String] name
83
+ # The resource that owns the locations collection, if applicable.
84
+ # @param [String] filter
85
+ # The standard list filter.
86
+ # @param [Fixnum] page_size
87
+ # The standard list page size.
88
+ # @param [String] page_token
89
+ # The standard list page token.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::RedisV1::ListLocationsResponse] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::RedisV1::ListLocationsResponse]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
109
+ command.response_representation = Google::Apis::RedisV1::ListLocationsResponse::Representation
110
+ command.response_class = Google::Apis::RedisV1::ListLocationsResponse
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['filter'] = filter unless filter.nil?
113
+ command.query['pageSize'] = page_size unless page_size.nil?
114
+ command.query['pageToken'] = page_token unless page_token.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Creates a Redis instance based on the specified tier and memory size.
121
+ # By default, the instance is accessible from the project's
122
+ # [default network](/compute/docs/networks-and-firewalls#networks).
123
+ # The creation is executed asynchronously and callers may check the returned
124
+ # operation to track its progress. Once the operation is completed the Redis
125
+ # instance will be fully functional. Completed longrunning.Operation will
126
+ # contain the new instance object in the response field.
127
+ # The returned operation is automatically deleted after a few hours, so there
128
+ # is no need to call DeleteOperation.
129
+ # @param [String] parent
130
+ # Required. The resource name of the instance location using the form:
131
+ # `projects/`project_id`/locations/`location_id``
132
+ # where `location_id` refers to a GCP region
133
+ # @param [Google::Apis::RedisV1::Instance] instance_object
134
+ # @param [String] instance_id
135
+ # Required. The logical name of the Redis instance in the customer project
136
+ # with the following restrictions:
137
+ # * Must contain only lowercase letters, numbers, and hyphens.
138
+ # * Must start with a letter.
139
+ # * Must be between 1-40 characters.
140
+ # * Must end with a number or a letter.
141
+ # * Must be unique within the customer project / location
142
+ # @param [String] fields
143
+ # Selector specifying which fields to include in a partial response.
144
+ # @param [String] quota_user
145
+ # Available to use for quota purposes for server-side applications. Can be any
146
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
147
+ # @param [Google::Apis::RequestOptions] options
148
+ # Request-specific options
149
+ #
150
+ # @yield [result, err] Result & error if block supplied
151
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
152
+ # @yieldparam err [StandardError] error object if request failed
153
+ #
154
+ # @return [Google::Apis::RedisV1::Operation]
155
+ #
156
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
157
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
158
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
159
+ def create_project_location_instance(parent, instance_object = nil, instance_id: nil, fields: nil, quota_user: nil, options: nil, &block)
160
+ command = make_simple_command(:post, 'v1/{+parent}/instances', options)
161
+ command.request_representation = Google::Apis::RedisV1::Instance::Representation
162
+ command.request_object = instance_object
163
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
164
+ command.response_class = Google::Apis::RedisV1::Operation
165
+ command.params['parent'] = parent unless parent.nil?
166
+ command.query['instanceId'] = instance_id unless instance_id.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Deletes a specific Redis instance. Instance stops serving and data is
173
+ # deleted.
174
+ # @param [String] name
175
+ # Required. Redis instance resource name using the form:
176
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
177
+ # where `location_id` refers to a GCP region
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
180
+ # @param [String] quota_user
181
+ # Available to use for quota purposes for server-side applications. Can be any
182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::RedisV1::Operation]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
196
+ command = make_simple_command(:delete, 'v1/{+name}', options)
197
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
198
+ command.response_class = Google::Apis::RedisV1::Operation
199
+ command.params['name'] = name unless name.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Gets the details of a specific Redis instance.
206
+ # @param [String] name
207
+ # Required. Redis instance resource name using the form:
208
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
209
+ # where `location_id` refers to a GCP region
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::RedisV1::Instance] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::RedisV1::Instance]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
228
+ command = make_simple_command(:get, 'v1/{+name}', options)
229
+ command.response_representation = Google::Apis::RedisV1::Instance::Representation
230
+ command.response_class = Google::Apis::RedisV1::Instance
231
+ command.params['name'] = name unless name.nil?
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ execute_or_queue_command(command, &block)
235
+ end
236
+
237
+ # Lists all Redis instances owned by a project in either the specified
238
+ # location (region) or all locations.
239
+ # The location should have the following format:
240
+ # * `projects/`project_id`/locations/`location_id``
241
+ # If `location_id` is specified as `-` (wildcard), then all regions
242
+ # available to the project are queried, and the results are aggregated.
243
+ # @param [String] parent
244
+ # Required. The resource name of the instance location using the form:
245
+ # `projects/`project_id`/locations/`location_id``
246
+ # where `location_id` refers to a GCP region
247
+ # @param [Fixnum] page_size
248
+ # The maximum number of items to return.
249
+ # If not specified, a default value of 1000 will be used by the service.
250
+ # Regardless of the page_size value, the response may include a partial list
251
+ # and a caller should only rely on response's
252
+ # next_page_token
253
+ # to determine if there are more instances left to be queried.
254
+ # @param [String] page_token
255
+ # The next_page_token value returned from a previous List request,
256
+ # if any.
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # @param [Google::Apis::RequestOptions] options
263
+ # Request-specific options
264
+ #
265
+ # @yield [result, err] Result & error if block supplied
266
+ # @yieldparam result [Google::Apis::RedisV1::ListInstancesResponse] parsed result object
267
+ # @yieldparam err [StandardError] error object if request failed
268
+ #
269
+ # @return [Google::Apis::RedisV1::ListInstancesResponse]
270
+ #
271
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
272
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
273
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
274
+ def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
275
+ command = make_simple_command(:get, 'v1/{+parent}/instances', options)
276
+ command.response_representation = Google::Apis::RedisV1::ListInstancesResponse::Representation
277
+ command.response_class = Google::Apis::RedisV1::ListInstancesResponse
278
+ command.params['parent'] = parent unless parent.nil?
279
+ command.query['pageSize'] = page_size unless page_size.nil?
280
+ command.query['pageToken'] = page_token unless page_token.nil?
281
+ command.query['fields'] = fields unless fields.nil?
282
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
283
+ execute_or_queue_command(command, &block)
284
+ end
285
+
286
+ # Updates the metadata and configuration of a specific Redis instance.
287
+ # Completed longrunning.Operation will contain the new instance object
288
+ # in the response field. The returned operation is automatically deleted
289
+ # after a few hours, so there is no need to call DeleteOperation.
290
+ # @param [String] name
291
+ # Required. Unique name of the resource in this scope including project and
292
+ # location using the form:
293
+ # `projects/`project_id`/locations/`location_id`/instances/`instance_id``
294
+ # Note: Redis instances are managed and addressed at regional level so
295
+ # location_id here refers to a GCP region; however, users may choose which
296
+ # specific zone (or collection of zones for cross-zone instances) an instance
297
+ # should be provisioned in. Refer to [location_id] and
298
+ # [alternative_location_id] fields for more details.
299
+ # @param [Google::Apis::RedisV1::Instance] instance_object
300
+ # @param [String] update_mask
301
+ # Required. Mask of fields to update. At least one path must be supplied in
302
+ # this field. The elements of the repeated paths field may only include these
303
+ # fields from Instance:
304
+ # * `displayName`
305
+ # * `labels`
306
+ # * `memorySizeGb`
307
+ # * `redisConfig`
308
+ # @param [String] fields
309
+ # Selector specifying which fields to include in a partial response.
310
+ # @param [String] quota_user
311
+ # Available to use for quota purposes for server-side applications. Can be any
312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
313
+ # @param [Google::Apis::RequestOptions] options
314
+ # Request-specific options
315
+ #
316
+ # @yield [result, err] Result & error if block supplied
317
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
318
+ # @yieldparam err [StandardError] error object if request failed
319
+ #
320
+ # @return [Google::Apis::RedisV1::Operation]
321
+ #
322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
325
+ def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
326
+ command = make_simple_command(:patch, 'v1/{+name}', options)
327
+ command.request_representation = Google::Apis::RedisV1::Instance::Representation
328
+ command.request_object = instance_object
329
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
330
+ command.response_class = Google::Apis::RedisV1::Operation
331
+ command.params['name'] = name unless name.nil?
332
+ command.query['updateMask'] = update_mask unless update_mask.nil?
333
+ command.query['fields'] = fields unless fields.nil?
334
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
335
+ execute_or_queue_command(command, &block)
336
+ end
337
+
338
+ # Starts asynchronous cancellation on a long-running operation. The server
339
+ # makes a best effort to cancel the operation, but success is not
340
+ # guaranteed. If the server doesn't support this method, it returns
341
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
342
+ # Operations.GetOperation or
343
+ # other methods to check whether the cancellation succeeded or whether the
344
+ # operation completed despite cancellation. On successful cancellation,
345
+ # the operation is not deleted; instead, it becomes an operation with
346
+ # an Operation.error value with a google.rpc.Status.code of 1,
347
+ # corresponding to `Code.CANCELLED`.
348
+ # @param [String] name
349
+ # The name of the operation resource to be cancelled.
350
+ # @param [String] fields
351
+ # Selector specifying which fields to include in a partial response.
352
+ # @param [String] quota_user
353
+ # Available to use for quota purposes for server-side applications. Can be any
354
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
355
+ # @param [Google::Apis::RequestOptions] options
356
+ # Request-specific options
357
+ #
358
+ # @yield [result, err] Result & error if block supplied
359
+ # @yieldparam result [Google::Apis::RedisV1::Empty] parsed result object
360
+ # @yieldparam err [StandardError] error object if request failed
361
+ #
362
+ # @return [Google::Apis::RedisV1::Empty]
363
+ #
364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
367
+ def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
368
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
369
+ command.response_representation = Google::Apis::RedisV1::Empty::Representation
370
+ command.response_class = Google::Apis::RedisV1::Empty
371
+ command.params['name'] = name unless name.nil?
372
+ command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
+ execute_or_queue_command(command, &block)
375
+ end
376
+
377
+ # Deletes a long-running operation. This method indicates that the client is
378
+ # no longer interested in the operation result. It does not cancel the
379
+ # operation. If the server doesn't support this method, it returns
380
+ # `google.rpc.Code.UNIMPLEMENTED`.
381
+ # @param [String] name
382
+ # The name of the operation resource to be deleted.
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
385
+ # @param [String] quota_user
386
+ # Available to use for quota purposes for server-side applications. Can be any
387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
388
+ # @param [Google::Apis::RequestOptions] options
389
+ # Request-specific options
390
+ #
391
+ # @yield [result, err] Result & error if block supplied
392
+ # @yieldparam result [Google::Apis::RedisV1::Empty] parsed result object
393
+ # @yieldparam err [StandardError] error object if request failed
394
+ #
395
+ # @return [Google::Apis::RedisV1::Empty]
396
+ #
397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
400
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
401
+ command = make_simple_command(:delete, 'v1/{+name}', options)
402
+ command.response_representation = Google::Apis::RedisV1::Empty::Representation
403
+ command.response_class = Google::Apis::RedisV1::Empty
404
+ command.params['name'] = name unless name.nil?
405
+ command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
407
+ execute_or_queue_command(command, &block)
408
+ end
409
+
410
+ # Gets the latest state of a long-running operation. Clients can use this
411
+ # method to poll the operation result at intervals as recommended by the API
412
+ # service.
413
+ # @param [String] name
414
+ # The name of the operation resource.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::RedisV1::Operation] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::RedisV1::Operation]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:get, 'v1/{+name}', options)
434
+ command.response_representation = Google::Apis::RedisV1::Operation::Representation
435
+ command.response_class = Google::Apis::RedisV1::Operation
436
+ command.params['name'] = name unless name.nil?
437
+ command.query['fields'] = fields unless fields.nil?
438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ execute_or_queue_command(command, &block)
440
+ end
441
+
442
+ # Lists operations that match the specified filter in the request. If the
443
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
444
+ # NOTE: the `name` binding allows API services to override the binding
445
+ # to use different resource name schemes, such as `users/*/operations`. To
446
+ # override the binding, API services can add a binding such as
447
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
448
+ # For backwards compatibility, the default name includes the operations
449
+ # collection id, however overriding users must ensure the name binding
450
+ # is the parent resource, without the operations collection id.
451
+ # @param [String] name
452
+ # The name of the operation's parent resource.
453
+ # @param [String] filter
454
+ # The standard list filter.
455
+ # @param [Fixnum] page_size
456
+ # The standard list page size.
457
+ # @param [String] page_token
458
+ # The standard list page token.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
+ # @param [String] quota_user
462
+ # Available to use for quota purposes for server-side applications. Can be any
463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
464
+ # @param [Google::Apis::RequestOptions] options
465
+ # Request-specific options
466
+ #
467
+ # @yield [result, err] Result & error if block supplied
468
+ # @yieldparam result [Google::Apis::RedisV1::ListOperationsResponse] parsed result object
469
+ # @yieldparam err [StandardError] error object if request failed
470
+ #
471
+ # @return [Google::Apis::RedisV1::ListOperationsResponse]
472
+ #
473
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
476
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
477
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
478
+ command.response_representation = Google::Apis::RedisV1::ListOperationsResponse::Representation
479
+ command.response_class = Google::Apis::RedisV1::ListOperationsResponse
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['filter'] = filter unless filter.nil?
482
+ command.query['pageSize'] = page_size unless page_size.nil?
483
+ command.query['pageToken'] = page_token unless page_token.nil?
484
+ command.query['fields'] = fields unless fields.nil?
485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
486
+ execute_or_queue_command(command, &block)
487
+ end
488
+
489
+ protected
490
+
491
+ def apply_command_defaults(command)
492
+ command.query['key'] = key unless key.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ end
495
+ end
496
+ end
497
+ end
498
+ end