google-api-client 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +8 -0
- data/.kokoro/build.sh +36 -0
- data/.kokoro/common.cfg +22 -0
- data/.kokoro/continuous/common.cfg +20 -0
- data/.kokoro/continuous/linux.cfg +15 -0
- data/.kokoro/continuous/osx.cfg +3 -0
- data/.kokoro/continuous/windows.cfg +3 -0
- data/.kokoro/osx.sh +35 -0
- data/.kokoro/presubmit/common.cfg +19 -0
- data/.kokoro/presubmit/linux.cfg +14 -0
- data/.kokoro/presubmit/osx.cfg +3 -0
- data/.kokoro/presubmit/windows.cfg +3 -0
- data/.kokoro/trampoline.sh +24 -0
- data/.kokoro/windows.sh +32 -0
- data/CHANGELOG.md +83 -0
- data/Gemfile +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +87 -29
- data/generated/google/apis/bigquery_v2/representations.rb +21 -0
- data/generated/google/apis/bigquery_v2/service.rb +7 -9
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/classes.rb +14 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
- data/generated/google/apis/cloudiot_v1/service.rb +172 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +107 -0
- data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
- data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +9 -0
- data/generated/google/apis/composer_v1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +938 -117
- data/generated/google/apis/compute_alpha/representations.rb +310 -2
- data/generated/google/apis/compute_alpha/service.rb +1203 -245
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1175 -219
- data/generated/google/apis/compute_beta/representations.rb +375 -2
- data/generated/google/apis/compute_beta/service.rb +907 -139
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1485 -143
- data/generated/google/apis/compute_v1/representations.rb +503 -0
- data/generated/google/apis/compute_v1/service.rb +1375 -85
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +99 -6
- data/generated/google/apis/container_v1/representations.rb +39 -0
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +3 -3
- data/generated/google/apis/container_v1beta1/classes.rb +162 -9
- data/generated/google/apis/container_v1beta1/representations.rb +80 -0
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +40 -32
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2/service.rb +3 -3
- data/generated/google/apis/content_v2_1.rb +35 -0
- data/generated/google/apis/content_v2_1/classes.rb +9104 -0
- data/generated/google/apis/content_v2_1/representations.rb +3967 -0
- data/generated/google/apis/content_v2_1/service.rb +3463 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -1
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
- data/generated/google/apis/dialogflow_v2/service.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
- data/generated/google/apis/dns_v1beta2/service.rb +246 -0
- data/generated/google/apis/drive_v2.rb +3 -3
- data/generated/google/apis/drive_v3.rb +3 -3
- data/generated/google/apis/driveactivity_v2.rb +37 -0
- data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
- data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
- data/generated/google/apis/driveactivity_v2/service.rb +89 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +2225 -520
- data/generated/google/apis/firestore_v1/representations.rb +800 -33
- data/generated/google/apis/firestore_v1/service.rb +526 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -2
- data/generated/google/apis/fitness_v1/service.rb +7 -3
- data/generated/google/apis/games_management_v1management.rb +1 -4
- data/generated/google/apis/games_v1.rb +1 -4
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/iap_v1.rb +34 -0
- data/generated/google/apis/iap_v1/classes.rb +308 -0
- data/generated/google/apis/iap_v1/representations.rb +126 -0
- data/generated/google/apis/iap_v1/service.rb +725 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +8 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +6 -6
- data/generated/google/apis/jobs_v3/service.rb +8 -8
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
- data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -7
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +0 -365
- data/generated/google/apis/pagespeedonline_v5.rb +32 -0
- data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -12
- data/generated/google/apis/pubsub_v1/representations.rb +15 -0
- data/generated/google/apis/pubsub_v1/service.rb +26 -18
- data/generated/google/apis/redis_v1.rb +2 -3
- data/generated/google/apis/redis_v1/service.rb +1 -2
- data/generated/google/apis/redis_v1beta1.rb +2 -3
- data/generated/google/apis/redis_v1beta1/service.rb +1 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/script_v1.rb +24 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +187 -2
- data/generated/google/apis/slides_v1/representations.rb +67 -0
- data/generated/google/apis/slides_v1/service.rb +4 -3
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +58 -10
- data/generated/google/apis/speech_v1/representations.rb +29 -1
- data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
- data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
- data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +54 -0
- data/generated/google/apis/storage_v1/representations.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -19
- data/generated/google/apis/testing_v1/representations.rb +20 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +78 -7
- data/generated/google/apis/vault_v1/representations.rb +34 -1
- data/generated/google/apis/vault_v1/service.rb +141 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +33 -0
- data/generated/google/apis/vision_v1/representations.rb +16 -0
- data/generated/google/apis/vision_v1/service.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +1 -1
- data/lib/google/api_client/auth/installed_app.rb +17 -2
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +2 -2
- data/lib/google/apis/errors.rb +9 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +46 -17
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
- data/generated/google/apis/dfareporting_v3_0.rb +0 -40
- data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
- data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
- data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -632,6 +632,252 @@ module Google
|
|
632
632
|
execute_or_queue_command(command, &block)
|
633
633
|
end
|
634
634
|
|
635
|
+
# Create a new Policy
|
636
|
+
# @param [String] project
|
637
|
+
# Identifies the project addressed by this request.
|
638
|
+
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
|
639
|
+
# @param [String] client_operation_id
|
640
|
+
# For mutating operation requests only. An optional identifier specified by the
|
641
|
+
# client. Must be unique for operation resources in the Operations collection.
|
642
|
+
# @param [String] fields
|
643
|
+
# Selector specifying which fields to include in a partial response.
|
644
|
+
# @param [String] quota_user
|
645
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
646
|
+
# characters.
|
647
|
+
# @param [String] user_ip
|
648
|
+
# Deprecated. Please use quotaUser instead.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::DnsV1beta2::Policy] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::DnsV1beta2::Policy]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def create_policy(project, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:post, '{project}/policies', options)
|
663
|
+
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
|
664
|
+
command.request_object = policy_object
|
665
|
+
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
|
666
|
+
command.response_class = Google::Apis::DnsV1beta2::Policy
|
667
|
+
command.params['project'] = project unless project.nil?
|
668
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
671
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
672
|
+
execute_or_queue_command(command, &block)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Delete a previously created Policy. Will fail if the policy is still being
|
676
|
+
# referenced by a network.
|
677
|
+
# @param [String] project
|
678
|
+
# Identifies the project addressed by this request.
|
679
|
+
# @param [String] policy
|
680
|
+
# User given friendly name of the policy addressed by this request.
|
681
|
+
# @param [String] client_operation_id
|
682
|
+
# For mutating operation requests only. An optional identifier specified by the
|
683
|
+
# client. Must be unique for operation resources in the Operations collection.
|
684
|
+
# @param [String] fields
|
685
|
+
# Selector specifying which fields to include in a partial response.
|
686
|
+
# @param [String] quota_user
|
687
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
688
|
+
# characters.
|
689
|
+
# @param [String] user_ip
|
690
|
+
# Deprecated. Please use quotaUser instead.
|
691
|
+
# @param [Google::Apis::RequestOptions] options
|
692
|
+
# Request-specific options
|
693
|
+
#
|
694
|
+
# @yield [result, err] Result & error if block supplied
|
695
|
+
# @yieldparam result [NilClass] No result returned for this method
|
696
|
+
# @yieldparam err [StandardError] error object if request failed
|
697
|
+
#
|
698
|
+
# @return [void]
|
699
|
+
#
|
700
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
701
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
702
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
703
|
+
def delete_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
704
|
+
command = make_simple_command(:delete, '{project}/policies/{policy}', options)
|
705
|
+
command.params['project'] = project unless project.nil?
|
706
|
+
command.params['policy'] = policy unless policy.nil?
|
707
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
708
|
+
command.query['fields'] = fields unless fields.nil?
|
709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
710
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Fetch the representation of an existing Policy.
|
715
|
+
# @param [String] project
|
716
|
+
# Identifies the project addressed by this request.
|
717
|
+
# @param [String] policy
|
718
|
+
# User given friendly name of the policy addressed by this request.
|
719
|
+
# @param [String] client_operation_id
|
720
|
+
# For mutating operation requests only. An optional identifier specified by the
|
721
|
+
# client. Must be unique for operation resources in the Operations collection.
|
722
|
+
# @param [String] fields
|
723
|
+
# Selector specifying which fields to include in a partial response.
|
724
|
+
# @param [String] quota_user
|
725
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
726
|
+
# characters.
|
727
|
+
# @param [String] user_ip
|
728
|
+
# Deprecated. Please use quotaUser instead.
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
730
|
+
# Request-specific options
|
731
|
+
#
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
733
|
+
# @yieldparam result [Google::Apis::DnsV1beta2::Policy] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::DnsV1beta2::Policy]
|
737
|
+
#
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
+
def get_policy(project, policy, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:get, '{project}/policies/{policy}', options)
|
743
|
+
command.response_representation = Google::Apis::DnsV1beta2::Policy::Representation
|
744
|
+
command.response_class = Google::Apis::DnsV1beta2::Policy
|
745
|
+
command.params['project'] = project unless project.nil?
|
746
|
+
command.params['policy'] = policy unless policy.nil?
|
747
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
748
|
+
command.query['fields'] = fields unless fields.nil?
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
751
|
+
execute_or_queue_command(command, &block)
|
752
|
+
end
|
753
|
+
|
754
|
+
# Enumerate all Policies associated with a project.
|
755
|
+
# @param [String] project
|
756
|
+
# Identifies the project addressed by this request.
|
757
|
+
# @param [Fixnum] max_results
|
758
|
+
# Optional. Maximum number of results to be returned. If unspecified, the server
|
759
|
+
# will decide how many results to return.
|
760
|
+
# @param [String] page_token
|
761
|
+
# Optional. A tag returned by a previous list request that was truncated. Use
|
762
|
+
# this parameter to continue a previous list request.
|
763
|
+
# @param [String] fields
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
765
|
+
# @param [String] quota_user
|
766
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
767
|
+
# characters.
|
768
|
+
# @param [String] user_ip
|
769
|
+
# Deprecated. Please use quotaUser instead.
|
770
|
+
# @param [Google::Apis::RequestOptions] options
|
771
|
+
# Request-specific options
|
772
|
+
#
|
773
|
+
# @yield [result, err] Result & error if block supplied
|
774
|
+
# @yieldparam result [Google::Apis::DnsV1beta2::PoliciesListResponse] parsed result object
|
775
|
+
# @yieldparam err [StandardError] error object if request failed
|
776
|
+
#
|
777
|
+
# @return [Google::Apis::DnsV1beta2::PoliciesListResponse]
|
778
|
+
#
|
779
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
780
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
781
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
782
|
+
def list_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
783
|
+
command = make_simple_command(:get, '{project}/policies', options)
|
784
|
+
command.response_representation = Google::Apis::DnsV1beta2::PoliciesListResponse::Representation
|
785
|
+
command.response_class = Google::Apis::DnsV1beta2::PoliciesListResponse
|
786
|
+
command.params['project'] = project unless project.nil?
|
787
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
788
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
789
|
+
command.query['fields'] = fields unless fields.nil?
|
790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
791
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
792
|
+
execute_or_queue_command(command, &block)
|
793
|
+
end
|
794
|
+
|
795
|
+
# Apply a partial update to an existing Policy.
|
796
|
+
# @param [String] project
|
797
|
+
# Identifies the project addressed by this request.
|
798
|
+
# @param [String] policy
|
799
|
+
# User given friendly name of the policy addressed by this request.
|
800
|
+
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
|
801
|
+
# @param [String] client_operation_id
|
802
|
+
# For mutating operation requests only. An optional identifier specified by the
|
803
|
+
# client. Must be unique for operation resources in the Operations collection.
|
804
|
+
# @param [String] fields
|
805
|
+
# Selector specifying which fields to include in a partial response.
|
806
|
+
# @param [String] quota_user
|
807
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
808
|
+
# characters.
|
809
|
+
# @param [String] user_ip
|
810
|
+
# Deprecated. Please use quotaUser instead.
|
811
|
+
# @param [Google::Apis::RequestOptions] options
|
812
|
+
# Request-specific options
|
813
|
+
#
|
814
|
+
# @yield [result, err] Result & error if block supplied
|
815
|
+
# @yieldparam result [Google::Apis::DnsV1beta2::PoliciesPatchResponse] parsed result object
|
816
|
+
# @yieldparam err [StandardError] error object if request failed
|
817
|
+
#
|
818
|
+
# @return [Google::Apis::DnsV1beta2::PoliciesPatchResponse]
|
819
|
+
#
|
820
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
+
def patch_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
824
|
+
command = make_simple_command(:patch, '{project}/policies/{policy}', options)
|
825
|
+
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
|
826
|
+
command.request_object = policy_object
|
827
|
+
command.response_representation = Google::Apis::DnsV1beta2::PoliciesPatchResponse::Representation
|
828
|
+
command.response_class = Google::Apis::DnsV1beta2::PoliciesPatchResponse
|
829
|
+
command.params['project'] = project unless project.nil?
|
830
|
+
command.params['policy'] = policy unless policy.nil?
|
831
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
832
|
+
command.query['fields'] = fields unless fields.nil?
|
833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
834
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
835
|
+
execute_or_queue_command(command, &block)
|
836
|
+
end
|
837
|
+
|
838
|
+
# Update an existing Policy.
|
839
|
+
# @param [String] project
|
840
|
+
# Identifies the project addressed by this request.
|
841
|
+
# @param [String] policy
|
842
|
+
# User given friendly name of the policy addressed by this request.
|
843
|
+
# @param [Google::Apis::DnsV1beta2::Policy] policy_object
|
844
|
+
# @param [String] client_operation_id
|
845
|
+
# For mutating operation requests only. An optional identifier specified by the
|
846
|
+
# client. Must be unique for operation resources in the Operations collection.
|
847
|
+
# @param [String] fields
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
849
|
+
# @param [String] quota_user
|
850
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
851
|
+
# characters.
|
852
|
+
# @param [String] user_ip
|
853
|
+
# Deprecated. Please use quotaUser instead.
|
854
|
+
# @param [Google::Apis::RequestOptions] options
|
855
|
+
# Request-specific options
|
856
|
+
#
|
857
|
+
# @yield [result, err] Result & error if block supplied
|
858
|
+
# @yieldparam result [Google::Apis::DnsV1beta2::PoliciesUpdateResponse] parsed result object
|
859
|
+
# @yieldparam err [StandardError] error object if request failed
|
860
|
+
#
|
861
|
+
# @return [Google::Apis::DnsV1beta2::PoliciesUpdateResponse]
|
862
|
+
#
|
863
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
864
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
865
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
866
|
+
def update_policy(project, policy, policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
867
|
+
command = make_simple_command(:put, '{project}/policies/{policy}', options)
|
868
|
+
command.request_representation = Google::Apis::DnsV1beta2::Policy::Representation
|
869
|
+
command.request_object = policy_object
|
870
|
+
command.response_representation = Google::Apis::DnsV1beta2::PoliciesUpdateResponse::Representation
|
871
|
+
command.response_class = Google::Apis::DnsV1beta2::PoliciesUpdateResponse
|
872
|
+
command.params['project'] = project unless project.nil?
|
873
|
+
command.params['policy'] = policy unless policy.nil?
|
874
|
+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
|
875
|
+
command.query['fields'] = fields unless fields.nil?
|
876
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
877
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
878
|
+
execute_or_queue_command(command, &block)
|
879
|
+
end
|
880
|
+
|
635
881
|
# Fetch the representation of an existing Project.
|
636
882
|
# @param [String] project
|
637
883
|
# Identifies the project addressed by this request.
|
@@ -26,9 +26,9 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/drive/
|
27
27
|
module DriveV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20181101'
|
30
30
|
|
31
|
-
#
|
31
|
+
# See, edit, create, and delete all of your Google Drive files
|
32
32
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
33
33
|
|
34
34
|
# View and manage its own configuration data in your Google Drive
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
# View the photos, videos and albums in your Google Photos
|
50
50
|
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
|
51
51
|
|
52
|
-
#
|
52
|
+
# See and download all your Google Drive files
|
53
53
|
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
54
54
|
|
55
55
|
# Modify your Google Apps Script scripts' behavior
|
@@ -26,9 +26,9 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/drive/
|
27
27
|
module DriveV3
|
28
28
|
VERSION = 'V3'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20181101'
|
30
30
|
|
31
|
-
#
|
31
|
+
# See, edit, create, and delete all of your Google Drive files
|
32
32
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
33
33
|
|
34
34
|
# View and manage its own configuration data in your Google Drive
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# View the photos, videos and albums in your Google Photos
|
47
47
|
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
|
48
48
|
|
49
|
-
#
|
49
|
+
# See and download all your Google Drive files
|
50
50
|
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
|
51
51
|
|
52
52
|
# Modify your Google Apps Script scripts' behavior
|
@@ -0,0 +1,37 @@
|
|
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/driveactivity_v2/service.rb'
|
16
|
+
require 'google/apis/driveactivity_v2/classes.rb'
|
17
|
+
require 'google/apis/driveactivity_v2/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Drive Activity API
|
22
|
+
#
|
23
|
+
# Provides a historical view of activity in Google Drive.
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/drive/activity/
|
26
|
+
module DriveactivityV2
|
27
|
+
VERSION = 'V2'
|
28
|
+
REVISION = '20181116'
|
29
|
+
|
30
|
+
# View and add to the activity record of files in your Google Drive
|
31
|
+
AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity'
|
32
|
+
|
33
|
+
# View the activity record of files in your Google Drive
|
34
|
+
AUTH_DRIVE_ACTIVITY_READONLY = 'https://www.googleapis.com/auth/drive.activity.readonly'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,1388 @@
|
|
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 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
|
+
# The sub-type of this event.
|
256
|
+
# Corresponds to the JSON property `subtype`
|
257
|
+
# @return [String]
|
258
|
+
attr_accessor :subtype
|
259
|
+
|
260
|
+
def initialize(**args)
|
261
|
+
update!(**args)
|
262
|
+
end
|
263
|
+
|
264
|
+
# Update properties of this object
|
265
|
+
def update!(**args)
|
266
|
+
@subtype = args[:subtype] if args.key?(:subtype)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# A change about comments on an object.
|
271
|
+
class Comment
|
272
|
+
include Google::Apis::Core::Hashable
|
273
|
+
|
274
|
+
# A comment with an assignment.
|
275
|
+
# Corresponds to the JSON property `assignment`
|
276
|
+
# @return [Google::Apis::DriveactivityV2::Assignment]
|
277
|
+
attr_accessor :assignment
|
278
|
+
|
279
|
+
# Users who are mentioned in this comment.
|
280
|
+
# Corresponds to the JSON property `mentionedUsers`
|
281
|
+
# @return [Array<Google::Apis::DriveactivityV2::User>]
|
282
|
+
attr_accessor :mentioned_users
|
283
|
+
|
284
|
+
# A regular posted comment.
|
285
|
+
# Corresponds to the JSON property `post`
|
286
|
+
# @return [Google::Apis::DriveactivityV2::Post]
|
287
|
+
attr_accessor :post
|
288
|
+
|
289
|
+
# A suggestion.
|
290
|
+
# Corresponds to the JSON property `suggestion`
|
291
|
+
# @return [Google::Apis::DriveactivityV2::Suggestion]
|
292
|
+
attr_accessor :suggestion
|
293
|
+
|
294
|
+
def initialize(**args)
|
295
|
+
update!(**args)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Update properties of this object
|
299
|
+
def update!(**args)
|
300
|
+
@assignment = args[:assignment] if args.key?(:assignment)
|
301
|
+
@mentioned_users = args[:mentioned_users] if args.key?(:mentioned_users)
|
302
|
+
@post = args[:post] if args.key?(:post)
|
303
|
+
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# How the individual activities are consolidated. A set of activities may be
|
308
|
+
# consolidated into one combined activity if they are related in some way, such
|
309
|
+
# as one actor performing the same action on multiple targets, or multiple
|
310
|
+
# actors performing the same action on a single target. The strategy defines
|
311
|
+
# the rules for which activities are related.
|
312
|
+
class ConsolidationStrategy
|
313
|
+
include Google::Apis::Core::Hashable
|
314
|
+
|
315
|
+
# A strategy which consolidates activities using the grouping rules from the
|
316
|
+
# legacy V1 Activity API. Similar actions occurring within a window of time
|
317
|
+
# can be grouped across multiple targets (such as moving a set of files at
|
318
|
+
# once) or multiple actors (such as several users editing the same item).
|
319
|
+
# Grouping rules for this strategy are specific to each type of action.
|
320
|
+
# Corresponds to the JSON property `legacy`
|
321
|
+
# @return [Google::Apis::DriveactivityV2::Legacy]
|
322
|
+
attr_accessor :legacy
|
323
|
+
|
324
|
+
# A strategy which does no consolidation of individual activities.
|
325
|
+
# Corresponds to the JSON property `none`
|
326
|
+
# @return [Google::Apis::DriveactivityV2::NoConsolidation]
|
327
|
+
attr_accessor :none
|
328
|
+
|
329
|
+
def initialize(**args)
|
330
|
+
update!(**args)
|
331
|
+
end
|
332
|
+
|
333
|
+
# Update properties of this object
|
334
|
+
def update!(**args)
|
335
|
+
@legacy = args[:legacy] if args.key?(:legacy)
|
336
|
+
@none = args[:none] if args.key?(:none)
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
340
|
+
# An object was created by copying an existing object.
|
341
|
+
class Copy
|
342
|
+
include Google::Apis::Core::Hashable
|
343
|
+
|
344
|
+
# A lightweight reference to the target of activity.
|
345
|
+
# Corresponds to the JSON property `originalObject`
|
346
|
+
# @return [Google::Apis::DriveactivityV2::TargetReference]
|
347
|
+
attr_accessor :original_object
|
348
|
+
|
349
|
+
def initialize(**args)
|
350
|
+
update!(**args)
|
351
|
+
end
|
352
|
+
|
353
|
+
# Update properties of this object
|
354
|
+
def update!(**args)
|
355
|
+
@original_object = args[:original_object] if args.key?(:original_object)
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# An object was created.
|
360
|
+
class Create
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# An object was created by copying an existing object.
|
364
|
+
# Corresponds to the JSON property `copy`
|
365
|
+
# @return [Google::Apis::DriveactivityV2::Copy]
|
366
|
+
attr_accessor :copy
|
367
|
+
|
368
|
+
# An object was created from scratch.
|
369
|
+
# Corresponds to the JSON property `new`
|
370
|
+
# @return [Google::Apis::DriveactivityV2::New]
|
371
|
+
attr_accessor :new
|
372
|
+
|
373
|
+
# An object was uploaded into Drive.
|
374
|
+
# Corresponds to the JSON property `upload`
|
375
|
+
# @return [Google::Apis::DriveactivityV2::Upload]
|
376
|
+
attr_accessor :upload
|
377
|
+
|
378
|
+
def initialize(**args)
|
379
|
+
update!(**args)
|
380
|
+
end
|
381
|
+
|
382
|
+
# Update properties of this object
|
383
|
+
def update!(**args)
|
384
|
+
@copy = args[:copy] if args.key?(:copy)
|
385
|
+
@new = args[:new] if args.key?(:new)
|
386
|
+
@upload = args[:upload] if args.key?(:upload)
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
# A change in the object's data leak prevention status.
|
391
|
+
class DataLeakPreventionChange
|
392
|
+
include Google::Apis::Core::Hashable
|
393
|
+
|
394
|
+
# The type of Data Leak Prevention (DLP) change.
|
395
|
+
# Corresponds to the JSON property `type`
|
396
|
+
# @return [String]
|
397
|
+
attr_accessor :type
|
398
|
+
|
399
|
+
def initialize(**args)
|
400
|
+
update!(**args)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Update properties of this object
|
404
|
+
def update!(**args)
|
405
|
+
@type = args[:type] if args.key?(:type)
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
# An object was deleted.
|
410
|
+
class Delete
|
411
|
+
include Google::Apis::Core::Hashable
|
412
|
+
|
413
|
+
# The type of delete action taken.
|
414
|
+
# Corresponds to the JSON property `type`
|
415
|
+
# @return [String]
|
416
|
+
attr_accessor :type
|
417
|
+
|
418
|
+
def initialize(**args)
|
419
|
+
update!(**args)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Update properties of this object
|
423
|
+
def update!(**args)
|
424
|
+
@type = args[:type] if args.key?(:type)
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
# A user whose account has since been deleted.
|
429
|
+
class DeletedUser
|
430
|
+
include Google::Apis::Core::Hashable
|
431
|
+
|
432
|
+
def initialize(**args)
|
433
|
+
update!(**args)
|
434
|
+
end
|
435
|
+
|
436
|
+
# Update properties of this object
|
437
|
+
def update!(**args)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
# Information about a domain.
|
442
|
+
class Domain
|
443
|
+
include Google::Apis::Core::Hashable
|
444
|
+
|
445
|
+
# An opaque string used to identify this domain.
|
446
|
+
# Corresponds to the JSON property `legacyId`
|
447
|
+
# @return [String]
|
448
|
+
attr_accessor :legacy_id
|
449
|
+
|
450
|
+
# The name of the domain, e.g. "google.com".
|
451
|
+
# Corresponds to the JSON property `name`
|
452
|
+
# @return [String]
|
453
|
+
attr_accessor :name
|
454
|
+
|
455
|
+
def initialize(**args)
|
456
|
+
update!(**args)
|
457
|
+
end
|
458
|
+
|
459
|
+
# Update properties of this object
|
460
|
+
def update!(**args)
|
461
|
+
@legacy_id = args[:legacy_id] if args.key?(:legacy_id)
|
462
|
+
@name = args[:name] if args.key?(:name)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# A single Drive activity comprising one or more Actions by one or more
|
467
|
+
# Actors on one or more Targets. Some Action groupings occur spontaneously,
|
468
|
+
# such as moving an item into a shared folder triggering a permission change.
|
469
|
+
# Other groupings of related Actions, such as multiple Actors editing one item
|
470
|
+
# or moving multiple files into a new folder, are controlled by the selection
|
471
|
+
# of a ConsolidationStrategy in the QueryDriveActivityRequest.
|
472
|
+
class DriveActivity
|
473
|
+
include Google::Apis::Core::Hashable
|
474
|
+
|
475
|
+
# Details on all actions in this activity.
|
476
|
+
# Corresponds to the JSON property `actions`
|
477
|
+
# @return [Array<Google::Apis::DriveactivityV2::Action>]
|
478
|
+
attr_accessor :actions
|
479
|
+
|
480
|
+
# All actor(s) responsible for the activity.
|
481
|
+
# Corresponds to the JSON property `actors`
|
482
|
+
# @return [Array<Google::Apis::DriveactivityV2::Actor>]
|
483
|
+
attr_accessor :actors
|
484
|
+
|
485
|
+
# Data describing the type and additional information of an action.
|
486
|
+
# Corresponds to the JSON property `primaryActionDetail`
|
487
|
+
# @return [Google::Apis::DriveactivityV2::ActionDetail]
|
488
|
+
attr_accessor :primary_action_detail
|
489
|
+
|
490
|
+
# All Drive objects this activity is about (e.g. file, folder, Team Drive).
|
491
|
+
# This represents the state of the target immediately after the actions
|
492
|
+
# occurred.
|
493
|
+
# Corresponds to the JSON property `targets`
|
494
|
+
# @return [Array<Google::Apis::DriveactivityV2::Target>]
|
495
|
+
attr_accessor :targets
|
496
|
+
|
497
|
+
# Information about time ranges.
|
498
|
+
# Corresponds to the JSON property `timeRange`
|
499
|
+
# @return [Google::Apis::DriveactivityV2::TimeRange]
|
500
|
+
attr_accessor :time_range
|
501
|
+
|
502
|
+
# The activity occurred at this specific time.
|
503
|
+
# Corresponds to the JSON property `timestamp`
|
504
|
+
# @return [String]
|
505
|
+
attr_accessor :timestamp
|
506
|
+
|
507
|
+
def initialize(**args)
|
508
|
+
update!(**args)
|
509
|
+
end
|
510
|
+
|
511
|
+
# Update properties of this object
|
512
|
+
def update!(**args)
|
513
|
+
@actions = args[:actions] if args.key?(:actions)
|
514
|
+
@actors = args[:actors] if args.key?(:actors)
|
515
|
+
@primary_action_detail = args[:primary_action_detail] if args.key?(:primary_action_detail)
|
516
|
+
@targets = args[:targets] if args.key?(:targets)
|
517
|
+
@time_range = args[:time_range] if args.key?(:time_range)
|
518
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
# A Drive item, such as a file or folder.
|
523
|
+
class DriveItem
|
524
|
+
include Google::Apis::Core::Hashable
|
525
|
+
|
526
|
+
# A Drive item which is a file.
|
527
|
+
# Corresponds to the JSON property `file`
|
528
|
+
# @return [Google::Apis::DriveactivityV2::File]
|
529
|
+
attr_accessor :file
|
530
|
+
|
531
|
+
# A Drive item which is a folder.
|
532
|
+
# Corresponds to the JSON property `folder`
|
533
|
+
# @return [Google::Apis::DriveactivityV2::Folder]
|
534
|
+
attr_accessor :folder
|
535
|
+
|
536
|
+
# The MIME type of the Drive item. See
|
537
|
+
# https://developers.google.com/drive/v3/web/mime-types.
|
538
|
+
# Corresponds to the JSON property `mimeType`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :mime_type
|
541
|
+
|
542
|
+
# The target Drive item. The format is "items/ITEM_ID".
|
543
|
+
# Corresponds to the JSON property `name`
|
544
|
+
# @return [String]
|
545
|
+
attr_accessor :name
|
546
|
+
|
547
|
+
# Information about the owner of a Drive item.
|
548
|
+
# Corresponds to the JSON property `owner`
|
549
|
+
# @return [Google::Apis::DriveactivityV2::Owner]
|
550
|
+
attr_accessor :owner
|
551
|
+
|
552
|
+
# The title of the Drive item.
|
553
|
+
# Corresponds to the JSON property `title`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :title
|
556
|
+
|
557
|
+
def initialize(**args)
|
558
|
+
update!(**args)
|
559
|
+
end
|
560
|
+
|
561
|
+
# Update properties of this object
|
562
|
+
def update!(**args)
|
563
|
+
@file = args[:file] if args.key?(:file)
|
564
|
+
@folder = args[:folder] if args.key?(:folder)
|
565
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
566
|
+
@name = args[:name] if args.key?(:name)
|
567
|
+
@owner = args[:owner] if args.key?(:owner)
|
568
|
+
@title = args[:title] if args.key?(:title)
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# A lightweight reference to a Drive item, such as a file or folder.
|
573
|
+
class DriveItemReference
|
574
|
+
include Google::Apis::Core::Hashable
|
575
|
+
|
576
|
+
# A Drive item which is a file.
|
577
|
+
# Corresponds to the JSON property `file`
|
578
|
+
# @return [Google::Apis::DriveactivityV2::File]
|
579
|
+
attr_accessor :file
|
580
|
+
|
581
|
+
# A Drive item which is a folder.
|
582
|
+
# Corresponds to the JSON property `folder`
|
583
|
+
# @return [Google::Apis::DriveactivityV2::Folder]
|
584
|
+
attr_accessor :folder
|
585
|
+
|
586
|
+
# The target Drive item. The format is "items/ITEM_ID".
|
587
|
+
# Corresponds to the JSON property `name`
|
588
|
+
# @return [String]
|
589
|
+
attr_accessor :name
|
590
|
+
|
591
|
+
# The title of the Drive item.
|
592
|
+
# Corresponds to the JSON property `title`
|
593
|
+
# @return [String]
|
594
|
+
attr_accessor :title
|
595
|
+
|
596
|
+
def initialize(**args)
|
597
|
+
update!(**args)
|
598
|
+
end
|
599
|
+
|
600
|
+
# Update properties of this object
|
601
|
+
def update!(**args)
|
602
|
+
@file = args[:file] if args.key?(:file)
|
603
|
+
@folder = args[:folder] if args.key?(:folder)
|
604
|
+
@name = args[:name] if args.key?(:name)
|
605
|
+
@title = args[:title] if args.key?(:title)
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
609
|
+
# An empty message indicating an object was edited.
|
610
|
+
class Edit
|
611
|
+
include Google::Apis::Core::Hashable
|
612
|
+
|
613
|
+
def initialize(**args)
|
614
|
+
update!(**args)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Update properties of this object
|
618
|
+
def update!(**args)
|
619
|
+
end
|
620
|
+
end
|
621
|
+
|
622
|
+
# A Drive item which is a file.
|
623
|
+
class File
|
624
|
+
include Google::Apis::Core::Hashable
|
625
|
+
|
626
|
+
def initialize(**args)
|
627
|
+
update!(**args)
|
628
|
+
end
|
629
|
+
|
630
|
+
# Update properties of this object
|
631
|
+
def update!(**args)
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
# A comment on a file.
|
636
|
+
class FileComment
|
637
|
+
include Google::Apis::Core::Hashable
|
638
|
+
|
639
|
+
# The comment in the discussion thread. This identifier is an opaque string
|
640
|
+
# compatible with the Drive API; see
|
641
|
+
# https://developers.google.com/drive/v3/reference/comments/get
|
642
|
+
# Corresponds to the JSON property `legacyCommentId`
|
643
|
+
# @return [String]
|
644
|
+
attr_accessor :legacy_comment_id
|
645
|
+
|
646
|
+
# The discussion thread to which the comment was added. This identifier is an
|
647
|
+
# opaque string compatible with the Drive API and references the first
|
648
|
+
# comment in a discussion; see
|
649
|
+
# https://developers.google.com/drive/v3/reference/comments/get
|
650
|
+
# Corresponds to the JSON property `legacyDiscussionId`
|
651
|
+
# @return [String]
|
652
|
+
attr_accessor :legacy_discussion_id
|
653
|
+
|
654
|
+
# The link to the discussion thread containing this comment, for example,
|
655
|
+
# "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
|
656
|
+
# Corresponds to the JSON property `linkToDiscussion`
|
657
|
+
# @return [String]
|
658
|
+
attr_accessor :link_to_discussion
|
659
|
+
|
660
|
+
# A Drive item, such as a file or folder.
|
661
|
+
# Corresponds to the JSON property `parent`
|
662
|
+
# @return [Google::Apis::DriveactivityV2::DriveItem]
|
663
|
+
attr_accessor :parent
|
664
|
+
|
665
|
+
def initialize(**args)
|
666
|
+
update!(**args)
|
667
|
+
end
|
668
|
+
|
669
|
+
# Update properties of this object
|
670
|
+
def update!(**args)
|
671
|
+
@legacy_comment_id = args[:legacy_comment_id] if args.key?(:legacy_comment_id)
|
672
|
+
@legacy_discussion_id = args[:legacy_discussion_id] if args.key?(:legacy_discussion_id)
|
673
|
+
@link_to_discussion = args[:link_to_discussion] if args.key?(:link_to_discussion)
|
674
|
+
@parent = args[:parent] if args.key?(:parent)
|
675
|
+
end
|
676
|
+
end
|
677
|
+
|
678
|
+
# A Drive item which is a folder.
|
679
|
+
class Folder
|
680
|
+
include Google::Apis::Core::Hashable
|
681
|
+
|
682
|
+
# The type of Drive folder.
|
683
|
+
# Corresponds to the JSON property `type`
|
684
|
+
# @return [String]
|
685
|
+
attr_accessor :type
|
686
|
+
|
687
|
+
def initialize(**args)
|
688
|
+
update!(**args)
|
689
|
+
end
|
690
|
+
|
691
|
+
# Update properties of this object
|
692
|
+
def update!(**args)
|
693
|
+
@type = args[:type] if args.key?(:type)
|
694
|
+
end
|
695
|
+
end
|
696
|
+
|
697
|
+
# Information about a group.
|
698
|
+
class Group
|
699
|
+
include Google::Apis::Core::Hashable
|
700
|
+
|
701
|
+
# The email address of the group.
|
702
|
+
# Corresponds to the JSON property `email`
|
703
|
+
# @return [String]
|
704
|
+
attr_accessor :email
|
705
|
+
|
706
|
+
# The title of the group.
|
707
|
+
# Corresponds to the JSON property `title`
|
708
|
+
# @return [String]
|
709
|
+
attr_accessor :title
|
710
|
+
|
711
|
+
def initialize(**args)
|
712
|
+
update!(**args)
|
713
|
+
end
|
714
|
+
|
715
|
+
# Update properties of this object
|
716
|
+
def update!(**args)
|
717
|
+
@email = args[:email] if args.key?(:email)
|
718
|
+
@title = args[:title] if args.key?(:title)
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
# Information about an impersonation, where an admin acts on behalf of an end
|
723
|
+
# user. Information about the acting admin is not currently available.
|
724
|
+
class Impersonation
|
725
|
+
include Google::Apis::Core::Hashable
|
726
|
+
|
727
|
+
# Information about an end user.
|
728
|
+
# Corresponds to the JSON property `impersonatedUser`
|
729
|
+
# @return [Google::Apis::DriveactivityV2::User]
|
730
|
+
attr_accessor :impersonated_user
|
731
|
+
|
732
|
+
def initialize(**args)
|
733
|
+
update!(**args)
|
734
|
+
end
|
735
|
+
|
736
|
+
# Update properties of this object
|
737
|
+
def update!(**args)
|
738
|
+
@impersonated_user = args[:impersonated_user] if args.key?(:impersonated_user)
|
739
|
+
end
|
740
|
+
end
|
741
|
+
|
742
|
+
# A known user.
|
743
|
+
class KnownUser
|
744
|
+
include Google::Apis::Core::Hashable
|
745
|
+
|
746
|
+
# True if this is the user making the request.
|
747
|
+
# Corresponds to the JSON property `isCurrentUser`
|
748
|
+
# @return [Boolean]
|
749
|
+
attr_accessor :is_current_user
|
750
|
+
alias_method :is_current_user?, :is_current_user
|
751
|
+
|
752
|
+
# The identifier for this user that can be used with the People API to get
|
753
|
+
# more information. The format is "people/ACCOUNT_ID". See
|
754
|
+
# https://developers.google.com/people/.
|
755
|
+
# Corresponds to the JSON property `personName`
|
756
|
+
# @return [String]
|
757
|
+
attr_accessor :person_name
|
758
|
+
|
759
|
+
def initialize(**args)
|
760
|
+
update!(**args)
|
761
|
+
end
|
762
|
+
|
763
|
+
# Update properties of this object
|
764
|
+
def update!(**args)
|
765
|
+
@is_current_user = args[:is_current_user] if args.key?(:is_current_user)
|
766
|
+
@person_name = args[:person_name] if args.key?(:person_name)
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
# A strategy which consolidates activities using the grouping rules from the
|
771
|
+
# legacy V1 Activity API. Similar actions occurring within a window of time
|
772
|
+
# can be grouped across multiple targets (such as moving a set of files at
|
773
|
+
# once) or multiple actors (such as several users editing the same item).
|
774
|
+
# Grouping rules for this strategy are specific to each type of action.
|
775
|
+
class Legacy
|
776
|
+
include Google::Apis::Core::Hashable
|
777
|
+
|
778
|
+
def initialize(**args)
|
779
|
+
update!(**args)
|
780
|
+
end
|
781
|
+
|
782
|
+
# Update properties of this object
|
783
|
+
def update!(**args)
|
784
|
+
end
|
785
|
+
end
|
786
|
+
|
787
|
+
# An object was moved.
|
788
|
+
class Move
|
789
|
+
include Google::Apis::Core::Hashable
|
790
|
+
|
791
|
+
# The added parent object(s).
|
792
|
+
# Corresponds to the JSON property `addedParents`
|
793
|
+
# @return [Array<Google::Apis::DriveactivityV2::TargetReference>]
|
794
|
+
attr_accessor :added_parents
|
795
|
+
|
796
|
+
# The removed parent object(s).
|
797
|
+
# Corresponds to the JSON property `removedParents`
|
798
|
+
# @return [Array<Google::Apis::DriveactivityV2::TargetReference>]
|
799
|
+
attr_accessor :removed_parents
|
800
|
+
|
801
|
+
def initialize(**args)
|
802
|
+
update!(**args)
|
803
|
+
end
|
804
|
+
|
805
|
+
# Update properties of this object
|
806
|
+
def update!(**args)
|
807
|
+
@added_parents = args[:added_parents] if args.key?(:added_parents)
|
808
|
+
@removed_parents = args[:removed_parents] if args.key?(:removed_parents)
|
809
|
+
end
|
810
|
+
end
|
811
|
+
|
812
|
+
# An object was created from scratch.
|
813
|
+
class New
|
814
|
+
include Google::Apis::Core::Hashable
|
815
|
+
|
816
|
+
def initialize(**args)
|
817
|
+
update!(**args)
|
818
|
+
end
|
819
|
+
|
820
|
+
# Update properties of this object
|
821
|
+
def update!(**args)
|
822
|
+
end
|
823
|
+
end
|
824
|
+
|
825
|
+
# A strategy which does no consolidation of individual activities.
|
826
|
+
class NoConsolidation
|
827
|
+
include Google::Apis::Core::Hashable
|
828
|
+
|
829
|
+
def initialize(**args)
|
830
|
+
update!(**args)
|
831
|
+
end
|
832
|
+
|
833
|
+
# Update properties of this object
|
834
|
+
def update!(**args)
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
838
|
+
# Information about the owner of a Drive item.
|
839
|
+
class Owner
|
840
|
+
include Google::Apis::Core::Hashable
|
841
|
+
|
842
|
+
# Information about a domain.
|
843
|
+
# Corresponds to the JSON property `domain`
|
844
|
+
# @return [Google::Apis::DriveactivityV2::Domain]
|
845
|
+
attr_accessor :domain
|
846
|
+
|
847
|
+
# A lightweight reference to a Team Drive.
|
848
|
+
# Corresponds to the JSON property `teamDrive`
|
849
|
+
# @return [Google::Apis::DriveactivityV2::TeamDriveReference]
|
850
|
+
attr_accessor :team_drive
|
851
|
+
|
852
|
+
# Information about an end user.
|
853
|
+
# Corresponds to the JSON property `user`
|
854
|
+
# @return [Google::Apis::DriveactivityV2::User]
|
855
|
+
attr_accessor :user
|
856
|
+
|
857
|
+
def initialize(**args)
|
858
|
+
update!(**args)
|
859
|
+
end
|
860
|
+
|
861
|
+
# Update properties of this object
|
862
|
+
def update!(**args)
|
863
|
+
@domain = args[:domain] if args.key?(:domain)
|
864
|
+
@team_drive = args[:team_drive] if args.key?(:team_drive)
|
865
|
+
@user = args[:user] if args.key?(:user)
|
866
|
+
end
|
867
|
+
end
|
868
|
+
|
869
|
+
# The permission setting of an object.
|
870
|
+
class Permission
|
871
|
+
include Google::Apis::Core::Hashable
|
872
|
+
|
873
|
+
# If true, the item can be discovered (e.g. in the user's "Shared with me"
|
874
|
+
# collection) without needing a link to the item.
|
875
|
+
# Corresponds to the JSON property `allowDiscovery`
|
876
|
+
# @return [Boolean]
|
877
|
+
attr_accessor :allow_discovery
|
878
|
+
alias_method :allow_discovery?, :allow_discovery
|
879
|
+
|
880
|
+
# Represents any user (including a logged out user).
|
881
|
+
# Corresponds to the JSON property `anyone`
|
882
|
+
# @return [Google::Apis::DriveactivityV2::Anyone]
|
883
|
+
attr_accessor :anyone
|
884
|
+
|
885
|
+
# Information about a domain.
|
886
|
+
# Corresponds to the JSON property `domain`
|
887
|
+
# @return [Google::Apis::DriveactivityV2::Domain]
|
888
|
+
attr_accessor :domain
|
889
|
+
|
890
|
+
# Information about a group.
|
891
|
+
# Corresponds to the JSON property `group`
|
892
|
+
# @return [Google::Apis::DriveactivityV2::Group]
|
893
|
+
attr_accessor :group
|
894
|
+
|
895
|
+
# Indicates the
|
896
|
+
# <a href="/drive/web/manage-sharing#roles">Google Drive permissions
|
897
|
+
# role</a>. The role determines a user's ability to read, write, and
|
898
|
+
# comment on items.
|
899
|
+
# Corresponds to the JSON property `role`
|
900
|
+
# @return [String]
|
901
|
+
attr_accessor :role
|
902
|
+
|
903
|
+
# Information about an end user.
|
904
|
+
# Corresponds to the JSON property `user`
|
905
|
+
# @return [Google::Apis::DriveactivityV2::User]
|
906
|
+
attr_accessor :user
|
907
|
+
|
908
|
+
def initialize(**args)
|
909
|
+
update!(**args)
|
910
|
+
end
|
911
|
+
|
912
|
+
# Update properties of this object
|
913
|
+
def update!(**args)
|
914
|
+
@allow_discovery = args[:allow_discovery] if args.key?(:allow_discovery)
|
915
|
+
@anyone = args[:anyone] if args.key?(:anyone)
|
916
|
+
@domain = args[:domain] if args.key?(:domain)
|
917
|
+
@group = args[:group] if args.key?(:group)
|
918
|
+
@role = args[:role] if args.key?(:role)
|
919
|
+
@user = args[:user] if args.key?(:user)
|
920
|
+
end
|
921
|
+
end
|
922
|
+
|
923
|
+
# A change of the permission setting on an item.
|
924
|
+
class PermissionChange
|
925
|
+
include Google::Apis::Core::Hashable
|
926
|
+
|
927
|
+
# The set of permissions added by this change.
|
928
|
+
# Corresponds to the JSON property `addedPermissions`
|
929
|
+
# @return [Array<Google::Apis::DriveactivityV2::Permission>]
|
930
|
+
attr_accessor :added_permissions
|
931
|
+
|
932
|
+
# The set of permissions removed by this change.
|
933
|
+
# Corresponds to the JSON property `removedPermissions`
|
934
|
+
# @return [Array<Google::Apis::DriveactivityV2::Permission>]
|
935
|
+
attr_accessor :removed_permissions
|
936
|
+
|
937
|
+
def initialize(**args)
|
938
|
+
update!(**args)
|
939
|
+
end
|
940
|
+
|
941
|
+
# Update properties of this object
|
942
|
+
def update!(**args)
|
943
|
+
@added_permissions = args[:added_permissions] if args.key?(:added_permissions)
|
944
|
+
@removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions)
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
948
|
+
# A regular posted comment.
|
949
|
+
class Post
|
950
|
+
include Google::Apis::Core::Hashable
|
951
|
+
|
952
|
+
# The sub-type of this event.
|
953
|
+
# Corresponds to the JSON property `subtype`
|
954
|
+
# @return [String]
|
955
|
+
attr_accessor :subtype
|
956
|
+
|
957
|
+
def initialize(**args)
|
958
|
+
update!(**args)
|
959
|
+
end
|
960
|
+
|
961
|
+
# Update properties of this object
|
962
|
+
def update!(**args)
|
963
|
+
@subtype = args[:subtype] if args.key?(:subtype)
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
# The request message for querying Drive activity.
|
968
|
+
class QueryDriveActivityRequest
|
969
|
+
include Google::Apis::Core::Hashable
|
970
|
+
|
971
|
+
# Return activities for this Drive folder and all children and descendants.
|
972
|
+
# The format is "items/ITEM_ID".
|
973
|
+
# Corresponds to the JSON property `ancestorName`
|
974
|
+
# @return [String]
|
975
|
+
attr_accessor :ancestor_name
|
976
|
+
|
977
|
+
# How the individual activities are consolidated. A set of activities may be
|
978
|
+
# consolidated into one combined activity if they are related in some way, such
|
979
|
+
# as one actor performing the same action on multiple targets, or multiple
|
980
|
+
# actors performing the same action on a single target. The strategy defines
|
981
|
+
# the rules for which activities are related.
|
982
|
+
# Corresponds to the JSON property `consolidationStrategy`
|
983
|
+
# @return [Google::Apis::DriveactivityV2::ConsolidationStrategy]
|
984
|
+
attr_accessor :consolidation_strategy
|
985
|
+
|
986
|
+
# The filtering for items returned from this query request. The format of the
|
987
|
+
# filter string is a sequence of expressions, joined by an optional "AND",
|
988
|
+
# where each expression is of the form "field operator value".
|
989
|
+
# Supported fields:
|
990
|
+
# - <tt>time</tt>: Uses numerical operators on date values either in
|
991
|
+
# terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.
|
992
|
+
# Examples:
|
993
|
+
# - <tt>time > 1452409200000 AND time <= 1492812924310</tt>
|
994
|
+
# - <tt>time >= "2016-01-10T01:02:03-05:00"</tt>
|
995
|
+
# - <tt>detail.action_detail_case</tt>: Uses the "has" operator (:) and
|
996
|
+
# either a singular value or a list of allowed action types enclosed in
|
997
|
+
# parentheses.
|
998
|
+
# Examples:
|
999
|
+
# - <tt>detail.action_detail_case: RENAME</tt>
|
1000
|
+
# - <tt>detail.action_detail_case:(CREATE UPLOAD)</tt>
|
1001
|
+
# - <tt>-detail.action_detail_case:MOVE</tt>
|
1002
|
+
# Corresponds to the JSON property `filter`
|
1003
|
+
# @return [String]
|
1004
|
+
attr_accessor :filter
|
1005
|
+
|
1006
|
+
# Return activities for this Drive item. The format is
|
1007
|
+
# "items/ITEM_ID".
|
1008
|
+
# Corresponds to the JSON property `itemName`
|
1009
|
+
# @return [String]
|
1010
|
+
attr_accessor :item_name
|
1011
|
+
|
1012
|
+
# The requested number of activity to return. If not set, a default value
|
1013
|
+
# will be used.
|
1014
|
+
# Corresponds to the JSON property `pageSize`
|
1015
|
+
# @return [Fixnum]
|
1016
|
+
attr_accessor :page_size
|
1017
|
+
|
1018
|
+
# The next_page_token value returned from a previous QueryDriveActivity
|
1019
|
+
# request, if any.
|
1020
|
+
# Corresponds to the JSON property `pageToken`
|
1021
|
+
# @return [String]
|
1022
|
+
attr_accessor :page_token
|
1023
|
+
|
1024
|
+
def initialize(**args)
|
1025
|
+
update!(**args)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Update properties of this object
|
1029
|
+
def update!(**args)
|
1030
|
+
@ancestor_name = args[:ancestor_name] if args.key?(:ancestor_name)
|
1031
|
+
@consolidation_strategy = args[:consolidation_strategy] if args.key?(:consolidation_strategy)
|
1032
|
+
@filter = args[:filter] if args.key?(:filter)
|
1033
|
+
@item_name = args[:item_name] if args.key?(:item_name)
|
1034
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
1035
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# Response message for querying Drive activity.
|
1040
|
+
class QueryDriveActivityResponse
|
1041
|
+
include Google::Apis::Core::Hashable
|
1042
|
+
|
1043
|
+
# List of activity requested.
|
1044
|
+
# Corresponds to the JSON property `activities`
|
1045
|
+
# @return [Array<Google::Apis::DriveactivityV2::DriveActivity>]
|
1046
|
+
attr_accessor :activities
|
1047
|
+
|
1048
|
+
# Token to retrieve the next page of results, or
|
1049
|
+
# empty if there are no more results in the list.
|
1050
|
+
# Corresponds to the JSON property `nextPageToken`
|
1051
|
+
# @return [String]
|
1052
|
+
attr_accessor :next_page_token
|
1053
|
+
|
1054
|
+
def initialize(**args)
|
1055
|
+
update!(**args)
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
# Update properties of this object
|
1059
|
+
def update!(**args)
|
1060
|
+
@activities = args[:activities] if args.key?(:activities)
|
1061
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1062
|
+
end
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
# An object was renamed.
|
1066
|
+
class Rename
|
1067
|
+
include Google::Apis::Core::Hashable
|
1068
|
+
|
1069
|
+
# The new title of the drive object.
|
1070
|
+
# Corresponds to the JSON property `newTitle`
|
1071
|
+
# @return [String]
|
1072
|
+
attr_accessor :new_title
|
1073
|
+
|
1074
|
+
# The previous title of the drive object.
|
1075
|
+
# Corresponds to the JSON property `oldTitle`
|
1076
|
+
# @return [String]
|
1077
|
+
attr_accessor :old_title
|
1078
|
+
|
1079
|
+
def initialize(**args)
|
1080
|
+
update!(**args)
|
1081
|
+
end
|
1082
|
+
|
1083
|
+
# Update properties of this object
|
1084
|
+
def update!(**args)
|
1085
|
+
@new_title = args[:new_title] if args.key?(:new_title)
|
1086
|
+
@old_title = args[:old_title] if args.key?(:old_title)
|
1087
|
+
end
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
# A deleted object was restored.
|
1091
|
+
class Restore
|
1092
|
+
include Google::Apis::Core::Hashable
|
1093
|
+
|
1094
|
+
# The type of restore action taken.
|
1095
|
+
# Corresponds to the JSON property `type`
|
1096
|
+
# @return [String]
|
1097
|
+
attr_accessor :type
|
1098
|
+
|
1099
|
+
def initialize(**args)
|
1100
|
+
update!(**args)
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Update properties of this object
|
1104
|
+
def update!(**args)
|
1105
|
+
@type = args[:type] if args.key?(:type)
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Information about restriction policy changes to a feature.
|
1110
|
+
class RestrictionChange
|
1111
|
+
include Google::Apis::Core::Hashable
|
1112
|
+
|
1113
|
+
# The feature which had a change in restriction policy.
|
1114
|
+
# Corresponds to the JSON property `feature`
|
1115
|
+
# @return [String]
|
1116
|
+
attr_accessor :feature
|
1117
|
+
|
1118
|
+
# The restriction in place after the change.
|
1119
|
+
# Corresponds to the JSON property `newRestriction`
|
1120
|
+
# @return [String]
|
1121
|
+
attr_accessor :new_restriction
|
1122
|
+
|
1123
|
+
def initialize(**args)
|
1124
|
+
update!(**args)
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
# Update properties of this object
|
1128
|
+
def update!(**args)
|
1129
|
+
@feature = args[:feature] if args.key?(:feature)
|
1130
|
+
@new_restriction = args[:new_restriction] if args.key?(:new_restriction)
|
1131
|
+
end
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
# Information about settings changes.
|
1135
|
+
class SettingsChange
|
1136
|
+
include Google::Apis::Core::Hashable
|
1137
|
+
|
1138
|
+
# The set of changes made to restrictions.
|
1139
|
+
# Corresponds to the JSON property `restrictionChanges`
|
1140
|
+
# @return [Array<Google::Apis::DriveactivityV2::RestrictionChange>]
|
1141
|
+
attr_accessor :restriction_changes
|
1142
|
+
|
1143
|
+
def initialize(**args)
|
1144
|
+
update!(**args)
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
# Update properties of this object
|
1148
|
+
def update!(**args)
|
1149
|
+
@restriction_changes = args[:restriction_changes] if args.key?(:restriction_changes)
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
# A suggestion.
|
1154
|
+
class Suggestion
|
1155
|
+
include Google::Apis::Core::Hashable
|
1156
|
+
|
1157
|
+
# The sub-type of this event.
|
1158
|
+
# Corresponds to the JSON property `subtype`
|
1159
|
+
# @return [String]
|
1160
|
+
attr_accessor :subtype
|
1161
|
+
|
1162
|
+
def initialize(**args)
|
1163
|
+
update!(**args)
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
# Update properties of this object
|
1167
|
+
def update!(**args)
|
1168
|
+
@subtype = args[:subtype] if args.key?(:subtype)
|
1169
|
+
end
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
# Event triggered by system operations instead of end users.
|
1173
|
+
class SystemEvent
|
1174
|
+
include Google::Apis::Core::Hashable
|
1175
|
+
|
1176
|
+
# The type of the system event that may triggered activity.
|
1177
|
+
# Corresponds to the JSON property `type`
|
1178
|
+
# @return [String]
|
1179
|
+
attr_accessor :type
|
1180
|
+
|
1181
|
+
def initialize(**args)
|
1182
|
+
update!(**args)
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
# Update properties of this object
|
1186
|
+
def update!(**args)
|
1187
|
+
@type = args[:type] if args.key?(:type)
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
# Information about the target of activity.
|
1192
|
+
class Target
|
1193
|
+
include Google::Apis::Core::Hashable
|
1194
|
+
|
1195
|
+
# A Drive item, such as a file or folder.
|
1196
|
+
# Corresponds to the JSON property `driveItem`
|
1197
|
+
# @return [Google::Apis::DriveactivityV2::DriveItem]
|
1198
|
+
attr_accessor :drive_item
|
1199
|
+
|
1200
|
+
# A comment on a file.
|
1201
|
+
# Corresponds to the JSON property `fileComment`
|
1202
|
+
# @return [Google::Apis::DriveactivityV2::FileComment]
|
1203
|
+
attr_accessor :file_comment
|
1204
|
+
|
1205
|
+
# Information about a Team Drive.
|
1206
|
+
# Corresponds to the JSON property `teamDrive`
|
1207
|
+
# @return [Google::Apis::DriveactivityV2::TeamDrive]
|
1208
|
+
attr_accessor :team_drive
|
1209
|
+
|
1210
|
+
def initialize(**args)
|
1211
|
+
update!(**args)
|
1212
|
+
end
|
1213
|
+
|
1214
|
+
# Update properties of this object
|
1215
|
+
def update!(**args)
|
1216
|
+
@drive_item = args[:drive_item] if args.key?(:drive_item)
|
1217
|
+
@file_comment = args[:file_comment] if args.key?(:file_comment)
|
1218
|
+
@team_drive = args[:team_drive] if args.key?(:team_drive)
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
# A lightweight reference to the target of activity.
|
1223
|
+
class TargetReference
|
1224
|
+
include Google::Apis::Core::Hashable
|
1225
|
+
|
1226
|
+
# A lightweight reference to a Drive item, such as a file or folder.
|
1227
|
+
# Corresponds to the JSON property `driveItem`
|
1228
|
+
# @return [Google::Apis::DriveactivityV2::DriveItemReference]
|
1229
|
+
attr_accessor :drive_item
|
1230
|
+
|
1231
|
+
# A lightweight reference to a Team Drive.
|
1232
|
+
# Corresponds to the JSON property `teamDrive`
|
1233
|
+
# @return [Google::Apis::DriveactivityV2::TeamDriveReference]
|
1234
|
+
attr_accessor :team_drive
|
1235
|
+
|
1236
|
+
def initialize(**args)
|
1237
|
+
update!(**args)
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# Update properties of this object
|
1241
|
+
def update!(**args)
|
1242
|
+
@drive_item = args[:drive_item] if args.key?(:drive_item)
|
1243
|
+
@team_drive = args[:team_drive] if args.key?(:team_drive)
|
1244
|
+
end
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
# Information about a Team Drive.
|
1248
|
+
class TeamDrive
|
1249
|
+
include Google::Apis::Core::Hashable
|
1250
|
+
|
1251
|
+
# The resource name of the Team Drive. The format is
|
1252
|
+
# "teamDrives/TEAM_DRIVE_ID".
|
1253
|
+
# Corresponds to the JSON property `name`
|
1254
|
+
# @return [String]
|
1255
|
+
attr_accessor :name
|
1256
|
+
|
1257
|
+
# A Drive item, such as a file or folder.
|
1258
|
+
# Corresponds to the JSON property `root`
|
1259
|
+
# @return [Google::Apis::DriveactivityV2::DriveItem]
|
1260
|
+
attr_accessor :root
|
1261
|
+
|
1262
|
+
# The title of the Team Drive.
|
1263
|
+
# Corresponds to the JSON property `title`
|
1264
|
+
# @return [String]
|
1265
|
+
attr_accessor :title
|
1266
|
+
|
1267
|
+
def initialize(**args)
|
1268
|
+
update!(**args)
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
# Update properties of this object
|
1272
|
+
def update!(**args)
|
1273
|
+
@name = args[:name] if args.key?(:name)
|
1274
|
+
@root = args[:root] if args.key?(:root)
|
1275
|
+
@title = args[:title] if args.key?(:title)
|
1276
|
+
end
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
# A lightweight reference to a Team Drive.
|
1280
|
+
class TeamDriveReference
|
1281
|
+
include Google::Apis::Core::Hashable
|
1282
|
+
|
1283
|
+
# The resource name of the Team Drive. The format is
|
1284
|
+
# "teamDrives/TEAM_DRIVE_ID".
|
1285
|
+
# Corresponds to the JSON property `name`
|
1286
|
+
# @return [String]
|
1287
|
+
attr_accessor :name
|
1288
|
+
|
1289
|
+
# The title of the Team Drive.
|
1290
|
+
# Corresponds to the JSON property `title`
|
1291
|
+
# @return [String]
|
1292
|
+
attr_accessor :title
|
1293
|
+
|
1294
|
+
def initialize(**args)
|
1295
|
+
update!(**args)
|
1296
|
+
end
|
1297
|
+
|
1298
|
+
# Update properties of this object
|
1299
|
+
def update!(**args)
|
1300
|
+
@name = args[:name] if args.key?(:name)
|
1301
|
+
@title = args[:title] if args.key?(:title)
|
1302
|
+
end
|
1303
|
+
end
|
1304
|
+
|
1305
|
+
# Information about time ranges.
|
1306
|
+
class TimeRange
|
1307
|
+
include Google::Apis::Core::Hashable
|
1308
|
+
|
1309
|
+
# The end of the time range.
|
1310
|
+
# Corresponds to the JSON property `endTime`
|
1311
|
+
# @return [String]
|
1312
|
+
attr_accessor :end_time
|
1313
|
+
|
1314
|
+
# The start of the time range.
|
1315
|
+
# Corresponds to the JSON property `startTime`
|
1316
|
+
# @return [String]
|
1317
|
+
attr_accessor :start_time
|
1318
|
+
|
1319
|
+
def initialize(**args)
|
1320
|
+
update!(**args)
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
# Update properties of this object
|
1324
|
+
def update!(**args)
|
1325
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1326
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
# A user about whom nothing is currently known.
|
1331
|
+
class UnknownUser
|
1332
|
+
include Google::Apis::Core::Hashable
|
1333
|
+
|
1334
|
+
def initialize(**args)
|
1335
|
+
update!(**args)
|
1336
|
+
end
|
1337
|
+
|
1338
|
+
# Update properties of this object
|
1339
|
+
def update!(**args)
|
1340
|
+
end
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
# An object was uploaded into Drive.
|
1344
|
+
class Upload
|
1345
|
+
include Google::Apis::Core::Hashable
|
1346
|
+
|
1347
|
+
def initialize(**args)
|
1348
|
+
update!(**args)
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
# Update properties of this object
|
1352
|
+
def update!(**args)
|
1353
|
+
end
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
# Information about an end user.
|
1357
|
+
class User
|
1358
|
+
include Google::Apis::Core::Hashable
|
1359
|
+
|
1360
|
+
# A user whose account has since been deleted.
|
1361
|
+
# Corresponds to the JSON property `deletedUser`
|
1362
|
+
# @return [Google::Apis::DriveactivityV2::DeletedUser]
|
1363
|
+
attr_accessor :deleted_user
|
1364
|
+
|
1365
|
+
# A known user.
|
1366
|
+
# Corresponds to the JSON property `knownUser`
|
1367
|
+
# @return [Google::Apis::DriveactivityV2::KnownUser]
|
1368
|
+
attr_accessor :known_user
|
1369
|
+
|
1370
|
+
# A user about whom nothing is currently known.
|
1371
|
+
# Corresponds to the JSON property `unknownUser`
|
1372
|
+
# @return [Google::Apis::DriveactivityV2::UnknownUser]
|
1373
|
+
attr_accessor :unknown_user
|
1374
|
+
|
1375
|
+
def initialize(**args)
|
1376
|
+
update!(**args)
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# Update properties of this object
|
1380
|
+
def update!(**args)
|
1381
|
+
@deleted_user = args[:deleted_user] if args.key?(:deleted_user)
|
1382
|
+
@known_user = args[:known_user] if args.key?(:known_user)
|
1383
|
+
@unknown_user = args[:unknown_user] if args.key?(:unknown_user)
|
1384
|
+
end
|
1385
|
+
end
|
1386
|
+
end
|
1387
|
+
end
|
1388
|
+
end
|