google-apis-driveactivity_v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8fdd7e2fc8999df12c10345d874922e4b38b34d9b5dbab5cc0890d9ef759cdb5
4
+ data.tar.gz: e30941f410c838ac32283acaf8cd3c2381ace4ed3181f1c2a6fc46cd0f62f903
5
+ SHA512:
6
+ metadata.gz: 60f0bb9d6e659a10666f3e1b227808e23fa927f98f1e584249be9a2efb7b7e62c308687c974a182f2d3b747f6fab3d71394acdff629a3d5e572042b583497bf6
7
+ data.tar.gz: 2ffe577a38f47e798ba1cd64826300eeb5acdf508fe02691172d1639420632206bb17d006af43704568d09bbad52aac97c589b78ca8d5b6e8fe4ace7e8c8f4c8
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-driveactivity_v2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/driveactivity_v2/*.rb
9
+ lib/google/apis/driveactivity_v2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-driveactivity_v2
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200801
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V2 of the Drive Activity API
2
+
3
+ This is a simple client library for version V2 of the Drive Activity API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/driveactivity.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-driveactivity_v2', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-driveactivity_v2
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/driveactivity_v2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DriveactivityV2::DriveActivityService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Driveactivity service in particular.)
67
+
68
+ For reference information on specific calls in the Drive Activity API, see the {Google::Apis::DriveactivityV2::DriveActivityService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-driveactivity_v2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://developers.google.com/drive/activity/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/driveactivity_v2"
@@ -0,0 +1,39 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/driveactivity_v2/service.rb'
16
+ require 'google/apis/driveactivity_v2/classes.rb'
17
+ require 'google/apis/driveactivity_v2/representations.rb'
18
+ require 'google/apis/driveactivity_v2/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Drive Activity API
23
+ #
24
+ # Provides a historical view of activity in Google Drive.
25
+ #
26
+ # @see https://developers.google.com/drive/activity/
27
+ module DriveactivityV2
28
+ # Version of the Drive Activity API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V2'
31
+
32
+ # View and add to the activity record of files in your Google Drive
33
+ AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity'
34
+
35
+ # View the activity record of files in your Google Drive
36
+ AUTH_DRIVE_ACTIVITY_READONLY = 'https://www.googleapis.com/auth/drive.activity.readonly'
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,1517 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DriveactivityV2
24
+
25
+ # Information about the action.
26
+ class Action
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The actor of a Drive activity.
30
+ # Corresponds to the JSON property `actor`
31
+ # @return [Google::Apis::DriveactivityV2::Actor]
32
+ attr_accessor :actor
33
+
34
+ # Data describing the type and additional information of an action.
35
+ # Corresponds to the JSON property `detail`
36
+ # @return [Google::Apis::DriveactivityV2::ActionDetail]
37
+ attr_accessor :detail
38
+
39
+ # Information about the target of activity.
40
+ # Corresponds to the JSON property `target`
41
+ # @return [Google::Apis::DriveactivityV2::Target]
42
+ attr_accessor :target
43
+
44
+ # Information about time ranges.
45
+ # Corresponds to the JSON property `timeRange`
46
+ # @return [Google::Apis::DriveactivityV2::TimeRange]
47
+ attr_accessor :time_range
48
+
49
+ # The action occurred at this specific time.
50
+ # Corresponds to the JSON property `timestamp`
51
+ # @return [String]
52
+ attr_accessor :timestamp
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @actor = args[:actor] if args.key?(:actor)
61
+ @detail = args[:detail] if args.key?(:detail)
62
+ @target = args[:target] if args.key?(:target)
63
+ @time_range = args[:time_range] if args.key?(:time_range)
64
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
65
+ end
66
+ end
67
+
68
+ # Data describing the type and additional information of an action.
69
+ class ActionDetail
70
+ include Google::Apis::Core::Hashable
71
+
72
+ # A change about comments on an object.
73
+ # Corresponds to the JSON property `comment`
74
+ # @return [Google::Apis::DriveactivityV2::Comment]
75
+ attr_accessor :comment
76
+
77
+ # An object was created.
78
+ # Corresponds to the JSON property `create`
79
+ # @return [Google::Apis::DriveactivityV2::Create]
80
+ attr_accessor :create
81
+
82
+ # An object was deleted.
83
+ # Corresponds to the JSON property `delete`
84
+ # @return [Google::Apis::DriveactivityV2::Delete]
85
+ attr_accessor :delete
86
+
87
+ # A change in the object's data leak prevention status.
88
+ # Corresponds to the JSON property `dlpChange`
89
+ # @return [Google::Apis::DriveactivityV2::DataLeakPreventionChange]
90
+ attr_accessor :dlp_change
91
+
92
+ # An empty message indicating an object was edited.
93
+ # Corresponds to the JSON property `edit`
94
+ # @return [Google::Apis::DriveactivityV2::Edit]
95
+ attr_accessor :edit
96
+
97
+ # An object was moved.
98
+ # Corresponds to the JSON property `move`
99
+ # @return [Google::Apis::DriveactivityV2::Move]
100
+ attr_accessor :move
101
+
102
+ # A change of the permission setting on an item.
103
+ # Corresponds to the JSON property `permissionChange`
104
+ # @return [Google::Apis::DriveactivityV2::PermissionChange]
105
+ attr_accessor :permission_change
106
+
107
+ # Activity in applications other than Drive.
108
+ # Corresponds to the JSON property `reference`
109
+ # @return [Google::Apis::DriveactivityV2::ApplicationReference]
110
+ attr_accessor :reference
111
+
112
+ # An object was renamed.
113
+ # Corresponds to the JSON property `rename`
114
+ # @return [Google::Apis::DriveactivityV2::Rename]
115
+ attr_accessor :rename
116
+
117
+ # A deleted object was restored.
118
+ # Corresponds to the JSON property `restore`
119
+ # @return [Google::Apis::DriveactivityV2::Restore]
120
+ attr_accessor :restore
121
+
122
+ # Information about settings changes.
123
+ # Corresponds to the JSON property `settingsChange`
124
+ # @return [Google::Apis::DriveactivityV2::SettingsChange]
125
+ attr_accessor :settings_change
126
+
127
+ def initialize(**args)
128
+ update!(**args)
129
+ end
130
+
131
+ # Update properties of this object
132
+ def update!(**args)
133
+ @comment = args[:comment] if args.key?(:comment)
134
+ @create = args[:create] if args.key?(:create)
135
+ @delete = args[:delete] if args.key?(:delete)
136
+ @dlp_change = args[:dlp_change] if args.key?(:dlp_change)
137
+ @edit = args[:edit] if args.key?(:edit)
138
+ @move = args[:move] if args.key?(:move)
139
+ @permission_change = args[:permission_change] if args.key?(:permission_change)
140
+ @reference = args[:reference] if args.key?(:reference)
141
+ @rename = args[:rename] if args.key?(:rename)
142
+ @restore = args[:restore] if args.key?(:restore)
143
+ @settings_change = args[:settings_change] if args.key?(:settings_change)
144
+ end
145
+ end
146
+
147
+ # The actor of a Drive activity.
148
+ class Actor
149
+ include Google::Apis::Core::Hashable
150
+
151
+ # Empty message representing an administrator.
152
+ # Corresponds to the JSON property `administrator`
153
+ # @return [Google::Apis::DriveactivityV2::Administrator]
154
+ attr_accessor :administrator
155
+
156
+ # Empty message representing an anonymous user or indicating the authenticated
157
+ # user should be anonymized.
158
+ # Corresponds to the JSON property `anonymous`
159
+ # @return [Google::Apis::DriveactivityV2::AnonymousUser]
160
+ attr_accessor :anonymous
161
+
162
+ # Information about an impersonation, where an admin acts on behalf of an end
163
+ # user. Information about the acting admin is not currently available.
164
+ # Corresponds to the JSON property `impersonation`
165
+ # @return [Google::Apis::DriveactivityV2::Impersonation]
166
+ attr_accessor :impersonation
167
+
168
+ # Event triggered by system operations instead of end users.
169
+ # Corresponds to the JSON property `system`
170
+ # @return [Google::Apis::DriveactivityV2::SystemEvent]
171
+ attr_accessor :system
172
+
173
+ # Information about an end user.
174
+ # Corresponds to the JSON property `user`
175
+ # @return [Google::Apis::DriveactivityV2::User]
176
+ attr_accessor :user
177
+
178
+ def initialize(**args)
179
+ update!(**args)
180
+ end
181
+
182
+ # Update properties of this object
183
+ def update!(**args)
184
+ @administrator = args[:administrator] if args.key?(:administrator)
185
+ @anonymous = args[:anonymous] if args.key?(:anonymous)
186
+ @impersonation = args[:impersonation] if args.key?(:impersonation)
187
+ @system = args[:system] if args.key?(:system)
188
+ @user = args[:user] if args.key?(:user)
189
+ end
190
+ end
191
+
192
+ # Empty message representing an administrator.
193
+ class Administrator
194
+ include Google::Apis::Core::Hashable
195
+
196
+ def initialize(**args)
197
+ update!(**args)
198
+ end
199
+
200
+ # Update properties of this object
201
+ def update!(**args)
202
+ end
203
+ end
204
+
205
+ # Empty message representing an anonymous user or indicating the authenticated
206
+ # user should be anonymized.
207
+ class AnonymousUser
208
+ include Google::Apis::Core::Hashable
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ end
217
+ end
218
+
219
+ # Represents any user (including a logged out user).
220
+ class Anyone
221
+ include Google::Apis::Core::Hashable
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ end
230
+ end
231
+
232
+ # Activity in applications other than Drive.
233
+ class ApplicationReference
234
+ include Google::Apis::Core::Hashable
235
+
236
+ # The reference type corresponding to this event.
237
+ # Corresponds to the JSON property `type`
238
+ # @return [String]
239
+ attr_accessor :type
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @type = args[:type] if args.key?(:type)
248
+ end
249
+ end
250
+
251
+ # A comment with an assignment.
252
+ class Assignment
253
+ include Google::Apis::Core::Hashable
254
+
255
+ # Information about an end user.
256
+ # Corresponds to the JSON property `assignedUser`
257
+ # @return [Google::Apis::DriveactivityV2::User]
258
+ attr_accessor :assigned_user
259
+
260
+ # The sub-type of this event.
261
+ # Corresponds to the JSON property `subtype`
262
+ # @return [String]
263
+ attr_accessor :subtype
264
+
265
+ def initialize(**args)
266
+ update!(**args)
267
+ end
268
+
269
+ # Update properties of this object
270
+ def update!(**args)
271
+ @assigned_user = args[:assigned_user] if args.key?(:assigned_user)
272
+ @subtype = args[:subtype] if args.key?(:subtype)
273
+ end
274
+ end
275
+
276
+ # A change about comments on an object.
277
+ class Comment
278
+ include Google::Apis::Core::Hashable
279
+
280
+ # A comment with an assignment.
281
+ # Corresponds to the JSON property `assignment`
282
+ # @return [Google::Apis::DriveactivityV2::Assignment]
283
+ attr_accessor :assignment
284
+
285
+ # Users who are mentioned in this comment.
286
+ # Corresponds to the JSON property `mentionedUsers`
287
+ # @return [Array<Google::Apis::DriveactivityV2::User>]
288
+ attr_accessor :mentioned_users
289
+
290
+ # A regular posted comment.
291
+ # Corresponds to the JSON property `post`
292
+ # @return [Google::Apis::DriveactivityV2::Post]
293
+ attr_accessor :post
294
+
295
+ # A suggestion.
296
+ # Corresponds to the JSON property `suggestion`
297
+ # @return [Google::Apis::DriveactivityV2::Suggestion]
298
+ attr_accessor :suggestion
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @assignment = args[:assignment] if args.key?(:assignment)
307
+ @mentioned_users = args[:mentioned_users] if args.key?(:mentioned_users)
308
+ @post = args[:post] if args.key?(:post)
309
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
310
+ end
311
+ end
312
+
313
+ # How the individual activities are consolidated. A set of activities may be
314
+ # consolidated into one combined activity if they are related in some way, such
315
+ # as one actor performing the same action on multiple targets, or multiple
316
+ # actors performing the same action on a single target. The strategy defines the
317
+ # rules for which activities are related.
318
+ class ConsolidationStrategy
319
+ include Google::Apis::Core::Hashable
320
+
321
+ # A strategy which consolidates activities using the grouping rules from the
322
+ # legacy V1 Activity API. Similar actions occurring within a window of time can
323
+ # be grouped across multiple targets (such as moving a set of files at once) or
324
+ # multiple actors (such as several users editing the same item). Grouping rules
325
+ # for this strategy are specific to each type of action.
326
+ # Corresponds to the JSON property `legacy`
327
+ # @return [Google::Apis::DriveactivityV2::Legacy]
328
+ attr_accessor :legacy
329
+
330
+ # A strategy which does no consolidation of individual activities.
331
+ # Corresponds to the JSON property `none`
332
+ # @return [Google::Apis::DriveactivityV2::NoConsolidation]
333
+ attr_accessor :none
334
+
335
+ def initialize(**args)
336
+ update!(**args)
337
+ end
338
+
339
+ # Update properties of this object
340
+ def update!(**args)
341
+ @legacy = args[:legacy] if args.key?(:legacy)
342
+ @none = args[:none] if args.key?(:none)
343
+ end
344
+ end
345
+
346
+ # An object was created by copying an existing object.
347
+ class Copy
348
+ include Google::Apis::Core::Hashable
349
+
350
+ # A lightweight reference to the target of activity.
351
+ # Corresponds to the JSON property `originalObject`
352
+ # @return [Google::Apis::DriveactivityV2::TargetReference]
353
+ attr_accessor :original_object
354
+
355
+ def initialize(**args)
356
+ update!(**args)
357
+ end
358
+
359
+ # Update properties of this object
360
+ def update!(**args)
361
+ @original_object = args[:original_object] if args.key?(:original_object)
362
+ end
363
+ end
364
+
365
+ # An object was created.
366
+ class Create
367
+ include Google::Apis::Core::Hashable
368
+
369
+ # An object was created by copying an existing object.
370
+ # Corresponds to the JSON property `copy`
371
+ # @return [Google::Apis::DriveactivityV2::Copy]
372
+ attr_accessor :copy
373
+
374
+ # An object was created from scratch.
375
+ # Corresponds to the JSON property `new`
376
+ # @return [Google::Apis::DriveactivityV2::New]
377
+ attr_accessor :new
378
+
379
+ # An object was uploaded into Drive.
380
+ # Corresponds to the JSON property `upload`
381
+ # @return [Google::Apis::DriveactivityV2::Upload]
382
+ attr_accessor :upload
383
+
384
+ def initialize(**args)
385
+ update!(**args)
386
+ end
387
+
388
+ # Update properties of this object
389
+ def update!(**args)
390
+ @copy = args[:copy] if args.key?(:copy)
391
+ @new = args[:new] if args.key?(:new)
392
+ @upload = args[:upload] if args.key?(:upload)
393
+ end
394
+ end
395
+
396
+ # A change in the object's data leak prevention status.
397
+ class DataLeakPreventionChange
398
+ include Google::Apis::Core::Hashable
399
+
400
+ # The type of Data Leak Prevention (DLP) change.
401
+ # Corresponds to the JSON property `type`
402
+ # @return [String]
403
+ attr_accessor :type
404
+
405
+ def initialize(**args)
406
+ update!(**args)
407
+ end
408
+
409
+ # Update properties of this object
410
+ def update!(**args)
411
+ @type = args[:type] if args.key?(:type)
412
+ end
413
+ end
414
+
415
+ # An object was deleted.
416
+ class Delete
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # The type of delete action taken.
420
+ # Corresponds to the JSON property `type`
421
+ # @return [String]
422
+ attr_accessor :type
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @type = args[:type] if args.key?(:type)
431
+ end
432
+ end
433
+
434
+ # A user whose account has since been deleted.
435
+ class DeletedUser
436
+ include Google::Apis::Core::Hashable
437
+
438
+ def initialize(**args)
439
+ update!(**args)
440
+ end
441
+
442
+ # Update properties of this object
443
+ def update!(**args)
444
+ end
445
+ end
446
+
447
+ # Information about a domain.
448
+ class Domain
449
+ include Google::Apis::Core::Hashable
450
+
451
+ # An opaque string used to identify this domain.
452
+ # Corresponds to the JSON property `legacyId`
453
+ # @return [String]
454
+ attr_accessor :legacy_id
455
+
456
+ # The name of the domain, e.g. "google.com".
457
+ # Corresponds to the JSON property `name`
458
+ # @return [String]
459
+ attr_accessor :name
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @legacy_id = args[:legacy_id] if args.key?(:legacy_id)
468
+ @name = args[:name] if args.key?(:name)
469
+ end
470
+ end
471
+
472
+ # Information about a shared drive.
473
+ class Drive
474
+ include Google::Apis::Core::Hashable
475
+
476
+ # The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
477
+ # Clients should not assume a specific collection ID for this resource name.
478
+ # Corresponds to the JSON property `name`
479
+ # @return [String]
480
+ attr_accessor :name
481
+
482
+ # A Drive item, such as a file or folder.
483
+ # Corresponds to the JSON property `root`
484
+ # @return [Google::Apis::DriveactivityV2::DriveItem]
485
+ attr_accessor :root
486
+
487
+ # The title of the shared drive.
488
+ # Corresponds to the JSON property `title`
489
+ # @return [String]
490
+ attr_accessor :title
491
+
492
+ def initialize(**args)
493
+ update!(**args)
494
+ end
495
+
496
+ # Update properties of this object
497
+ def update!(**args)
498
+ @name = args[:name] if args.key?(:name)
499
+ @root = args[:root] if args.key?(:root)
500
+ @title = args[:title] if args.key?(:title)
501
+ end
502
+ end
503
+
504
+ # A single Drive activity comprising one or more Actions by one or more Actors
505
+ # on one or more Targets. Some Action groupings occur spontaneously, such as
506
+ # moving an item into a shared folder triggering a permission change. Other
507
+ # groupings of related Actions, such as multiple Actors editing one item or
508
+ # moving multiple files into a new folder, are controlled by the selection of a
509
+ # ConsolidationStrategy in the QueryDriveActivityRequest.
510
+ class DriveActivity
511
+ include Google::Apis::Core::Hashable
512
+
513
+ # Details on all actions in this activity.
514
+ # Corresponds to the JSON property `actions`
515
+ # @return [Array<Google::Apis::DriveactivityV2::Action>]
516
+ attr_accessor :actions
517
+
518
+ # All actor(s) responsible for the activity.
519
+ # Corresponds to the JSON property `actors`
520
+ # @return [Array<Google::Apis::DriveactivityV2::Actor>]
521
+ attr_accessor :actors
522
+
523
+ # Data describing the type and additional information of an action.
524
+ # Corresponds to the JSON property `primaryActionDetail`
525
+ # @return [Google::Apis::DriveactivityV2::ActionDetail]
526
+ attr_accessor :primary_action_detail
527
+
528
+ # All Google Drive objects this activity is about (e.g. file, folder, drive).
529
+ # This represents the state of the target immediately after the actions occurred.
530
+ # Corresponds to the JSON property `targets`
531
+ # @return [Array<Google::Apis::DriveactivityV2::Target>]
532
+ attr_accessor :targets
533
+
534
+ # Information about time ranges.
535
+ # Corresponds to the JSON property `timeRange`
536
+ # @return [Google::Apis::DriveactivityV2::TimeRange]
537
+ attr_accessor :time_range
538
+
539
+ # The activity occurred at this specific time.
540
+ # Corresponds to the JSON property `timestamp`
541
+ # @return [String]
542
+ attr_accessor :timestamp
543
+
544
+ def initialize(**args)
545
+ update!(**args)
546
+ end
547
+
548
+ # Update properties of this object
549
+ def update!(**args)
550
+ @actions = args[:actions] if args.key?(:actions)
551
+ @actors = args[:actors] if args.key?(:actors)
552
+ @primary_action_detail = args[:primary_action_detail] if args.key?(:primary_action_detail)
553
+ @targets = args[:targets] if args.key?(:targets)
554
+ @time_range = args[:time_range] if args.key?(:time_range)
555
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
556
+ end
557
+ end
558
+
559
+ # A Drive item which is a file.
560
+ class DriveFile
561
+ include Google::Apis::Core::Hashable
562
+
563
+ def initialize(**args)
564
+ update!(**args)
565
+ end
566
+
567
+ # Update properties of this object
568
+ def update!(**args)
569
+ end
570
+ end
571
+
572
+ # A Drive item which is a folder.
573
+ class DriveFolder
574
+ include Google::Apis::Core::Hashable
575
+
576
+ # The type of Drive folder.
577
+ # Corresponds to the JSON property `type`
578
+ # @return [String]
579
+ attr_accessor :type
580
+
581
+ def initialize(**args)
582
+ update!(**args)
583
+ end
584
+
585
+ # Update properties of this object
586
+ def update!(**args)
587
+ @type = args[:type] if args.key?(:type)
588
+ end
589
+ end
590
+
591
+ # A Drive item, such as a file or folder.
592
+ class DriveItem
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # A Drive item which is a file.
596
+ # Corresponds to the JSON property `driveFile`
597
+ # @return [Google::Apis::DriveactivityV2::DriveFile]
598
+ attr_accessor :drive_file
599
+
600
+ # A Drive item which is a folder.
601
+ # Corresponds to the JSON property `driveFolder`
602
+ # @return [Google::Apis::DriveactivityV2::DriveFolder]
603
+ attr_accessor :drive_folder
604
+
605
+ # This item is deprecated; please see `DriveFile` instead.
606
+ # Corresponds to the JSON property `file`
607
+ # @return [Google::Apis::DriveactivityV2::File]
608
+ attr_accessor :file
609
+
610
+ # This item is deprecated; please see `DriveFolder` instead.
611
+ # Corresponds to the JSON property `folder`
612
+ # @return [Google::Apis::DriveactivityV2::Folder]
613
+ attr_accessor :folder
614
+
615
+ # The MIME type of the Drive item. See https://developers.google.com/drive/v3/
616
+ # web/mime-types.
617
+ # Corresponds to the JSON property `mimeType`
618
+ # @return [String]
619
+ attr_accessor :mime_type
620
+
621
+ # The target Drive item. The format is "items/ITEM_ID".
622
+ # Corresponds to the JSON property `name`
623
+ # @return [String]
624
+ attr_accessor :name
625
+
626
+ # Information about the owner of a Drive item.
627
+ # Corresponds to the JSON property `owner`
628
+ # @return [Google::Apis::DriveactivityV2::Owner]
629
+ attr_accessor :owner
630
+
631
+ # The title of the Drive item.
632
+ # Corresponds to the JSON property `title`
633
+ # @return [String]
634
+ attr_accessor :title
635
+
636
+ def initialize(**args)
637
+ update!(**args)
638
+ end
639
+
640
+ # Update properties of this object
641
+ def update!(**args)
642
+ @drive_file = args[:drive_file] if args.key?(:drive_file)
643
+ @drive_folder = args[:drive_folder] if args.key?(:drive_folder)
644
+ @file = args[:file] if args.key?(:file)
645
+ @folder = args[:folder] if args.key?(:folder)
646
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
647
+ @name = args[:name] if args.key?(:name)
648
+ @owner = args[:owner] if args.key?(:owner)
649
+ @title = args[:title] if args.key?(:title)
650
+ end
651
+ end
652
+
653
+ # A lightweight reference to a Drive item, such as a file or folder.
654
+ class DriveItemReference
655
+ include Google::Apis::Core::Hashable
656
+
657
+ # A Drive item which is a file.
658
+ # Corresponds to the JSON property `driveFile`
659
+ # @return [Google::Apis::DriveactivityV2::DriveFile]
660
+ attr_accessor :drive_file
661
+
662
+ # A Drive item which is a folder.
663
+ # Corresponds to the JSON property `driveFolder`
664
+ # @return [Google::Apis::DriveactivityV2::DriveFolder]
665
+ attr_accessor :drive_folder
666
+
667
+ # This item is deprecated; please see `DriveFile` instead.
668
+ # Corresponds to the JSON property `file`
669
+ # @return [Google::Apis::DriveactivityV2::File]
670
+ attr_accessor :file
671
+
672
+ # This item is deprecated; please see `DriveFolder` instead.
673
+ # Corresponds to the JSON property `folder`
674
+ # @return [Google::Apis::DriveactivityV2::Folder]
675
+ attr_accessor :folder
676
+
677
+ # The target Drive item. The format is "items/ITEM_ID".
678
+ # Corresponds to the JSON property `name`
679
+ # @return [String]
680
+ attr_accessor :name
681
+
682
+ # The title of the Drive item.
683
+ # Corresponds to the JSON property `title`
684
+ # @return [String]
685
+ attr_accessor :title
686
+
687
+ def initialize(**args)
688
+ update!(**args)
689
+ end
690
+
691
+ # Update properties of this object
692
+ def update!(**args)
693
+ @drive_file = args[:drive_file] if args.key?(:drive_file)
694
+ @drive_folder = args[:drive_folder] if args.key?(:drive_folder)
695
+ @file = args[:file] if args.key?(:file)
696
+ @folder = args[:folder] if args.key?(:folder)
697
+ @name = args[:name] if args.key?(:name)
698
+ @title = args[:title] if args.key?(:title)
699
+ end
700
+ end
701
+
702
+ # A lightweight reference to a shared drive.
703
+ class DriveReference
704
+ include Google::Apis::Core::Hashable
705
+
706
+ # The resource name of the shared drive. The format is "COLLECTION_ID/DRIVE_ID".
707
+ # Clients should not assume a specific collection ID for this resource name.
708
+ # Corresponds to the JSON property `name`
709
+ # @return [String]
710
+ attr_accessor :name
711
+
712
+ # The title of the shared drive.
713
+ # Corresponds to the JSON property `title`
714
+ # @return [String]
715
+ attr_accessor :title
716
+
717
+ def initialize(**args)
718
+ update!(**args)
719
+ end
720
+
721
+ # Update properties of this object
722
+ def update!(**args)
723
+ @name = args[:name] if args.key?(:name)
724
+ @title = args[:title] if args.key?(:title)
725
+ end
726
+ end
727
+
728
+ # An empty message indicating an object was edited.
729
+ class Edit
730
+ include Google::Apis::Core::Hashable
731
+
732
+ def initialize(**args)
733
+ update!(**args)
734
+ end
735
+
736
+ # Update properties of this object
737
+ def update!(**args)
738
+ end
739
+ end
740
+
741
+ # This item is deprecated; please see `DriveFile` instead.
742
+ class File
743
+ include Google::Apis::Core::Hashable
744
+
745
+ def initialize(**args)
746
+ update!(**args)
747
+ end
748
+
749
+ # Update properties of this object
750
+ def update!(**args)
751
+ end
752
+ end
753
+
754
+ # A comment on a file.
755
+ class FileComment
756
+ include Google::Apis::Core::Hashable
757
+
758
+ # The comment in the discussion thread. This identifier is an opaque string
759
+ # compatible with the Drive API; see https://developers.google.com/drive/v3/
760
+ # reference/comments/get
761
+ # Corresponds to the JSON property `legacyCommentId`
762
+ # @return [String]
763
+ attr_accessor :legacy_comment_id
764
+
765
+ # The discussion thread to which the comment was added. This identifier is an
766
+ # opaque string compatible with the Drive API and references the first comment
767
+ # in a discussion; see https://developers.google.com/drive/v3/reference/comments/
768
+ # get
769
+ # Corresponds to the JSON property `legacyDiscussionId`
770
+ # @return [String]
771
+ attr_accessor :legacy_discussion_id
772
+
773
+ # The link to the discussion thread containing this comment, for example, "https:
774
+ # //docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
775
+ # Corresponds to the JSON property `linkToDiscussion`
776
+ # @return [String]
777
+ attr_accessor :link_to_discussion
778
+
779
+ # A Drive item, such as a file or folder.
780
+ # Corresponds to the JSON property `parent`
781
+ # @return [Google::Apis::DriveactivityV2::DriveItem]
782
+ attr_accessor :parent
783
+
784
+ def initialize(**args)
785
+ update!(**args)
786
+ end
787
+
788
+ # Update properties of this object
789
+ def update!(**args)
790
+ @legacy_comment_id = args[:legacy_comment_id] if args.key?(:legacy_comment_id)
791
+ @legacy_discussion_id = args[:legacy_discussion_id] if args.key?(:legacy_discussion_id)
792
+ @link_to_discussion = args[:link_to_discussion] if args.key?(:link_to_discussion)
793
+ @parent = args[:parent] if args.key?(:parent)
794
+ end
795
+ end
796
+
797
+ # This item is deprecated; please see `DriveFolder` instead.
798
+ class Folder
799
+ include Google::Apis::Core::Hashable
800
+
801
+ # This field is deprecated; please see `DriveFolder.type` instead.
802
+ # Corresponds to the JSON property `type`
803
+ # @return [String]
804
+ attr_accessor :type
805
+
806
+ def initialize(**args)
807
+ update!(**args)
808
+ end
809
+
810
+ # Update properties of this object
811
+ def update!(**args)
812
+ @type = args[:type] if args.key?(:type)
813
+ end
814
+ end
815
+
816
+ # Information about a group.
817
+ class Group
818
+ include Google::Apis::Core::Hashable
819
+
820
+ # The email address of the group.
821
+ # Corresponds to the JSON property `email`
822
+ # @return [String]
823
+ attr_accessor :email
824
+
825
+ # The title of the group.
826
+ # Corresponds to the JSON property `title`
827
+ # @return [String]
828
+ attr_accessor :title
829
+
830
+ def initialize(**args)
831
+ update!(**args)
832
+ end
833
+
834
+ # Update properties of this object
835
+ def update!(**args)
836
+ @email = args[:email] if args.key?(:email)
837
+ @title = args[:title] if args.key?(:title)
838
+ end
839
+ end
840
+
841
+ # Information about an impersonation, where an admin acts on behalf of an end
842
+ # user. Information about the acting admin is not currently available.
843
+ class Impersonation
844
+ include Google::Apis::Core::Hashable
845
+
846
+ # Information about an end user.
847
+ # Corresponds to the JSON property `impersonatedUser`
848
+ # @return [Google::Apis::DriveactivityV2::User]
849
+ attr_accessor :impersonated_user
850
+
851
+ def initialize(**args)
852
+ update!(**args)
853
+ end
854
+
855
+ # Update properties of this object
856
+ def update!(**args)
857
+ @impersonated_user = args[:impersonated_user] if args.key?(:impersonated_user)
858
+ end
859
+ end
860
+
861
+ # A known user.
862
+ class KnownUser
863
+ include Google::Apis::Core::Hashable
864
+
865
+ # True if this is the user making the request.
866
+ # Corresponds to the JSON property `isCurrentUser`
867
+ # @return [Boolean]
868
+ attr_accessor :is_current_user
869
+ alias_method :is_current_user?, :is_current_user
870
+
871
+ # The identifier for this user that can be used with the People API to get more
872
+ # information. The format is "people/ACCOUNT_ID". See https://developers.google.
873
+ # com/people/.
874
+ # Corresponds to the JSON property `personName`
875
+ # @return [String]
876
+ attr_accessor :person_name
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @is_current_user = args[:is_current_user] if args.key?(:is_current_user)
885
+ @person_name = args[:person_name] if args.key?(:person_name)
886
+ end
887
+ end
888
+
889
+ # A strategy which consolidates activities using the grouping rules from the
890
+ # legacy V1 Activity API. Similar actions occurring within a window of time can
891
+ # be grouped across multiple targets (such as moving a set of files at once) or
892
+ # multiple actors (such as several users editing the same item). Grouping rules
893
+ # for this strategy are specific to each type of action.
894
+ class Legacy
895
+ include Google::Apis::Core::Hashable
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ end
904
+ end
905
+
906
+ # An object was moved.
907
+ class Move
908
+ include Google::Apis::Core::Hashable
909
+
910
+ # The added parent object(s).
911
+ # Corresponds to the JSON property `addedParents`
912
+ # @return [Array<Google::Apis::DriveactivityV2::TargetReference>]
913
+ attr_accessor :added_parents
914
+
915
+ # The removed parent object(s).
916
+ # Corresponds to the JSON property `removedParents`
917
+ # @return [Array<Google::Apis::DriveactivityV2::TargetReference>]
918
+ attr_accessor :removed_parents
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ @added_parents = args[:added_parents] if args.key?(:added_parents)
927
+ @removed_parents = args[:removed_parents] if args.key?(:removed_parents)
928
+ end
929
+ end
930
+
931
+ # An object was created from scratch.
932
+ class New
933
+ include Google::Apis::Core::Hashable
934
+
935
+ def initialize(**args)
936
+ update!(**args)
937
+ end
938
+
939
+ # Update properties of this object
940
+ def update!(**args)
941
+ end
942
+ end
943
+
944
+ # A strategy which does no consolidation of individual activities.
945
+ class NoConsolidation
946
+ include Google::Apis::Core::Hashable
947
+
948
+ def initialize(**args)
949
+ update!(**args)
950
+ end
951
+
952
+ # Update properties of this object
953
+ def update!(**args)
954
+ end
955
+ end
956
+
957
+ # Information about the owner of a Drive item.
958
+ class Owner
959
+ include Google::Apis::Core::Hashable
960
+
961
+ # Information about a domain.
962
+ # Corresponds to the JSON property `domain`
963
+ # @return [Google::Apis::DriveactivityV2::Domain]
964
+ attr_accessor :domain
965
+
966
+ # A lightweight reference to a shared drive.
967
+ # Corresponds to the JSON property `drive`
968
+ # @return [Google::Apis::DriveactivityV2::DriveReference]
969
+ attr_accessor :drive
970
+
971
+ # This item is deprecated; please see `DriveReference` instead.
972
+ # Corresponds to the JSON property `teamDrive`
973
+ # @return [Google::Apis::DriveactivityV2::TeamDriveReference]
974
+ attr_accessor :team_drive
975
+
976
+ # Information about an end user.
977
+ # Corresponds to the JSON property `user`
978
+ # @return [Google::Apis::DriveactivityV2::User]
979
+ attr_accessor :user
980
+
981
+ def initialize(**args)
982
+ update!(**args)
983
+ end
984
+
985
+ # Update properties of this object
986
+ def update!(**args)
987
+ @domain = args[:domain] if args.key?(:domain)
988
+ @drive = args[:drive] if args.key?(:drive)
989
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
990
+ @user = args[:user] if args.key?(:user)
991
+ end
992
+ end
993
+
994
+ # The permission setting of an object.
995
+ class Permission
996
+ include Google::Apis::Core::Hashable
997
+
998
+ # If true, the item can be discovered (e.g. in the user's "Shared with me"
999
+ # collection) without needing a link to the item.
1000
+ # Corresponds to the JSON property `allowDiscovery`
1001
+ # @return [Boolean]
1002
+ attr_accessor :allow_discovery
1003
+ alias_method :allow_discovery?, :allow_discovery
1004
+
1005
+ # Represents any user (including a logged out user).
1006
+ # Corresponds to the JSON property `anyone`
1007
+ # @return [Google::Apis::DriveactivityV2::Anyone]
1008
+ attr_accessor :anyone
1009
+
1010
+ # Information about a domain.
1011
+ # Corresponds to the JSON property `domain`
1012
+ # @return [Google::Apis::DriveactivityV2::Domain]
1013
+ attr_accessor :domain
1014
+
1015
+ # Information about a group.
1016
+ # Corresponds to the JSON property `group`
1017
+ # @return [Google::Apis::DriveactivityV2::Group]
1018
+ attr_accessor :group
1019
+
1020
+ # Indicates the Google Drive permissions role. The role determines a user's
1021
+ # ability to read, write, and comment on items.
1022
+ # Corresponds to the JSON property `role`
1023
+ # @return [String]
1024
+ attr_accessor :role
1025
+
1026
+ # Information about an end user.
1027
+ # Corresponds to the JSON property `user`
1028
+ # @return [Google::Apis::DriveactivityV2::User]
1029
+ attr_accessor :user
1030
+
1031
+ def initialize(**args)
1032
+ update!(**args)
1033
+ end
1034
+
1035
+ # Update properties of this object
1036
+ def update!(**args)
1037
+ @allow_discovery = args[:allow_discovery] if args.key?(:allow_discovery)
1038
+ @anyone = args[:anyone] if args.key?(:anyone)
1039
+ @domain = args[:domain] if args.key?(:domain)
1040
+ @group = args[:group] if args.key?(:group)
1041
+ @role = args[:role] if args.key?(:role)
1042
+ @user = args[:user] if args.key?(:user)
1043
+ end
1044
+ end
1045
+
1046
+ # A change of the permission setting on an item.
1047
+ class PermissionChange
1048
+ include Google::Apis::Core::Hashable
1049
+
1050
+ # The set of permissions added by this change.
1051
+ # Corresponds to the JSON property `addedPermissions`
1052
+ # @return [Array<Google::Apis::DriveactivityV2::Permission>]
1053
+ attr_accessor :added_permissions
1054
+
1055
+ # The set of permissions removed by this change.
1056
+ # Corresponds to the JSON property `removedPermissions`
1057
+ # @return [Array<Google::Apis::DriveactivityV2::Permission>]
1058
+ attr_accessor :removed_permissions
1059
+
1060
+ def initialize(**args)
1061
+ update!(**args)
1062
+ end
1063
+
1064
+ # Update properties of this object
1065
+ def update!(**args)
1066
+ @added_permissions = args[:added_permissions] if args.key?(:added_permissions)
1067
+ @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions)
1068
+ end
1069
+ end
1070
+
1071
+ # A regular posted comment.
1072
+ class Post
1073
+ include Google::Apis::Core::Hashable
1074
+
1075
+ # The sub-type of this event.
1076
+ # Corresponds to the JSON property `subtype`
1077
+ # @return [String]
1078
+ attr_accessor :subtype
1079
+
1080
+ def initialize(**args)
1081
+ update!(**args)
1082
+ end
1083
+
1084
+ # Update properties of this object
1085
+ def update!(**args)
1086
+ @subtype = args[:subtype] if args.key?(:subtype)
1087
+ end
1088
+ end
1089
+
1090
+ # The request message for querying Drive activity.
1091
+ class QueryDriveActivityRequest
1092
+ include Google::Apis::Core::Hashable
1093
+
1094
+ # Return activities for this Drive folder and all children and descendants. The
1095
+ # format is "items/ITEM_ID".
1096
+ # Corresponds to the JSON property `ancestorName`
1097
+ # @return [String]
1098
+ attr_accessor :ancestor_name
1099
+
1100
+ # How the individual activities are consolidated. A set of activities may be
1101
+ # consolidated into one combined activity if they are related in some way, such
1102
+ # as one actor performing the same action on multiple targets, or multiple
1103
+ # actors performing the same action on a single target. The strategy defines the
1104
+ # rules for which activities are related.
1105
+ # Corresponds to the JSON property `consolidationStrategy`
1106
+ # @return [Google::Apis::DriveactivityV2::ConsolidationStrategy]
1107
+ attr_accessor :consolidation_strategy
1108
+
1109
+ # The filtering for items returned from this query request. The format of the
1110
+ # filter string is a sequence of expressions, joined by an optional "AND", where
1111
+ # each expression is of the form "field operator value". Supported fields: -
1112
+ # time: Uses numerical operators on date values either in terms of milliseconds
1113
+ # since Jan 1, 1970 or in RFC 3339 format. Examples: - time > 1452409200000 AND
1114
+ # time <= 1492812924310 - time >= "2016-01-10T01:02:03-05:00" - detail.
1115
+ # action_detail_case: Uses the "has" operator (:) and either a singular value or
1116
+ # a list of allowed action types enclosed in parentheses. Examples: - detail.
1117
+ # action_detail_case: RENAME - detail.action_detail_case:(CREATE EDIT) - -detail.
1118
+ # action_detail_case:MOVE
1119
+ # Corresponds to the JSON property `filter`
1120
+ # @return [String]
1121
+ attr_accessor :filter
1122
+
1123
+ # Return activities for this Drive item. The format is "items/ITEM_ID".
1124
+ # Corresponds to the JSON property `itemName`
1125
+ # @return [String]
1126
+ attr_accessor :item_name
1127
+
1128
+ # The miminum number of activities desired in the response; the server will
1129
+ # attempt to return at least this quanitity. The server may also return fewer
1130
+ # activities if it has a partial response ready before the request times out. If
1131
+ # not set, a default value is used.
1132
+ # Corresponds to the JSON property `pageSize`
1133
+ # @return [Fixnum]
1134
+ attr_accessor :page_size
1135
+
1136
+ # The token identifying which page of results to return. Set this to the
1137
+ # next_page_token value returned from a previous query to obtain the following
1138
+ # page of results. If not set, the first page of results will be returned.
1139
+ # Corresponds to the JSON property `pageToken`
1140
+ # @return [String]
1141
+ attr_accessor :page_token
1142
+
1143
+ def initialize(**args)
1144
+ update!(**args)
1145
+ end
1146
+
1147
+ # Update properties of this object
1148
+ def update!(**args)
1149
+ @ancestor_name = args[:ancestor_name] if args.key?(:ancestor_name)
1150
+ @consolidation_strategy = args[:consolidation_strategy] if args.key?(:consolidation_strategy)
1151
+ @filter = args[:filter] if args.key?(:filter)
1152
+ @item_name = args[:item_name] if args.key?(:item_name)
1153
+ @page_size = args[:page_size] if args.key?(:page_size)
1154
+ @page_token = args[:page_token] if args.key?(:page_token)
1155
+ end
1156
+ end
1157
+
1158
+ # Response message for querying Drive activity.
1159
+ class QueryDriveActivityResponse
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # List of activity requested.
1163
+ # Corresponds to the JSON property `activities`
1164
+ # @return [Array<Google::Apis::DriveactivityV2::DriveActivity>]
1165
+ attr_accessor :activities
1166
+
1167
+ # Token to retrieve the next page of results, or empty if there are no more
1168
+ # results in the list.
1169
+ # Corresponds to the JSON property `nextPageToken`
1170
+ # @return [String]
1171
+ attr_accessor :next_page_token
1172
+
1173
+ def initialize(**args)
1174
+ update!(**args)
1175
+ end
1176
+
1177
+ # Update properties of this object
1178
+ def update!(**args)
1179
+ @activities = args[:activities] if args.key?(:activities)
1180
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1181
+ end
1182
+ end
1183
+
1184
+ # An object was renamed.
1185
+ class Rename
1186
+ include Google::Apis::Core::Hashable
1187
+
1188
+ # The new title of the drive object.
1189
+ # Corresponds to the JSON property `newTitle`
1190
+ # @return [String]
1191
+ attr_accessor :new_title
1192
+
1193
+ # The previous title of the drive object.
1194
+ # Corresponds to the JSON property `oldTitle`
1195
+ # @return [String]
1196
+ attr_accessor :old_title
1197
+
1198
+ def initialize(**args)
1199
+ update!(**args)
1200
+ end
1201
+
1202
+ # Update properties of this object
1203
+ def update!(**args)
1204
+ @new_title = args[:new_title] if args.key?(:new_title)
1205
+ @old_title = args[:old_title] if args.key?(:old_title)
1206
+ end
1207
+ end
1208
+
1209
+ # A deleted object was restored.
1210
+ class Restore
1211
+ include Google::Apis::Core::Hashable
1212
+
1213
+ # The type of restore action taken.
1214
+ # Corresponds to the JSON property `type`
1215
+ # @return [String]
1216
+ attr_accessor :type
1217
+
1218
+ def initialize(**args)
1219
+ update!(**args)
1220
+ end
1221
+
1222
+ # Update properties of this object
1223
+ def update!(**args)
1224
+ @type = args[:type] if args.key?(:type)
1225
+ end
1226
+ end
1227
+
1228
+ # Information about restriction policy changes to a feature.
1229
+ class RestrictionChange
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # The feature which had a change in restriction policy.
1233
+ # Corresponds to the JSON property `feature`
1234
+ # @return [String]
1235
+ attr_accessor :feature
1236
+
1237
+ # The restriction in place after the change.
1238
+ # Corresponds to the JSON property `newRestriction`
1239
+ # @return [String]
1240
+ attr_accessor :new_restriction
1241
+
1242
+ def initialize(**args)
1243
+ update!(**args)
1244
+ end
1245
+
1246
+ # Update properties of this object
1247
+ def update!(**args)
1248
+ @feature = args[:feature] if args.key?(:feature)
1249
+ @new_restriction = args[:new_restriction] if args.key?(:new_restriction)
1250
+ end
1251
+ end
1252
+
1253
+ # Information about settings changes.
1254
+ class SettingsChange
1255
+ include Google::Apis::Core::Hashable
1256
+
1257
+ # The set of changes made to restrictions.
1258
+ # Corresponds to the JSON property `restrictionChanges`
1259
+ # @return [Array<Google::Apis::DriveactivityV2::RestrictionChange>]
1260
+ attr_accessor :restriction_changes
1261
+
1262
+ def initialize(**args)
1263
+ update!(**args)
1264
+ end
1265
+
1266
+ # Update properties of this object
1267
+ def update!(**args)
1268
+ @restriction_changes = args[:restriction_changes] if args.key?(:restriction_changes)
1269
+ end
1270
+ end
1271
+
1272
+ # A suggestion.
1273
+ class Suggestion
1274
+ include Google::Apis::Core::Hashable
1275
+
1276
+ # The sub-type of this event.
1277
+ # Corresponds to the JSON property `subtype`
1278
+ # @return [String]
1279
+ attr_accessor :subtype
1280
+
1281
+ def initialize(**args)
1282
+ update!(**args)
1283
+ end
1284
+
1285
+ # Update properties of this object
1286
+ def update!(**args)
1287
+ @subtype = args[:subtype] if args.key?(:subtype)
1288
+ end
1289
+ end
1290
+
1291
+ # Event triggered by system operations instead of end users.
1292
+ class SystemEvent
1293
+ include Google::Apis::Core::Hashable
1294
+
1295
+ # The type of the system event that may triggered activity.
1296
+ # Corresponds to the JSON property `type`
1297
+ # @return [String]
1298
+ attr_accessor :type
1299
+
1300
+ def initialize(**args)
1301
+ update!(**args)
1302
+ end
1303
+
1304
+ # Update properties of this object
1305
+ def update!(**args)
1306
+ @type = args[:type] if args.key?(:type)
1307
+ end
1308
+ end
1309
+
1310
+ # Information about the target of activity.
1311
+ class Target
1312
+ include Google::Apis::Core::Hashable
1313
+
1314
+ # Information about a shared drive.
1315
+ # Corresponds to the JSON property `drive`
1316
+ # @return [Google::Apis::DriveactivityV2::Drive]
1317
+ attr_accessor :drive
1318
+
1319
+ # A Drive item, such as a file or folder.
1320
+ # Corresponds to the JSON property `driveItem`
1321
+ # @return [Google::Apis::DriveactivityV2::DriveItem]
1322
+ attr_accessor :drive_item
1323
+
1324
+ # A comment on a file.
1325
+ # Corresponds to the JSON property `fileComment`
1326
+ # @return [Google::Apis::DriveactivityV2::FileComment]
1327
+ attr_accessor :file_comment
1328
+
1329
+ # This item is deprecated; please see `Drive` instead.
1330
+ # Corresponds to the JSON property `teamDrive`
1331
+ # @return [Google::Apis::DriveactivityV2::TeamDrive]
1332
+ attr_accessor :team_drive
1333
+
1334
+ def initialize(**args)
1335
+ update!(**args)
1336
+ end
1337
+
1338
+ # Update properties of this object
1339
+ def update!(**args)
1340
+ @drive = args[:drive] if args.key?(:drive)
1341
+ @drive_item = args[:drive_item] if args.key?(:drive_item)
1342
+ @file_comment = args[:file_comment] if args.key?(:file_comment)
1343
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
1344
+ end
1345
+ end
1346
+
1347
+ # A lightweight reference to the target of activity.
1348
+ class TargetReference
1349
+ include Google::Apis::Core::Hashable
1350
+
1351
+ # A lightweight reference to a shared drive.
1352
+ # Corresponds to the JSON property `drive`
1353
+ # @return [Google::Apis::DriveactivityV2::DriveReference]
1354
+ attr_accessor :drive
1355
+
1356
+ # A lightweight reference to a Drive item, such as a file or folder.
1357
+ # Corresponds to the JSON property `driveItem`
1358
+ # @return [Google::Apis::DriveactivityV2::DriveItemReference]
1359
+ attr_accessor :drive_item
1360
+
1361
+ # This item is deprecated; please see `DriveReference` instead.
1362
+ # Corresponds to the JSON property `teamDrive`
1363
+ # @return [Google::Apis::DriveactivityV2::TeamDriveReference]
1364
+ attr_accessor :team_drive
1365
+
1366
+ def initialize(**args)
1367
+ update!(**args)
1368
+ end
1369
+
1370
+ # Update properties of this object
1371
+ def update!(**args)
1372
+ @drive = args[:drive] if args.key?(:drive)
1373
+ @drive_item = args[:drive_item] if args.key?(:drive_item)
1374
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
1375
+ end
1376
+ end
1377
+
1378
+ # This item is deprecated; please see `Drive` instead.
1379
+ class TeamDrive
1380
+ include Google::Apis::Core::Hashable
1381
+
1382
+ # This field is deprecated; please see `Drive.name` instead.
1383
+ # Corresponds to the JSON property `name`
1384
+ # @return [String]
1385
+ attr_accessor :name
1386
+
1387
+ # A Drive item, such as a file or folder.
1388
+ # Corresponds to the JSON property `root`
1389
+ # @return [Google::Apis::DriveactivityV2::DriveItem]
1390
+ attr_accessor :root
1391
+
1392
+ # This field is deprecated; please see `Drive.title` instead.
1393
+ # Corresponds to the JSON property `title`
1394
+ # @return [String]
1395
+ attr_accessor :title
1396
+
1397
+ def initialize(**args)
1398
+ update!(**args)
1399
+ end
1400
+
1401
+ # Update properties of this object
1402
+ def update!(**args)
1403
+ @name = args[:name] if args.key?(:name)
1404
+ @root = args[:root] if args.key?(:root)
1405
+ @title = args[:title] if args.key?(:title)
1406
+ end
1407
+ end
1408
+
1409
+ # This item is deprecated; please see `DriveReference` instead.
1410
+ class TeamDriveReference
1411
+ include Google::Apis::Core::Hashable
1412
+
1413
+ # This field is deprecated; please see `DriveReference.name` instead.
1414
+ # Corresponds to the JSON property `name`
1415
+ # @return [String]
1416
+ attr_accessor :name
1417
+
1418
+ # This field is deprecated; please see `DriveReference.title` instead.
1419
+ # Corresponds to the JSON property `title`
1420
+ # @return [String]
1421
+ attr_accessor :title
1422
+
1423
+ def initialize(**args)
1424
+ update!(**args)
1425
+ end
1426
+
1427
+ # Update properties of this object
1428
+ def update!(**args)
1429
+ @name = args[:name] if args.key?(:name)
1430
+ @title = args[:title] if args.key?(:title)
1431
+ end
1432
+ end
1433
+
1434
+ # Information about time ranges.
1435
+ class TimeRange
1436
+ include Google::Apis::Core::Hashable
1437
+
1438
+ # The end of the time range.
1439
+ # Corresponds to the JSON property `endTime`
1440
+ # @return [String]
1441
+ attr_accessor :end_time
1442
+
1443
+ # The start of the time range.
1444
+ # Corresponds to the JSON property `startTime`
1445
+ # @return [String]
1446
+ attr_accessor :start_time
1447
+
1448
+ def initialize(**args)
1449
+ update!(**args)
1450
+ end
1451
+
1452
+ # Update properties of this object
1453
+ def update!(**args)
1454
+ @end_time = args[:end_time] if args.key?(:end_time)
1455
+ @start_time = args[:start_time] if args.key?(:start_time)
1456
+ end
1457
+ end
1458
+
1459
+ # A user about whom nothing is currently known.
1460
+ class UnknownUser
1461
+ include Google::Apis::Core::Hashable
1462
+
1463
+ def initialize(**args)
1464
+ update!(**args)
1465
+ end
1466
+
1467
+ # Update properties of this object
1468
+ def update!(**args)
1469
+ end
1470
+ end
1471
+
1472
+ # An object was uploaded into Drive.
1473
+ class Upload
1474
+ include Google::Apis::Core::Hashable
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ end
1483
+ end
1484
+
1485
+ # Information about an end user.
1486
+ class User
1487
+ include Google::Apis::Core::Hashable
1488
+
1489
+ # A user whose account has since been deleted.
1490
+ # Corresponds to the JSON property `deletedUser`
1491
+ # @return [Google::Apis::DriveactivityV2::DeletedUser]
1492
+ attr_accessor :deleted_user
1493
+
1494
+ # A known user.
1495
+ # Corresponds to the JSON property `knownUser`
1496
+ # @return [Google::Apis::DriveactivityV2::KnownUser]
1497
+ attr_accessor :known_user
1498
+
1499
+ # A user about whom nothing is currently known.
1500
+ # Corresponds to the JSON property `unknownUser`
1501
+ # @return [Google::Apis::DriveactivityV2::UnknownUser]
1502
+ attr_accessor :unknown_user
1503
+
1504
+ def initialize(**args)
1505
+ update!(**args)
1506
+ end
1507
+
1508
+ # Update properties of this object
1509
+ def update!(**args)
1510
+ @deleted_user = args[:deleted_user] if args.key?(:deleted_user)
1511
+ @known_user = args[:known_user] if args.key?(:known_user)
1512
+ @unknown_user = args[:unknown_user] if args.key?(:unknown_user)
1513
+ end
1514
+ end
1515
+ end
1516
+ end
1517
+ end