Autogenerated update (2020-03-05)

Delete:
- toolresults_v1

Update:
- bigqueryreservation_v1beta1
- classroom_v1
- dlp_v2
- healthcare_v1beta1
- osconfig_v1beta
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- testing_v1
This commit is contained in:
Google APIs 2020-03-05 00:37:41 +00:00
parent 6f2a3577d1
commit 843df90d42
30 changed files with 4768 additions and 1225 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryreservationV1beta1
VERSION = 'V1beta1'
REVISION = '20200220'
REVISION = '20200229'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -96,20 +96,18 @@ module Google
end
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some minimum committed period of usage. Capacity
# commitment is immutable and cannot be deleted until the end of the commitment
# period. After the end of the commitment period, slots are still available but
# can be freely removed any time. Annual commitments will automatically be
# downgraded to monthly after the commitment ends.
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
class CapacityCommitment
include Google::Apis::Core::Hashable
# Output only. The end of the commitment period. Capacity commitment cannot be
# removed before commitment_end_time. It is applicable only for ACTIVE
# capacity commitments and is computed as a combination of the plan and the
# time when the capacity commitment became ACTIVE.
# Output only. The end of the current commitment period. It is applicable only
# for ACTIVE
# capacity commitments.
# Corresponds to the JSON property `commitmentEndTime`
# @return [String]
attr_accessor :commitment_end_time
@ -135,6 +133,13 @@ module Google
# @return [String]
attr_accessor :plan
# The plan this capacity commitment is converted to after commitment_end_time
# passes. Once the plan is changed, committed period is extended according to
# commitment plan. Only applicable for MONTHLY and ANNUAL commitments.
# Corresponds to the JSON property `renewalPlan`
# @return [String]
attr_accessor :renewal_plan
# Number of slots in this commitment.
# Corresponds to the JSON property `slotCount`
# @return [Fixnum]
@ -155,6 +160,7 @@ module Google
@failure_status = args[:failure_status] if args.key?(:failure_status)
@name = args[:name] if args.key?(:name)
@plan = args[:plan] if args.key?(:plan)
@renewal_plan = args[:renewal_plan] if args.key?(:renewal_plan)
@slot_count = args[:slot_count] if args.key?(:slot_count)
@state = args[:state] if args.key?(:state)
end
@ -257,6 +263,27 @@ module Google
end
end
# The request for ReservationService.MergeCapacityCommitments.
class MergeCapacityCommitmentsRequest
include Google::Apis::Core::Hashable
# Ids of capacity commitments to merge.
# These capacity commitments must exist under admin project and location
# specified in the parent.
# Corresponds to the JSON property `capacityCommitmentIds`
# @return [Array<String>]
attr_accessor :capacity_commitment_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@capacity_commitment_ids = args[:capacity_commitment_ids] if args.key?(:capacity_commitment_ids)
end
end
# The request for
# ReservationService.MoveAssignment.
# Note: "bigquery.reservationAssignments.create" permission is required on the
@ -350,6 +377,62 @@ module Google
end
end
# The request for ReservationService.SplitCapacityCommitment.
class SplitCapacityCommitmentRequest
include Google::Apis::Core::Hashable
# Number of slots in the capacity commitment after the split.
# Corresponds to the JSON property `slotCount`
# @return [Fixnum]
attr_accessor :slot_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@slot_count = args[:slot_count] if args.key?(:slot_count)
end
end
# The response for ReservationService.SplitCapacityCommitment.
class SplitCapacityCommitmentResponse
include Google::Apis::Core::Hashable
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `first`
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
attr_accessor :first
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Monthly and
# annual commitments renew by default. Only flex commitments can be removed. In
# order to remove monthly or annual commitments, their plan needs to be changed
# to flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `second`
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
attr_accessor :second
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@first = args[:first] if args.key?(:first)
@second = args[:second] if args.key?(:second)
end
end
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
@ -388,6 +471,25 @@ module Google
@message = args[:message] if args.key?(:message)
end
end
# The request for ReservationService.UpgradeCapacityCommitmentPlan.
class UpgradeCapacityCommitmentPlanRequest
include Google::Apis::Core::Hashable
# New capacity commitment plan.
# Corresponds to the JSON property `plan`
# @return [String]
attr_accessor :plan
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@plan = args[:plan] if args.key?(:plan)
end
end
end
end
end

View File

@ -64,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class MergeCapacityCommitmentsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MoveAssignmentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -82,12 +88,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SplitCapacityCommitmentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SplitCapacityCommitmentResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeCapacityCommitmentPlanRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Assignment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -115,6 +139,7 @@ module Google
property :name, as: 'name'
property :plan, as: 'plan'
property :renewal_plan, as: 'renewalPlan'
property :slot_count, :numeric_string => true, as: 'slotCount'
property :state, as: 'state'
end
@ -153,6 +178,13 @@ module Google
end
end
class MergeCapacityCommitmentsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :capacity_commitment_ids, as: 'capacityCommitmentIds'
end
end
class MoveAssignmentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -178,6 +210,23 @@ module Google
end
end
class SplitCapacityCommitmentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :slot_count, :numeric_string => true, as: 'slotCount'
end
end
class SplitCapacityCommitmentResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :first, as: 'first', class: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
property :second, as: 'second', class: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment, decorator: Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -186,6 +235,13 @@ module Google
property :message, as: 'message'
end
end
class UpgradeCapacityCommitmentPlanRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :plan, as: 'plan'
end
end
end
end
end

View File

@ -320,6 +320,157 @@ module Google
execute_or_queue_command(command, &block)
end
# Merges capacity commitments of the same plan into one. Resulting capacity
# commitment has the longer commitment_end_time out of the two. Attempting to
# merge capacity commitments of different plan will fail with the error code
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] parent
# Parent resource that identifies admin project and location e.g.,
# projects/myproject/locations/us
# @param [Google::Apis::BigqueryreservationV1beta1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_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::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
#
# @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 merge_capacity_commitments(parent, merge_capacity_commitments_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/capacityCommitments:merge', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::MergeCapacityCommitmentsRequest::Representation
command.request_object = merge_capacity_commitments_request_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
command.params['parent'] = parent unless parent.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 an existing capacity commitment.
# Only renewal_plan field can be updated.
# @param [String] name
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
# @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::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
#
# @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 patch_project_location_capacity_commitment(name, capacity_commitment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
command.request_object = capacity_commitment_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Splits capacity commitment to two commitments of the same plan and
# commitment_end_time. A common use case to do that is to perform a downgrade
# e.g., in order to downgrade from 10000 slots to 8000, one might split 10000
# capacity commitment to 2000 and 8000, change the plan of the first one to
# flex and then delete it.
# @param [String] name
# Required. The resource name e.g.,:
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentRequest] split_capacity_commitment_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::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse]
#
# @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 split_capacity_commitment(name, split_capacity_commitment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:split', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentRequest::Representation
command.request_object = split_capacity_commitment_request_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::SplitCapacityCommitmentResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Replaces an existing commitment with a new commitment of a different plan.
# Plan can only be changed to a plan of a longer commitment period. New
# commitment start is set to a current time. Attempting to change to a plan
# with shorter commitment period will fail with the error code
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] capacity_commitment
# Required. The resource name e.g.,:
# projects/myproject/locations/US/capacityCommitments/123
# @param [Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest] upgrade_capacity_commitment_plan_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::BigqueryreservationV1beta1::CapacityCommitment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment]
#
# @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 upgrade_capacity_commitment_plan(capacity_commitment, upgrade_capacity_commitment_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+capacityCommitment}:upgradeCapacityCommitmentPlan', options)
command.request_representation = Google::Apis::BigqueryreservationV1beta1::UpgradeCapacityCommitmentPlanRequest::Representation
command.request_object = upgrade_capacity_commitment_plan_request_object
command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
command.params['capacityCommitment'] = capacity_commitment unless capacity_commitment.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new reservation resource.
# @param [String] parent
# Required. Project, location. E.g.,

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/classroom/
module ClassroomV1
VERSION = 'V1'
REVISION = '20200222'
REVISION = '20200229'
# View and manage announcements in Google Classroom
AUTH_CLASSROOM_ANNOUNCEMENTS = 'https://www.googleapis.com/auth/classroom.announcements'
@ -51,6 +51,12 @@ module Google
# View course work and grades for students in the Google Classroom classes you teach or administer
AUTH_CLASSROOM_COURSEWORK_STUDENTS_READONLY = 'https://www.googleapis.com/auth/classroom.coursework.students.readonly'
# See, edit, and create classwork materials in Google Classroom
AUTH_CLASSROOM_COURSEWORKMATERIALS = 'https://www.googleapis.com/auth/classroom.courseworkmaterials'
# See all classwork materials for your Google Classroom classes
AUTH_CLASSROOM_COURSEWORKMATERIALS_READONLY = 'https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly'
# View your Google Classroom guardians
AUTH_CLASSROOM_GUARDIANLINKS_ME_READONLY = 'https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly'

View File

@ -714,6 +714,121 @@ module Google
end
end
# Course work material created by a teacher for students of the course
class CourseWorkMaterial
include Google::Apis::Core::Hashable
# Absolute link to this course work material in the Classroom web UI.
# This is only populated if `state` is `PUBLISHED`.
# Read-only.
# Corresponds to the JSON property `alternateLink`
# @return [String]
attr_accessor :alternate_link
# Assignee mode of the course work material.
# If unspecified, the default value is `ALL_STUDENTS`.
# Corresponds to the JSON property `assigneeMode`
# @return [String]
attr_accessor :assignee_mode
# Identifier of the course.
# Read-only.
# Corresponds to the JSON property `courseId`
# @return [String]
attr_accessor :course_id
# Timestamp when this course work material was created.
# Read-only.
# Corresponds to the JSON property `creationTime`
# @return [String]
attr_accessor :creation_time
# Identifier for the user that created the course work material.
# Read-only.
# Corresponds to the JSON property `creatorUserId`
# @return [String]
attr_accessor :creator_user_id
# Optional description of this course work material.
# The text must be a valid UTF-8 string containing no more
# than 30,000 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Classroom-assigned identifier of this course work material, unique per
# course.
# Read-only.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Assignee details about a coursework/announcement.
# This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`.
# Corresponds to the JSON property `individualStudentsOptions`
# @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]
attr_accessor :individual_students_options
# Additional materials.
# A course work material must have no more than 20 material items.
# Corresponds to the JSON property `materials`
# @return [Array<Google::Apis::ClassroomV1::Material>]
attr_accessor :materials
# Optional timestamp when this course work material is scheduled to be
# published.
# Corresponds to the JSON property `scheduledTime`
# @return [String]
attr_accessor :scheduled_time
# Status of this course work material.
# If unspecified, the default state is `DRAFT`.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Title of this course work material.
# The title must be a valid UTF-8 string containing between 1 and 3000
# characters.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# Identifier for the topic that this course work material is associated with.
# Must match an existing topic in the course.
# Corresponds to the JSON property `topicId`
# @return [String]
attr_accessor :topic_id
# Timestamp of the most recent change to this course work material.
# Read-only.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alternate_link = args[:alternate_link] if args.key?(:alternate_link)
@assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
@course_id = args[:course_id] if args.key?(:course_id)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
@materials = args[:materials] if args.key?(:materials)
@scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
@state = args[:state] if args.key?(:state)
@title = args[:title] if args.key?(:title)
@topic_id = args[:topic_id] if args.key?(:topic_id)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. This can represent:
@ -1222,6 +1337,32 @@ module Google
end
end
# Response when listing course work material.
class ListCourseWorkMaterialResponse
include Google::Apis::Core::Hashable
# Course work material items that match the request.
# Corresponds to the JSON property `courseWorkMaterial`
# @return [Array<Google::Apis::ClassroomV1::CourseWorkMaterial>]
attr_accessor :course_work_material
# Token identifying the next page of results to return. If empty, no further
# results are available.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@course_work_material = args[:course_work_material] if args.key?(:course_work_material)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response when listing course work.
class ListCourseWorkResponse
include Google::Apis::Core::Hashable

View File

@ -94,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CourseWorkMaterial
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -184,6 +190,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseWorkMaterialResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCourseWorkResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -537,6 +549,28 @@ module Google
end
end
class CourseWorkMaterial
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :alternate_link, as: 'alternateLink'
property :assignee_mode, as: 'assigneeMode'
property :course_id, as: 'courseId'
property :creation_time, as: 'creationTime'
property :creator_user_id, as: 'creatorUserId'
property :description, as: 'description'
property :id, as: 'id'
property :individual_students_options, as: 'individualStudentsOptions', class: Google::Apis::ClassroomV1::IndividualStudentsOptions, decorator: Google::Apis::ClassroomV1::IndividualStudentsOptions::Representation
collection :materials, as: 'materials', class: Google::Apis::ClassroomV1::Material, decorator: Google::Apis::ClassroomV1::Material::Representation
property :scheduled_time, as: 'scheduledTime'
property :state, as: 'state'
property :title, as: 'title'
property :topic_id, as: 'topicId'
property :update_time, as: 'updateTime'
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -676,6 +710,15 @@ module Google
end
end
class ListCourseWorkMaterialResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :course_work_material, as: 'courseWorkMaterial', class: Google::Apis::ClassroomV1::CourseWorkMaterial, decorator: Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListCourseWorkResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1476,6 +1476,272 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course, create course work material in the requested course,
# share a Drive attachment, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed or if more than 20
# * materials are provided.
# * `NOT_FOUND` if the requested course does not exist.
# * `FAILED_PRECONDITION` for the following request error:
# * AttachmentNotVisible
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_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::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @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 create_course_course_work_material(course_id, course_work_material_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/courses/{courseId}/courseWorkMaterials', options)
command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.request_object = course_work_material_object
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_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
# Deletes a course work material.
# This request must be made by the Developer Console project of the
# [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to
# create the corresponding course work material item.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project did not create
# the corresponding course work material, if the requesting user is not
# permitted to delete the requested course or for access errors.
# * `FAILED_PRECONDITION` if the requested course work material has already
# been deleted.
# * `NOT_FOUND` if no course exists with the requested ID.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material to delete.
# This identifier is a Classroom-assigned identifier.
# @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::ClassroomV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::Empty]
#
# @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 delete_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::Empty::Representation
command.response_class = Google::Apis::ClassroomV1::Empty
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless 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
# Returns a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access the
# requested course or course work material, or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course or course work material does not
# exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material.
# @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::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @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 get_course_course_work_material(course_id, id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless 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
# Returns a list of course work material that the requester is permitted to
# view.
# Course students may only view `PUBLISHED` course work material. Course
# teachers and domain administrators may view all course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to access
# the requested course or for access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `NOT_FOUND` if the requested course does not exist.
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [Array<String>, String] course_work_material_states
# Restriction on the work status to return. Only course work material that
# matches is returned. If unspecified, items with a work status of
# `PUBLISHED` is returned.
# @param [String] material_drive_id
# Optional filtering for course work material with at least one Drive
# material whose ID matches the provided string. If `material_link` is also
# specified, course work material must have materials matching both filters.
# @param [String] material_link
# Optional filtering for course work material with at least one link material
# whose URL partially matches the provided string.
# @param [String] order_by
# Optional sort ordering for results. A comma-separated list of fields with
# an optional sort direction keyword. Supported field is `updateTime`.
# Supported direction keywords are `asc` and `desc`.
# If not specified, `updateTime desc` is the default behavior.
# Examples: `updateTime asc`, `updateTime`
# @param [Fixnum] page_size
# Maximum number of items to return. Zero or unspecified indicates that the
# server may assign a maximum.
# The server may return fewer than the specified number of results.
# @param [String] page_token
# nextPageToken
# value returned from a previous
# list call,
# indicating that the subsequent page of results should be returned.
# The list request
# must be otherwise identical to the one that resulted in this token.
# @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::ClassroomV1::ListCourseWorkMaterialResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse]
#
# @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 list_course_course_work_materials(course_id, course_work_material_states: nil, material_drive_id: nil, material_link: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/courses/{courseId}/courseWorkMaterials', options)
command.response_representation = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse::Representation
command.response_class = Google::Apis::ClassroomV1::ListCourseWorkMaterialResponse
command.params['courseId'] = course_id unless course_id.nil?
command.query['courseWorkMaterialStates'] = course_work_material_states unless course_work_material_states.nil?
command.query['materialDriveId'] = material_drive_id unless material_drive_id.nil?
command.query['materialLink'] = material_link unless material_link.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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 one or more fields of a course work material.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting developer project for
# access errors.
# * `INVALID_ARGUMENT` if the request is malformed.
# * `FAILED_PRECONDITION` if the requested course work material has already
# been deleted.
# * `NOT_FOUND` if the requested course or course work material does not
# exist
# @param [String] course_id
# Identifier of the course.
# This identifier can be either the Classroom-assigned identifier or an
# alias.
# @param [String] id
# Identifier of the course work material.
# @param [Google::Apis::ClassroomV1::CourseWorkMaterial] course_work_material_object
# @param [String] update_mask
# Mask that identifies which fields on the course work material to update.
# This field is required to do an update. The update fails if invalid
# fields are specified. If a field supports empty values, it can be cleared
# by specifying it in the update mask and not in the course work material
# object. If a field that does not support empty values is included in the
# update mask and not set in the course work material object, an
# `INVALID_ARGUMENT` error will be returned.
# The following fields may be specified by teachers:
# * `title`
# * `description`
# * `state`
# * `scheduled_time`
# * `topic_id`
# @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::ClassroomV1::CourseWorkMaterial] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ClassroomV1::CourseWorkMaterial]
#
# @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 patch_course_course_work_material(course_id, id, course_work_material_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/courses/{courseId}/courseWorkMaterials/{id}', options)
command.request_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.request_object = course_work_material_object
command.response_representation = Google::Apis::ClassroomV1::CourseWorkMaterial::Representation
command.response_class = Google::Apis::ClassroomV1::CourseWorkMaterial
command.params['courseId'] = course_id unless course_id.nil?
command.params['id'] = id unless id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Adds a user as a student of a course.
# This method returns the following error codes:
# * `PERMISSION_DENIED` if the requesting user is not permitted to create

View File

@ -2304,8 +2304,7 @@ module Google
# @return [Fixnum]
attr_accessor :int_value
# Metric name, required.
# e.g., "nodes total", "percent done"
# Required. Metric name, e.g., "nodes total", "percent done".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -2937,7 +2936,7 @@ module Google
# @return [String]
attr_accessor :status
# If an error has occurred, a textual description of the error.
# Output only. If an error has occurred, a textual description of the error.
# Corresponds to the JSON property `statusMessage`
# @return [String]
attr_accessor :status_message
@ -3248,7 +3247,9 @@ module Google
# @return [String]
attr_accessor :consume_reservation_type
# Corresponds to the label key of reservation resource.
# Corresponds to the label key of a reservation resource. To target a
# SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
# the key and specify the name of your reservation as its value.
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
@ -4715,6 +4716,11 @@ module Google
# @return [String]
attr_accessor :identity_namespace
# The workload pool to attach all Kubernetes service accounts to.
# Corresponds to the JSON property `workloadPool`
# @return [String]
attr_accessor :workload_pool
def initialize(**args)
update!(**args)
end
@ -4722,6 +4728,7 @@ module Google
# Update properties of this object
def update!(**args)
@identity_namespace = args[:identity_namespace] if args.key?(:identity_namespace)
@workload_pool = args[:workload_pool] if args.key?(:workload_pool)
end
end
@ -4730,6 +4737,12 @@ module Google
class WorkloadMetadataConfig
include Google::Apis::Core::Hashable
# Mode is the configuration for how to expose metadata to workloads running
# on the node pool.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode
# NodeMetadata is the configuration for how to expose metadata to the
# workloads running on the node.
# Corresponds to the JSON property `nodeMetadata`
@ -4742,6 +4755,7 @@ module Google
# Update properties of this object
def update!(**args)
@mode = args[:mode] if args.key?(:mode)
@node_metadata = args[:node_metadata] if args.key?(:node_metadata)
end
end

View File

@ -1748,12 +1748,14 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :identity_namespace, as: 'identityNamespace'
property :workload_pool, as: 'workloadPool'
end
end
class WorkloadMetadataConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mode, as: 'mode'
property :node_metadata, as: 'nodeMetadata'
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/dlp/docs/
module DlpV2
VERSION = 'V2'
REVISION = '20200224'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -968,6 +968,80 @@ module Google
end
end
# Represents a container that may contain DLP findings.
# Examples of a container include a file, table, or database record.
class GooglePrivacyDlpV2Container
include Google::Apis::Core::Hashable
# A string representation of the full container name.
# Examples:
# - BigQuery: 'Project:DataSetId.TableId'
# - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
# Corresponds to the JSON property `fullPath`
# @return [String]
attr_accessor :full_path
# Project where the finding was found.
# Can be different from the project that owns the finding.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The rest of the path after the root.
# Examples:
# - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
# `table_id`
# - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
# path is `folder/filename.txt`
# Corresponds to the JSON property `relativePath`
# @return [String]
attr_accessor :relative_path
# The root of the container.
# Examples:
# - For BigQuery table `project_id:dataset_id.table_id`, the root is
# `dataset_id`
# - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
# is `gs://bucket`
# Corresponds to the JSON property `rootPath`
# @return [String]
attr_accessor :root_path
# Container type, for example BigQuery or Google Cloud Storage.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Findings container modification timestamp, if applicable.
# For Google Cloud Storage contains last file modification timestamp.
# For BigQuery table contains last_modified_time property.
# For Datastore - not populated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Findings container version, if available
# ("generation" for Google Cloud Storage).
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@full_path = args[:full_path] if args.key?(:full_path)
@project_id = args[:project_id] if args.key?(:project_id)
@relative_path = args[:relative_path] if args.key?(:relative_path)
@root_path = args[:root_path] if args.key?(:root_path)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@version = args[:version] if args.key?(:version)
end
end
# Container structure for the content to inspect.
class GooglePrivacyDlpV2ContentItem
include Google::Apis::Core::Hashable
@ -2471,6 +2545,18 @@ module Google
# @return [String]
attr_accessor :job_name
# The labels associated with this `InspectFinding`.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 10 labels can be associated with a given finding.
# Example: <code>"environment" : "production"</code>
# Example: <code>"pipeline" : "etl"</code>
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Confidence of how likely it is that the `info_type` is correct.
# Corresponds to the JSON property `likelihood`
# @return [String]
@ -2521,6 +2607,7 @@ module Google
@info_type = args[:info_type] if args.key?(:info_type)
@job_create_time = args[:job_create_time] if args.key?(:job_create_time)
@job_name = args[:job_name] if args.key?(:job_name)
@labels = args[:labels] if args.key?(:labels)
@likelihood = args[:likelihood] if args.key?(:likelihood)
@location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name)
@ -2567,6 +2654,22 @@ module Google
end
end
# The request message for finishing a DLP hybrid job.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2FinishDlpJobRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Buckets values based on fixed size ranges. The
# Bucketing transformation can provide all of this functionality,
# but requires more configuration. This message is provided as a convenience to
@ -2656,6 +2759,267 @@ module Google
end
end
# An individual hybrid item to inspect. Will be stored temporarily during
# processing.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridContentItem
include Google::Apis::Core::Hashable
# Populate to associate additional data with each finding.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `findingDetails`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridFindingDetails]
attr_accessor :finding_details
# Container structure for the content to inspect.
# Corresponds to the JSON property `item`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
attr_accessor :item
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@finding_details = args[:finding_details] if args.key?(:finding_details)
@item = args[:item] if args.key?(:item)
end
end
# Populate to associate additional data with each finding.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridFindingDetails
include Google::Apis::Core::Hashable
# Represents a container that may contain DLP findings.
# Examples of a container include a file, table, or database record.
# Corresponds to the JSON property `containerDetails`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Container]
attr_accessor :container_details
# Offset in bytes of the line, from the beginning of the file, where the
# finding is located. Populate if the item being scanned is only part of a
# bigger item, such as a shard of a file and you want to track the absolute
# position of the finding.
# Corresponds to the JSON property `fileOffset`
# @return [Fixnum]
attr_accessor :file_offset
# Labels to represent user provided metadata about the data being inspected.
# If configured by the job, some key values may be required.
# The labels associated with `Finding`'s produced by hybrid
# inspection.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 10 labels can be associated with a given finding.
# Example: <code>"environment" : "production"</code>
# Example: <code>"pipeline" : "etl"</code>
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Offset of the row for tables. Populate if the row(s) being scanned are
# part of a bigger dataset and you want to keep track of their absolute
# position.
# Corresponds to the JSON property `rowOffset`
# @return [Fixnum]
attr_accessor :row_offset
# Instructions regarding the table content being inspected.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `tableOptions`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions]
attr_accessor :table_options
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@container_details = args[:container_details] if args.key?(:container_details)
@file_offset = args[:file_offset] if args.key?(:file_offset)
@labels = args[:labels] if args.key?(:labels)
@row_offset = args[:row_offset] if args.key?(:row_offset)
@table_options = args[:table_options] if args.key?(:table_options)
end
end
# Request to search for potentially sensitive info in a custom location.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridInspectDlpJobRequest
include Google::Apis::Core::Hashable
# An individual hybrid item to inspect. Will be stored temporarily during
# processing.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `hybridItem`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem]
attr_accessor :hybrid_item
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hybrid_item = args[:hybrid_item] if args.key?(:hybrid_item)
end
end
# Request to search for potentially sensitive info in a custom location.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridInspectJobTriggerRequest
include Google::Apis::Core::Hashable
# An individual hybrid item to inspect. Will be stored temporarily during
# processing.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `hybridItem`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem]
attr_accessor :hybrid_item
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hybrid_item = args[:hybrid_item] if args.key?(:hybrid_item)
end
end
# Quota exceeded errors will be thrown once quota has been met.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridInspectResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Statistics related to processing hybrid inspect requests
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridInspectStatistics
include Google::Apis::Core::Hashable
# The number of hybrid inspection requests aborted because the job ran
# out of quota or was ended before they could be processed.
# Corresponds to the JSON property `hybridRequestsAborted`
# @return [Fixnum]
attr_accessor :hybrid_requests_aborted
# The number of hybrid requests currently being processed. Only populated
# when called via method `getDlpJob`.
# A burst of traffic may cause hybrid inspect requests to be enqueued.
# Processing will take place as quickly as possible, but resource limitations
# may impact how long a request is enqueued for.
# Corresponds to the JSON property `hybridRequestsPending`
# @return [Fixnum]
attr_accessor :hybrid_requests_pending
# The number of hybrid inspection requests processed within this job.
# Corresponds to the JSON property `hybridRequestsProcessed`
# @return [Fixnum]
attr_accessor :hybrid_requests_processed
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hybrid_requests_aborted = args[:hybrid_requests_aborted] if args.key?(:hybrid_requests_aborted)
@hybrid_requests_pending = args[:hybrid_requests_pending] if args.key?(:hybrid_requests_pending)
@hybrid_requests_processed = args[:hybrid_requests_processed] if args.key?(:hybrid_requests_processed)
end
end
# Configuration to control jobs where the content being inspected is outside
# of Google Cloud Platform.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2HybridOptions
include Google::Apis::Core::Hashable
# A short description of where the data is coming from. Will be stored once
# in the job. 256 max length.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# To organize findings, these labels will be added to each finding.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# Label values must be between 0 and 63 characters long and must conform
# to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
# No more than 10 labels can be associated with a given finding.
# Example: <code>"environment" : "production"</code>
# Example: <code>"pipeline" : "etl"</code>
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# These are labels that each inspection request must include within their
# 'finding_labels' map. Request may contain others, but any missing one of
# these will be rejected.
# Label keys must be between 1 and 63 characters long and must conform
# to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
# No more than 10 keys can be required.
# Corresponds to the JSON property `requiredFindingLabelKeys`
# @return [Array<String>]
attr_accessor :required_finding_label_keys
# Instructions regarding the table content being inspected.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `tableOptions`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions]
attr_accessor :table_options
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
@required_finding_label_keys = args[:required_finding_label_keys] if args.key?(:required_finding_label_keys)
@table_options = args[:table_options] if args.key?(:table_options)
end
end
# Location of the finding within an image.
class GooglePrivacyDlpV2ImageLocation
include Google::Apis::Core::Hashable
@ -4090,6 +4454,23 @@ module Google
end
end
# Job trigger option for hybrid jobs. Jobs must be manually created
# and finished.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2Manual
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Compute numerical stats over an individual column, including
# min, max, and quantiles.
class GooglePrivacyDlpV2NumericalStatsConfig
@ -5113,6 +5494,14 @@ module Google
class GooglePrivacyDlpV2Result
include Google::Apis::Core::Hashable
# Statistics related to processing hybrid inspect requests
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `hybridStats`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectStatistics]
attr_accessor :hybrid_stats
# Statistics of how many instances of each info type were found during
# inspect job.
# Corresponds to the JSON property `infoTypeStats`
@ -5135,6 +5524,7 @@ module Google
# Update properties of this object
def update!(**args)
@hybrid_stats = args[:hybrid_stats] if args.key?(:hybrid_stats)
@info_type_stats = args[:info_type_stats] if args.key?(:info_type_stats)
@processed_bytes = args[:processed_bytes] if args.key?(:processed_bytes)
@total_estimated_bytes = args[:total_estimated_bytes] if args.key?(:total_estimated_bytes)
@ -5304,6 +5694,15 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DatastoreOptions]
attr_accessor :datastore_options
# Configuration to control jobs where the content being inspected is outside
# of Google Cloud Platform.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `hybridOptions`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridOptions]
attr_accessor :hybrid_options
# Configuration of the timespan of the items to include in scanning.
# Currently only supported when inspecting Google Cloud Storage and BigQuery.
# Corresponds to the JSON property `timespanConfig`
@ -5319,6 +5718,7 @@ module Google
@big_query_options = args[:big_query_options] if args.key?(:big_query_options)
@cloud_storage_options = args[:cloud_storage_options] if args.key?(:cloud_storage_options)
@datastore_options = args[:datastore_options] if args.key?(:datastore_options)
@hybrid_options = args[:hybrid_options] if args.key?(:hybrid_options)
@timespan_config = args[:timespan_config] if args.key?(:timespan_config)
end
end
@ -5368,6 +5768,32 @@ module Google
# @return [String]
attr_accessor :description
# Custom information type based on a dictionary of words or phrases. This can
# be used to match sensitive information specific to the data, such as a list
# of employee IDs or job titles.
# Dictionary words are case-insensitive and all characters other than letters
# and digits in the unicode [Basic Multilingual
# Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#
# Basic_Multilingual_Plane)
# will be replaced with whitespace when scanning for matches, so the
# dictionary phrase "Sam Johnson" will match all three phrases "sam johnson",
# "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters
# surrounding any match must be of a different type than the adjacent
# characters within the word, so letters must be next to non-letters and
# digits next to non-digits. For example, the dictionary word "jen" will
# match the first three letters of the text "jen123" but will return no
# matches for "jennifer".
# Dictionary words containing a large number of characters that are not
# letters or digits may result in unexpected findings because such characters
# are treated as whitespace. The
# [limits](https://cloud.google.com/dlp/limits) page contains details about
# the size limits of dictionaries. For dictionaries that do not fit within
# these constraints, consider using `LargeCustomDictionaryConfig` in the
# `StoredInfoType` API.
# Corresponds to the JSON property `dictionary`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary]
attr_accessor :dictionary
# Display name of the StoredInfoType (max 256 characters).
# Corresponds to the JSON property `displayName`
# @return [String]
@ -5383,6 +5809,11 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig]
attr_accessor :large_custom_dictionary
# Message defining a custom regular expression.
# Corresponds to the JSON property `regex`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Regex]
attr_accessor :regex
def initialize(**args)
update!(**args)
end
@ -5390,8 +5821,10 @@ module Google
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@dictionary = args[:dictionary] if args.key?(:dictionary)
@display_name = args[:display_name] if args.key?(:display_name)
@large_custom_dictionary = args[:large_custom_dictionary] if args.key?(:large_custom_dictionary)
@regex = args[:regex] if args.key?(:regex)
end
end
@ -5600,6 +6033,31 @@ module Google
end
end
# Instructions regarding the table content being inspected.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
class GooglePrivacyDlpV2TableOptions
include Google::Apis::Core::Hashable
# The columns that are the primary keys for table objects included in
# ContentItem. A copy of this cell's value will stored alongside alongside
# each finding so that the finding can be traced to the specific row it came
# from. No more than 3 may be provided.
# Corresponds to the JSON property `identifyingFields`
# @return [Array<Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId>]
attr_accessor :identifying_fields
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@identifying_fields = args[:identifying_fields] if args.key?(:identifying_fields)
end
end
# A column with a semantic tag attached.
class GooglePrivacyDlpV2TaggedField
include Google::Apis::Core::Hashable
@ -5890,6 +6348,15 @@ module Google
class GooglePrivacyDlpV2Trigger
include Google::Apis::Core::Hashable
# Job trigger option for hybrid jobs. Jobs must be manually created
# and finished.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# Corresponds to the JSON property `manual`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Manual]
attr_accessor :manual
# Schedule for triggeredJobs.
# Corresponds to the JSON property `schedule`
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Schedule]
@ -5901,6 +6368,7 @@ module Google
# Update properties of this object
def update!(**args)
@manual = args[:manual] if args.key?(:manual)
@schedule = args[:schedule] if args.key?(:schedule)
end
end

View File

@ -172,6 +172,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2Container
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2ContentItem
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -400,6 +406,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2FinishDlpJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2FixedSizeBucketingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -412,6 +424,48 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridContentItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridFindingDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridInspectDlpJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridInspectJobTriggerRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridInspectResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridInspectStatistics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2HybridOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2ImageLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -682,6 +736,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2Manual
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2NumericalStatsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -964,6 +1024,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2TableOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GooglePrivacyDlpV2TaggedField
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1352,6 +1418,19 @@ module Google
end
end
class GooglePrivacyDlpV2Container
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :full_path, as: 'fullPath'
property :project_id, as: 'projectId'
property :relative_path, as: 'relativePath'
property :root_path, as: 'rootPath'
property :type, as: 'type'
property :update_time, as: 'updateTime'
property :version, as: 'version'
end
end
class GooglePrivacyDlpV2ContentItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1759,6 +1838,7 @@ module Google
property :job_create_time, as: 'jobCreateTime'
property :job_name, as: 'jobName'
hash :labels, as: 'labels'
property :likelihood, as: 'likelihood'
property :location, as: 'location', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Location, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Location::Representation
@ -1781,6 +1861,12 @@ module Google
end
end
class GooglePrivacyDlpV2FinishDlpJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GooglePrivacyDlpV2FixedSizeBucketingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1804,6 +1890,71 @@ module Google
end
end
class GooglePrivacyDlpV2HybridContentItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :finding_details, as: 'findingDetails', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridFindingDetails, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridFindingDetails::Representation
property :item, as: 'item', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem::Representation
end
end
class GooglePrivacyDlpV2HybridFindingDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :container_details, as: 'containerDetails', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Container, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Container::Representation
property :file_offset, :numeric_string => true, as: 'fileOffset'
hash :labels, as: 'labels'
property :row_offset, :numeric_string => true, as: 'rowOffset'
property :table_options, as: 'tableOptions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions::Representation
end
end
class GooglePrivacyDlpV2HybridInspectDlpJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hybrid_item, as: 'hybridItem', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem::Representation
end
end
class GooglePrivacyDlpV2HybridInspectJobTriggerRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hybrid_item, as: 'hybridItem', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridContentItem::Representation
end
end
class GooglePrivacyDlpV2HybridInspectResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GooglePrivacyDlpV2HybridInspectStatistics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hybrid_requests_aborted, :numeric_string => true, as: 'hybridRequestsAborted'
property :hybrid_requests_pending, :numeric_string => true, as: 'hybridRequestsPending'
property :hybrid_requests_processed, :numeric_string => true, as: 'hybridRequestsProcessed'
end
end
class GooglePrivacyDlpV2HybridOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
hash :labels, as: 'labels'
collection :required_finding_label_keys, as: 'requiredFindingLabelKeys'
property :table_options, as: 'tableOptions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TableOptions::Representation
end
end
class GooglePrivacyDlpV2ImageLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2248,6 +2399,12 @@ module Google
end
end
class GooglePrivacyDlpV2Manual
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GooglePrivacyDlpV2NumericalStatsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2559,6 +2716,8 @@ module Google
class GooglePrivacyDlpV2Result
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hybrid_stats, as: 'hybridStats', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectStatistics, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectStatistics::Representation
collection :info_type_stats, as: 'infoTypeStats', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeStats, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeStats::Representation
property :processed_bytes, :numeric_string => true, as: 'processedBytes'
@ -2622,6 +2781,8 @@ module Google
property :datastore_options, as: 'datastoreOptions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2DatastoreOptions, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2DatastoreOptions::Representation
property :hybrid_options, as: 'hybridOptions', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridOptions, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HybridOptions::Representation
property :timespan_config, as: 'timespanConfig', class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimespanConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2TimespanConfig::Representation
end
@ -2642,9 +2803,13 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :dictionary, as: 'dictionary', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary::Representation
property :display_name, as: 'displayName'
property :large_custom_dictionary, as: 'largeCustomDictionary', class: Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2LargeCustomDictionaryConfig::Representation
property :regex, as: 'regex', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex::Representation
end
end
@ -2710,6 +2875,14 @@ module Google
end
end
class GooglePrivacyDlpV2TableOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :identifying_fields, as: 'identifyingFields', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId::Representation
end
end
class GooglePrivacyDlpV2TaggedField
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2802,6 +2975,8 @@ module Google
class GooglePrivacyDlpV2Trigger
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :manual, as: 'manual', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Manual, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Manual::Representation
property :schedule, as: 'schedule', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Schedule, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Schedule::Representation
end

View File

@ -2811,6 +2811,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Finish a running hybrid DlpJob. Triggers the finalization steps and running
# of any enabled actions that have not yet run.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# @param [String] name
# Required. The name of the DlpJob resource to be cancelled.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest] google_privacy_dlp_v2_finish_dlp_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::DlpV2::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
#
# @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 finish_project_location_dlp_job(name, google_privacy_dlp_v2_finish_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:finish', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2FinishDlpJobRequest::Representation
command.request_object = google_privacy_dlp_v2_finish_dlp_job_request_object
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running DlpJob.
# See https://cloud.google.com/dlp/docs/inspecting-storage and
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@ -2843,6 +2880,45 @@ module Google
execute_or_queue_command(command, &block)
end
# Inspect hybrid content and store findings to a job.
# To review the findings inspect the job. Inspection will occur
# asynchronously.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# @param [String] name
# Required. Resource name of the job to execute a hybrid inspect on, for example
# `projects/dlp-test-project/dlpJob/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest] google_privacy_dlp_v2_hybrid_inspect_dlp_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::DlpV2::GooglePrivacyDlpV2HybridInspectResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse]
#
# @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 hybrid_project_location_dlp_job_inspect(name, google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectDlpJobRequest::Representation
command.request_object = google_privacy_dlp_v2_hybrid_inspect_dlp_job_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists DlpJobs that match the specified filter in the request.
# See https://cloud.google.com/dlp/docs/inspecting-storage and
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@ -3306,6 +3382,46 @@ module Google
execute_or_queue_command(command, &block)
end
# Inspect hybrid content and store findings to a trigger. The inspection
# will be processed asynchronously. To review the findings monitor the
# jobs within the trigger.
# Early access feature is in a pre-release state and might change or have
# limited support. For more information, see
# https://cloud.google.com/products#product-launch-stages.
# @param [String] name
# Required. Resource name of the trigger to execute a hybrid inspect on, for
# example
# `projects/dlp-test-project/jobTriggers/53234423`.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest] google_privacy_dlp_v2_hybrid_inspect_job_trigger_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::DlpV2::GooglePrivacyDlpV2HybridInspectResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse]
#
# @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 hybrid_project_location_job_trigger_inspect(name, google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+name}:hybridInspect', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectJobTriggerRequest::Representation
command.request_object = google_privacy_dlp_v2_hybrid_inspect_job_trigger_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2HybridInspectResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists job triggers.
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare
module HealthcareV1beta1
VERSION = 'V1beta1'
REVISION = '20200212'
REVISION = '20200229'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2088,6 +2088,10 @@ module Google
# to a project. cloud-healthcare@system.gserviceaccount.com must have
# publisher permissions on the given Cloud Pub/Sub topic. Not having adequate
# permissions causes the calls that send notifications to fail.
# If a notification can't be published to Cloud Pub/Sub, errors are logged to
# Stackdriver (see [Viewing
# logs](/healthcare/docs/how-tos/stackdriver-logging)). If the number of
# errors exceeds a certain rate, some aren't submitted.
# Corresponds to the JSON property `pubsubTopic`
# @return [String]
attr_accessor :pubsub_topic

View File

@ -12,20 +12,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/toolresults_v1/service.rb'
require 'google/apis/toolresults_v1/classes.rb'
require 'google/apis/toolresults_v1/representations.rb'
require 'google/apis/networkmanagement_v1beta1/service.rb'
require 'google/apis/networkmanagement_v1beta1/classes.rb'
require 'google/apis/networkmanagement_v1beta1/representations.rb'
module Google
module Apis
# Cloud Tool Results API
# Network Management API
#
# API to publish and access results from developer tools.
# The Network Management API provides a collection of network performance
# monitoring and diagnostic capabilities.
#
# @see https://firebase.google.com/docs/test-lab/
module ToolresultsV1
VERSION = 'V1'
REVISION = '20200224'
# @see https://cloud.google.com/
module NetworkmanagementV1beta1
VERSION = 'V1beta1'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,661 @@
# 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 NetworkmanagementV1beta1
class AbortInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditLogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectivityTest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeliverInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DropInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Endpoint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EndpointInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Expr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FirewallInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ForwardingRuleInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListConnectivityTestsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LoadBalancerBackend
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LoadBalancerInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NetworkInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ReachabilityDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RerunConnectivityTestRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouteInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Step
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestIamPermissionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Trace
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnGatewayInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VpnTunnelInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AbortInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
property :resource_uri, as: 'resourceUri'
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::NetworkmanagementV1beta1::AuditLogConfig, decorator: Google::Apis::NetworkmanagementV1beta1::AuditLogConfig::Representation
property :service, as: 'service'
end
end
class AuditLogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :log_type, as: 'logType'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition', class: Google::Apis::NetworkmanagementV1beta1::Expr, decorator: Google::Apis::NetworkmanagementV1beta1::Expr::Representation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ConnectivityTest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :description, as: 'description'
property :destination, as: 'destination', class: Google::Apis::NetworkmanagementV1beta1::Endpoint, decorator: Google::Apis::NetworkmanagementV1beta1::Endpoint::Representation
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :name, as: 'name'
property :protocol, as: 'protocol'
property :reachability_details, as: 'reachabilityDetails', class: Google::Apis::NetworkmanagementV1beta1::ReachabilityDetails, decorator: Google::Apis::NetworkmanagementV1beta1::ReachabilityDetails::Representation
collection :related_projects, as: 'relatedProjects'
property :source, as: 'source', class: Google::Apis::NetworkmanagementV1beta1::Endpoint, decorator: Google::Apis::NetworkmanagementV1beta1::Endpoint::Representation
property :update_time, as: 'updateTime'
end
end
class DeliverInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_uri, as: 'resourceUri'
property :target, as: 'target'
end
end
class DropInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cause, as: 'cause'
property :resource_uri, as: 'resourceUri'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Endpoint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :instance, as: 'instance'
property :ip_address, as: 'ipAddress'
property :network, as: 'network'
property :network_type, as: 'networkType'
property :port, as: 'port'
property :project_id, as: 'projectId'
end
end
class EndpointInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :destination_ip, as: 'destinationIp'
property :destination_network_uri, as: 'destinationNetworkUri'
property :destination_port, as: 'destinationPort'
property :protocol, as: 'protocol'
property :source_ip, as: 'sourceIp'
property :source_network_uri, as: 'sourceNetworkUri'
property :source_port, as: 'sourcePort'
end
end
class Expr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :expression, as: 'expression'
property :location, as: 'location'
property :title, as: 'title'
end
end
class FirewallInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :direction, as: 'direction'
property :display_name, as: 'displayName'
property :network_uri, as: 'networkUri'
property :priority, as: 'priority'
collection :target_service_accounts, as: 'targetServiceAccounts'
collection :target_tags, as: 'targetTags'
property :uri, as: 'uri'
end
end
class ForwardInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_uri, as: 'resourceUri'
property :target, as: 'target'
end
end
class ForwardingRuleInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :matched_port_range, as: 'matchedPortRange'
property :matched_protocol, as: 'matchedProtocol'
property :network_uri, as: 'networkUri'
property :target, as: 'target'
property :uri, as: 'uri'
property :vip, as: 'vip'
end
end
class InstanceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :external_ip, as: 'externalIp'
property :interface, as: 'interface'
property :internal_ip, as: 'internalIp'
collection :network_tags, as: 'networkTags'
property :network_uri, as: 'networkUri'
property :service_account, as: 'serviceAccount'
property :uri, as: 'uri'
end
end
class ListConnectivityTestsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :resources, as: 'resources', class: Google::Apis::NetworkmanagementV1beta1::ConnectivityTest, decorator: Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
collection :unreachable, as: 'unreachable'
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :locations, as: 'locations', class: Google::Apis::NetworkmanagementV1beta1::Location, decorator: Google::Apis::NetworkmanagementV1beta1::Location::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :operations, as: 'operations', class: Google::Apis::NetworkmanagementV1beta1::Operation, decorator: Google::Apis::NetworkmanagementV1beta1::Operation::Representation
end
end
class LoadBalancerBackend
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
collection :health_check_allowing_firewall_rules, as: 'healthCheckAllowingFirewallRules'
collection :health_check_blocking_firewall_rules, as: 'healthCheckBlockingFirewallRules'
property :health_check_firewall_state, as: 'healthCheckFirewallState'
property :uri, as: 'uri'
end
end
class LoadBalancerInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :backend_type, as: 'backendType'
property :backend_uri, as: 'backendUri'
collection :backends, as: 'backends', class: Google::Apis::NetworkmanagementV1beta1::LoadBalancerBackend, decorator: Google::Apis::NetworkmanagementV1beta1::LoadBalancerBackend::Representation
property :health_check_uri, as: 'healthCheckUri'
property :load_balancer_type, as: 'loadBalancerType'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
hash :labels, as: 'labels'
property :location_id, as: 'locationId'
hash :metadata, as: 'metadata'
property :name, as: 'name'
end
end
class NetworkInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :matched_ip_range, as: 'matchedIpRange'
property :uri, as: 'uri'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
property :error, as: 'error', class: Google::Apis::NetworkmanagementV1beta1::Status, decorator: Google::Apis::NetworkmanagementV1beta1::Status::Representation
hash :metadata, as: 'metadata'
property :name, as: 'name'
hash :response, as: 'response'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_version, as: 'apiVersion'
property :cancel_requested, as: 'cancelRequested'
property :create_time, as: 'createTime'
property :end_time, as: 'endTime'
property :status_detail, as: 'statusDetail'
property :target, as: 'target'
property :verb, as: 'verb'
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::NetworkmanagementV1beta1::AuditConfig, decorator: Google::Apis::NetworkmanagementV1beta1::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::NetworkmanagementV1beta1::Binding, decorator: Google::Apis::NetworkmanagementV1beta1::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :version, as: 'version'
end
end
class ReachabilityDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::NetworkmanagementV1beta1::Status, decorator: Google::Apis::NetworkmanagementV1beta1::Status::Representation
property :result, as: 'result'
collection :traces, as: 'traces', class: Google::Apis::NetworkmanagementV1beta1::Trace, decorator: Google::Apis::NetworkmanagementV1beta1::Trace::Representation
property :verify_time, as: 'verifyTime'
end
end
class RerunConnectivityTestRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RouteInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dest_ip_range, as: 'destIpRange'
property :display_name, as: 'displayName'
collection :instance_tags, as: 'instanceTags'
property :network_uri, as: 'networkUri'
property :next_hop, as: 'nextHop'
property :next_hop_type, as: 'nextHopType'
property :priority, as: 'priority'
property :route_type, as: 'routeType'
property :uri, as: 'uri'
end
end
class SetIamPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy, as: 'policy', class: Google::Apis::NetworkmanagementV1beta1::Policy, decorator: Google::Apis::NetworkmanagementV1beta1::Policy::Representation
property :update_mask, as: 'updateMask'
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :details, as: 'details'
property :message, as: 'message'
end
end
class Step
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :abort, as: 'abort', class: Google::Apis::NetworkmanagementV1beta1::AbortInfo, decorator: Google::Apis::NetworkmanagementV1beta1::AbortInfo::Representation
property :causes_drop, as: 'causesDrop'
property :deliver, as: 'deliver', class: Google::Apis::NetworkmanagementV1beta1::DeliverInfo, decorator: Google::Apis::NetworkmanagementV1beta1::DeliverInfo::Representation
property :description, as: 'description'
property :drop, as: 'drop', class: Google::Apis::NetworkmanagementV1beta1::DropInfo, decorator: Google::Apis::NetworkmanagementV1beta1::DropInfo::Representation
property :endpoint, as: 'endpoint', class: Google::Apis::NetworkmanagementV1beta1::EndpointInfo, decorator: Google::Apis::NetworkmanagementV1beta1::EndpointInfo::Representation
property :firewall, as: 'firewall', class: Google::Apis::NetworkmanagementV1beta1::FirewallInfo, decorator: Google::Apis::NetworkmanagementV1beta1::FirewallInfo::Representation
property :forward, as: 'forward', class: Google::Apis::NetworkmanagementV1beta1::ForwardInfo, decorator: Google::Apis::NetworkmanagementV1beta1::ForwardInfo::Representation
property :forwarding_rule, as: 'forwardingRule', class: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo, decorator: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo::Representation
property :instance, as: 'instance', class: Google::Apis::NetworkmanagementV1beta1::InstanceInfo, decorator: Google::Apis::NetworkmanagementV1beta1::InstanceInfo::Representation
property :load_balancer, as: 'loadBalancer', class: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo, decorator: Google::Apis::NetworkmanagementV1beta1::LoadBalancerInfo::Representation
property :network, as: 'network', class: Google::Apis::NetworkmanagementV1beta1::NetworkInfo, decorator: Google::Apis::NetworkmanagementV1beta1::NetworkInfo::Representation
property :project_id, as: 'projectId'
property :route, as: 'route', class: Google::Apis::NetworkmanagementV1beta1::RouteInfo, decorator: Google::Apis::NetworkmanagementV1beta1::RouteInfo::Representation
property :state, as: 'state'
property :vpn_gateway, as: 'vpnGateway', class: Google::Apis::NetworkmanagementV1beta1::VpnGatewayInfo, decorator: Google::Apis::NetworkmanagementV1beta1::VpnGatewayInfo::Representation
property :vpn_tunnel, as: 'vpnTunnel', class: Google::Apis::NetworkmanagementV1beta1::VpnTunnelInfo, decorator: Google::Apis::NetworkmanagementV1beta1::VpnTunnelInfo::Representation
end
end
class TestIamPermissionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class TestIamPermissionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :permissions, as: 'permissions'
end
end
class Trace
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :endpoint_info, as: 'endpointInfo', class: Google::Apis::NetworkmanagementV1beta1::EndpointInfo, decorator: Google::Apis::NetworkmanagementV1beta1::EndpointInfo::Representation
collection :steps, as: 'steps', class: Google::Apis::NetworkmanagementV1beta1::Step, decorator: Google::Apis::NetworkmanagementV1beta1::Step::Representation
end
end
class VpnGatewayInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :ip_address, as: 'ipAddress'
property :network_uri, as: 'networkUri'
property :region, as: 'region'
property :uri, as: 'uri'
property :vpn_tunnel_uri, as: 'vpnTunnelUri'
end
end
class VpnTunnelInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :network_uri, as: 'networkUri'
property :region, as: 'region'
property :remote_gateway, as: 'remoteGateway'
property :remote_gateway_ip, as: 'remoteGatewayIp'
property :routing_type, as: 'routingType'
property :source_gateway, as: 'sourceGateway'
property :source_gateway_ip, as: 'sourceGatewayIp'
property :uri, as: 'uri'
end
end
end
end
end

View File

@ -0,0 +1,664 @@
# 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 NetworkmanagementV1beta1
# Network Management API
#
# The Network Management API provides a collection of network performance
# monitoring and diagnostic capabilities.
#
# @example
# require 'google/apis/networkmanagement_v1beta1'
#
# Networkmanagement = Google::Apis::NetworkmanagementV1beta1 # Alias the module
# service = Networkmanagement::NetworkManagementService.new
#
# @see https://cloud.google.com/
class NetworkManagementService < 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://networkmanagement.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets information about a location.
# @param [String] name
# Resource name for the location.
# @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::NetworkmanagementV1beta1::Location] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Location]
#
# @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 get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Location::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Location
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::NetworkmanagementV1beta1::ListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse]
#
# @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 list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new Connectivity Test.
# After you create a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, containing non-existent resources in the network, or you
# don't have read permissions to the network configurations of listed
# projects), then the reachability result returns a value of `UNKNOWN`.
# If the endpoint specifications in `ConnectivityTest` are
# incomplete, the reachability result returns a value of
# <code>AMBIGUOUS</code>. For more information,
# see the Connectivity Test documentation.
# @param [String] parent
# Required. The parent resource of the Connectivity Test to create:
# `projects/`project_id`/locations/global`
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
# @param [String] test_id
# Required. The logical name of the Connectivity Test in your project
# with the following restrictions:
# * Must contain only lowercase letters, numbers, and hyphens.
# * Must start with a letter.
# * Must be between 1-40 characters.
# * Must end with a number or a letter.
# * Must be unique within the customer project
# @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::NetworkmanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
#
# @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 create_project_location_global_connectivity_test(parent, connectivity_test_object = nil, test_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/connectivityTests', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
command.request_object = connectivity_test_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['testId'] = test_id unless test_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
# Deletes a specific `ConnectivityTest`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/connectivityTests/`test_id``
# @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::NetworkmanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
#
# @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 delete_project_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the details of a specific Connectivity Test.
# @param [String] name
# Required. `ConnectivityTest` resource name using the form:
# `projects/`project_id`/locations/global/connectivityTests/`test_id``
# @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::NetworkmanagementV1beta1::ConnectivityTest] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest]
#
# @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 get_project_location_global_connectivity_test(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# @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::NetworkmanagementV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Policy]
#
# @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 get_project_location_global_connectivity_test_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Policy::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all Connectivity Tests owned by a project.
# @param [String] parent
# Required. The parent resource of the Connectivity Tests:
# `projects/`project_id`/locations/global`
# @param [String] filter
# Lists the `ConnectivityTests` that match the filter expression. A filter
# expression filters the resources listed in the response. The expression
# must be of the form `<field> <operator> <value>` where operators: `<`, `>`,
# `<=`,
# `>=`,
# `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is
# roughly synonymous with equality). <field> can refer to a proto or JSON
# field, or a synthetic field. Field names can be camelCase or snake_case.
# Examples:
# - Filter by name:
# name = "projects/proj-1/connectivityTests/test-1
# - Filter by labels:
# - Resources that have a key called `foo`
# labels.foo:*
# - Resources that have a key called `foo` whose value is `bar`
# labels.foo = bar
# @param [String] order_by
# Field to use to sort the list.
# @param [Fixnum] page_size
# Number of `ConnectivityTests` to return.
# @param [String] page_token
# Page token from an earlier query, as returned in `next_page_token`.
# @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::NetworkmanagementV1beta1::ListConnectivityTestsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse]
#
# @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 list_project_location_global_connectivity_tests(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/connectivityTests', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListConnectivityTestsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.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 configuration of an existing `ConnectivityTest`.
# After you update a test, the reachability analysis is performed as part
# of the long running operation, which completes when the analysis completes.
# The Reachability state in the test resource is updated with the new result.
# If the endpoint specifications in `ConnectivityTest` are invalid
# (for example, they contain non-existent resources in the network, or the
# user does not have read permissions to the network configurations of
# listed projects), then the reachability result returns a value of
# <code>UNKNOWN</code>.
# If the endpoint specifications in `ConnectivityTest` are incomplete, the
# reachability result returns a value of `AMBIGUOUS`. See the documentation
# in `ConnectivityTest` for for more details.
# @param [String] name
# Required. Unique name of the resource using the form:
# `projects/`project_id`/tests/`test_id``
# @param [Google::Apis::NetworkmanagementV1beta1::ConnectivityTest] connectivity_test_object
# @param [String] update_mask
# Required. Mask of fields to update. At least one path must be supplied in
# this field.
# @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::NetworkmanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
#
# @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 patch_project_location_global_connectivity_test(name, connectivity_test_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::ConnectivityTest::Representation
command.request_object = connectivity_test_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Rerun an existing `ConnectivityTest`.
# After the user triggers the rerun, the reachability analysis is performed
# as part of the long running operation, which completes when the analysis
# completes.
# Even though the test configuration remains the same, the reachability
# result may change due to underlying network configuration changes.
# If the endpoint specifications in `ConnectivityTest` become invalid (for
# example, specified resources are deleted in the network, or you lost
# read permissions to the network configurations of listed projects), then
# the reachability result returns a value of `UNKNOWN`.
# @param [String] name
# Required. Connectivity Test resource name using the form:
# `projects/`project_id`/connectivityTests/`test_id``
# @param [Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest] rerun_connectivity_test_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::NetworkmanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
#
# @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 rerun_connectivity_test(name, rerun_connectivity_test_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:rerun', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::RerunConnectivityTestRequest::Representation
command.request_object = rerun_connectivity_test_request_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest] set_iam_policy_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::NetworkmanagementV1beta1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Policy]
#
# @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 set_connectivity_test_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Policy::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::NetworkmanagementV1beta1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse]
#
# @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 test_connectivity_test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server
# makes a best effort to cancel the operation, but success is not
# guaranteed. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
# Operations.GetOperation or
# other methods to check whether the cancellation succeeded or whether the
# operation completed despite cancellation. On successful cancellation,
# the operation is not deleted; instead, it becomes an operation with
# an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [Google::Apis::NetworkmanagementV1beta1::CancelOperationRequest] cancel_operation_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::NetworkmanagementV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Empty]
#
# @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 cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
command.request_representation = Google::Apis::NetworkmanagementV1beta1::CancelOperationRequest::Representation
command.request_object = cancel_operation_request_object
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Empty::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a long-running operation. This method indicates that the client is
# no longer interested in the operation result. It does not cancel the
# operation. If the server doesn't support this method, it returns
# `google.rpc.Code.UNIMPLEMENTED`.
# @param [String] name
# The name of the operation resource to be deleted.
# @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::NetworkmanagementV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Empty]
#
# @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 delete_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Empty::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @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::NetworkmanagementV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::Operation]
#
# @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 get_project_location_global_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::Operation::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists operations that match the specified filter in the request. If the
# server doesn't support this method, it returns `UNIMPLEMENTED`.
# NOTE: the `name` binding allows API services to override the binding
# to use different resource name schemes, such as `users/*/operations`. To
# override the binding, API services can add a binding such as
# `"/v1/`name=users/*`/operations"` to their service configuration.
# For backwards compatibility, the default name includes the operations
# collection id, however overriding users must ensure the name binding
# is the parent resource, without the operations collection id.
# @param [String] name
# The name of the operation's parent resource.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @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::NetworkmanagementV1beta1::ListOperationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse]
#
# @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 list_project_location_global_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
command.response_representation = Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse::Representation
command.response_class = Google::Apis::NetworkmanagementV1beta1::ListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/
module OsconfigV1beta
VERSION = 'V1beta'
REVISION = '20200207'
REVISION = '20200226'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1
VERSION = 'V1'
REVISION = '20200225'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV1alpha
VERSION = 'V1alpha'
REVISION = '20200225'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/remote-build-execution/docs/
module RemotebuildexecutionV2
VERSION = 'V2'
REVISION = '20200225'
REVISION = '20200303'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20200211'
REVISION = '20200226'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -368,6 +368,11 @@ module Google
# @return [Array<String>]
attr_accessor :tags
# URL of a thumbnail image of the device.
# Corresponds to the JSON property `thumbnailUrl`
# @return [String]
attr_accessor :thumbnail_url
def initialize(**args)
update!(**args)
end
@ -388,6 +393,7 @@ module Google
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
@supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
@tags = args[:tags] if args.key?(:tags)
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
end
end
@ -1203,7 +1209,7 @@ module Google
end
# A description of an iOS device tests may be run on.
# Next tag: 11
# Next tag: 12
class IosModel
include Google::Apis::Core::Hashable

View File

@ -508,6 +508,7 @@ module Google
collection :supported_abis, as: 'supportedAbis'
collection :supported_version_ids, as: 'supportedVersionIds'
collection :tags, as: 'tags'
property :thumbnail_url, as: 'thumbnailUrl'
end
end

View File

@ -1,696 +0,0 @@
# 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 ToolresultsV1
# Additional details for an ANR crash.
class Anr
include Google::Apis::Core::Hashable
# A stacktrace.
# Corresponds to the JSON property `stackTrace`
# @return [Google::Apis::ToolresultsV1::StackTrace]
attr_accessor :stack_trace
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
end
end
# A suggestion to use deep links for a Robo run.
class AvailableDeepLinks
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A warning that Robo encountered a screen that was mostly blank; this may
# indicate a problem with the app.
class BlankScreen
include Google::Apis::Core::Hashable
# The screen id of the element
# Corresponds to the JSON property `screenId`
# @return [String]
attr_accessor :screen_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@screen_id = args[:screen_id] if args.key?(:screen_id)
end
end
# Crash dialog was detected during the test execution
class CrashDialogError
include Google::Apis::Core::Hashable
# The name of the package that caused the dialog.
# Corresponds to the JSON property `crashPackage`
# @return [String]
attr_accessor :crash_package
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@crash_package = args[:crash_package] if args.key?(:crash_package)
end
end
# Additional details about encountered login screens.
class EncounteredLoginScreen
include Google::Apis::Core::Hashable
# Number of encountered distinct login screens.
# Corresponds to the JSON property `distinctScreens`
# @return [Fixnum]
attr_accessor :distinct_screens
# Subset of login screens.
# Corresponds to the JSON property `screenIds`
# @return [Array<String>]
attr_accessor :screen_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@distinct_screens = args[:distinct_screens] if args.key?(:distinct_screens)
@screen_ids = args[:screen_ids] if args.key?(:screen_ids)
end
end
# Additional details about encountered screens with elements that are not
# Android UI widgets.
class EncounteredNonAndroidUiWidgetScreen
include Google::Apis::Core::Hashable
# Number of encountered distinct screens with non Android UI widgets.
# Corresponds to the JSON property `distinctScreens`
# @return [Fixnum]
attr_accessor :distinct_screens
# Subset of screens which contain non Android UI widgets.
# Corresponds to the JSON property `screenIds`
# @return [Array<String>]
attr_accessor :screen_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@distinct_screens = args[:distinct_screens] if args.key?(:distinct_screens)
@screen_ids = args[:screen_ids] if args.key?(:screen_ids)
end
end
# Failed to install the APK.
class FailedToInstall
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Additional details for a fatal exception.
class FatalException
include Google::Apis::Core::Hashable
# A stacktrace.
# Corresponds to the JSON property `stackTrace`
# @return [Google::Apis::ToolresultsV1::StackTrace]
attr_accessor :stack_trace
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
end
end
# Additional details of in-app purchases encountered during the crawl.
class InAppPurchasesFound
include Google::Apis::Core::Hashable
# The total number of in-app purchases flows explored: how many times the
# robo tries to buy a SKU.
# Corresponds to the JSON property `inAppPurchasesFlowsExplored`
# @return [Fixnum]
attr_accessor :in_app_purchases_flows_explored
# The total number of in-app purchases flows started.
# Corresponds to the JSON property `inAppPurchasesFlowsStarted`
# @return [Fixnum]
attr_accessor :in_app_purchases_flows_started
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@in_app_purchases_flows_explored = args[:in_app_purchases_flows_explored] if args.key?(:in_app_purchases_flows_explored)
@in_app_purchases_flows_started = args[:in_app_purchases_flows_started] if args.key?(:in_app_purchases_flows_started)
end
end
# A warning that Robo did not crawl potentially important parts of the app.
class InsufficientCoverage
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Additional details for an iOS app crash.
class IosAppCrashed
include Google::Apis::Core::Hashable
# A stacktrace.
# Corresponds to the JSON property `stackTrace`
# @return [Google::Apis::ToolresultsV1::StackTrace]
attr_accessor :stack_trace
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
end
end
# Failed to find the launcher activity of an app.
class LauncherActivityNotFound
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Additional details for a native crash.
class NativeCrash
include Google::Apis::Core::Hashable
# A stacktrace.
# Corresponds to the JSON property `stackTrace`
# @return [Google::Apis::ToolresultsV1::StackTrace]
attr_accessor :stack_trace
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@stack_trace = args[:stack_trace] if args.key?(:stack_trace)
end
end
# A non-sdk API and examples of it being called along with other metadata
# See
# https://developer.android.com/distribute/best-practices/develop/restrictions-
# non-sdk-interfaces
class NonSdkApi
include Google::Apis::Core::Hashable
# The signature of the Non-SDK API
# Corresponds to the JSON property `apiSignature`
# @return [String]
attr_accessor :api_signature
# Example stack traces of this API being called.
# Corresponds to the JSON property `exampleStackTraces`
# @return [Array<String>]
attr_accessor :example_stack_traces
# Optional debugging insights for non-SDK API violations.
# Corresponds to the JSON property `insights`
# @return [Array<Google::Apis::ToolresultsV1::NonSdkApiInsight>]
attr_accessor :insights
# The total number of times this API was observed to have been called.
# Corresponds to the JSON property `invocationCount`
# @return [Fixnum]
attr_accessor :invocation_count
# Which list this API appears on
# Corresponds to the JSON property `list`
# @return [String]
attr_accessor :list
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_signature = args[:api_signature] if args.key?(:api_signature)
@example_stack_traces = args[:example_stack_traces] if args.key?(:example_stack_traces)
@insights = args[:insights] if args.key?(:insights)
@invocation_count = args[:invocation_count] if args.key?(:invocation_count)
@list = args[:list] if args.key?(:list)
end
end
# Non-SDK API insights (to address debugging solutions).
class NonSdkApiInsight
include Google::Apis::Core::Hashable
# Optional sample stack traces, for which this insight applies (there
# should be at least one).
# Corresponds to the JSON property `exampleTraceMessages`
# @return [Array<String>]
attr_accessor :example_trace_messages
# A unique ID, to be used for determining the effectiveness of this
# particular insight in the context of a matcher. (required)
# Corresponds to the JSON property `matcherId`
# @return [String]
attr_accessor :matcher_id
# This insight indicates that the hidden API usage originates from a
# Google-provided library. Users need not take any action.
# Corresponds to the JSON property `pendingGoogleUpdateInsight`
# @return [Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight]
attr_accessor :pending_google_update_insight
# This insight is a recommendation to upgrade a given library to the specified
# version, in order to avoid dependencies on non-SDK APIs.
# Corresponds to the JSON property `upgradeInsight`
# @return [Google::Apis::ToolresultsV1::UpgradeInsight]
attr_accessor :upgrade_insight
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@example_trace_messages = args[:example_trace_messages] if args.key?(:example_trace_messages)
@matcher_id = args[:matcher_id] if args.key?(:matcher_id)
@pending_google_update_insight = args[:pending_google_update_insight] if args.key?(:pending_google_update_insight)
@upgrade_insight = args[:upgrade_insight] if args.key?(:upgrade_insight)
end
end
# Additional details for a non-sdk API usage violation.
class NonSdkApiUsageViolation
include Google::Apis::Core::Hashable
# Signatures of a subset of those hidden API's.
# Corresponds to the JSON property `apiSignatures`
# @return [Array<String>]
attr_accessor :api_signatures
# Total number of unique hidden API's accessed.
# Corresponds to the JSON property `uniqueApis`
# @return [Fixnum]
attr_accessor :unique_apis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@api_signatures = args[:api_signatures] if args.key?(:api_signatures)
@unique_apis = args[:unique_apis] if args.key?(:unique_apis)
end
end
# Contains a summary and examples of non-sdk API usage violations.
class NonSdkApiUsageViolationReport
include Google::Apis::Core::Hashable
# Examples of the detected API usages.
# Corresponds to the JSON property `exampleApis`
# @return [Array<Google::Apis::ToolresultsV1::NonSdkApi>]
attr_accessor :example_apis
# Minimum API level required for the application to run.
# Corresponds to the JSON property `minSdkVersion`
# @return [Fixnum]
attr_accessor :min_sdk_version
# Specifies the API Level on which the application is designed to run.
# Corresponds to the JSON property `targetSdkVersion`
# @return [Fixnum]
attr_accessor :target_sdk_version
# Total number of unique Non-SDK API's accessed.
# Corresponds to the JSON property `uniqueApis`
# @return [Fixnum]
attr_accessor :unique_apis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@example_apis = args[:example_apis] if args.key?(:example_apis)
@min_sdk_version = args[:min_sdk_version] if args.key?(:min_sdk_version)
@target_sdk_version = args[:target_sdk_version] if args.key?(:target_sdk_version)
@unique_apis = args[:unique_apis] if args.key?(:unique_apis)
end
end
# A warning that Robo encountered a screen that has overlapping clickable
# elements; this may indicate a potential UI issue.
class OverlappingUiElements
include Google::Apis::Core::Hashable
# Resource names of the overlapping screen elements
# Corresponds to the JSON property `resourceName`
# @return [Array<String>]
attr_accessor :resource_name
# The screen id of the elements
# Corresponds to the JSON property `screenId`
# @return [String]
attr_accessor :screen_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
@screen_id = args[:screen_id] if args.key?(:screen_id)
end
end
# This insight indicates that the hidden API usage originates from a
# Google-provided library. Users need not take any action.
class PendingGoogleUpdateInsight
include Google::Apis::Core::Hashable
# The name of the Google-provided library with the non-SDK API dependency.
# Corresponds to the JSON property `nameOfGoogleLibrary`
# @return [String]
attr_accessor :name_of_google_library
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name_of_google_library = args[:name_of_google_library] if args.key?(:name_of_google_library)
end
end
# A notification that Robo signed in with Google.
class PerformedGoogleLogin
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A notification that Robo performed some monkey actions.
class PerformedMonkeyActions
include Google::Apis::Core::Hashable
# The total number of monkey actions performed during the crawl.
# Corresponds to the JSON property `totalActions`
# @return [Fixnum]
attr_accessor :total_actions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@total_actions = args[:total_actions] if args.key?(:total_actions)
end
end
# Execution stats for a user-provided Robo script.
class RoboScriptExecution
include Google::Apis::Core::Hashable
# The number of Robo script actions executed successfully.
# Corresponds to the JSON property `successfulActions`
# @return [Fixnum]
attr_accessor :successful_actions
# The total number of actions in the Robo script.
# Corresponds to the JSON property `totalActions`
# @return [Fixnum]
attr_accessor :total_actions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@successful_actions = args[:successful_actions] if args.key?(:successful_actions)
@total_actions = args[:total_actions] if args.key?(:total_actions)
end
end
# A stacktrace.
class StackTrace
include Google::Apis::Core::Hashable
# The stack trace message.
# Required
# Corresponds to the JSON property `exception`
# @return [String]
attr_accessor :exception
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exception = args[:exception] if args.key?(:exception)
end
end
# User provided intent failed to resolve to an activity.
class StartActivityNotFound
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
#
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@uri = args[:uri] if args.key?(:uri)
end
end
# A warning that the screen hierarchy is deeper than the recommended threshold.
class UiElementTooDeep
include Google::Apis::Core::Hashable
# The depth of the screen element
# Corresponds to the JSON property `depth`
# @return [Fixnum]
attr_accessor :depth
# The screen id of the element
# Corresponds to the JSON property `screenId`
# @return [String]
attr_accessor :screen_id
# The screen state id of the element
# Corresponds to the JSON property `screenStateId`
# @return [String]
attr_accessor :screen_state_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@depth = args[:depth] if args.key?(:depth)
@screen_id = args[:screen_id] if args.key?(:screen_id)
@screen_state_id = args[:screen_state_id] if args.key?(:screen_state_id)
end
end
# Default unspecified warning.
class UnspecifiedWarning
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Additional details of an unused robodirective.
class UnusedRoboDirective
include Google::Apis::Core::Hashable
# The name of the resource that was unused.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
end
end
# This insight is a recommendation to upgrade a given library to the specified
# version, in order to avoid dependencies on non-SDK APIs.
class UpgradeInsight
include Google::Apis::Core::Hashable
# The name of the package to be upgraded.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# The suggested version to upgrade to.
# Optional: In case we are not sure which version solves this problem
# Corresponds to the JSON property `upgradeToVersion`
# @return [String]
attr_accessor :upgrade_to_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@package_name = args[:package_name] if args.key?(:package_name)
@upgrade_to_version = args[:upgrade_to_version] if args.key?(:upgrade_to_version)
end
end
# Additional details of a used Robo directive.
class UsedRoboDirective
include Google::Apis::Core::Hashable
# The name of the resource that was used.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
end
end
# Additional details of a used Robo directive with an ignore action.
# Note: This is a different scenario than unused directive.
class UsedRoboIgnoreDirective
include Google::Apis::Core::Hashable
# The name of the resource that was ignored.
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@resource_name = args[:resource_name] if args.key?(:resource_name)
end
end
end
end
end

View File

@ -1,438 +0,0 @@
# 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 ToolresultsV1
class Anr
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AvailableDeepLinks
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BlankScreen
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CrashDialogError
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncounteredLoginScreen
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EncounteredNonAndroidUiWidgetScreen
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FailedToInstall
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class FatalException
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InAppPurchasesFound
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InsufficientCoverage
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class IosAppCrashed
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LauncherActivityNotFound
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NativeCrash
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonSdkApi
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonSdkApiInsight
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonSdkApiUsageViolation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonSdkApiUsageViolationReport
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OverlappingUiElements
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PendingGoogleUpdateInsight
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PerformedGoogleLogin
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PerformedMonkeyActions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RoboScriptExecution
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StackTrace
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StartActivityNotFound
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UiElementTooDeep
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnspecifiedWarning
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnusedRoboDirective
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpgradeInsight
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsedRoboDirective
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UsedRoboIgnoreDirective
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Anr
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
end
end
class AvailableDeepLinks
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class BlankScreen
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :screen_id, as: 'screenId'
end
end
class CrashDialogError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :crash_package, as: 'crashPackage'
end
end
class EncounteredLoginScreen
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :distinct_screens, as: 'distinctScreens'
collection :screen_ids, as: 'screenIds'
end
end
class EncounteredNonAndroidUiWidgetScreen
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :distinct_screens, as: 'distinctScreens'
collection :screen_ids, as: 'screenIds'
end
end
class FailedToInstall
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class FatalException
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
end
end
class InAppPurchasesFound
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :in_app_purchases_flows_explored, as: 'inAppPurchasesFlowsExplored'
property :in_app_purchases_flows_started, as: 'inAppPurchasesFlowsStarted'
end
end
class InsufficientCoverage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class IosAppCrashed
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
end
end
class LauncherActivityNotFound
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class NativeCrash
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :stack_trace, as: 'stackTrace', class: Google::Apis::ToolresultsV1::StackTrace, decorator: Google::Apis::ToolresultsV1::StackTrace::Representation
end
end
class NonSdkApi
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_signature, as: 'apiSignature'
collection :example_stack_traces, as: 'exampleStackTraces'
collection :insights, as: 'insights', class: Google::Apis::ToolresultsV1::NonSdkApiInsight, decorator: Google::Apis::ToolresultsV1::NonSdkApiInsight::Representation
property :invocation_count, as: 'invocationCount'
property :list, as: 'list'
end
end
class NonSdkApiInsight
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :example_trace_messages, as: 'exampleTraceMessages'
property :matcher_id, as: 'matcherId'
property :pending_google_update_insight, as: 'pendingGoogleUpdateInsight', class: Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight, decorator: Google::Apis::ToolresultsV1::PendingGoogleUpdateInsight::Representation
property :upgrade_insight, as: 'upgradeInsight', class: Google::Apis::ToolresultsV1::UpgradeInsight, decorator: Google::Apis::ToolresultsV1::UpgradeInsight::Representation
end
end
class NonSdkApiUsageViolation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :api_signatures, as: 'apiSignatures'
property :unique_apis, as: 'uniqueApis'
end
end
class NonSdkApiUsageViolationReport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :example_apis, as: 'exampleApis', class: Google::Apis::ToolresultsV1::NonSdkApi, decorator: Google::Apis::ToolresultsV1::NonSdkApi::Representation
property :min_sdk_version, as: 'minSdkVersion'
property :target_sdk_version, as: 'targetSdkVersion'
property :unique_apis, as: 'uniqueApis'
end
end
class OverlappingUiElements
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :resource_name, as: 'resourceName'
property :screen_id, as: 'screenId'
end
end
class PendingGoogleUpdateInsight
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name_of_google_library, as: 'nameOfGoogleLibrary'
end
end
class PerformedGoogleLogin
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class PerformedMonkeyActions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :total_actions, as: 'totalActions'
end
end
class RoboScriptExecution
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :successful_actions, as: 'successfulActions'
property :total_actions, as: 'totalActions'
end
end
class StackTrace
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :exception, as: 'exception'
end
end
class StartActivityNotFound
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :uri, as: 'uri'
end
end
class UiElementTooDeep
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :depth, as: 'depth'
property :screen_id, as: 'screenId'
property :screen_state_id, as: 'screenStateId'
end
end
class UnspecifiedWarning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UnusedRoboDirective
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_name, as: 'resourceName'
end
end
class UpgradeInsight
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :package_name, as: 'packageName'
property :upgrade_to_version, as: 'upgradeToVersion'
end
end
class UsedRoboDirective
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_name, as: 'resourceName'
end
end
class UsedRoboIgnoreDirective
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_name, as: 'resourceName'
end
end
end
end
end

View File

@ -1,59 +0,0 @@
# 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 ToolresultsV1
# Cloud Tool Results API
#
# API to publish and access results from developer tools.
#
# @example
# require 'google/apis/toolresults_v1'
#
# Toolresults = Google::Apis::ToolresultsV1 # Alias the module
# service = Toolresults::ToolResultsService.new
#
# @see https://firebase.google.com/docs/test-lab/
class ToolResultsService < 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://www.googleapis.com/', '')
@batch_path = 'batch'
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