Autogenerated update (2018-11-15)

Update:
- adexchangebuyer2_v2beta1
- alertcenter_v1beta1
- classroom_v1
- dataflow_v1b3
- dlp_v2
This commit is contained in:
Google APIs committed 2018-11-15 00:36:49 +00:00
1 parent 2b3c5faf5c
commit fbf1113798
16 files changed
+2735 -14

No files matched your search

@@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20181024'
REVISION = '20181113'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -3712,7 +3712,9 @@ module Google
include Google::Apis::Core::Hashable
# The publisher identifier for this row, if a breakdown by
# BreakdownDimension.PUBLISHER_IDENTIFIER
# [BreakdownDimension.PUBLISHER_IDENTIFIER](https://developers.google.com/
# authorized-buyers/apis/reference/rest/v2beta1/bidders.accounts.filterSets#
# FilterSet.BreakdownDimension)
# was requested.
# Corresponds to the JSON property `publisherIdentifier`
# @return [String]
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20181107'
REVISION = '20181110'
end
end
end
@@ -131,7 +131,8 @@ module Google
# Optional. A query string for filtering alert results.
# For more details, see [Query
# filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported
# query filter fields](/admin-sdk/alertcenter/reference/filter-fields).
# query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.
# list).
# @param [String] order_by
# Optional. The sort order of the list results.
# If not specified results may be returned in arbitrary order.
@@ -226,6 +227,11 @@ module Google
# customer the alert feedback are associated with.
# Inferred from the caller identity if not provided.
# @param [String] filter
# Optional. A query string for filtering alert feedback results.
# For more details, see [Query
# filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported
# query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.
# feedback.list).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20180919'
REVISION = '20181113'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@@ -1309,7 +1309,7 @@ module Google
# Reclaims a student submission on behalf of the student that owns it.
# Reclaiming a student submission transfers ownership of attached Drive
# files to the student and update the submission state.
# files to the student and updates the submission state.
# Only the student that owns the requested student submission may call this
# method, and only for a student submission that has been turned in.
# This request must be made by the Developer Console project of the
+1 -1
View File
@@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20181016'
REVISION = '20181107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1699,6 +1699,12 @@ module Google
# @return [String]
attr_accessor :create_time
# If this is specified, the job's initial state is populated from the given
# snapshot.
# Corresponds to the JSON property `createdFromSnapshotId`
# @return [String]
attr_accessor :created_from_snapshot_id
# The current state of the job.
# Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
# specified.
@@ -1820,11 +1826,17 @@ module Google
# @return [String]
attr_accessor :start_time
# Exactly one of step or steps_location should be specified.
# The top-level steps that constitute the entire job.
# Corresponds to the JSON property `steps`
# @return [Array<Google::Apis::DataflowV1b3::Step>]
attr_accessor :steps
# The GCS location where the steps are stored.
# Corresponds to the JSON property `stepsLocation`
# @return [String]
attr_accessor :steps_location
# A set of files the system should be aware of that are used
# for temporary storage. These temporary files will be
# removed on job completion.
@@ -1857,6 +1869,7 @@ module Google
def update!(**args)
@client_request_id = args[:client_request_id] if args.key?(:client_request_id)
@create_time = args[:create_time] if args.key?(:create_time)
@created_from_snapshot_id = args[:created_from_snapshot_id] if args.key?(:created_from_snapshot_id)
@current_state = args[:current_state] if args.key?(:current_state)
@current_state_time = args[:current_state_time] if args.key?(:current_state_time)
@environment = args[:environment] if args.key?(:environment)
@@ -1874,6 +1887,7 @@ module Google
@stage_states = args[:stage_states] if args.key?(:stage_states)
@start_time = args[:start_time] if args.key?(:start_time)
@steps = args[:steps] if args.key?(:steps)
@steps_location = args[:steps_location] if args.key?(:steps_location)
@temp_files = args[:temp_files] if args.key?(:temp_files)
@transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping)
@type = args[:type] if args.key?(:type)
@@ -3561,6 +3575,74 @@ module Google
end
end
# Represents a snapshot of a job.
class Snapshot
include Google::Apis::Core::Hashable
# The time this snapshot was created.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# The unique ID of this snapshot.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The project this snapshot belongs to.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The job this snapshot was created from.
# Corresponds to the JSON property `sourceJobId`
# @return [String]
attr_accessor :source_job_id
# The time after which this snapshot will be automatically deleted.
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@id = args[:id] if args.key?(:id)
@project_id = args[:project_id] if args.key?(:project_id)
@source_job_id = args[:source_job_id] if args.key?(:source_job_id)
@ttl = args[:ttl] if args.key?(:ttl)
end
end
# Request to create a snapshot of a job.
class SnapshotJobRequest
include Google::Apis::Core::Hashable
# The location that contains this job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
# TTL for the snapshot.
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@location = args[:location] if args.key?(:location)
@ttl = args[:ttl] if args.key?(:ttl)
end
end
# A source that records can be read and decoded from.
class Source
include Google::Apis::Core::Hashable
@@ -562,6 +562,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Snapshot
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SnapshotJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -1294,6 +1306,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :client_request_id, as: 'clientRequestId'
property :create_time, as: 'createTime'
property :created_from_snapshot_id, as: 'createdFromSnapshotId'
property :current_state, as: 'currentState'
property :current_state_time, as: 'currentStateTime'
property :environment, as: 'environment', class: Google::Apis::DataflowV1b3::Environment, decorator: Google::Apis::DataflowV1b3::Environment::Representation
@@ -1317,6 +1330,7 @@ module Google
property :start_time, as: 'startTime'
collection :steps, as: 'steps', class: Google::Apis::DataflowV1b3::Step, decorator: Google::Apis::DataflowV1b3::Step::Representation
property :steps_location, as: 'stepsLocation'
collection :temp_files, as: 'tempFiles'
hash :transform_name_mapping, as: 'transformNameMapping'
property :type, as: 'type'
@@ -1802,6 +1816,25 @@ module Google
end
end
class Snapshot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :creation_time, as: 'creationTime'
property :id, as: 'id'
property :project_id, as: 'projectId'
property :source_job_id, as: 'sourceJobId'
property :ttl, as: 'ttl'
end
end
class SnapshotJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location'
property :ttl, as: 'ttl'
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+97 -6
View File
@@ -297,6 +297,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Snapshot the state of a streaming job.
# @param [String] project_id
# The project which owns the job to be snapshotted.
# @param [String] job_id
# The job to be snapshotted.
# @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Snapshot] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Snapshot]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def snapshot_project_job(project_id, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}:snapshot', options)
command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation
command.request_object = snapshot_job_request_object
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
command.response_class = Google::Apis::DataflowV1b3::Snapshot
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the state of an existing Cloud Dataflow job.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
@@ -742,6 +778,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Snapshot the state of a streaming job.
# @param [String] project_id
# The project which owns the job to be snapshotted.
# @param [String] location
# The location that contains this job.
# @param [String] job_id
# The job to be snapshotted.
# @param [Google::Apis::DataflowV1b3::SnapshotJobRequest] snapshot_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Snapshot] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Snapshot]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def snapshot_project_location_job(project_id, location, job_id, snapshot_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot', options)
command.request_representation = Google::Apis::DataflowV1b3::SnapshotJobRequest::Representation
command.request_object = snapshot_job_request_object
command.response_representation = Google::Apis::DataflowV1b3::Snapshot::Representation
command.response_class = Google::Apis::DataflowV1b3::Snapshot
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the state of an existing Cloud Dataflow job.
# @param [String] project_id
# The ID of the Cloud Platform project that the job belongs to.
@@ -1038,7 +1113,7 @@ module Google
# @param [String] gcs_path
# Required. A Cloud Storage path to the template from which to
# create the job.
# Must be a valid Cloud Storage URL, beginning with `gs://`.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [String] view
# The view to retrieve. Defaults to METADATA_ONLY.
# @param [String] fields
@@ -1077,8 +1152,14 @@ module Google
# @param [String] location
# The location to which to direct the request.
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
# @param [String] dynamic_template_gcs_path
# Path to dynamic template spec file on GCS.
# The file must be a Json serialized DynamicTemplateFieSpec object.
# @param [String] dynamic_template_staging_location
# Cloud Storage path for staging dependencies.
# Must be a valid Cloud Storage URL, beginning with `gs://`.
# @param [String] gcs_path
# Required. A Cloud Storage path to the template from which to create
# A Cloud Storage path to the template from which to create
# the job.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [Boolean] validate_only
@@ -1101,7 +1182,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
def launch_project_location_template(project_id, location, launch_template_parameters_object = nil, dynamic_template_gcs_path: nil, dynamic_template_staging_location: nil, gcs_path: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
command.request_object = launch_template_parameters_object
@@ -1109,6 +1190,8 @@ module Google
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.query['dynamicTemplate.gcsPath'] = dynamic_template_gcs_path unless dynamic_template_gcs_path.nil?
command.query['dynamicTemplate.stagingLocation'] = dynamic_template_staging_location unless dynamic_template_staging_location.nil?
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
command.query['validateOnly'] = validate_only unless validate_only.nil?
command.query['fields'] = fields unless fields.nil?
@@ -1155,7 +1238,7 @@ module Google
# @param [String] gcs_path
# Required. A Cloud Storage path to the template from which to
# create the job.
# Must be a valid Cloud Storage URL, beginning with `gs://`.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [String] location
# The location to which to direct the request.
# @param [String] view
@@ -1194,8 +1277,14 @@ module Google
# @param [String] project_id
# Required. The ID of the Cloud Platform project that the job belongs to.
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
# @param [String] dynamic_template_gcs_path
# Path to dynamic template spec file on GCS.
# The file must be a Json serialized DynamicTemplateFieSpec object.
# @param [String] dynamic_template_staging_location
# Cloud Storage path for staging dependencies.
# Must be a valid Cloud Storage URL, beginning with `gs://`.
# @param [String] gcs_path
# Required. A Cloud Storage path to the template from which to create
# A Cloud Storage path to the template from which to create
# the job.
# Must be valid Cloud Storage URL, beginning with 'gs://'.
# @param [String] location
@@ -1220,13 +1309,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
def launch_project_template(project_id, launch_template_parameters_object = nil, dynamic_template_gcs_path: nil, dynamic_template_staging_location: nil, gcs_path: nil, location: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
command.request_object = launch_template_parameters_object
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
command.params['projectId'] = project_id unless project_id.nil?
command.query['dynamicTemplate.gcsPath'] = dynamic_template_gcs_path unless dynamic_template_gcs_path.nil?
command.query['dynamicTemplate.stagingLocation'] = dynamic_template_staging_location unless dynamic_template_staging_location.nil?
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
command.query['location'] = location unless location.nil?
command.query['validateOnly'] = validate_only unless validate_only.nil?
+1 -1
View File
@@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/
module DlpV2
VERSION = 'V2'
REVISION = '20181030'
REVISION = '20181113'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+37
View File
@@ -0,0 +1,37 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/driveactivity_v2/service.rb'
require 'google/apis/driveactivity_v2/classes.rb'
require 'google/apis/driveactivity_v2/representations.rb'
module Google
module Apis
# Drive Activity API
#
#
#
# @see https://developers.google.com/drive/activity/
module DriveactivityV2
VERSION = 'V2'
REVISION = '20181113'
# View and add to the activity record of files in your Google Drive
AUTH_DRIVE_ACTIVITY = 'https://www.googleapis.com/auth/drive.activity'
# View the activity record of files in your Google Drive
AUTH_DRIVE_ACTIVITY_READONLY = 'https://www.googleapis.com/auth/drive.activity.readonly'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,799 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DriveactivityV2
class Action
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ActionDetail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Actor
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Administrator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnonymousUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Anyone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Comment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConsolidationStrategy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Copy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Create
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DataLeakPreventionChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Delete
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeletedUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Domain
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DriveActivity
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DriveItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DriveItemReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Edit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class File
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FileComment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Folder
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Group
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Impersonation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class KnownUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Legacy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Move
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class New
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NoConsolidation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Owner
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Permission
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PermissionChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Post
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryDriveActivityRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryDriveActivityResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Rename
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Restore
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RestrictionChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SettingsChange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Suggestion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SystemEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Target
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TeamDrive
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TeamDriveReference
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnknownUser
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Upload
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Action
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :actor, as: 'actor', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
property :detail, as: 'detail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
property :target, as: 'target', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
property :timestamp, as: 'timestamp'
end
end
class ActionDetail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :comment, as: 'comment', class: Google::Apis::DriveactivityV2::Comment, decorator: Google::Apis::DriveactivityV2::Comment::Representation
property :create, as: 'create', class: Google::Apis::DriveactivityV2::Create, decorator: Google::Apis::DriveactivityV2::Create::Representation
property :delete, as: 'delete', class: Google::Apis::DriveactivityV2::Delete, decorator: Google::Apis::DriveactivityV2::Delete::Representation
property :dlp_change, as: 'dlpChange', class: Google::Apis::DriveactivityV2::DataLeakPreventionChange, decorator: Google::Apis::DriveactivityV2::DataLeakPreventionChange::Representation
property :edit, as: 'edit', class: Google::Apis::DriveactivityV2::Edit, decorator: Google::Apis::DriveactivityV2::Edit::Representation
property :move, as: 'move', class: Google::Apis::DriveactivityV2::Move, decorator: Google::Apis::DriveactivityV2::Move::Representation
property :permission_change, as: 'permissionChange', class: Google::Apis::DriveactivityV2::PermissionChange, decorator: Google::Apis::DriveactivityV2::PermissionChange::Representation
property :reference, as: 'reference', class: Google::Apis::DriveactivityV2::ApplicationReference, decorator: Google::Apis::DriveactivityV2::ApplicationReference::Representation
property :rename, as: 'rename', class: Google::Apis::DriveactivityV2::Rename, decorator: Google::Apis::DriveactivityV2::Rename::Representation
property :restore, as: 'restore', class: Google::Apis::DriveactivityV2::Restore, decorator: Google::Apis::DriveactivityV2::Restore::Representation
property :settings_change, as: 'settingsChange', class: Google::Apis::DriveactivityV2::SettingsChange, decorator: Google::Apis::DriveactivityV2::SettingsChange::Representation
end
end
class Actor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :administrator, as: 'administrator', class: Google::Apis::DriveactivityV2::Administrator, decorator: Google::Apis::DriveactivityV2::Administrator::Representation
property :anonymous, as: 'anonymous', class: Google::Apis::DriveactivityV2::AnonymousUser, decorator: Google::Apis::DriveactivityV2::AnonymousUser::Representation
property :impersonation, as: 'impersonation', class: Google::Apis::DriveactivityV2::Impersonation, decorator: Google::Apis::DriveactivityV2::Impersonation::Representation
property :system, as: 'system', class: Google::Apis::DriveactivityV2::SystemEvent, decorator: Google::Apis::DriveactivityV2::SystemEvent::Representation
property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
end
end
class Administrator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AnonymousUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Anyone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ApplicationReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :subtype, as: 'subtype'
end
end
class Comment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :assignment, as: 'assignment', class: Google::Apis::DriveactivityV2::Assignment, decorator: Google::Apis::DriveactivityV2::Assignment::Representation
collection :mentioned_users, as: 'mentionedUsers', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
property :post, as: 'post', class: Google::Apis::DriveactivityV2::Post, decorator: Google::Apis::DriveactivityV2::Post::Representation
property :suggestion, as: 'suggestion', class: Google::Apis::DriveactivityV2::Suggestion, decorator: Google::Apis::DriveactivityV2::Suggestion::Representation
end
end
class ConsolidationStrategy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :legacy, as: 'legacy', class: Google::Apis::DriveactivityV2::Legacy, decorator: Google::Apis::DriveactivityV2::Legacy::Representation
property :none, as: 'none', class: Google::Apis::DriveactivityV2::NoConsolidation, decorator: Google::Apis::DriveactivityV2::NoConsolidation::Representation
end
end
class Copy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :original_object, as: 'originalObject', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
end
end
class Create
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :copy, as: 'copy', class: Google::Apis::DriveactivityV2::Copy, decorator: Google::Apis::DriveactivityV2::Copy::Representation
property :new, as: 'new', class: Google::Apis::DriveactivityV2::New, decorator: Google::Apis::DriveactivityV2::New::Representation
property :upload, as: 'upload', class: Google::Apis::DriveactivityV2::Upload, decorator: Google::Apis::DriveactivityV2::Upload::Representation
end
end
class DataLeakPreventionChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Delete
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class DeletedUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Domain
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :legacy_id, as: 'legacyId'
property :name, as: 'name'
end
end
class DriveActivity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :actions, as: 'actions', class: Google::Apis::DriveactivityV2::Action, decorator: Google::Apis::DriveactivityV2::Action::Representation
collection :actors, as: 'actors', class: Google::Apis::DriveactivityV2::Actor, decorator: Google::Apis::DriveactivityV2::Actor::Representation
property :primary_action_detail, as: 'primaryActionDetail', class: Google::Apis::DriveactivityV2::ActionDetail, decorator: Google::Apis::DriveactivityV2::ActionDetail::Representation
collection :targets, as: 'targets', class: Google::Apis::DriveactivityV2::Target, decorator: Google::Apis::DriveactivityV2::Target::Representation
property :time_range, as: 'timeRange', class: Google::Apis::DriveactivityV2::TimeRange, decorator: Google::Apis::DriveactivityV2::TimeRange::Representation
property :timestamp, as: 'timestamp'
end
end
class DriveItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
property :mime_type, as: 'mimeType'
property :name, as: 'name'
property :owner, as: 'owner', class: Google::Apis::DriveactivityV2::Owner, decorator: Google::Apis::DriveactivityV2::Owner::Representation
property :title, as: 'title'
end
end
class DriveItemReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file', class: Google::Apis::DriveactivityV2::File, decorator: Google::Apis::DriveactivityV2::File::Representation
property :folder, as: 'folder', class: Google::Apis::DriveactivityV2::Folder, decorator: Google::Apis::DriveactivityV2::Folder::Representation
property :name, as: 'name'
property :title, as: 'title'
end
end
class Edit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class File
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FileComment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :legacy_comment_id, as: 'legacyCommentId'
property :legacy_discussion_id, as: 'legacyDiscussionId'
property :link_to_discussion, as: 'linkToDiscussion'
property :parent, as: 'parent', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
end
end
class Folder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Group
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :email, as: 'email'
property :title, as: 'title'
end
end
class Impersonation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :impersonated_user, as: 'impersonatedUser', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
end
end
class KnownUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_current_user, as: 'isCurrentUser'
property :person_name, as: 'personName'
end
end
class Legacy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Move
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :added_parents, as: 'addedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
collection :removed_parents, as: 'removedParents', class: Google::Apis::DriveactivityV2::TargetReference, decorator: Google::Apis::DriveactivityV2::TargetReference::Representation
end
end
class New
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class NoConsolidation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Owner
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
end
end
class Permission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_discovery, as: 'allowDiscovery'
property :anyone, as: 'anyone', class: Google::Apis::DriveactivityV2::Anyone, decorator: Google::Apis::DriveactivityV2::Anyone::Representation
property :domain, as: 'domain', class: Google::Apis::DriveactivityV2::Domain, decorator: Google::Apis::DriveactivityV2::Domain::Representation
property :group, as: 'group', class: Google::Apis::DriveactivityV2::Group, decorator: Google::Apis::DriveactivityV2::Group::Representation
property :role, as: 'role'
property :user, as: 'user', class: Google::Apis::DriveactivityV2::User, decorator: Google::Apis::DriveactivityV2::User::Representation
end
end
class PermissionChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :added_permissions, as: 'addedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::DriveactivityV2::Permission, decorator: Google::Apis::DriveactivityV2::Permission::Representation
end
end
class Post
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :subtype, as: 'subtype'
end
end
class QueryDriveActivityRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ancestor_name, as: 'ancestorName'
property :consolidation_strategy, as: 'consolidationStrategy', class: Google::Apis::DriveactivityV2::ConsolidationStrategy, decorator: Google::Apis::DriveactivityV2::ConsolidationStrategy::Representation
property :filter, as: 'filter'
property :item_name, as: 'itemName'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
end
end
class QueryDriveActivityResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :activities, as: 'activities', class: Google::Apis::DriveactivityV2::DriveActivity, decorator: Google::Apis::DriveactivityV2::DriveActivity::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Rename
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :new_title, as: 'newTitle'
property :old_title, as: 'oldTitle'
end
end
class Restore
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class RestrictionChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :feature, as: 'feature'
property :new_restriction, as: 'newRestriction'
end
end
class SettingsChange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :restriction_changes, as: 'restrictionChanges', class: Google::Apis::DriveactivityV2::RestrictionChange, decorator: Google::Apis::DriveactivityV2::RestrictionChange::Representation
end
end
class Suggestion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :subtype, as: 'subtype'
end
end
class SystemEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Target
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
property :file_comment, as: 'fileComment', class: Google::Apis::DriveactivityV2::FileComment, decorator: Google::Apis::DriveactivityV2::FileComment::Representation
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDrive, decorator: Google::Apis::DriveactivityV2::TeamDrive::Representation
end
end
class TargetReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :drive_item, as: 'driveItem', class: Google::Apis::DriveactivityV2::DriveItemReference, decorator: Google::Apis::DriveactivityV2::DriveItemReference::Representation
property :team_drive, as: 'teamDrive', class: Google::Apis::DriveactivityV2::TeamDriveReference, decorator: Google::Apis::DriveactivityV2::TeamDriveReference::Representation
end
end
class TeamDrive
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :root, as: 'root', class: Google::Apis::DriveactivityV2::DriveItem, decorator: Google::Apis::DriveactivityV2::DriveItem::Representation
property :title, as: 'title'
end
end
class TeamDriveReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :title, as: 'title'
end
end
class TimeRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
end
end
class UnknownUser
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Upload
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deleted_user, as: 'deletedUser', class: Google::Apis::DriveactivityV2::DeletedUser, decorator: Google::Apis::DriveactivityV2::DeletedUser::Representation
property :known_user, as: 'knownUser', class: Google::Apis::DriveactivityV2::KnownUser, decorator: Google::Apis::DriveactivityV2::KnownUser::Representation
property :unknown_user, as: 'unknownUser', class: Google::Apis::DriveactivityV2::UnknownUser, decorator: Google::Apis::DriveactivityV2::UnknownUser::Representation
end
end
end
end
end
@@ -0,0 +1,89 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DriveactivityV2
# Drive Activity API
#
#
#
# @example
# require 'google/apis/driveactivity_v2'
#
# Driveactivity = Google::Apis::DriveactivityV2 # Alias the module
# service = Driveactivity::DriveActivityService.new
#
# @see https://developers.google.com/drive/activity/
class DriveActivityService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://driveactivity.googleapis.com/', '')
@batch_path = 'batch'
end
# Query past activity in Google Drive.
# @param [Google::Apis::DriveactivityV2::QueryDriveActivityRequest] query_drive_activity_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DriveactivityV2::QueryDriveActivityResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DriveactivityV2::QueryDriveActivityResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def query_drive_activity(query_drive_activity_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/activity:query', options)
command.request_representation = Google::Apis::DriveactivityV2::QueryDriveActivityRequest::Representation
command.request_object = query_drive_activity_request_object
command.response_representation = Google::Apis::DriveactivityV2::QueryDriveActivityResponse::Representation
command.response_class = Google::Apis::DriveactivityV2::QueryDriveActivityResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end