google-api-client 0.45.1 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
  5. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  6. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
  9. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +5 -5
  12. data/generated/google/apis/apigee_v1/service.rb +21 -19
  13. data/generated/google/apis/appsmarket_v2.rb +1 -1
  14. data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
  15. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +264 -0
  16. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +129 -0
  17. data/generated/google/apis/bigquery_v2.rb +1 -1
  18. data/generated/google/apis/bigquery_v2/classes.rb +38 -18
  19. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  20. data/generated/google/apis/books_v1.rb +1 -1
  21. data/generated/google/apis/books_v1/service.rb +2 -2
  22. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  23. data/generated/google/apis/cloudidentity_v1/classes.rb +78 -64
  24. data/generated/google/apis/cloudidentity_v1/service.rb +85 -69
  25. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  26. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +3 -0
  27. data/generated/google/apis/cloudidentity_v1beta1/service.rb +26 -11
  28. data/generated/google/apis/composer_v1beta1.rb +1 -1
  29. data/generated/google/apis/composer_v1beta1/classes.rb +2 -1
  30. data/generated/google/apis/compute_alpha.rb +1 -1
  31. data/generated/google/apis/compute_alpha/classes.rb +513 -131
  32. data/generated/google/apis/compute_alpha/representations.rb +124 -8
  33. data/generated/google/apis/compute_alpha/service.rb +1685 -762
  34. data/generated/google/apis/compute_beta.rb +1 -1
  35. data/generated/google/apis/compute_beta/classes.rb +491 -83
  36. data/generated/google/apis/compute_beta/representations.rb +96 -1
  37. data/generated/google/apis/compute_beta/service.rb +802 -133
  38. data/generated/google/apis/compute_v1.rb +1 -1
  39. data/generated/google/apis/compute_v1/classes.rb +308 -45
  40. data/generated/google/apis/compute_v1/representations.rb +54 -1
  41. data/generated/google/apis/compute_v1/service.rb +736 -130
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +2 -1
  44. data/generated/google/apis/content_v2_1.rb +1 -1
  45. data/generated/google/apis/content_v2_1/classes.rb +2 -1
  46. data/generated/google/apis/datafusion_v1.rb +1 -1
  47. data/generated/google/apis/dataproc_v1.rb +1 -1
  48. data/generated/google/apis/dataproc_v1/classes.rb +28 -2
  49. data/generated/google/apis/dataproc_v1/representations.rb +15 -0
  50. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  51. data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
  52. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  53. data/generated/google/apis/dialogflow_v2.rb +1 -1
  54. data/generated/google/apis/dialogflow_v2/classes.rb +87 -0
  55. data/generated/google/apis/dialogflow_v2/representations.rb +45 -0
  56. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  57. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -8
  58. data/generated/google/apis/dialogflow_v2beta1/representations.rb +45 -0
  59. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  60. data/generated/google/apis/dialogflow_v3beta1/classes.rb +87 -0
  61. data/generated/google/apis/dialogflow_v3beta1/representations.rb +45 -0
  62. data/generated/google/apis/file_v1.rb +1 -1
  63. data/generated/google/apis/file_v1/classes.rb +1 -1
  64. data/generated/google/apis/file_v1beta1.rb +1 -1
  65. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  66. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  67. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  68. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  69. data/generated/google/apis/jobs_v2.rb +1 -1
  70. data/generated/google/apis/jobs_v2/classes.rb +798 -0
  71. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  72. data/generated/google/apis/jobs_v3.rb +1 -1
  73. data/generated/google/apis/jobs_v3/classes.rb +798 -0
  74. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  75. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  76. data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
  77. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  78. data/generated/google/apis/managedidentities_v1.rb +1 -1
  79. data/generated/google/apis/managedidentities_v1/classes.rb +7 -0
  80. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  81. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  82. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +7 -0
  83. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  84. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  85. data/generated/google/apis/managedidentities_v1beta1/classes.rb +7 -0
  86. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  87. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  88. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  89. data/generated/google/apis/monitoring_v3.rb +1 -1
  90. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  91. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  92. data/generated/google/apis/osconfig_v1.rb +3 -3
  93. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  94. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  95. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  96. data/generated/google/apis/pubsublite_v1.rb +1 -1
  97. data/generated/google/apis/pubsublite_v1/classes.rb +2 -2
  98. data/generated/google/apis/recommender_v1.rb +1 -1
  99. data/generated/google/apis/recommender_v1/service.rb +4 -2
  100. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  101. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  102. data/generated/google/apis/redis_v1.rb +1 -1
  103. data/generated/google/apis/redis_v1/classes.rb +5 -5
  104. data/generated/google/apis/redis_v1/service.rb +2 -2
  105. data/generated/google/apis/redis_v1beta1.rb +1 -1
  106. data/generated/google/apis/redis_v1beta1/classes.rb +33 -5
  107. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  108. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  109. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  110. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -1
  111. data/generated/google/apis/sheets_v4.rb +1 -1
  112. data/generated/google/apis/sheets_v4/classes.rb +174 -84
  113. data/generated/google/apis/storage_v1.rb +1 -1
  114. data/generated/google/apis/storage_v1/classes.rb +2 -10
  115. data/generated/google/apis/storage_v1/representations.rb +0 -1
  116. data/generated/google/apis/storage_v1/service.rb +3 -2
  117. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  118. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  119. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  120. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  121. data/generated/google/apis/translate_v3.rb +1 -1
  122. data/generated/google/apis/translate_v3/classes.rb +2 -2
  123. data/generated/google/apis/videointelligence_v1.rb +1 -1
  124. data/generated/google/apis/videointelligence_v1/classes.rb +308 -13
  125. data/generated/google/apis/videointelligence_v1/representations.rb +162 -3
  126. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  127. data/generated/google/apis/videointelligence_v1beta2/classes.rb +308 -13
  128. data/generated/google/apis/videointelligence_v1beta2/representations.rb +162 -3
  129. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  130. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +308 -13
  131. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +162 -3
  132. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  133. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +308 -13
  134. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +162 -3
  135. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  136. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +224 -13
  137. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +128 -3
  138. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  139. data/generated/google/apis/youtube_v3.rb +1 -1
  140. data/generated/google/apis/youtube_v3/service.rb +2 -2
  141. data/lib/google/apis/version.rb +1 -1
  142. metadata +3 -15
  143. data/generated/google/apis/apigateway_v1alpha1.rb +0 -34
  144. data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
  145. data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
  146. data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
  147. data/generated/google/apis/apigateway_v1alpha2.rb +0 -34
  148. data/generated/google/apis/apigateway_v1alpha2/classes.rb +0 -633
  149. data/generated/google/apis/apigateway_v1alpha2/representations.rb +0 -250
  150. data/generated/google/apis/apigateway_v1alpha2/service.rb +0 -623
  151. data/generated/google/apis/appsactivity_v1.rb +0 -34
  152. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  153. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  154. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
@@ -1,34 +0,0 @@
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/appsactivity_v1/service.rb'
16
- require 'google/apis/appsactivity_v1/classes.rb'
17
- require 'google/apis/appsactivity_v1/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # Drive Activity API
22
- #
23
- # Provides a historical view of activity.
24
- #
25
- # @see https://developers.google.com/google-apps/activity/
26
- module AppsactivityV1
27
- VERSION = 'V1'
28
- REVISION = '20200128'
29
-
30
- # View the activity history of your Google apps
31
- AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
32
- end
33
- end
34
- end
@@ -1,415 +0,0 @@
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 AppsactivityV1
24
-
25
- # An Activity resource is a combined view of multiple events. An activity has a
26
- # list of individual events and a combined view of the common fields among all
27
- # events.
28
- class Activity
29
- include Google::Apis::Core::Hashable
30
-
31
- # Represents the changes associated with an action taken by a user.
32
- # Corresponds to the JSON property `combinedEvent`
33
- # @return [Google::Apis::AppsactivityV1::Event]
34
- attr_accessor :combined_event
35
-
36
- # A list of all the Events that make up the Activity.
37
- # Corresponds to the JSON property `singleEvents`
38
- # @return [Array<Google::Apis::AppsactivityV1::Event>]
39
- attr_accessor :single_events
40
-
41
- def initialize(**args)
42
- update!(**args)
43
- end
44
-
45
- # Update properties of this object
46
- def update!(**args)
47
- @combined_event = args[:combined_event] if args.key?(:combined_event)
48
- @single_events = args[:single_events] if args.key?(:single_events)
49
- end
50
- end
51
-
52
- # Represents the changes associated with an action taken by a user.
53
- class Event
54
- include Google::Apis::Core::Hashable
55
-
56
- # Additional event types. Some events may have multiple types when multiple
57
- # actions are part of a single event. For example, creating a document, renaming
58
- # it, and sharing it may be part of a single file-creation event.
59
- # Corresponds to the JSON property `additionalEventTypes`
60
- # @return [Array<String>]
61
- attr_accessor :additional_event_types
62
-
63
- # The time at which the event occurred formatted as Unix time in milliseconds.
64
- # Corresponds to the JSON property `eventTimeMillis`
65
- # @return [Fixnum]
66
- attr_accessor :event_time_millis
67
-
68
- # Whether this event is caused by a user being deleted.
69
- # Corresponds to the JSON property `fromUserDeletion`
70
- # @return [Boolean]
71
- attr_accessor :from_user_deletion
72
- alias_method :from_user_deletion?, :from_user_deletion
73
-
74
- # Contains information about changes in an object's parents as a result of a
75
- # move type event.
76
- # Corresponds to the JSON property `move`
77
- # @return [Google::Apis::AppsactivityV1::Move]
78
- attr_accessor :move
79
-
80
- # Extra information for permissionChange type events, such as the user or group
81
- # the new permission applies to.
82
- # Corresponds to the JSON property `permissionChanges`
83
- # @return [Array<Google::Apis::AppsactivityV1::PermissionChange>]
84
- attr_accessor :permission_changes
85
-
86
- # The main type of event that occurred.
87
- # Corresponds to the JSON property `primaryEventType`
88
- # @return [String]
89
- attr_accessor :primary_event_type
90
-
91
- # Contains information about a renametype event.
92
- # Corresponds to the JSON property `rename`
93
- # @return [Google::Apis::AppsactivityV1::Rename]
94
- attr_accessor :rename
95
-
96
- # Information about the object modified by the event.
97
- # Corresponds to the JSON property `target`
98
- # @return [Google::Apis::AppsactivityV1::Target]
99
- attr_accessor :target
100
-
101
- # A representation of a user.
102
- # Corresponds to the JSON property `user`
103
- # @return [Google::Apis::AppsactivityV1::User]
104
- attr_accessor :user
105
-
106
- def initialize(**args)
107
- update!(**args)
108
- end
109
-
110
- # Update properties of this object
111
- def update!(**args)
112
- @additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types)
113
- @event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis)
114
- @from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion)
115
- @move = args[:move] if args.key?(:move)
116
- @permission_changes = args[:permission_changes] if args.key?(:permission_changes)
117
- @primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type)
118
- @rename = args[:rename] if args.key?(:rename)
119
- @target = args[:target] if args.key?(:target)
120
- @user = args[:user] if args.key?(:user)
121
- end
122
- end
123
-
124
- # The response from the list request. Contains a list of activities and a token
125
- # to retrieve the next page of results.
126
- class ListActivitiesResponse
127
- include Google::Apis::Core::Hashable
128
-
129
- # List of activities.
130
- # Corresponds to the JSON property `activities`
131
- # @return [Array<Google::Apis::AppsactivityV1::Activity>]
132
- attr_accessor :activities
133
-
134
- # Token for the next page of results.
135
- # Corresponds to the JSON property `nextPageToken`
136
- # @return [String]
137
- attr_accessor :next_page_token
138
-
139
- def initialize(**args)
140
- update!(**args)
141
- end
142
-
143
- # Update properties of this object
144
- def update!(**args)
145
- @activities = args[:activities] if args.key?(:activities)
146
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
147
- end
148
- end
149
-
150
- # Contains information about changes in an object's parents as a result of a
151
- # move type event.
152
- class Move
153
- include Google::Apis::Core::Hashable
154
-
155
- # The added parent(s).
156
- # Corresponds to the JSON property `addedParents`
157
- # @return [Array<Google::Apis::AppsactivityV1::Parent>]
158
- attr_accessor :added_parents
159
-
160
- # The removed parent(s).
161
- # Corresponds to the JSON property `removedParents`
162
- # @return [Array<Google::Apis::AppsactivityV1::Parent>]
163
- attr_accessor :removed_parents
164
-
165
- def initialize(**args)
166
- update!(**args)
167
- end
168
-
169
- # Update properties of this object
170
- def update!(**args)
171
- @added_parents = args[:added_parents] if args.key?(:added_parents)
172
- @removed_parents = args[:removed_parents] if args.key?(:removed_parents)
173
- end
174
- end
175
-
176
- # Contains information about a parent object. For example, a folder in Drive is
177
- # a parent for all files within it.
178
- class Parent
179
- include Google::Apis::Core::Hashable
180
-
181
- # The parent's ID.
182
- # Corresponds to the JSON property `id`
183
- # @return [String]
184
- attr_accessor :id
185
-
186
- # Whether this is the root folder.
187
- # Corresponds to the JSON property `isRoot`
188
- # @return [Boolean]
189
- attr_accessor :is_root
190
- alias_method :is_root?, :is_root
191
-
192
- # The parent's title.
193
- # Corresponds to the JSON property `title`
194
- # @return [String]
195
- attr_accessor :title
196
-
197
- def initialize(**args)
198
- update!(**args)
199
- end
200
-
201
- # Update properties of this object
202
- def update!(**args)
203
- @id = args[:id] if args.key?(:id)
204
- @is_root = args[:is_root] if args.key?(:is_root)
205
- @title = args[:title] if args.key?(:title)
206
- end
207
- end
208
-
209
- # Contains information about the permissions and type of access allowed with
210
- # regards to a Google Drive object. This is a subset of the fields contained in
211
- # a corresponding Drive Permissions object.
212
- class Permission
213
- include Google::Apis::Core::Hashable
214
-
215
- # The name of the user or group the permission applies to.
216
- # Corresponds to the JSON property `name`
217
- # @return [String]
218
- attr_accessor :name
219
-
220
- # The ID for this permission. Corresponds to the Drive API's permission ID
221
- # returned as part of the Drive Permissions resource.
222
- # Corresponds to the JSON property `permissionId`
223
- # @return [String]
224
- attr_accessor :permission_id
225
-
226
- # Indicates the Google Drive permissions role. The role determines a user's
227
- # ability to read, write, or comment on the file.
228
- # Corresponds to the JSON property `role`
229
- # @return [String]
230
- attr_accessor :role
231
-
232
- # Indicates how widely permissions are granted.
233
- # Corresponds to the JSON property `type`
234
- # @return [String]
235
- attr_accessor :type
236
-
237
- # A representation of a user.
238
- # Corresponds to the JSON property `user`
239
- # @return [Google::Apis::AppsactivityV1::User]
240
- attr_accessor :user
241
-
242
- # Whether the permission requires a link to the file.
243
- # Corresponds to the JSON property `withLink`
244
- # @return [Boolean]
245
- attr_accessor :with_link
246
- alias_method :with_link?, :with_link
247
-
248
- def initialize(**args)
249
- update!(**args)
250
- end
251
-
252
- # Update properties of this object
253
- def update!(**args)
254
- @name = args[:name] if args.key?(:name)
255
- @permission_id = args[:permission_id] if args.key?(:permission_id)
256
- @role = args[:role] if args.key?(:role)
257
- @type = args[:type] if args.key?(:type)
258
- @user = args[:user] if args.key?(:user)
259
- @with_link = args[:with_link] if args.key?(:with_link)
260
- end
261
- end
262
-
263
- # Contains information about a Drive object's permissions that changed as a
264
- # result of a permissionChange type event.
265
- class PermissionChange
266
- include Google::Apis::Core::Hashable
267
-
268
- # Lists all Permission objects added.
269
- # Corresponds to the JSON property `addedPermissions`
270
- # @return [Array<Google::Apis::AppsactivityV1::Permission>]
271
- attr_accessor :added_permissions
272
-
273
- # Lists all Permission objects removed.
274
- # Corresponds to the JSON property `removedPermissions`
275
- # @return [Array<Google::Apis::AppsactivityV1::Permission>]
276
- attr_accessor :removed_permissions
277
-
278
- def initialize(**args)
279
- update!(**args)
280
- end
281
-
282
- # Update properties of this object
283
- def update!(**args)
284
- @added_permissions = args[:added_permissions] if args.key?(:added_permissions)
285
- @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions)
286
- end
287
- end
288
-
289
- # Photo information for a user.
290
- class Photo
291
- include Google::Apis::Core::Hashable
292
-
293
- # The URL of the photo.
294
- # Corresponds to the JSON property `url`
295
- # @return [String]
296
- attr_accessor :url
297
-
298
- def initialize(**args)
299
- update!(**args)
300
- end
301
-
302
- # Update properties of this object
303
- def update!(**args)
304
- @url = args[:url] if args.key?(:url)
305
- end
306
- end
307
-
308
- # Contains information about a renametype event.
309
- class Rename
310
- include Google::Apis::Core::Hashable
311
-
312
- # The new title.
313
- # Corresponds to the JSON property `newTitle`
314
- # @return [String]
315
- attr_accessor :new_title
316
-
317
- # The old title.
318
- # Corresponds to the JSON property `oldTitle`
319
- # @return [String]
320
- attr_accessor :old_title
321
-
322
- def initialize(**args)
323
- update!(**args)
324
- end
325
-
326
- # Update properties of this object
327
- def update!(**args)
328
- @new_title = args[:new_title] if args.key?(:new_title)
329
- @old_title = args[:old_title] if args.key?(:old_title)
330
- end
331
- end
332
-
333
- # Information about the object modified by the event.
334
- class Target
335
- include Google::Apis::Core::Hashable
336
-
337
- # The ID of the target. For example, in Google Drive, this is the file or folder
338
- # ID.
339
- # Corresponds to the JSON property `id`
340
- # @return [String]
341
- attr_accessor :id
342
-
343
- # The MIME type of the target.
344
- # Corresponds to the JSON property `mimeType`
345
- # @return [String]
346
- attr_accessor :mime_type
347
-
348
- # The name of the target. For example, in Google Drive, this is the title of the
349
- # file.
350
- # Corresponds to the JSON property `name`
351
- # @return [String]
352
- attr_accessor :name
353
-
354
- def initialize(**args)
355
- update!(**args)
356
- end
357
-
358
- # Update properties of this object
359
- def update!(**args)
360
- @id = args[:id] if args.key?(:id)
361
- @mime_type = args[:mime_type] if args.key?(:mime_type)
362
- @name = args[:name] if args.key?(:name)
363
- end
364
- end
365
-
366
- # A representation of a user.
367
- class User
368
- include Google::Apis::Core::Hashable
369
-
370
- # A boolean which indicates whether the specified User was deleted. If true,
371
- # name, photo and permission_id will be omitted.
372
- # Corresponds to the JSON property `isDeleted`
373
- # @return [Boolean]
374
- attr_accessor :is_deleted
375
- alias_method :is_deleted?, :is_deleted
376
-
377
- # Whether the user is the authenticated user.
378
- # Corresponds to the JSON property `isMe`
379
- # @return [Boolean]
380
- attr_accessor :is_me
381
- alias_method :is_me?, :is_me
382
-
383
- # The displayable name of the user.
384
- # Corresponds to the JSON property `name`
385
- # @return [String]
386
- attr_accessor :name
387
-
388
- # The permission ID associated with this user. Equivalent to the Drive API's
389
- # permission ID for this user, returned as part of the Drive Permissions
390
- # resource.
391
- # Corresponds to the JSON property `permissionId`
392
- # @return [String]
393
- attr_accessor :permission_id
394
-
395
- # Photo information for a user.
396
- # Corresponds to the JSON property `photo`
397
- # @return [Google::Apis::AppsactivityV1::Photo]
398
- attr_accessor :photo
399
-
400
- def initialize(**args)
401
- update!(**args)
402
- end
403
-
404
- # Update properties of this object
405
- def update!(**args)
406
- @is_deleted = args[:is_deleted] if args.key?(:is_deleted)
407
- @is_me = args[:is_me] if args.key?(:is_me)
408
- @name = args[:name] if args.key?(:name)
409
- @permission_id = args[:permission_id] if args.key?(:permission_id)
410
- @photo = args[:photo] if args.key?(:photo)
411
- end
412
- end
413
- end
414
- end
415
- end
@@ -1,209 +0,0 @@
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 AppsactivityV1
24
-
25
- class Activity
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class Event
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class ListActivitiesResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class Move
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class Parent
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class Permission
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class PermissionChange
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class Photo
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class Rename
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class Target
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class User
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class Activity
92
- # @private
93
- class Representation < Google::Apis::Core::JsonRepresentation
94
- property :combined_event, as: 'combinedEvent', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation
95
-
96
- collection :single_events, as: 'singleEvents', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation
97
-
98
- end
99
- end
100
-
101
- class Event
102
- # @private
103
- class Representation < Google::Apis::Core::JsonRepresentation
104
- collection :additional_event_types, as: 'additionalEventTypes'
105
- property :event_time_millis, :numeric_string => true, as: 'eventTimeMillis'
106
- property :from_user_deletion, as: 'fromUserDeletion'
107
- property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation
108
-
109
- collection :permission_changes, as: 'permissionChanges', class: Google::Apis::AppsactivityV1::PermissionChange, decorator: Google::Apis::AppsactivityV1::PermissionChange::Representation
110
-
111
- property :primary_event_type, as: 'primaryEventType'
112
- property :rename, as: 'rename', class: Google::Apis::AppsactivityV1::Rename, decorator: Google::Apis::AppsactivityV1::Rename::Representation
113
-
114
- property :target, as: 'target', class: Google::Apis::AppsactivityV1::Target, decorator: Google::Apis::AppsactivityV1::Target::Representation
115
-
116
- property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation
117
-
118
- end
119
- end
120
-
121
- class ListActivitiesResponse
122
- # @private
123
- class Representation < Google::Apis::Core::JsonRepresentation
124
- collection :activities, as: 'activities', class: Google::Apis::AppsactivityV1::Activity, decorator: Google::Apis::AppsactivityV1::Activity::Representation
125
-
126
- property :next_page_token, as: 'nextPageToken'
127
- end
128
- end
129
-
130
- class Move
131
- # @private
132
- class Representation < Google::Apis::Core::JsonRepresentation
133
- collection :added_parents, as: 'addedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation
134
-
135
- collection :removed_parents, as: 'removedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation
136
-
137
- end
138
- end
139
-
140
- class Parent
141
- # @private
142
- class Representation < Google::Apis::Core::JsonRepresentation
143
- property :id, as: 'id'
144
- property :is_root, as: 'isRoot'
145
- property :title, as: 'title'
146
- end
147
- end
148
-
149
- class Permission
150
- # @private
151
- class Representation < Google::Apis::Core::JsonRepresentation
152
- property :name, as: 'name'
153
- property :permission_id, as: 'permissionId'
154
- property :role, as: 'role'
155
- property :type, as: 'type'
156
- property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation
157
-
158
- property :with_link, as: 'withLink'
159
- end
160
- end
161
-
162
- class PermissionChange
163
- # @private
164
- class Representation < Google::Apis::Core::JsonRepresentation
165
- collection :added_permissions, as: 'addedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation
166
-
167
- collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation
168
-
169
- end
170
- end
171
-
172
- class Photo
173
- # @private
174
- class Representation < Google::Apis::Core::JsonRepresentation
175
- property :url, as: 'url'
176
- end
177
- end
178
-
179
- class Rename
180
- # @private
181
- class Representation < Google::Apis::Core::JsonRepresentation
182
- property :new_title, as: 'newTitle'
183
- property :old_title, as: 'oldTitle'
184
- end
185
- end
186
-
187
- class Target
188
- # @private
189
- class Representation < Google::Apis::Core::JsonRepresentation
190
- property :id, as: 'id'
191
- property :mime_type, as: 'mimeType'
192
- property :name, as: 'name'
193
- end
194
- end
195
-
196
- class User
197
- # @private
198
- class Representation < Google::Apis::Core::JsonRepresentation
199
- property :is_deleted, as: 'isDeleted'
200
- property :is_me, as: 'isMe'
201
- property :name, as: 'name'
202
- property :permission_id, as: 'permissionId'
203
- property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation
204
-
205
- end
206
- end
207
- end
208
- end
209
- end