google-api-client 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -51,11 +51,11 @@ module Google
51
51
  # @param [String] project_id
52
52
  # The ID of the project against which to make the request.
53
53
  # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
54
- # @param [String] fields
55
- # Selector specifying which fields to include in a partial response.
56
54
  # @param [String] quota_user
57
55
  # Available to use for quota purposes for server-side applications. Can be any
58
56
  # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
59
  # @param [Google::Apis::RequestOptions] options
60
60
  # Request-specific options
61
61
  #
@@ -68,81 +68,48 @@ module Google
68
68
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
69
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
70
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
71
+ def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
72
  command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
73
73
  command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
74
74
  command.request_object = run_query_request_object
75
75
  command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
76
76
  command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
77
77
  command.params['projectId'] = project_id unless project_id.nil?
78
- command.query['fields'] = fields unless fields.nil?
79
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
80
  execute_or_queue_command(command, &block)
81
81
  end
82
82
 
83
- # Rolls back a transaction.
83
+ # Begins a new transaction.
84
84
  # @param [String] project_id
85
85
  # The ID of the project against which to make the request.
86
- # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
87
- # @param [String] fields
88
- # Selector specifying which fields to include in a partial response.
86
+ # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
89
87
  # @param [String] quota_user
90
88
  # Available to use for quota purposes for server-side applications. Can be any
91
89
  # 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::DatastoreV1::RollbackResponse] parsed result object
97
- # @yieldparam err [StandardError] error object if request failed
98
- #
99
- # @return [Google::Apis::DatastoreV1::RollbackResponse]
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 rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
105
- command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
106
- command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
107
- command.request_object = rollback_request_object
108
- command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
109
- command.response_class = Google::Apis::DatastoreV1::RollbackResponse
110
- command.params['projectId'] = project_id unless project_id.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
- # Looks up entities by key.
117
- # @param [String] project_id
118
- # The ID of the project against which to make the request.
119
- # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
120
90
  # @param [String] fields
121
91
  # Selector specifying which fields to include in a partial response.
122
- # @param [String] quota_user
123
- # Available to use for quota purposes for server-side applications. Can be any
124
- # arbitrary string assigned to a user, but should not exceed 40 characters.
125
92
  # @param [Google::Apis::RequestOptions] options
126
93
  # Request-specific options
127
94
  #
128
95
  # @yield [result, err] Result & error if block supplied
129
- # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
96
+ # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
130
97
  # @yieldparam err [StandardError] error object if request failed
131
98
  #
132
- # @return [Google::Apis::DatastoreV1::LookupResponse]
99
+ # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
133
100
  #
134
101
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
135
102
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
136
103
  # @raise [Google::Apis::AuthorizationError] Authorization is required
137
- def lookup_project(project_id, lookup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
- command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
139
- command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
140
- command.request_object = lookup_request_object
141
- command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
142
- command.response_class = Google::Apis::DatastoreV1::LookupResponse
104
+ def begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
105
+ command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
106
+ command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
107
+ command.request_object = begin_transaction_request_object
108
+ command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
109
+ command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
143
110
  command.params['projectId'] = project_id unless project_id.nil?
144
- command.query['fields'] = fields unless fields.nil?
145
111
  command.query['quotaUser'] = quota_user unless quota_user.nil?
112
+ command.query['fields'] = fields unless fields.nil?
146
113
  execute_or_queue_command(command, &block)
147
114
  end
148
115
 
@@ -151,11 +118,11 @@ module Google
151
118
  # @param [String] project_id
152
119
  # The ID of the project against which to make the request.
153
120
  # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
154
- # @param [String] fields
155
- # Selector specifying which fields to include in a partial response.
156
121
  # @param [String] quota_user
157
122
  # Available to use for quota purposes for server-side applications. Can be any
158
123
  # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
159
126
  # @param [Google::Apis::RequestOptions] options
160
127
  # Request-specific options
161
128
  #
@@ -168,48 +135,48 @@ module Google
168
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
171
- def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
138
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
172
139
  command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
173
140
  command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
174
141
  command.request_object = allocate_ids_request_object
175
142
  command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
176
143
  command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
177
144
  command.params['projectId'] = project_id unless project_id.nil?
178
- command.query['fields'] = fields unless fields.nil?
179
145
  command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ command.query['fields'] = fields unless fields.nil?
180
147
  execute_or_queue_command(command, &block)
181
148
  end
182
149
 
183
- # Begins a new transaction.
150
+ # Looks up entities by key.
184
151
  # @param [String] project_id
185
152
  # The ID of the project against which to make the request.
186
- # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
187
- # @param [String] fields
188
- # Selector specifying which fields to include in a partial response.
153
+ # @param [Google::Apis::DatastoreV1::LookupRequest] lookup_request_object
189
154
  # @param [String] quota_user
190
155
  # Available to use for quota purposes for server-side applications. Can be any
191
156
  # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
192
159
  # @param [Google::Apis::RequestOptions] options
193
160
  # Request-specific options
194
161
  #
195
162
  # @yield [result, err] Result & error if block supplied
196
- # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
163
+ # @yieldparam result [Google::Apis::DatastoreV1::LookupResponse] parsed result object
197
164
  # @yieldparam err [StandardError] error object if request failed
198
165
  #
199
- # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
166
+ # @return [Google::Apis::DatastoreV1::LookupResponse]
200
167
  #
201
168
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
204
- def begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
- command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
206
- command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
207
- command.request_object = begin_transaction_request_object
208
- command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
209
- command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
171
+ def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
172
+ command = make_simple_command(:post, 'v1/projects/{projectId}:lookup', options)
173
+ command.request_representation = Google::Apis::DatastoreV1::LookupRequest::Representation
174
+ command.request_object = lookup_request_object
175
+ command.response_representation = Google::Apis::DatastoreV1::LookupResponse::Representation
176
+ command.response_class = Google::Apis::DatastoreV1::LookupResponse
210
177
  command.params['projectId'] = project_id unless project_id.nil?
211
- command.query['fields'] = fields unless fields.nil?
212
178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ command.query['fields'] = fields unless fields.nil?
213
180
  execute_or_queue_command(command, &block)
214
181
  end
215
182
 
@@ -218,11 +185,11 @@ module Google
218
185
  # @param [String] project_id
219
186
  # The ID of the project against which to make the request.
220
187
  # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
221
- # @param [String] fields
222
- # Selector specifying which fields to include in a partial response.
223
188
  # @param [String] quota_user
224
189
  # Available to use for quota purposes for server-side applications. Can be any
225
190
  # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
226
193
  # @param [Google::Apis::RequestOptions] options
227
194
  # Request-specific options
228
195
  #
@@ -235,15 +202,48 @@ module Google
235
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
238
- def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
205
+ def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
206
  command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
240
207
  command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
241
208
  command.request_object = commit_request_object
242
209
  command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
243
210
  command.response_class = Google::Apis::DatastoreV1::CommitResponse
244
211
  command.params['projectId'] = project_id unless project_id.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
213
  command.query['fields'] = fields unless fields.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Rolls back a transaction.
218
+ # @param [String] project_id
219
+ # The ID of the project against which to make the request.
220
+ # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::DatastoreV1::RollbackResponse]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
+ command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
240
+ command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
241
+ command.request_object = rollback_request_object
242
+ command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
243
+ command.response_class = Google::Apis::DatastoreV1::RollbackResponse
244
+ command.params['projectId'] = project_id unless project_id.nil?
246
245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
247
  execute_or_queue_command(command, &block)
248
248
  end
249
249
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/deployment-manager/
26
26
  module DeploymentmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20170126'
28
+ REVISION = '20170302'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,6 +25,18 @@ module Google
25
25
  # Specifies the audit configuration for a service. It consists of which
26
26
  # permission types are logged, and what identities, if any, are exempted from
27
27
  # logging. An AuditConifg must have one or more AuditLogConfigs.
28
+ # If there are AuditConfigs for both `allServices` and a specific service, the
29
+ # union of the two AuditConfigs is used for that service: the log_types
30
+ # specified in each AuditConfig are enabled, and the exempted_members in each
31
+ # AuditConfig are exempted. Example Policy with multiple AuditConfigs: ` "
32
+ # audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
33
+ # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` "
34
+ # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
35
+ # fooservice@googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `,
36
+ # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] `
37
+ # ] ` For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
38
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
39
+ # com from DATA_WRITE logging.
28
40
  class AuditConfig
29
41
  include Google::Apis::Core::Hashable
30
42
 
@@ -33,9 +45,7 @@ module Google
33
45
  # @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
34
46
  attr_accessor :audit_log_configs
35
47
 
36
- # Specifies the identities that are exempted from "data access" audit logging
37
- # for the `service` specified above. Follows the same format of Binding.members.
38
- # This field is deprecated in favor of per-permission-type exemptions.
48
+ #
39
49
  # Corresponds to the JSON property `exemptedMembers`
40
50
  # @return [Array<String>]
41
51
  attr_accessor :exempted_members
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170130'
28
+ REVISION = '20170221'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/cloud-dns
26
26
  module DnsV2beta1
27
27
  VERSION = 'V2beta1'
28
- REVISION = '20170130'
28
+ REVISION = '20170221'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/bid-manager/
26
26
  module DoubleclickbidmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20161010'
28
+ REVISION = '20170224'
29
29
  end
30
30
  end
31
31
  end
@@ -93,7 +93,7 @@ module Google
93
93
 
94
94
  # The IDs of the specified filter type. This is used to filter entities to fetch.
95
95
  # At least one ID must be specified. Only one ID is allowed for the
96
- # ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types
96
+ # ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types,
97
97
  # all IDs must be from the same Advertiser.
98
98
  # Corresponds to the JSON property `filterIds`
99
99
  # @return [Array<String>]
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170207'
29
+ REVISION = '20170228'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20170207'
29
+ REVISION = '20170228'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -617,11 +617,12 @@ module Google
617
617
  end
618
618
  end
619
619
 
620
- # Representation of a change to a file.
620
+ # Representation of a change to a file or Team Drive.
621
621
  class Change
622
622
  include Google::Apis::Core::Hashable
623
623
 
624
- # Whether the file has been deleted.
624
+ # Whether the file or Team Drive has been removed from this list of changes, for
625
+ # example by deletion or loss of access.
625
626
  # Corresponds to the JSON property `deleted`
626
627
  # @return [Boolean]
627
628
  attr_accessor :deleted
@@ -657,6 +658,21 @@ module Google
657
658
  # @return [String]
658
659
  attr_accessor :self_link
659
660
 
661
+ # Representation of a Team Drive.
662
+ # Corresponds to the JSON property `teamDrive`
663
+ # @return [Google::Apis::DriveV2::TeamDrive]
664
+ attr_accessor :team_drive
665
+
666
+ # The ID of the Team Drive associated with this change.
667
+ # Corresponds to the JSON property `teamDriveId`
668
+ # @return [String]
669
+ attr_accessor :team_drive_id
670
+
671
+ # The type of the change. Possible values are file and teamDrive.
672
+ # Corresponds to the JSON property `type`
673
+ # @return [String]
674
+ attr_accessor :type
675
+
660
676
  def initialize(**args)
661
677
  update!(**args)
662
678
  end
@@ -670,6 +686,9 @@ module Google
670
686
  @kind = args[:kind] if args.key?(:kind)
671
687
  @modification_date = args[:modification_date] if args.key?(:modification_date)
672
688
  @self_link = args[:self_link] if args.key?(:self_link)
689
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
690
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
691
+ @type = args[:type] if args.key?(:type)
673
692
  end
674
693
  end
675
694
 
@@ -698,6 +717,12 @@ module Google
698
717
  # @return [String]
699
718
  attr_accessor :largest_change_id
700
719
 
720
+ # The starting page token for future changes. This will be present only if the
721
+ # end of the current changes list has been reached.
722
+ # Corresponds to the JSON property `newStartPageToken`
723
+ # @return [String]
724
+ attr_accessor :new_start_page_token
725
+
701
726
  # A link to the next page of changes.
702
727
  # Corresponds to the JSON property `nextLink`
703
728
  # @return [String]
@@ -726,6 +751,7 @@ module Google
726
751
  @items = args[:items] if args.key?(:items)
727
752
  @kind = args[:kind] if args.key?(:kind)
728
753
  @largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id)
754
+ @new_start_page_token = args[:new_start_page_token] if args.key?(:new_start_page_token)
729
755
  @next_link = args[:next_link] if args.key?(:next_link)
730
756
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
731
757
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -1222,19 +1248,28 @@ module Google
1222
1248
  attr_accessor :app_data_contents
1223
1249
  alias_method :app_data_contents?, :app_data_contents
1224
1250
 
1225
- # Whether the current user can comment on the file.
1251
+ # Whether the current user can comment on the file. Deprecated: use capabilities/
1252
+ # canComment.
1226
1253
  # Corresponds to the JSON property `canComment`
1227
1254
  # @return [Boolean]
1228
1255
  attr_accessor :can_comment
1229
1256
  alias_method :can_comment?, :can_comment
1230
1257
 
1231
1258
  # Whether the current user has read access to the Revisions resource of the file.
1259
+ # Deprecated: use capabilities/canReadRevisions.
1232
1260
  # Corresponds to the JSON property `canReadRevisions`
1233
1261
  # @return [Boolean]
1234
1262
  attr_accessor :can_read_revisions
1235
1263
  alias_method :can_read_revisions?, :can_read_revisions
1236
1264
 
1237
- # Whether the file can be copied by the current user.
1265
+ # Capabilities the current user has on the file. Each capability corresponds to
1266
+ # a fine-grained action that a user may take.
1267
+ # Corresponds to the JSON property `capabilities`
1268
+ # @return [Google::Apis::DriveV2::File::Capabilities]
1269
+ attr_accessor :capabilities
1270
+
1271
+ # Whether the file can be copied by the current user. Deprecated: use
1272
+ # capabilities/canCopy.
1238
1273
  # Corresponds to the JSON property `copyable`
1239
1274
  # @return [Boolean]
1240
1275
  attr_accessor :copyable
@@ -1261,7 +1296,8 @@ module Google
1261
1296
  # @return [String]
1262
1297
  attr_accessor :download_url
1263
1298
 
1264
- # Whether the file can be edited by the current user.
1299
+ # Whether the file can be edited by the current user. Deprecated: use
1300
+ # capabilities/canEdit.
1265
1301
  # Corresponds to the JSON property `editable`
1266
1302
  # @return [Boolean]
1267
1303
  attr_accessor :editable
@@ -1306,7 +1342,7 @@ module Google
1306
1342
  # Folder color as an RGB hex string if the file is a folder. The list of
1307
1343
  # supported colors is available in the folderColorPalette field of the About
1308
1344
  # resource. If an unsupported color is specified, it will be changed to the
1309
- # closest color in the palette.
1345
+ # closest color in the palette. Not populated for Team Drive files.
1310
1346
  # Corresponds to the JSON property `folderColorRgb`
1311
1347
  # @return [String]
1312
1348
  attr_accessor :folder_color_rgb
@@ -1320,6 +1356,13 @@ module Google
1320
1356
  # @return [String]
1321
1357
  attr_accessor :full_file_extension
1322
1358
 
1359
+ # Whether any users are granted file access directly on this file. This field is
1360
+ # only populated for Team Drive files.
1361
+ # Corresponds to the JSON property `hasAugmentedPermissions`
1362
+ # @return [Boolean]
1363
+ attr_accessor :has_augmented_permissions
1364
+ alias_method :has_augmented_permissions?, :has_augmented_permissions
1365
+
1323
1366
  # Whether this file has a thumbnail.
1324
1367
  # Corresponds to the JSON property `hasThumbnail`
1325
1368
  # @return [Boolean]
@@ -1430,18 +1473,19 @@ module Google
1430
1473
  # @return [String]
1431
1474
  attr_accessor :original_filename
1432
1475
 
1433
- # Whether the file is owned by the current user.
1476
+ # Whether the file is owned by the current user. Not populated for Team Drive
1477
+ # files.
1434
1478
  # Corresponds to the JSON property `ownedByMe`
1435
1479
  # @return [Boolean]
1436
1480
  attr_accessor :owned_by_me
1437
1481
  alias_method :owned_by_me?, :owned_by_me
1438
1482
 
1439
- # Name(s) of the owner(s) of this file.
1483
+ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
1440
1484
  # Corresponds to the JSON property `ownerNames`
1441
1485
  # @return [Array<String>]
1442
1486
  attr_accessor :owner_names
1443
1487
 
1444
- # The owner(s) of this file.
1488
+ # The owner(s) of this file. Not populated for Team Drive files.
1445
1489
  # Corresponds to the JSON property `owners`
1446
1490
  # @return [Array<Google::Apis::DriveV2::User>]
1447
1491
  attr_accessor :owners
@@ -1454,7 +1498,8 @@ module Google
1454
1498
  # @return [Array<Google::Apis::DriveV2::ParentReference>]
1455
1499
  attr_accessor :parents
1456
1500
 
1457
- # The list of permissions for users with access to this file.
1501
+ # The list of permissions for users with access to this file. Not populated for
1502
+ # Team Drive files.
1458
1503
  # Corresponds to the JSON property `permissions`
1459
1504
  # @return [Array<Google::Apis::DriveV2::Permission>]
1460
1505
  attr_accessor :permissions
@@ -1475,12 +1520,13 @@ module Google
1475
1520
  attr_accessor :self_link
1476
1521
 
1477
1522
  # Whether the file's sharing settings can be modified by the current user.
1523
+ # Deprecated: use capabilities/canShare.
1478
1524
  # Corresponds to the JSON property `shareable`
1479
1525
  # @return [Boolean]
1480
1526
  attr_accessor :shareable
1481
1527
  alias_method :shareable?, :shareable
1482
1528
 
1483
- # Whether the file has been shared.
1529
+ # Whether the file has been shared. Not populated for Team Drive files.
1484
1530
  # Corresponds to the JSON property `shared`
1485
1531
  # @return [Boolean]
1486
1532
  attr_accessor :shared
@@ -1503,6 +1549,11 @@ module Google
1503
1549
  # @return [Array<String>]
1504
1550
  attr_accessor :spaces
1505
1551
 
1552
+ # ID of the Team Drive the file resides in.
1553
+ # Corresponds to the JSON property `teamDriveId`
1554
+ # @return [String]
1555
+ attr_accessor :team_drive_id
1556
+
1506
1557
  # A thumbnail for the file. This will only be used if Drive cannot generate a
1507
1558
  # standard thumbnail.
1508
1559
  # Corresponds to the JSON property `thumbnail`
@@ -1525,6 +1576,17 @@ module Google
1525
1576
  # @return [String]
1526
1577
  attr_accessor :title
1527
1578
 
1579
+ # The time that the item was trashed (formatted RFC 3339 timestamp). Only
1580
+ # populated for Team Drive files.
1581
+ # Corresponds to the JSON property `trashedDate`
1582
+ # @return [DateTime]
1583
+ attr_accessor :trashed_date
1584
+
1585
+ # Information about a Drive user.
1586
+ # Corresponds to the JSON property `trashingUser`
1587
+ # @return [Google::Apis::DriveV2::User]
1588
+ attr_accessor :trashing_user
1589
+
1528
1590
  # A permission for a file.
1529
1591
  # Corresponds to the JSON property `userPermission`
1530
1592
  # @return [Google::Apis::DriveV2::Permission]
@@ -1555,7 +1617,8 @@ module Google
1555
1617
  # @return [String]
1556
1618
  attr_accessor :web_view_link
1557
1619
 
1558
- # Whether writers can share the document with other users.
1620
+ # Whether writers can share the document with other users. Not populated for
1621
+ # Team Drive files.
1559
1622
  # Corresponds to the JSON property `writersCanShare`
1560
1623
  # @return [Boolean]
1561
1624
  attr_accessor :writers_can_share
@@ -1571,6 +1634,7 @@ module Google
1571
1634
  @app_data_contents = args[:app_data_contents] if args.key?(:app_data_contents)
1572
1635
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1573
1636
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1637
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
1574
1638
  @copyable = args[:copyable] if args.key?(:copyable)
1575
1639
  @created_date = args[:created_date] if args.key?(:created_date)
1576
1640
  @default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
@@ -1585,6 +1649,7 @@ module Google
1585
1649
  @file_size = args[:file_size] if args.key?(:file_size)
1586
1650
  @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
1587
1651
  @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
1652
+ @has_augmented_permissions = args[:has_augmented_permissions] if args.key?(:has_augmented_permissions)
1588
1653
  @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
1589
1654
  @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
1590
1655
  @icon_link = args[:icon_link] if args.key?(:icon_link)
@@ -1617,10 +1682,13 @@ module Google
1617
1682
  @shared_with_me_date = args[:shared_with_me_date] if args.key?(:shared_with_me_date)
1618
1683
  @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
1619
1684
  @spaces = args[:spaces] if args.key?(:spaces)
1685
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
1620
1686
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
1621
1687
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
1622
1688
  @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
1623
1689
  @title = args[:title] if args.key?(:title)
1690
+ @trashed_date = args[:trashed_date] if args.key?(:trashed_date)
1691
+ @trashing_user = args[:trashing_user] if args.key?(:trashing_user)
1624
1692
  @user_permission = args[:user_permission] if args.key?(:user_permission)
1625
1693
  @version = args[:version] if args.key?(:version)
1626
1694
  @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@@ -1629,6 +1697,144 @@ module Google
1629
1697
  @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
1630
1698
  end
1631
1699
 
1700
+ # Capabilities the current user has on the file. Each capability corresponds to
1701
+ # a fine-grained action that a user may take.
1702
+ class Capabilities
1703
+ include Google::Apis::Core::Hashable
1704
+
1705
+ # Whether the current user can add children to this folder. This is always false
1706
+ # when the item is not a folder.
1707
+ # Corresponds to the JSON property `canAddChildren`
1708
+ # @return [Boolean]
1709
+ attr_accessor :can_add_children
1710
+ alias_method :can_add_children?, :can_add_children
1711
+
1712
+ # Whether the current user can comment on the file.
1713
+ # Corresponds to the JSON property `canComment`
1714
+ # @return [Boolean]
1715
+ attr_accessor :can_comment
1716
+ alias_method :can_comment?, :can_comment
1717
+
1718
+ # Whether the file can be copied by the current user. For a Team Drive item,
1719
+ # whether non-folder descendants of this item, or this item itself if it is not
1720
+ # a folder, can be copied.
1721
+ # Corresponds to the JSON property `canCopy`
1722
+ # @return [Boolean]
1723
+ attr_accessor :can_copy
1724
+ alias_method :can_copy?, :can_copy
1725
+
1726
+ # Whether the file can be deleted by the current user.
1727
+ # Corresponds to the JSON property `canDelete`
1728
+ # @return [Boolean]
1729
+ attr_accessor :can_delete
1730
+ alias_method :can_delete?, :can_delete
1731
+
1732
+ # Whether the file can be downloaded by the current user.
1733
+ # Corresponds to the JSON property `canDownload`
1734
+ # @return [Boolean]
1735
+ attr_accessor :can_download
1736
+ alias_method :can_download?, :can_download
1737
+
1738
+ # Whether the file can be edited by the current user.
1739
+ # Corresponds to the JSON property `canEdit`
1740
+ # @return [Boolean]
1741
+ attr_accessor :can_edit
1742
+ alias_method :can_edit?, :can_edit
1743
+
1744
+ # Whether the current user can list the children of this folder. This is always
1745
+ # false when the item is not a folder.
1746
+ # Corresponds to the JSON property `canListChildren`
1747
+ # @return [Boolean]
1748
+ attr_accessor :can_list_children
1749
+ alias_method :can_list_children?, :can_list_children
1750
+
1751
+ # Whether the current user can move this item into a Team Drive. If the item is
1752
+ # in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
1753
+ # Corresponds to the JSON property `canMoveItemIntoTeamDrive`
1754
+ # @return [Boolean]
1755
+ attr_accessor :can_move_item_into_team_drive
1756
+ alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
1757
+
1758
+ # Whether the current user can move this Team Drive item by changing its parent.
1759
+ # Note that a request to change the parent for this item may still fail
1760
+ # depending on the new parent that is being added. Only populated for Team Drive
1761
+ # files.
1762
+ # Corresponds to the JSON property `canMoveTeamDriveItem`
1763
+ # @return [Boolean]
1764
+ attr_accessor :can_move_team_drive_item
1765
+ alias_method :can_move_team_drive_item?, :can_move_team_drive_item
1766
+
1767
+ # Whether the current user has read access to the Revisions resource of the file.
1768
+ # For a Team Drive item, whether revisions of non-folder descendants of this
1769
+ # item, or this item itself if it is not a folder, can be read.
1770
+ # Corresponds to the JSON property `canReadRevisions`
1771
+ # @return [Boolean]
1772
+ attr_accessor :can_read_revisions
1773
+ alias_method :can_read_revisions?, :can_read_revisions
1774
+
1775
+ # Whether the current user has read access to the Team Drive to which this file
1776
+ # belongs. Only populated for Team Drive files.
1777
+ # Corresponds to the JSON property `canReadTeamDrive`
1778
+ # @return [Boolean]
1779
+ attr_accessor :can_read_team_drive
1780
+ alias_method :can_read_team_drive?, :can_read_team_drive
1781
+
1782
+ # Whether the current user can remove children from this folder. This is always
1783
+ # false when the item is not a folder.
1784
+ # Corresponds to the JSON property `canRemoveChildren`
1785
+ # @return [Boolean]
1786
+ attr_accessor :can_remove_children
1787
+ alias_method :can_remove_children?, :can_remove_children
1788
+
1789
+ # Whether the file can be renamed by the current user.
1790
+ # Corresponds to the JSON property `canRename`
1791
+ # @return [Boolean]
1792
+ attr_accessor :can_rename
1793
+ alias_method :can_rename?, :can_rename
1794
+
1795
+ # Whether the file's sharing settings can be modified by the current user.
1796
+ # Corresponds to the JSON property `canShare`
1797
+ # @return [Boolean]
1798
+ attr_accessor :can_share
1799
+ alias_method :can_share?, :can_share
1800
+
1801
+ # Whether the file can be trashed by the current user.
1802
+ # Corresponds to the JSON property `canTrash`
1803
+ # @return [Boolean]
1804
+ attr_accessor :can_trash
1805
+ alias_method :can_trash?, :can_trash
1806
+
1807
+ # Whether the file can be restored from the trash by the current user.
1808
+ # Corresponds to the JSON property `canUntrash`
1809
+ # @return [Boolean]
1810
+ attr_accessor :can_untrash
1811
+ alias_method :can_untrash?, :can_untrash
1812
+
1813
+ def initialize(**args)
1814
+ update!(**args)
1815
+ end
1816
+
1817
+ # Update properties of this object
1818
+ def update!(**args)
1819
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1820
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
1821
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
1822
+ @can_delete = args[:can_delete] if args.key?(:can_delete)
1823
+ @can_download = args[:can_download] if args.key?(:can_download)
1824
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
1825
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1826
+ @can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
1827
+ @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
1828
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1829
+ @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1830
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
1831
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
1832
+ @can_share = args[:can_share] if args.key?(:can_share)
1833
+ @can_trash = args[:can_trash] if args.key?(:can_trash)
1834
+ @can_untrash = args[:can_untrash] if args.key?(:can_untrash)
1835
+ end
1836
+ end
1837
+
1632
1838
  # Metadata about image media. This will only be present for image types, and its
1633
1839
  # contents will depend on what can be parsed from the image content.
1634
1840
  class ImageMediaMetadata
@@ -1946,6 +2152,17 @@ module Google
1946
2152
  # @return [String]
1947
2153
  attr_accessor :etag
1948
2154
 
2155
+ # Whether the search process was incomplete. If true, then some search results
2156
+ # may be missing, since all documents were not searched. This may occur when
2157
+ # searching multiple Team Drives with the "default,allTeamDrives" corpora, but
2158
+ # all corpora could not be searched. When this happens, it is suggested that
2159
+ # clients narrow their query by choosing a different corpus such as "default" or
2160
+ # "teamDrive".
2161
+ # Corresponds to the JSON property `incompleteSearch`
2162
+ # @return [Boolean]
2163
+ attr_accessor :incomplete_search
2164
+ alias_method :incomplete_search?, :incomplete_search
2165
+
1949
2166
  # The list of files. If nextPageToken is populated, then this list may be
1950
2167
  # incomplete and an additional page of results should be fetched.
1951
2168
  # Corresponds to the JSON property `items`
@@ -1982,6 +2199,7 @@ module Google
1982
2199
  # Update properties of this object
1983
2200
  def update!(**args)
1984
2201
  @etag = args[:etag] if args.key?(:etag)
2202
+ @incomplete_search = args[:incomplete_search] if args.key?(:incomplete_search)
1985
2203
  @items = args[:items] if args.key?(:items)
1986
2204
  @kind = args[:kind] if args.key?(:kind)
1987
2205
  @next_link = args[:next_link] if args.key?(:next_link)
@@ -2106,7 +2324,8 @@ module Google
2106
2324
  class Permission
2107
2325
  include Google::Apis::Core::Hashable
2108
2326
 
2109
- # Additional roles for this user. Only commenter is currently allowed.
2327
+ # Additional roles for this user. Only commenter is currently allowed, though
2328
+ # more may be supported in the future.
2110
2329
  # Corresponds to the JSON property `additionalRoles`
2111
2330
  # @return [Array<String>]
2112
2331
  attr_accessor :additional_roles
@@ -2133,7 +2352,12 @@ module Google
2133
2352
  # @return [String]
2134
2353
  attr_accessor :etag
2135
2354
 
2136
- # The time at which this permission will expire (RFC 3339 date-time).
2355
+ # The time at which this permission will expire (RFC 3339 date-time). Expiration
2356
+ # dates have the following restrictions:
2357
+ # - They can only be set on user and group permissions
2358
+ # - The date must be in the future
2359
+ # - The date cannot be more than a year in the future
2360
+ # - The date can only be set on drive.permissions.update requests
2137
2361
  # Corresponds to the JSON property `expirationDate`
2138
2362
  # @return [DateTime]
2139
2363
  attr_accessor :expiration_date
@@ -2161,7 +2385,9 @@ module Google
2161
2385
  # @return [String]
2162
2386
  attr_accessor :photo_link
2163
2387
 
2164
- # The primary role for this user. Allowed values are:
2388
+ # The primary role for this user. While new values may be supported in the
2389
+ # future, the following are currently allowed:
2390
+ # - organizer
2165
2391
  # - owner
2166
2392
  # - reader
2167
2393
  # - writer
@@ -2174,6 +2400,13 @@ module Google
2174
2400
  # @return [String]
2175
2401
  attr_accessor :self_link
2176
2402
 
2403
+ # Details of whether the Permissions on this Team Drive item are inherited or
2404
+ # directly on this item. This is an output-only field which is present only for
2405
+ # Team Drive items.
2406
+ # Corresponds to the JSON property `teamDrivePermissionDetails`
2407
+ # @return [Array<Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail>]
2408
+ attr_accessor :team_drive_permission_details
2409
+
2177
2410
  # The account type. Allowed values are:
2178
2411
  # - user
2179
2412
  # - group
@@ -2215,10 +2448,65 @@ module Google
2215
2448
  @photo_link = args[:photo_link] if args.key?(:photo_link)
2216
2449
  @role = args[:role] if args.key?(:role)
2217
2450
  @self_link = args[:self_link] if args.key?(:self_link)
2451
+ @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details)
2218
2452
  @type = args[:type] if args.key?(:type)
2219
2453
  @value = args[:value] if args.key?(:value)
2220
2454
  @with_link = args[:with_link] if args.key?(:with_link)
2221
2455
  end
2456
+
2457
+ #
2458
+ class TeamDrivePermissionDetail
2459
+ include Google::Apis::Core::Hashable
2460
+
2461
+ # Additional roles for this user. Only commenter is currently possible, though
2462
+ # more may be supported in the future.
2463
+ # Corresponds to the JSON property `additionalRoles`
2464
+ # @return [Array<String>]
2465
+ attr_accessor :additional_roles
2466
+
2467
+ # Whether this permission is inherited. This field is always populated. This is
2468
+ # an output-only field.
2469
+ # Corresponds to the JSON property `inherited`
2470
+ # @return [Boolean]
2471
+ attr_accessor :inherited
2472
+ alias_method :inherited?, :inherited
2473
+
2474
+ # The ID of the item from which this permission is inherited. This is an output-
2475
+ # only field and is only populated for members of the Team Drive.
2476
+ # Corresponds to the JSON property `inheritedFrom`
2477
+ # @return [String]
2478
+ attr_accessor :inherited_from
2479
+
2480
+ # The primary role for this user. While new values may be added in the future,
2481
+ # the following are currently possible:
2482
+ # - organizer
2483
+ # - reader
2484
+ # - writer
2485
+ # Corresponds to the JSON property `role`
2486
+ # @return [String]
2487
+ attr_accessor :role
2488
+
2489
+ # The Team Drive permission type for this user. While new values may be added in
2490
+ # future, the following are currently possible:
2491
+ # - file
2492
+ # - member
2493
+ # Corresponds to the JSON property `teamDrivePermissionType`
2494
+ # @return [String]
2495
+ attr_accessor :team_drive_permission_type
2496
+
2497
+ def initialize(**args)
2498
+ update!(**args)
2499
+ end
2500
+
2501
+ # Update properties of this object
2502
+ def update!(**args)
2503
+ @additional_roles = args[:additional_roles] if args.key?(:additional_roles)
2504
+ @inherited = args[:inherited] if args.key?(:inherited)
2505
+ @inherited_from = args[:inherited_from] if args.key?(:inherited_from)
2506
+ @role = args[:role] if args.key?(:role)
2507
+ @team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type)
2508
+ end
2509
+ end
2222
2510
  end
2223
2511
 
2224
2512
  # An ID for a user or group as seen in Permission items.
@@ -2265,6 +2553,14 @@ module Google
2265
2553
  # @return [String]
2266
2554
  attr_accessor :kind
2267
2555
 
2556
+ # The page token for the next page of permissions. This field will be absent if
2557
+ # the end of the permissions list has been reached. If the token is rejected for
2558
+ # any reason, it should be discarded, and pagination should be restarted from
2559
+ # the first page of results.
2560
+ # Corresponds to the JSON property `nextPageToken`
2561
+ # @return [String]
2562
+ attr_accessor :next_page_token
2563
+
2268
2564
  # A link back to this list.
2269
2565
  # Corresponds to the JSON property `selfLink`
2270
2566
  # @return [String]
@@ -2279,6 +2575,7 @@ module Google
2279
2575
  @etag = args[:etag] if args.key?(:etag)
2280
2576
  @items = args[:items] if args.key?(:items)
2281
2577
  @kind = args[:kind] if args.key?(:kind)
2578
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2282
2579
  @self_link = args[:self_link] if args.key?(:self_link)
2283
2580
  end
2284
2581
  end
@@ -2585,6 +2882,181 @@ module Google
2585
2882
  end
2586
2883
  end
2587
2884
 
2885
+ # Representation of a Team Drive.
2886
+ class TeamDrive
2887
+ include Google::Apis::Core::Hashable
2888
+
2889
+ # Capabilities the current user has on this Team Drive.
2890
+ # Corresponds to the JSON property `capabilities`
2891
+ # @return [Google::Apis::DriveV2::TeamDrive::Capabilities]
2892
+ attr_accessor :capabilities
2893
+
2894
+ # The ID of this Team Drive which is also the ID of the top level folder for
2895
+ # this Team Drive.
2896
+ # Corresponds to the JSON property `id`
2897
+ # @return [String]
2898
+ attr_accessor :id
2899
+
2900
+ # This is always drive#teamDrive
2901
+ # Corresponds to the JSON property `kind`
2902
+ # @return [String]
2903
+ attr_accessor :kind
2904
+
2905
+ # The name of this Team Drive.
2906
+ # Corresponds to the JSON property `name`
2907
+ # @return [String]
2908
+ attr_accessor :name
2909
+
2910
+ def initialize(**args)
2911
+ update!(**args)
2912
+ end
2913
+
2914
+ # Update properties of this object
2915
+ def update!(**args)
2916
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
2917
+ @id = args[:id] if args.key?(:id)
2918
+ @kind = args[:kind] if args.key?(:kind)
2919
+ @name = args[:name] if args.key?(:name)
2920
+ end
2921
+
2922
+ # Capabilities the current user has on this Team Drive.
2923
+ class Capabilities
2924
+ include Google::Apis::Core::Hashable
2925
+
2926
+ # Whether the current user can add children to folders in this Team Drive.
2927
+ # Corresponds to the JSON property `canAddChildren`
2928
+ # @return [Boolean]
2929
+ attr_accessor :can_add_children
2930
+ alias_method :can_add_children?, :can_add_children
2931
+
2932
+ # Whether the current user can comment on files in this Team Drive.
2933
+ # Corresponds to the JSON property `canComment`
2934
+ # @return [Boolean]
2935
+ attr_accessor :can_comment
2936
+ alias_method :can_comment?, :can_comment
2937
+
2938
+ # Whether files in this Team Drive can be copied by the current user.
2939
+ # Corresponds to the JSON property `canCopy`
2940
+ # @return [Boolean]
2941
+ attr_accessor :can_copy
2942
+ alias_method :can_copy?, :can_copy
2943
+
2944
+ # Whether this Team Drive can be deleted by the current user.
2945
+ # Corresponds to the JSON property `canDeleteTeamDrive`
2946
+ # @return [Boolean]
2947
+ attr_accessor :can_delete_team_drive
2948
+ alias_method :can_delete_team_drive?, :can_delete_team_drive
2949
+
2950
+ # Whether files in this Team Drive can be downloaded by the current user.
2951
+ # Corresponds to the JSON property `canDownload`
2952
+ # @return [Boolean]
2953
+ attr_accessor :can_download
2954
+ alias_method :can_download?, :can_download
2955
+
2956
+ # Whether files in this Team Drive can be edited by the current user.
2957
+ # Corresponds to the JSON property `canEdit`
2958
+ # @return [Boolean]
2959
+ attr_accessor :can_edit
2960
+ alias_method :can_edit?, :can_edit
2961
+
2962
+ # Whether the current user can list the children of folders in this Team Drive.
2963
+ # Corresponds to the JSON property `canListChildren`
2964
+ # @return [Boolean]
2965
+ attr_accessor :can_list_children
2966
+ alias_method :can_list_children?, :can_list_children
2967
+
2968
+ # Whether the current user can add members to this Team Drive or remove them or
2969
+ # change their role.
2970
+ # Corresponds to the JSON property `canManageMembers`
2971
+ # @return [Boolean]
2972
+ attr_accessor :can_manage_members
2973
+ alias_method :can_manage_members?, :can_manage_members
2974
+
2975
+ # Whether the current user has read access to the Revisions resource of files in
2976
+ # this Team Drive.
2977
+ # Corresponds to the JSON property `canReadRevisions`
2978
+ # @return [Boolean]
2979
+ attr_accessor :can_read_revisions
2980
+ alias_method :can_read_revisions?, :can_read_revisions
2981
+
2982
+ # Whether the current user can remove children from folders in this Team Drive.
2983
+ # Corresponds to the JSON property `canRemoveChildren`
2984
+ # @return [Boolean]
2985
+ attr_accessor :can_remove_children
2986
+ alias_method :can_remove_children?, :can_remove_children
2987
+
2988
+ # Whether files or folders in this Team Drive can be renamed by the current user.
2989
+ # Corresponds to the JSON property `canRename`
2990
+ # @return [Boolean]
2991
+ attr_accessor :can_rename
2992
+ alias_method :can_rename?, :can_rename
2993
+
2994
+ # Whether this Team Drive can be renamed by the current user.
2995
+ # Corresponds to the JSON property `canRenameTeamDrive`
2996
+ # @return [Boolean]
2997
+ attr_accessor :can_rename_team_drive
2998
+ alias_method :can_rename_team_drive?, :can_rename_team_drive
2999
+
3000
+ # Whether the current user can share files or folders in this Team Drive.
3001
+ # Corresponds to the JSON property `canShare`
3002
+ # @return [Boolean]
3003
+ attr_accessor :can_share
3004
+ alias_method :can_share?, :can_share
3005
+
3006
+ def initialize(**args)
3007
+ update!(**args)
3008
+ end
3009
+
3010
+ # Update properties of this object
3011
+ def update!(**args)
3012
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
3013
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
3014
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
3015
+ @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
3016
+ @can_download = args[:can_download] if args.key?(:can_download)
3017
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
3018
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
3019
+ @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
3020
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
3021
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
3022
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
3023
+ @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
3024
+ @can_share = args[:can_share] if args.key?(:can_share)
3025
+ end
3026
+ end
3027
+ end
3028
+
3029
+ # A list of Team Drives.
3030
+ class TeamDriveList
3031
+ include Google::Apis::Core::Hashable
3032
+
3033
+ # The list of Team Drives.
3034
+ # Corresponds to the JSON property `items`
3035
+ # @return [Array<Google::Apis::DriveV2::TeamDrive>]
3036
+ attr_accessor :items
3037
+
3038
+ # This is always drive#teamDriveList
3039
+ # Corresponds to the JSON property `kind`
3040
+ # @return [String]
3041
+ attr_accessor :kind
3042
+
3043
+ # The page token for the next page of Team Drives.
3044
+ # Corresponds to the JSON property `nextPageToken`
3045
+ # @return [String]
3046
+ attr_accessor :next_page_token
3047
+
3048
+ def initialize(**args)
3049
+ update!(**args)
3050
+ end
3051
+
3052
+ # Update properties of this object
3053
+ def update!(**args)
3054
+ @items = args[:items] if args.key?(:items)
3055
+ @kind = args[:kind] if args.key?(:kind)
3056
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3057
+ end
3058
+ end
3059
+
2588
3060
  # Information about a Drive user.
2589
3061
  class User
2590
3062
  include Google::Apis::Core::Hashable