google-api-client 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -18
  5. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  6. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -6
  7. data/generated/google/apis/adexperiencereport_v1/representations.rb +0 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +46 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +19 -2
  11. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  12. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +14 -12
  13. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +7 -5
  14. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  15. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -9
  16. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -2
  19. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  20. data/generated/google/apis/cloudbuild_v1/classes.rb +3 -0
  21. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  22. data/generated/google/apis/container_v1.rb +1 -1
  23. data/generated/google/apis/container_v1/classes.rb +93 -0
  24. data/generated/google/apis/container_v1/representations.rb +58 -0
  25. data/generated/google/apis/container_v1/service.rb +42 -0
  26. data/generated/google/apis/container_v1beta1.rb +1 -1
  27. data/generated/google/apis/container_v1beta1/classes.rb +119 -0
  28. data/generated/google/apis/container_v1beta1/representations.rb +62 -0
  29. data/generated/google/apis/container_v1beta1/service.rb +77 -0
  30. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  31. data/generated/google/apis/dataproc_v1beta2/classes.rb +184 -0
  32. data/generated/google/apis/dataproc_v1beta2/representations.rb +70 -0
  33. data/generated/google/apis/dataproc_v1beta2/service.rb +105 -0
  34. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  35. data/generated/google/apis/deploymentmanager_alpha/classes.rb +63 -64
  36. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  37. data/generated/google/apis/deploymentmanager_v2/classes.rb +51 -50
  38. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
  39. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  40. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +62 -62
  41. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  42. data/generated/google/apis/dlp_v2beta1/classes.rb +23 -17
  43. data/generated/google/apis/dlp_v2beta1/service.rb +10 -10
  44. data/generated/google/apis/dns_v1/service.rb +1 -1
  45. data/generated/google/apis/genomics_v1.rb +1 -1
  46. data/generated/google/apis/genomics_v1/classes.rb +1 -1
  47. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  48. data/generated/google/apis/genomics_v1alpha2/classes.rb +1 -1
  49. data/generated/google/apis/gmail_v1.rb +1 -1
  50. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  51. data/generated/google/apis/oslogin_v1alpha.rb +7 -1
  52. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -1
  53. data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -2
  54. data/generated/google/apis/oslogin_v1beta.rb +43 -0
  55. data/generated/google/apis/oslogin_v1beta/classes.rb +202 -0
  56. data/generated/google/apis/oslogin_v1beta/representations.rb +105 -0
  57. data/generated/google/apis/oslogin_v1beta/service.rb +228 -0
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/classes.rb +906 -0
  60. data/generated/google/apis/sheets_v4/representations.rb +389 -0
  61. data/generated/google/apis/sheets_v4/service.rb +230 -0
  62. data/generated/google/apis/spanner_v1.rb +1 -1
  63. data/generated/google/apis/spanner_v1/classes.rb +73 -2
  64. data/generated/google/apis/spanner_v1/representations.rb +32 -0
  65. data/generated/google/apis/spanner_v1/service.rb +52 -1
  66. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  67. data/generated/google/apis/storage_v1.rb +1 -1
  68. data/generated/google/apis/storage_v1/service.rb +15 -13
  69. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  70. data/generated/google/apis/storagetransfer_v1/classes.rb +0 -1
  71. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  72. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  73. data/generated/google/apis/tagmanager_v2.rb +1 -1
  74. data/generated/google/apis/tagmanager_v2/classes.rb +181 -0
  75. data/generated/google/apis/tagmanager_v2/representations.rb +75 -0
  76. data/generated/google/apis/testing_v1.rb +38 -0
  77. data/generated/google/apis/testing_v1/classes.rb +1616 -0
  78. data/generated/google/apis/testing_v1/representations.rb +688 -0
  79. data/generated/google/apis/testing_v1/service.rb +221 -0
  80. data/generated/google/apis/videointelligence_v1beta1.rb +3 -3
  81. data/generated/google/apis/videointelligence_v1beta1/service.rb +2 -2
  82. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  83. data/generated/google/apis/youtube_v3.rb +1 -1
  84. data/generated/google/apis/youtube_v3/classes.rb +9 -0
  85. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  86. data/generated/google/apis/youtube_v3/service.rb +1 -1
  87. data/lib/google/apis/version.rb +1 -1
  88. metadata +11 -3
@@ -0,0 +1,105 @@
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 OsloginV1beta
24
+
25
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ImportSshPublicKeyResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class LoginProfile
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class PosixAccount
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class SshPublicKey
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Empty
56
+ # @private
57
+ class Representation < Google::Apis::Core::JsonRepresentation
58
+ end
59
+ end
60
+
61
+ class ImportSshPublicKeyResponse
62
+ # @private
63
+ class Representation < Google::Apis::Core::JsonRepresentation
64
+ property :login_profile, as: 'loginProfile', class: Google::Apis::OsloginV1beta::LoginProfile, decorator: Google::Apis::OsloginV1beta::LoginProfile::Representation
65
+
66
+ end
67
+ end
68
+
69
+ class LoginProfile
70
+ # @private
71
+ class Representation < Google::Apis::Core::JsonRepresentation
72
+ property :name, as: 'name'
73
+ collection :posix_accounts, as: 'posixAccounts', class: Google::Apis::OsloginV1beta::PosixAccount, decorator: Google::Apis::OsloginV1beta::PosixAccount::Representation
74
+
75
+ hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1beta::SshPublicKey, decorator: Google::Apis::OsloginV1beta::SshPublicKey::Representation
76
+
77
+ property :suspended, as: 'suspended'
78
+ end
79
+ end
80
+
81
+ class PosixAccount
82
+ # @private
83
+ class Representation < Google::Apis::Core::JsonRepresentation
84
+ property :gecos, as: 'gecos'
85
+ property :gid, :numeric_string => true, as: 'gid'
86
+ property :home_directory, as: 'homeDirectory'
87
+ property :primary, as: 'primary'
88
+ property :shell, as: 'shell'
89
+ property :system_id, as: 'systemId'
90
+ property :uid, :numeric_string => true, as: 'uid'
91
+ property :username, as: 'username'
92
+ end
93
+ end
94
+
95
+ class SshPublicKey
96
+ # @private
97
+ class Representation < Google::Apis::Core::JsonRepresentation
98
+ property :expiration_time_usec, :numeric_string => true, as: 'expirationTimeUsec'
99
+ property :fingerprint, as: 'fingerprint'
100
+ property :key, as: 'key'
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,228 @@
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 OsloginV1beta
23
+ # Google Cloud OS Login API
24
+ #
25
+ # Manages OS login configuration for Directory API users.
26
+ #
27
+ # @example
28
+ # require 'google/apis/oslogin_v1beta'
29
+ #
30
+ # Oslogin = Google::Apis::OsloginV1beta # Alias the module
31
+ # service = Oslogin::CloudOSLoginService.new
32
+ #
33
+ # @see https://cloud.google.com/compute/docs/oslogin/rest/
34
+ class CloudOSLoginService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://oslogin.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Retrieves the profile information used for logging in to a virtual machine
51
+ # on Google Compute Engine.
52
+ # @param [String] name
53
+ # The unique ID for the user in format `users/`user``.
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::OsloginV1beta::LoginProfile] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::OsloginV1beta::LoginProfile]
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_user_login_profile(name, fields: nil, quota_user: nil, options: nil, &block)
72
+ command = make_simple_command(:get, 'v1beta/{+name}/loginProfile', options)
73
+ command.response_representation = Google::Apis::OsloginV1beta::LoginProfile::Representation
74
+ command.response_class = Google::Apis::OsloginV1beta::LoginProfile
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
+ # Adds an SSH public key and returns the profile information. Default POSIX
82
+ # account information is set when no username and UID exist as part of the
83
+ # login profile.
84
+ # @param [String] parent
85
+ # The unique ID for the user in format `users/`user``.
86
+ # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object
87
+ # @param [String] fields
88
+ # Selector specifying which fields to include in a partial response.
89
+ # @param [String] quota_user
90
+ # Available to use for quota purposes for server-side applications. Can be any
91
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def import_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block)
105
+ command = make_simple_command(:post, 'v1beta/{+parent}:importSshPublicKey', options)
106
+ command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation
107
+ command.request_object = ssh_public_key_object
108
+ command.response_representation = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse::Representation
109
+ command.response_class = Google::Apis::OsloginV1beta::ImportSshPublicKeyResponse
110
+ command.params['parent'] = parent unless parent.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Deletes an SSH public key.
117
+ # @param [String] name
118
+ # The fingerprint of the public key to update. Public keys are identified by
119
+ # their SHA-256 fingerprint. The fingerprint of the public key is in format
120
+ # `users/`user`/sshPublicKeys/`fingerprint``.
121
+ # @param [String] fields
122
+ # Selector specifying which fields to include in a partial response.
123
+ # @param [String] quota_user
124
+ # Available to use for quota purposes for server-side applications. Can be any
125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::OsloginV1beta::Empty] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::OsloginV1beta::Empty]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block)
139
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
140
+ command.response_representation = Google::Apis::OsloginV1beta::Empty::Representation
141
+ command.response_class = Google::Apis::OsloginV1beta::Empty
142
+ command.params['name'] = name unless name.nil?
143
+ command.query['fields'] = fields unless fields.nil?
144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
145
+ execute_or_queue_command(command, &block)
146
+ end
147
+
148
+ # Retrieves an SSH public key.
149
+ # @param [String] name
150
+ # The fingerprint of the public key to retrieve. Public keys are identified
151
+ # by their SHA-256 fingerprint. The fingerprint of the public key is in
152
+ # format `users/`user`/sshPublicKeys/`fingerprint``.
153
+ # @param [String] fields
154
+ # Selector specifying which fields to include in a partial response.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::OsloginV1beta::SshPublicKey] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::OsloginV1beta::SshPublicKey]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def get_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
172
+ command.response_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation
173
+ command.response_class = Google::Apis::OsloginV1beta::SshPublicKey
174
+ command.params['name'] = name unless name.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Updates an SSH public key and returns the profile information. This method
181
+ # supports patch semantics.
182
+ # @param [String] name
183
+ # The fingerprint of the public key to update. Public keys are identified by
184
+ # their SHA-256 fingerprint. The fingerprint of the public key is in format
185
+ # `users/`user`/sshPublicKeys/`fingerprint``.
186
+ # @param [Google::Apis::OsloginV1beta::SshPublicKey] ssh_public_key_object
187
+ # @param [String] update_mask
188
+ # Mask to control which fields get updated. Updates all if not present.
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::OsloginV1beta::SshPublicKey] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::OsloginV1beta::SshPublicKey]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:patch, 'v1beta/{+name}', options)
208
+ command.request_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation
209
+ command.request_object = ssh_public_key_object
210
+ command.response_representation = Google::Apis::OsloginV1beta::SshPublicKey::Representation
211
+ command.response_class = Google::Apis::OsloginV1beta::SshPublicKey
212
+ command.params['name'] = name unless name.nil?
213
+ command.query['updateMask'] = update_mask unless update_mask.nil?
214
+ command.query['fields'] = fields unless fields.nil?
215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
216
+ execute_or_queue_command(command, &block)
217
+ end
218
+
219
+ protected
220
+
221
+ def apply_command_defaults(command)
222
+ command.query['key'] = key unless key.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ end
225
+ end
226
+ end
227
+ end
228
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20170817'
28
+ REVISION = '20170915'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -1224,6 +1224,55 @@ module Google
1224
1224
  end
1225
1225
  end
1226
1226
 
1227
+ # The request for clearing more than one range selected by a
1228
+ # DataFilter in a spreadsheet.
1229
+ class BatchClearValuesByDataFilterRequest
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # The DataFilters used to determine which ranges to clear.
1233
+ # Corresponds to the JSON property `dataFilters`
1234
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
1235
+ attr_accessor :data_filters
1236
+
1237
+ def initialize(**args)
1238
+ update!(**args)
1239
+ end
1240
+
1241
+ # Update properties of this object
1242
+ def update!(**args)
1243
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
1244
+ end
1245
+ end
1246
+
1247
+ # The response when clearing a range of values selected with
1248
+ # DataFilters in a spreadsheet.
1249
+ class BatchClearValuesByDataFilterResponse
1250
+ include Google::Apis::Core::Hashable
1251
+
1252
+ # The ranges that were cleared, in A1 notation.
1253
+ # (If the requests were for an unbounded range or a ranger larger
1254
+ # than the bounds of the sheet, this will be the actual ranges
1255
+ # that were cleared, bounded to the sheet's limits.)
1256
+ # Corresponds to the JSON property `clearedRanges`
1257
+ # @return [Array<String>]
1258
+ attr_accessor :cleared_ranges
1259
+
1260
+ # The spreadsheet the updates were applied to.
1261
+ # Corresponds to the JSON property `spreadsheetId`
1262
+ # @return [String]
1263
+ attr_accessor :spreadsheet_id
1264
+
1265
+ def initialize(**args)
1266
+ update!(**args)
1267
+ end
1268
+
1269
+ # Update properties of this object
1270
+ def update!(**args)
1271
+ @cleared_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges)
1272
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1273
+ end
1274
+ end
1275
+
1227
1276
  # The request for clearing more than one range of values in a spreadsheet.
1228
1277
  class BatchClearValuesRequest
1229
1278
  include Google::Apis::Core::Hashable
@@ -1271,6 +1320,81 @@ module Google
1271
1320
  end
1272
1321
  end
1273
1322
 
1323
+ # The request for retrieving a range of values in a spreadsheet selected by a
1324
+ # set of DataFilters.
1325
+ class BatchGetValuesByDataFilterRequest
1326
+ include Google::Apis::Core::Hashable
1327
+
1328
+ # The data filters used to match the ranges of values to retrieve. Ranges
1329
+ # that match any of the specified data filters will be included in the
1330
+ # response.
1331
+ # Corresponds to the JSON property `dataFilters`
1332
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
1333
+ attr_accessor :data_filters
1334
+
1335
+ # How dates, times, and durations should be represented in the output.
1336
+ # This is ignored if value_render_option is
1337
+ # FORMATTED_VALUE.
1338
+ # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
1339
+ # Corresponds to the JSON property `dateTimeRenderOption`
1340
+ # @return [String]
1341
+ attr_accessor :date_time_render_option
1342
+
1343
+ # The major dimension that results should use.
1344
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
1345
+ # then a request that selects that range and sets `majorDimension=ROWS` will
1346
+ # return `[[1,2],[3,4]]`,
1347
+ # whereas a request that sets `majorDimension=COLUMNS` will return
1348
+ # `[[1,3],[2,4]]`.
1349
+ # Corresponds to the JSON property `majorDimension`
1350
+ # @return [String]
1351
+ attr_accessor :major_dimension
1352
+
1353
+ # How values should be represented in the output.
1354
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
1355
+ # Corresponds to the JSON property `valueRenderOption`
1356
+ # @return [String]
1357
+ attr_accessor :value_render_option
1358
+
1359
+ def initialize(**args)
1360
+ update!(**args)
1361
+ end
1362
+
1363
+ # Update properties of this object
1364
+ def update!(**args)
1365
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
1366
+ @date_time_render_option = args[:date_time_render_option] if args.key?(:date_time_render_option)
1367
+ @major_dimension = args[:major_dimension] if args.key?(:major_dimension)
1368
+ @value_render_option = args[:value_render_option] if args.key?(:value_render_option)
1369
+ end
1370
+ end
1371
+
1372
+ # The response when retrieving more than one range of values in a spreadsheet
1373
+ # selected by DataFilters.
1374
+ class BatchGetValuesByDataFilterResponse
1375
+ include Google::Apis::Core::Hashable
1376
+
1377
+ # The ID of the spreadsheet the data was retrieved from.
1378
+ # Corresponds to the JSON property `spreadsheetId`
1379
+ # @return [String]
1380
+ attr_accessor :spreadsheet_id
1381
+
1382
+ # The requested values with the list of data filters that matched them.
1383
+ # Corresponds to the JSON property `valueRanges`
1384
+ # @return [Array<Google::Apis::SheetsV4::MatchedValueRange>]
1385
+ attr_accessor :value_ranges
1386
+
1387
+ def initialize(**args)
1388
+ update!(**args)
1389
+ end
1390
+
1391
+ # Update properties of this object
1392
+ def update!(**args)
1393
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1394
+ @value_ranges = args[:value_ranges] if args.key?(:value_ranges)
1395
+ end
1396
+ end
1397
+
1274
1398
  # The response when retrieving more than one range of values in a spreadsheet.
1275
1399
  class BatchGetValuesResponse
1276
1400
  include Google::Apis::Core::Hashable
@@ -1374,6 +1498,114 @@ module Google
1374
1498
  end
1375
1499
  end
1376
1500
 
1501
+ # The request for updating more than one range of values in a spreadsheet.
1502
+ class BatchUpdateValuesByDataFilterRequest
1503
+ include Google::Apis::Core::Hashable
1504
+
1505
+ # The new values to apply to the spreadsheet. If more than one range is
1506
+ # matched by the specified DataFilter the specified values will be
1507
+ # applied to all of of those ranges.
1508
+ # Corresponds to the JSON property `data`
1509
+ # @return [Array<Google::Apis::SheetsV4::DataFilterValueRange>]
1510
+ attr_accessor :data
1511
+
1512
+ # Determines if the update response should include the values
1513
+ # of the cells that were updated. By default, responses
1514
+ # do not include the updated values. The `updatedData` field within
1515
+ # each of the BatchUpdateValuesResponse.responses will contain
1516
+ # the updated values. If the range to write was larger than than the range
1517
+ # actually written, the response will include all values in the requested
1518
+ # range (excluding trailing empty rows and columns).
1519
+ # Corresponds to the JSON property `includeValuesInResponse`
1520
+ # @return [Boolean]
1521
+ attr_accessor :include_values_in_response
1522
+ alias_method :include_values_in_response?, :include_values_in_response
1523
+
1524
+ # Determines how dates, times, and durations in the response should be
1525
+ # rendered. This is ignored if response_value_render_option is
1526
+ # FORMATTED_VALUE.
1527
+ # The default dateTime render option is
1528
+ # DateTimeRenderOption.SERIAL_NUMBER.
1529
+ # Corresponds to the JSON property `responseDateTimeRenderOption`
1530
+ # @return [String]
1531
+ attr_accessor :response_date_time_render_option
1532
+
1533
+ # Determines how values in the response should be rendered.
1534
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
1535
+ # Corresponds to the JSON property `responseValueRenderOption`
1536
+ # @return [String]
1537
+ attr_accessor :response_value_render_option
1538
+
1539
+ # How the input data should be interpreted.
1540
+ # Corresponds to the JSON property `valueInputOption`
1541
+ # @return [String]
1542
+ attr_accessor :value_input_option
1543
+
1544
+ def initialize(**args)
1545
+ update!(**args)
1546
+ end
1547
+
1548
+ # Update properties of this object
1549
+ def update!(**args)
1550
+ @data = args[:data] if args.key?(:data)
1551
+ @include_values_in_response = args[:include_values_in_response] if args.key?(:include_values_in_response)
1552
+ @response_date_time_render_option = args[:response_date_time_render_option] if args.key?(:response_date_time_render_option)
1553
+ @response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option)
1554
+ @value_input_option = args[:value_input_option] if args.key?(:value_input_option)
1555
+ end
1556
+ end
1557
+
1558
+ # The response when updating a range of values in a spreadsheet.
1559
+ class BatchUpdateValuesByDataFilterResponse
1560
+ include Google::Apis::Core::Hashable
1561
+
1562
+ # The response for each range updated.
1563
+ # Corresponds to the JSON property `responses`
1564
+ # @return [Array<Google::Apis::SheetsV4::UpdateValuesByDataFilterResponse>]
1565
+ attr_accessor :responses
1566
+
1567
+ # The spreadsheet the updates were applied to.
1568
+ # Corresponds to the JSON property `spreadsheetId`
1569
+ # @return [String]
1570
+ attr_accessor :spreadsheet_id
1571
+
1572
+ # The total number of cells updated.
1573
+ # Corresponds to the JSON property `totalUpdatedCells`
1574
+ # @return [Fixnum]
1575
+ attr_accessor :total_updated_cells
1576
+
1577
+ # The total number of columns where at least one cell in the column was
1578
+ # updated.
1579
+ # Corresponds to the JSON property `totalUpdatedColumns`
1580
+ # @return [Fixnum]
1581
+ attr_accessor :total_updated_columns
1582
+
1583
+ # The total number of rows where at least one cell in the row was updated.
1584
+ # Corresponds to the JSON property `totalUpdatedRows`
1585
+ # @return [Fixnum]
1586
+ attr_accessor :total_updated_rows
1587
+
1588
+ # The total number of sheets where at least one cell in the sheet was
1589
+ # updated.
1590
+ # Corresponds to the JSON property `totalUpdatedSheets`
1591
+ # @return [Fixnum]
1592
+ attr_accessor :total_updated_sheets
1593
+
1594
+ def initialize(**args)
1595
+ update!(**args)
1596
+ end
1597
+
1598
+ # Update properties of this object
1599
+ def update!(**args)
1600
+ @responses = args[:responses] if args.key?(:responses)
1601
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1602
+ @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
1603
+ @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
1604
+ @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows)
1605
+ @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
1606
+ end
1607
+ end
1608
+
1377
1609
  # The request for updating more than one range of values in a spreadsheet.
1378
1610
  class BatchUpdateValuesRequest
1379
1611
  include Google::Apis::Core::Hashable
@@ -2894,6 +3126,58 @@ module Google
2894
3126
  end
2895
3127
  end
2896
3128
 
3129
+ # A request to create developer metadata.
3130
+ class CreateDeveloperMetadataRequest
3131
+ include Google::Apis::Core::Hashable
3132
+
3133
+ # Developer metadata associated with a location or object in a spreadsheet.
3134
+ # Developer metadata may be used to associate arbitrary data with various
3135
+ # parts of a spreadsheet and will remain associated at those locations as they
3136
+ # move around and the spreadsheet is edited. For example, if developer
3137
+ # metadata is associated with row 5 and another row is then subsequently
3138
+ # inserted above row 5, that original metadata will still be associated with
3139
+ # the row it was first associated with (what is now row 6). If the associated
3140
+ # object is deleted its metadata will be deleted too.
3141
+ # Corresponds to the JSON property `developerMetadata`
3142
+ # @return [Google::Apis::SheetsV4::DeveloperMetadata]
3143
+ attr_accessor :developer_metadata
3144
+
3145
+ def initialize(**args)
3146
+ update!(**args)
3147
+ end
3148
+
3149
+ # Update properties of this object
3150
+ def update!(**args)
3151
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
3152
+ end
3153
+ end
3154
+
3155
+ # The response from creating developer metadata.
3156
+ class CreateDeveloperMetadataResponse
3157
+ include Google::Apis::Core::Hashable
3158
+
3159
+ # Developer metadata associated with a location or object in a spreadsheet.
3160
+ # Developer metadata may be used to associate arbitrary data with various
3161
+ # parts of a spreadsheet and will remain associated at those locations as they
3162
+ # move around and the spreadsheet is edited. For example, if developer
3163
+ # metadata is associated with row 5 and another row is then subsequently
3164
+ # inserted above row 5, that original metadata will still be associated with
3165
+ # the row it was first associated with (what is now row 6). If the associated
3166
+ # object is deleted its metadata will be deleted too.
3167
+ # Corresponds to the JSON property `developerMetadata`
3168
+ # @return [Google::Apis::SheetsV4::DeveloperMetadata]
3169
+ attr_accessor :developer_metadata
3170
+
3171
+ def initialize(**args)
3172
+ update!(**args)
3173
+ end
3174
+
3175
+ # Update properties of this object
3176
+ def update!(**args)
3177
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
3178
+ end
3179
+ end
3180
+
2897
3181
  # Moves data from the source to the destination.
2898
3182
  class CutPasteRequest
2899
3183
  include Google::Apis::Core::Hashable
@@ -2948,6 +3232,102 @@ module Google
2948
3232
  end
2949
3233
  end
2950
3234
 
3235
+ # Filter that describes what data should be selected or returned from a
3236
+ # request.
3237
+ class DataFilter
3238
+ include Google::Apis::Core::Hashable
3239
+
3240
+ # Selects data that matches the specified A1 range.
3241
+ # Corresponds to the JSON property `a1Range`
3242
+ # @return [String]
3243
+ attr_accessor :a1_range
3244
+
3245
+ # Selects DeveloperMetadata that matches all of the specified fields. For
3246
+ # example, if only a metadata ID is specified this will consider the
3247
+ # DeveloperMetadata with that particular unique ID. If a metadata key is
3248
+ # specified, all developer metadata with that key will be considered. If a
3249
+ # key, visibility, and location type are all specified, then all
3250
+ # developer metadata with that key, visibility, and associated with a
3251
+ # location of that type will be considered. In general, this
3252
+ # selects all DeveloperMetadata that matches the intersection of all the
3253
+ # specified fields; any field or combination of fields may be specified.
3254
+ # Corresponds to the JSON property `developerMetadataLookup`
3255
+ # @return [Google::Apis::SheetsV4::DeveloperMetadataLookup]
3256
+ attr_accessor :developer_metadata_lookup
3257
+
3258
+ # A range on a sheet.
3259
+ # All indexes are zero-based.
3260
+ # Indexes are half open, e.g the start index is inclusive
3261
+ # and the end index is exclusive -- [start_index, end_index).
3262
+ # Missing indexes indicate the range is unbounded on that side.
3263
+ # For example, if `"Sheet1"` is sheet ID 0, then:
3264
+ # `Sheet1!A1:A1 == sheet_id: 0,
3265
+ # start_row_index: 0, end_row_index: 1,
3266
+ # start_column_index: 0, end_column_index: 1`
3267
+ # `Sheet1!A3:B4 == sheet_id: 0,
3268
+ # start_row_index: 2, end_row_index: 4,
3269
+ # start_column_index: 0, end_column_index: 2`
3270
+ # `Sheet1!A:B == sheet_id: 0,
3271
+ # start_column_index: 0, end_column_index: 2`
3272
+ # `Sheet1!A5:B == sheet_id: 0,
3273
+ # start_row_index: 4,
3274
+ # start_column_index: 0, end_column_index: 2`
3275
+ # `Sheet1 == sheet_id:0`
3276
+ # The start index must always be less than or equal to the end index.
3277
+ # If the start index equals the end index, then the range is empty.
3278
+ # Empty ranges are typically not meaningful and are usually rendered in the
3279
+ # UI as `#REF!`.
3280
+ # Corresponds to the JSON property `gridRange`
3281
+ # @return [Google::Apis::SheetsV4::GridRange]
3282
+ attr_accessor :grid_range
3283
+
3284
+ def initialize(**args)
3285
+ update!(**args)
3286
+ end
3287
+
3288
+ # Update properties of this object
3289
+ def update!(**args)
3290
+ @a1_range = args[:a1_range] if args.key?(:a1_range)
3291
+ @developer_metadata_lookup = args[:developer_metadata_lookup] if args.key?(:developer_metadata_lookup)
3292
+ @grid_range = args[:grid_range] if args.key?(:grid_range)
3293
+ end
3294
+ end
3295
+
3296
+ # A range of values whose location is specified by a DataFilter.
3297
+ class DataFilterValueRange
3298
+ include Google::Apis::Core::Hashable
3299
+
3300
+ # Filter that describes what data should be selected or returned from a
3301
+ # request.
3302
+ # Corresponds to the JSON property `dataFilter`
3303
+ # @return [Google::Apis::SheetsV4::DataFilter]
3304
+ attr_accessor :data_filter
3305
+
3306
+ # The major dimension of the values.
3307
+ # Corresponds to the JSON property `majorDimension`
3308
+ # @return [String]
3309
+ attr_accessor :major_dimension
3310
+
3311
+ # The data to be written. If the provided values exceed any of the ranges
3312
+ # matched by the data filter then the request will fail. If the provided
3313
+ # values are less than the matched ranges only the specified values will be
3314
+ # written, existing values in the matched ranges will remain unaffected.
3315
+ # Corresponds to the JSON property `values`
3316
+ # @return [Array<Array<Object>>]
3317
+ attr_accessor :values
3318
+
3319
+ def initialize(**args)
3320
+ update!(**args)
3321
+ end
3322
+
3323
+ # Update properties of this object
3324
+ def update!(**args)
3325
+ @data_filter = args[:data_filter] if args.key?(:data_filter)
3326
+ @major_dimension = args[:major_dimension] if args.key?(:major_dimension)
3327
+ @values = args[:values] if args.key?(:values)
3328
+ end
3329
+ end
3330
+
2951
3331
  # A data validation rule.
2952
3332
  class DataValidationRule
2953
3333
  include Google::Apis::Core::Hashable
@@ -3054,6 +3434,45 @@ module Google
3054
3434
  end
3055
3435
  end
3056
3436
 
3437
+ # A request to delete developer metadata.
3438
+ class DeleteDeveloperMetadataRequest
3439
+ include Google::Apis::Core::Hashable
3440
+
3441
+ # Filter that describes what data should be selected or returned from a
3442
+ # request.
3443
+ # Corresponds to the JSON property `dataFilter`
3444
+ # @return [Google::Apis::SheetsV4::DataFilter]
3445
+ attr_accessor :data_filter
3446
+
3447
+ def initialize(**args)
3448
+ update!(**args)
3449
+ end
3450
+
3451
+ # Update properties of this object
3452
+ def update!(**args)
3453
+ @data_filter = args[:data_filter] if args.key?(:data_filter)
3454
+ end
3455
+ end
3456
+
3457
+ # The response from deleting developer metadata.
3458
+ class DeleteDeveloperMetadataResponse
3459
+ include Google::Apis::Core::Hashable
3460
+
3461
+ # The metadata that was deleted.
3462
+ # Corresponds to the JSON property `deletedDeveloperMetadata`
3463
+ # @return [Array<Google::Apis::SheetsV4::DeveloperMetadata>]
3464
+ attr_accessor :deleted_developer_metadata
3465
+
3466
+ def initialize(**args)
3467
+ update!(**args)
3468
+ end
3469
+
3470
+ # Update properties of this object
3471
+ def update!(**args)
3472
+ @deleted_developer_metadata = args[:deleted_developer_metadata] if args.key?(:deleted_developer_metadata)
3473
+ end
3474
+ end
3475
+
3057
3476
  # Deletes the dimensions from the sheet.
3058
3477
  class DeleteDimensionRequest
3059
3478
  include Google::Apis::Core::Hashable
@@ -3221,10 +3640,200 @@ module Google
3221
3640
  end
3222
3641
  end
3223
3642
 
3643
+ # Developer metadata associated with a location or object in a spreadsheet.
3644
+ # Developer metadata may be used to associate arbitrary data with various
3645
+ # parts of a spreadsheet and will remain associated at those locations as they
3646
+ # move around and the spreadsheet is edited. For example, if developer
3647
+ # metadata is associated with row 5 and another row is then subsequently
3648
+ # inserted above row 5, that original metadata will still be associated with
3649
+ # the row it was first associated with (what is now row 6). If the associated
3650
+ # object is deleted its metadata will be deleted too.
3651
+ class DeveloperMetadata
3652
+ include Google::Apis::Core::Hashable
3653
+
3654
+ # A location where metadata may be associated in a spreadsheet.
3655
+ # Corresponds to the JSON property `location`
3656
+ # @return [Google::Apis::SheetsV4::DeveloperMetadataLocation]
3657
+ attr_accessor :location
3658
+
3659
+ # The spreadsheet-scoped unique ID that identifies the metadata. IDs may be
3660
+ # specified when metadata is created, otherwise one will be randomly
3661
+ # generated and assigned. Must be positive.
3662
+ # Corresponds to the JSON property `metadataId`
3663
+ # @return [Fixnum]
3664
+ attr_accessor :metadata_id
3665
+
3666
+ # The metadata key. There may be multiple metadata in a spreadsheet with the
3667
+ # same key. Developer metadata must always have a key specified.
3668
+ # Corresponds to the JSON property `metadataKey`
3669
+ # @return [String]
3670
+ attr_accessor :metadata_key
3671
+
3672
+ # Data associated with the metadata's key.
3673
+ # Corresponds to the JSON property `metadataValue`
3674
+ # @return [String]
3675
+ attr_accessor :metadata_value
3676
+
3677
+ # The metadata visibility. Developer metadata must always have a visibility
3678
+ # specified.
3679
+ # Corresponds to the JSON property `visibility`
3680
+ # @return [String]
3681
+ attr_accessor :visibility
3682
+
3683
+ def initialize(**args)
3684
+ update!(**args)
3685
+ end
3686
+
3687
+ # Update properties of this object
3688
+ def update!(**args)
3689
+ @location = args[:location] if args.key?(:location)
3690
+ @metadata_id = args[:metadata_id] if args.key?(:metadata_id)
3691
+ @metadata_key = args[:metadata_key] if args.key?(:metadata_key)
3692
+ @metadata_value = args[:metadata_value] if args.key?(:metadata_value)
3693
+ @visibility = args[:visibility] if args.key?(:visibility)
3694
+ end
3695
+ end
3696
+
3697
+ # A location where metadata may be associated in a spreadsheet.
3698
+ class DeveloperMetadataLocation
3699
+ include Google::Apis::Core::Hashable
3700
+
3701
+ # A range along a single dimension on a sheet.
3702
+ # All indexes are zero-based.
3703
+ # Indexes are half open: the start index is inclusive
3704
+ # and the end index is exclusive.
3705
+ # Missing indexes indicate the range is unbounded on that side.
3706
+ # Corresponds to the JSON property `dimensionRange`
3707
+ # @return [Google::Apis::SheetsV4::DimensionRange]
3708
+ attr_accessor :dimension_range
3709
+
3710
+ # The type of location this object represents. This field is read-only.
3711
+ # Corresponds to the JSON property `locationType`
3712
+ # @return [String]
3713
+ attr_accessor :location_type
3714
+
3715
+ # The ID of the sheet when metadata is associated with an entire sheet.
3716
+ # Corresponds to the JSON property `sheetId`
3717
+ # @return [Fixnum]
3718
+ attr_accessor :sheet_id
3719
+
3720
+ # True when metadata is associated with an entire spreadsheet.
3721
+ # Corresponds to the JSON property `spreadsheet`
3722
+ # @return [Boolean]
3723
+ attr_accessor :spreadsheet
3724
+ alias_method :spreadsheet?, :spreadsheet
3725
+
3726
+ def initialize(**args)
3727
+ update!(**args)
3728
+ end
3729
+
3730
+ # Update properties of this object
3731
+ def update!(**args)
3732
+ @dimension_range = args[:dimension_range] if args.key?(:dimension_range)
3733
+ @location_type = args[:location_type] if args.key?(:location_type)
3734
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
3735
+ @spreadsheet = args[:spreadsheet] if args.key?(:spreadsheet)
3736
+ end
3737
+ end
3738
+
3739
+ # Selects DeveloperMetadata that matches all of the specified fields. For
3740
+ # example, if only a metadata ID is specified this will consider the
3741
+ # DeveloperMetadata with that particular unique ID. If a metadata key is
3742
+ # specified, all developer metadata with that key will be considered. If a
3743
+ # key, visibility, and location type are all specified, then all
3744
+ # developer metadata with that key, visibility, and associated with a
3745
+ # location of that type will be considered. In general, this
3746
+ # selects all DeveloperMetadata that matches the intersection of all the
3747
+ # specified fields; any field or combination of fields may be specified.
3748
+ class DeveloperMetadataLookup
3749
+ include Google::Apis::Core::Hashable
3750
+
3751
+ # Determines how this lookup matches the location. If this field is
3752
+ # specified as EXACT, only developer metadata associated on the exact
3753
+ # location specified will be matched. If this field is specified to
3754
+ # INTERSECTING,
3755
+ # developer metadata associated on intersecting locations will also be
3756
+ # matched. If left unspecified, this field will assume a default value of
3757
+ # INTERSECTING.
3758
+ # If this field is specified, a metadataLocation
3759
+ # must also be specified.
3760
+ # Corresponds to the JSON property `locationMatchingStrategy`
3761
+ # @return [String]
3762
+ attr_accessor :location_matching_strategy
3763
+
3764
+ # Limits the selected developer metadata to those entries which are
3765
+ # associated with locations of the specified type. For example, specifying
3766
+ # this as ROW will only consider
3767
+ # developer metadata associated on rows. If left unspecified, all location
3768
+ # types will be considered. This field cannot be specified as
3769
+ # SPREADSHEET when the
3770
+ # locationMatchingStrategy is
3771
+ # specified as INTERSECTING or when the
3772
+ # metadataLocation is specified as a
3773
+ # non-spreadsheet location: spreadsheet metadata cannot intersect any other
3774
+ # developer metadata location. This field also must be left unspecified when
3775
+ # the
3776
+ # locationMatchingStrategy is
3777
+ # specified as EXACT.
3778
+ # Corresponds to the JSON property `locationType`
3779
+ # @return [String]
3780
+ attr_accessor :location_type
3781
+
3782
+ # Limits the selected developer metadata to that which has a matching
3783
+ # DeveloperMetadata.metadata_id.
3784
+ # Corresponds to the JSON property `metadataId`
3785
+ # @return [Fixnum]
3786
+ attr_accessor :metadata_id
3787
+
3788
+ # Limits the selected developer metadata to that which has a matching
3789
+ # DeveloperMetadata.metadata_key.
3790
+ # Corresponds to the JSON property `metadataKey`
3791
+ # @return [String]
3792
+ attr_accessor :metadata_key
3793
+
3794
+ # A location where metadata may be associated in a spreadsheet.
3795
+ # Corresponds to the JSON property `metadataLocation`
3796
+ # @return [Google::Apis::SheetsV4::DeveloperMetadataLocation]
3797
+ attr_accessor :metadata_location
3798
+
3799
+ # Limits the selected developer metadata to that which has a matching
3800
+ # DeveloperMetadata.metadata_value.
3801
+ # Corresponds to the JSON property `metadataValue`
3802
+ # @return [String]
3803
+ attr_accessor :metadata_value
3804
+
3805
+ # Limits the selected developer metadata to that which has a matching
3806
+ # DeveloperMetadata.visibility. If left unspecified, all developer
3807
+ # metadata visibile to the requesting project will be considered.
3808
+ # Corresponds to the JSON property `visibility`
3809
+ # @return [String]
3810
+ attr_accessor :visibility
3811
+
3812
+ def initialize(**args)
3813
+ update!(**args)
3814
+ end
3815
+
3816
+ # Update properties of this object
3817
+ def update!(**args)
3818
+ @location_matching_strategy = args[:location_matching_strategy] if args.key?(:location_matching_strategy)
3819
+ @location_type = args[:location_type] if args.key?(:location_type)
3820
+ @metadata_id = args[:metadata_id] if args.key?(:metadata_id)
3821
+ @metadata_key = args[:metadata_key] if args.key?(:metadata_key)
3822
+ @metadata_location = args[:metadata_location] if args.key?(:metadata_location)
3823
+ @metadata_value = args[:metadata_value] if args.key?(:metadata_value)
3824
+ @visibility = args[:visibility] if args.key?(:visibility)
3825
+ end
3826
+ end
3827
+
3224
3828
  # Properties about a dimension.
3225
3829
  class DimensionProperties
3226
3830
  include Google::Apis::Core::Hashable
3227
3831
 
3832
+ # The developer metadata associated with a single row or column.
3833
+ # Corresponds to the JSON property `developerMetadata`
3834
+ # @return [Array<Google::Apis::SheetsV4::DeveloperMetadata>]
3835
+ attr_accessor :developer_metadata
3836
+
3228
3837
  # True if this dimension is being filtered.
3229
3838
  # This field is read-only.
3230
3839
  # Corresponds to the JSON property `hiddenByFilter`
@@ -3249,6 +3858,7 @@ module Google
3249
3858
 
3250
3859
  # Update properties of this object
3251
3860
  def update!(**args)
3861
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
3252
3862
  @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter)
3253
3863
  @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user)
3254
3864
  @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
@@ -3814,6 +4424,34 @@ module Google
3814
4424
  end
3815
4425
  end
3816
4426
 
4427
+ # The request for retrieving a Spreadsheet.
4428
+ class GetSpreadsheetByDataFilterRequest
4429
+ include Google::Apis::Core::Hashable
4430
+
4431
+ # The DataFilters used to select which ranges to retrieve from
4432
+ # the spreadsheet.
4433
+ # Corresponds to the JSON property `dataFilters`
4434
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
4435
+ attr_accessor :data_filters
4436
+
4437
+ # True if grid data should be returned.
4438
+ # This parameter is ignored if a field mask was set in the request.
4439
+ # Corresponds to the JSON property `includeGridData`
4440
+ # @return [Boolean]
4441
+ attr_accessor :include_grid_data
4442
+ alias_method :include_grid_data?, :include_grid_data
4443
+
4444
+ def initialize(**args)
4445
+ update!(**args)
4446
+ end
4447
+
4448
+ # Update properties of this object
4449
+ def update!(**args)
4450
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
4451
+ @include_grid_data = args[:include_grid_data] if args.key?(:include_grid_data)
4452
+ end
4453
+ end
4454
+
3817
4455
  # A rule that applies a gradient color scale format, based on
3818
4456
  # the interpolation points listed. The format of a cell will vary
3819
4457
  # based on its contents as compared to the values of the interpolation
@@ -4475,6 +5113,65 @@ module Google
4475
5113
  end
4476
5114
  end
4477
5115
 
5116
+ # A developer metadata entry and the data filters specified in the original
5117
+ # request that matched it.
5118
+ class MatchedDeveloperMetadata
5119
+ include Google::Apis::Core::Hashable
5120
+
5121
+ # All filters matching the returned developer metadata.
5122
+ # Corresponds to the JSON property `dataFilters`
5123
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
5124
+ attr_accessor :data_filters
5125
+
5126
+ # Developer metadata associated with a location or object in a spreadsheet.
5127
+ # Developer metadata may be used to associate arbitrary data with various
5128
+ # parts of a spreadsheet and will remain associated at those locations as they
5129
+ # move around and the spreadsheet is edited. For example, if developer
5130
+ # metadata is associated with row 5 and another row is then subsequently
5131
+ # inserted above row 5, that original metadata will still be associated with
5132
+ # the row it was first associated with (what is now row 6). If the associated
5133
+ # object is deleted its metadata will be deleted too.
5134
+ # Corresponds to the JSON property `developerMetadata`
5135
+ # @return [Google::Apis::SheetsV4::DeveloperMetadata]
5136
+ attr_accessor :developer_metadata
5137
+
5138
+ def initialize(**args)
5139
+ update!(**args)
5140
+ end
5141
+
5142
+ # Update properties of this object
5143
+ def update!(**args)
5144
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
5145
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
5146
+ end
5147
+ end
5148
+
5149
+ # A value range that was matched by one or more data filers.
5150
+ class MatchedValueRange
5151
+ include Google::Apis::Core::Hashable
5152
+
5153
+ # The DataFilters from the request that matched the range of
5154
+ # values.
5155
+ # Corresponds to the JSON property `dataFilters`
5156
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
5157
+ attr_accessor :data_filters
5158
+
5159
+ # Data within a range of the spreadsheet.
5160
+ # Corresponds to the JSON property `valueRange`
5161
+ # @return [Google::Apis::SheetsV4::ValueRange]
5162
+ attr_accessor :value_range
5163
+
5164
+ def initialize(**args)
5165
+ update!(**args)
5166
+ end
5167
+
5168
+ # Update properties of this object
5169
+ def update!(**args)
5170
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
5171
+ @value_range = args[:value_range] if args.key?(:value_range)
5172
+ end
5173
+ end
5174
+
4478
5175
  # Merges all cells in the range.
4479
5176
  class MergeCellsRequest
4480
5177
  include Google::Apis::Core::Hashable
@@ -5594,6 +6291,11 @@ module Google
5594
6291
  # @return [Google::Apis::SheetsV4::CopyPasteRequest]
5595
6292
  attr_accessor :copy_paste
5596
6293
 
6294
+ # A request to create developer metadata.
6295
+ # Corresponds to the JSON property `createDeveloperMetadata`
6296
+ # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataRequest]
6297
+ attr_accessor :create_developer_metadata
6298
+
5597
6299
  # Moves data from the source to the destination.
5598
6300
  # Corresponds to the JSON property `cutPaste`
5599
6301
  # @return [Google::Apis::SheetsV4::CutPasteRequest]
@@ -5610,6 +6312,11 @@ module Google
5610
6312
  # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest]
5611
6313
  attr_accessor :delete_conditional_format_rule
5612
6314
 
6315
+ # A request to delete developer metadata.
6316
+ # Corresponds to the JSON property `deleteDeveloperMetadata`
6317
+ # @return [Google::Apis::SheetsV4::DeleteDeveloperMetadataRequest]
6318
+ attr_accessor :delete_developer_metadata
6319
+
5613
6320
  # Deletes the dimensions from the sheet.
5614
6321
  # Corresponds to the JSON property `deleteDimension`
5615
6322
  # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
@@ -5768,6 +6475,16 @@ module Google
5768
6475
  # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleRequest]
5769
6476
  attr_accessor :update_conditional_format_rule
5770
6477
 
6478
+ # A request to update properties of developer metadata.
6479
+ # Updates the properties of the developer metadata selected by the filters to
6480
+ # the values provided in the DeveloperMetadata resource. Callers must
6481
+ # specify the properties they wish to update in the fields parameter, as well
6482
+ # as specify at least one DataFilter matching the metadata they wish to
6483
+ # update.
6484
+ # Corresponds to the JSON property `updateDeveloperMetadata`
6485
+ # @return [Google::Apis::SheetsV4::UpdateDeveloperMetadataRequest]
6486
+ attr_accessor :update_developer_metadata
6487
+
5771
6488
  # Updates properties of dimensions within the specified range.
5772
6489
  # Corresponds to the JSON property `updateDimensionProperties`
5773
6490
  # @return [Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest]
@@ -5826,9 +6543,11 @@ module Google
5826
6543
  @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
5827
6544
  @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter)
5828
6545
  @copy_paste = args[:copy_paste] if args.key?(:copy_paste)
6546
+ @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
5829
6547
  @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
5830
6548
  @delete_banding = args[:delete_banding] if args.key?(:delete_banding)
5831
6549
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
6550
+ @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
5832
6551
  @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
5833
6552
  @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object)
5834
6553
  @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view)
@@ -5856,6 +6575,7 @@ module Google
5856
6575
  @update_cells = args[:update_cells] if args.key?(:update_cells)
5857
6576
  @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
5858
6577
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
6578
+ @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata)
5859
6579
  @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties)
5860
6580
  @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
5861
6581
  @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view)
@@ -5900,11 +6620,21 @@ module Google
5900
6620
  # @return [Google::Apis::SheetsV4::AddSheetResponse]
5901
6621
  attr_accessor :add_sheet
5902
6622
 
6623
+ # The response from creating developer metadata.
6624
+ # Corresponds to the JSON property `createDeveloperMetadata`
6625
+ # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse]
6626
+ attr_accessor :create_developer_metadata
6627
+
5903
6628
  # The result of deleting a conditional format rule.
5904
6629
  # Corresponds to the JSON property `deleteConditionalFormatRule`
5905
6630
  # @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse]
5906
6631
  attr_accessor :delete_conditional_format_rule
5907
6632
 
6633
+ # The response from deleting developer metadata.
6634
+ # Corresponds to the JSON property `deleteDeveloperMetadata`
6635
+ # @return [Google::Apis::SheetsV4::DeleteDeveloperMetadataResponse]
6636
+ attr_accessor :delete_developer_metadata
6637
+
5908
6638
  # The result of a filter view being duplicated.
5909
6639
  # Corresponds to the JSON property `duplicateFilterView`
5910
6640
  # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse]
@@ -5925,6 +6655,11 @@ module Google
5925
6655
  # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse]
5926
6656
  attr_accessor :update_conditional_format_rule
5927
6657
 
6658
+ # The response from updating developer metadata.
6659
+ # Corresponds to the JSON property `updateDeveloperMetadata`
6660
+ # @return [Google::Apis::SheetsV4::UpdateDeveloperMetadataResponse]
6661
+ attr_accessor :update_developer_metadata
6662
+
5928
6663
  # The result of updating an embedded object's position.
5929
6664
  # Corresponds to the JSON property `updateEmbeddedObjectPosition`
5930
6665
  # @return [Google::Apis::SheetsV4::UpdateEmbeddedObjectPositionResponse]
@@ -5942,11 +6677,14 @@ module Google
5942
6677
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
5943
6678
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
5944
6679
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
6680
+ @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
5945
6681
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
6682
+ @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
5946
6683
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
5947
6684
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
5948
6685
  @find_replace = args[:find_replace] if args.key?(:find_replace)
5949
6686
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
6687
+ @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata)
5950
6688
  @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
5951
6689
  end
5952
6690
  end
@@ -5970,6 +6708,47 @@ module Google
5970
6708
  end
5971
6709
  end
5972
6710
 
6711
+ # A request to retrieve all developer metadata matching the set of specified
6712
+ # criteria.
6713
+ class SearchDeveloperMetadataRequest
6714
+ include Google::Apis::Core::Hashable
6715
+
6716
+ # The data filters describing the criteria used to determine which
6717
+ # DeveloperMetadata entries to return. DeveloperMetadata matching any of the
6718
+ # specified filters will be included in the response.
6719
+ # Corresponds to the JSON property `dataFilters`
6720
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
6721
+ attr_accessor :data_filters
6722
+
6723
+ def initialize(**args)
6724
+ update!(**args)
6725
+ end
6726
+
6727
+ # Update properties of this object
6728
+ def update!(**args)
6729
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
6730
+ end
6731
+ end
6732
+
6733
+ # A reply to a developer metadata search request.
6734
+ class SearchDeveloperMetadataResponse
6735
+ include Google::Apis::Core::Hashable
6736
+
6737
+ # The metadata matching the criteria of the search request.
6738
+ # Corresponds to the JSON property `matchedDeveloperMetadata`
6739
+ # @return [Array<Google::Apis::SheetsV4::MatchedDeveloperMetadata>]
6740
+ attr_accessor :matched_developer_metadata
6741
+
6742
+ def initialize(**args)
6743
+ update!(**args)
6744
+ end
6745
+
6746
+ # Update properties of this object
6747
+ def update!(**args)
6748
+ @matched_developer_metadata = args[:matched_developer_metadata] if args.key?(:matched_developer_metadata)
6749
+ end
6750
+ end
6751
+
5973
6752
  # Sets the basic filter associated with a sheet.
5974
6753
  class SetBasicFilterRequest
5975
6754
  include Google::Apis::Core::Hashable
@@ -6072,6 +6851,11 @@ module Google
6072
6851
  # @return [Array<Google::Apis::SheetsV4::GridData>]
6073
6852
  attr_accessor :data
6074
6853
 
6854
+ # The developer metadata associated with a sheet.
6855
+ # Corresponds to the JSON property `developerMetadata`
6856
+ # @return [Array<Google::Apis::SheetsV4::DeveloperMetadata>]
6857
+ attr_accessor :developer_metadata
6858
+
6075
6859
  # The filter views in this sheet.
6076
6860
  # Corresponds to the JSON property `filterViews`
6077
6861
  # @return [Array<Google::Apis::SheetsV4::FilterView>]
@@ -6103,6 +6887,7 @@ module Google
6103
6887
  @charts = args[:charts] if args.key?(:charts)
6104
6888
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
6105
6889
  @data = args[:data] if args.key?(:data)
6890
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
6106
6891
  @filter_views = args[:filter_views] if args.key?(:filter_views)
6107
6892
  @merges = args[:merges] if args.key?(:merges)
6108
6893
  @properties = args[:properties] if args.key?(:properties)
@@ -6413,6 +7198,11 @@ module Google
6413
7198
  class Spreadsheet
6414
7199
  include Google::Apis::Core::Hashable
6415
7200
 
7201
+ # The developer metadata associated with a spreadsheet.
7202
+ # Corresponds to the JSON property `developerMetadata`
7203
+ # @return [Array<Google::Apis::SheetsV4::DeveloperMetadata>]
7204
+ attr_accessor :developer_metadata
7205
+
6416
7206
  # The named ranges defined in a spreadsheet.
6417
7207
  # Corresponds to the JSON property `namedRanges`
6418
7208
  # @return [Array<Google::Apis::SheetsV4::NamedRange>]
@@ -6446,6 +7236,7 @@ module Google
6446
7236
 
6447
7237
  # Update properties of this object
6448
7238
  def update!(**args)
7239
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
6449
7240
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
6450
7241
  @properties = args[:properties] if args.key?(:properties)
6451
7242
  @sheets = args[:sheets] if args.key?(:sheets)
@@ -7107,6 +7898,70 @@ module Google
7107
7898
  end
7108
7899
  end
7109
7900
 
7901
+ # A request to update properties of developer metadata.
7902
+ # Updates the properties of the developer metadata selected by the filters to
7903
+ # the values provided in the DeveloperMetadata resource. Callers must
7904
+ # specify the properties they wish to update in the fields parameter, as well
7905
+ # as specify at least one DataFilter matching the metadata they wish to
7906
+ # update.
7907
+ class UpdateDeveloperMetadataRequest
7908
+ include Google::Apis::Core::Hashable
7909
+
7910
+ # The filters matching the developer metadata entries to update.
7911
+ # Corresponds to the JSON property `dataFilters`
7912
+ # @return [Array<Google::Apis::SheetsV4::DataFilter>]
7913
+ attr_accessor :data_filters
7914
+
7915
+ # Developer metadata associated with a location or object in a spreadsheet.
7916
+ # Developer metadata may be used to associate arbitrary data with various
7917
+ # parts of a spreadsheet and will remain associated at those locations as they
7918
+ # move around and the spreadsheet is edited. For example, if developer
7919
+ # metadata is associated with row 5 and another row is then subsequently
7920
+ # inserted above row 5, that original metadata will still be associated with
7921
+ # the row it was first associated with (what is now row 6). If the associated
7922
+ # object is deleted its metadata will be deleted too.
7923
+ # Corresponds to the JSON property `developerMetadata`
7924
+ # @return [Google::Apis::SheetsV4::DeveloperMetadata]
7925
+ attr_accessor :developer_metadata
7926
+
7927
+ # The fields that should be updated. At least one field must be specified.
7928
+ # The root `developerMetadata` is implied and should not be specified.
7929
+ # A single `"*"` can be used as short-hand for listing every field.
7930
+ # Corresponds to the JSON property `fields`
7931
+ # @return [String]
7932
+ attr_accessor :fields
7933
+
7934
+ def initialize(**args)
7935
+ update!(**args)
7936
+ end
7937
+
7938
+ # Update properties of this object
7939
+ def update!(**args)
7940
+ @data_filters = args[:data_filters] if args.key?(:data_filters)
7941
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
7942
+ @fields = args[:fields] if args.key?(:fields)
7943
+ end
7944
+ end
7945
+
7946
+ # The response from updating developer metadata.
7947
+ class UpdateDeveloperMetadataResponse
7948
+ include Google::Apis::Core::Hashable
7949
+
7950
+ # The updated developer metadata.
7951
+ # Corresponds to the JSON property `developerMetadata`
7952
+ # @return [Array<Google::Apis::SheetsV4::DeveloperMetadata>]
7953
+ attr_accessor :developer_metadata
7954
+
7955
+ def initialize(**args)
7956
+ update!(**args)
7957
+ end
7958
+
7959
+ # Update properties of this object
7960
+ def update!(**args)
7961
+ @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
7962
+ end
7963
+ end
7964
+
7110
7965
  # Updates properties of dimensions within the specified range.
7111
7966
  class UpdateDimensionPropertiesRequest
7112
7967
  include Google::Apis::Core::Hashable
@@ -7339,6 +8194,57 @@ module Google
7339
8194
  end
7340
8195
  end
7341
8196
 
8197
+ # The response when updating a range of values by a data filter in a
8198
+ # spreadsheet.
8199
+ class UpdateValuesByDataFilterResponse
8200
+ include Google::Apis::Core::Hashable
8201
+
8202
+ # Filter that describes what data should be selected or returned from a
8203
+ # request.
8204
+ # Corresponds to the JSON property `dataFilter`
8205
+ # @return [Google::Apis::SheetsV4::DataFilter]
8206
+ attr_accessor :data_filter
8207
+
8208
+ # The number of cells updated.
8209
+ # Corresponds to the JSON property `updatedCells`
8210
+ # @return [Fixnum]
8211
+ attr_accessor :updated_cells
8212
+
8213
+ # The number of columns where at least one cell in the column was updated.
8214
+ # Corresponds to the JSON property `updatedColumns`
8215
+ # @return [Fixnum]
8216
+ attr_accessor :updated_columns
8217
+
8218
+ # Data within a range of the spreadsheet.
8219
+ # Corresponds to the JSON property `updatedData`
8220
+ # @return [Google::Apis::SheetsV4::ValueRange]
8221
+ attr_accessor :updated_data
8222
+
8223
+ # The range (in A1 notation) that updates were applied to.
8224
+ # Corresponds to the JSON property `updatedRange`
8225
+ # @return [String]
8226
+ attr_accessor :updated_range
8227
+
8228
+ # The number of rows where at least one cell in the row was updated.
8229
+ # Corresponds to the JSON property `updatedRows`
8230
+ # @return [Fixnum]
8231
+ attr_accessor :updated_rows
8232
+
8233
+ def initialize(**args)
8234
+ update!(**args)
8235
+ end
8236
+
8237
+ # Update properties of this object
8238
+ def update!(**args)
8239
+ @data_filter = args[:data_filter] if args.key?(:data_filter)
8240
+ @updated_cells = args[:updated_cells] if args.key?(:updated_cells)
8241
+ @updated_columns = args[:updated_columns] if args.key?(:updated_columns)
8242
+ @updated_data = args[:updated_data] if args.key?(:updated_data)
8243
+ @updated_range = args[:updated_range] if args.key?(:updated_range)
8244
+ @updated_rows = args[:updated_rows] if args.key?(:updated_rows)
8245
+ end
8246
+ end
8247
+
7342
8248
  # The response when updating a range of values in a spreadsheet.
7343
8249
  class UpdateValuesResponse
7344
8250
  include Google::Apis::Core::Hashable