Autogenerated update (2020-05-21)

Update:
- adexchangebuyer2_v2beta1
- bigqueryreservation_v1
- bigqueryreservation_v1beta1
- binaryauthorization_v1
- content_v2_1
- dfareporting_v3_3
- dfareporting_v3_4
- dialogflow_v2
- dialogflow_v2beta1
- dlp_v2
- securitycenter_v1
- securitycenter_v1beta1
- securitycenter_v1p1beta1
- servicenetworking_v1
- servicenetworking_v1beta
- tasks_v1
- youtube_v3
This commit is contained in:
Google APIs 2020-05-21 00:38:31 +00:00
parent 0bbabaf3a1
commit 5905a32742
47 changed files with 4700 additions and 4046 deletions

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20200506'
REVISION = '20200520'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -440,6 +440,7 @@ module Google
# Numerical identifier of the client entity.
# The entity can be an advertiser, a brand, or an agency.
# This identifier is unique among all the entities with the same type.
# The value of this field is ignored if the entity type is not provided.
# A list of all known advertisers with their identifiers is available in the
# [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionaries/
# advertisers.txt)
@ -462,7 +463,8 @@ module Google
# @return [String]
attr_accessor :entity_name
# The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
# An optional field for specifying the type of the client entity:
# `ADVERTISER`, `BRAND`, or `AGENCY`.
# Corresponds to the JSON property `entityType`
# @return [String]
attr_accessor :entity_type

View File

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

View File

@ -179,7 +179,7 @@ module Google
# Required. The resource name of the admin project(containing project and
# location),
# e.g.:
# "projects/myproject/locations/US".
# `projects/myproject/locations/US`.
# @param [Fixnum] page_size
# The maximum number of items to return per page.
# @param [String] page_token
@ -266,7 +266,7 @@ module Google
# Creates a new capacity commitment resource.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# `projects/myproject/locations/US`
# @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
# @param [Boolean] enforce_single_admin_project_per_org
# If true, fail the request if another project in the organization has a
@ -306,7 +306,7 @@ module Google
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Required. Resource name of the capacity commitment to delete. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `projects/myproject/locations/US/capacityCommitments/123`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -337,7 +337,7 @@ module Google
# Returns information about the capacity commitment.
# @param [String] name
# Required. Resource name of the capacity commitment to retrieve. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `projects/myproject/locations/US/capacityCommitments/123`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -368,7 +368,7 @@ module Google
# Lists all the capacity commitments for the admin project.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# `projects/myproject/locations/US`
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
@ -409,7 +409,7 @@ module Google
# 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
# `projects/myproject/locations/us`
# @param [Google::Apis::BigqueryreservationV1::MergeCapacityCommitmentsRequest] merge_capacity_commitments_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -489,7 +489,7 @@ module Google
# you would 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
# `projects/myproject/locations/US/capacityCommitments/123`
# @param [Google::Apis::BigqueryreservationV1::SplitCapacityCommitmentRequest] split_capacity_commitment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -625,7 +625,7 @@ module Google
# Lists all the reservations for the project in the specified location.
# @param [String] parent
# Required. The parent resource name containing project and location, e.g.:
# "projects/myproject/locations/US"
# `projects/myproject/locations/US`
# @param [Fixnum] page_size
# The maximum number of items to return per page.
# @param [String] page_token

View File

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

View File

@ -28,7 +28,7 @@ module Google
include Google::Apis::Core::Hashable
# The resource which will use the reservation. E.g.
# projects/myproject, folders/123, organizations/456.
# `projects/myproject`, `folders/123`, or `organizations/456`.
# Corresponds to the JSON property `assignee`
# @return [String]
attr_accessor :assignee
@ -39,7 +39,7 @@ module Google
attr_accessor :job_type
# Output only. Name of the resource. E.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123.
# `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -98,8 +98,9 @@ module Google
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Annual
# commitments renew by default. Commitments can be removed after their
# commitment end time passes. In order to remove annual commitment, its plan
# needs to be changed to monthly or flex first.
# commitment end time passes.
# In order to remove annual commitment, its plan needs to be changed
# to monthly or flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
class CapacityCommitment
@ -123,7 +124,7 @@ module Google
attr_accessor :failure_status
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `projects/myproject/locations/US/capacityCommitments/123`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -307,15 +308,16 @@ module Google
# The request for
# ReservationService.MoveAssignment.
# Note: "bigquery.reservationAssignments.create" permission is required on the
# destination_id. Note: "bigquery.reservationAssignments.create" and
# "bigquery.reservationAssignments.delete" permission is required on the
# **Note**: "bigquery.reservationAssignments.create" permission is required on
# the destination_id.
# **Note**: "bigquery.reservationAssignments.create" and
# "bigquery.reservationAssignments.delete" permission are required on the
# related assignee.
class MoveAssignmentRequest
include Google::Apis::Core::Hashable
# The new reservation ID, e.g.:
# projects/myotherproject/locations/US/reservations/team2-prod
# `projects/myotherproject/locations/US/reservations/team2-prod`
# Corresponds to the JSON property `destinationId`
# @return [String]
attr_accessor :destination_id
@ -343,7 +345,7 @@ module Google
alias_method :ignore_idle_slots?, :ignore_idle_slots
# The resource name of the reservation, e.g.,
# "projects/*/locations/*/reservations/team1-prod".
# `projects/*/locations/*/reservations/team1-prod`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -424,8 +426,9 @@ module Google
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Annual
# commitments renew by default. Commitments can be removed after their
# commitment end time passes. In order to remove annual commitment, its plan
# needs to be changed to monthly or flex first.
# commitment end time passes.
# In order to remove annual commitment, its plan needs to be changed
# to monthly or flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `first`
@ -435,8 +438,9 @@ module Google
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs
# (in the form of slots) with some committed period of usage. Annual
# commitments renew by default. Commitments can be removed after their
# commitment end time passes. In order to remove annual commitment, its plan
# needs to be changed to monthly or flex first.
# commitment end time passes.
# In order to remove annual commitment, its plan needs to be changed
# to monthly or flex first.
# A capacity commitment resource exists as a child resource of the admin
# project.
# Corresponds to the JSON property `second`

View File

@ -80,34 +80,36 @@ module Google
# Looks up assignments for a specified resource for a particular region.
# If the request is about a project:
# 1) Assignments created on the project will be returned if they exist.
# 2) Otherwise assignments created on the closest ancestor will be
# returned. 3) Assignments for different JobTypes will all be returned.
# Same logic applies if the request is about a folder.
# 1. Assignments created on the project will be returned if they exist.
# 2. Otherwise assignments created on the closest ancestor will be
# returned.
# 3. Assignments for different JobTypes will all be returned.
# The same logic applies if the request is about a folder.
# If the request is about an organization, then assignments created on the
# organization will be returned (organization doesn't have ancestors).
# Comparing to ListAssignments, there are some behavior
# differences:
# 1) permission on the assignee will be verified in this API.
# 2) Hierarchy lookup (project->folder->organization) happens in this API.
# 3) Parent here is projects/*/locations/*, instead of
# projects/*/locations/*reservations/*.
# Note "-" cannot be used for projects
# 1. permission on the assignee will be verified in this API.
# 2. Hierarchy lookup (project->folder->organization) happens in this API.
# 3. Parent here is `projects/*/locations/*`, instead of
# `projects/*/locations/*reservations/*`.
# **Note** "-" cannot be used for projects
# nor locations.
# @param [String] parent
# Required. The resource name of the admin project(containing project and
# location),
# e.g.:
# "projects/myproject/locations/US".
# `projects/myproject/locations/US`.
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
# The next_page_token value returned from a previous List request, if any.
# @param [String] query
# Please specify resource name as assignee in the query.
# e.g., "assignee=projects/myproject"
# "assignee=folders/123"
# "assignee=organizations/456"
# Examples:
# * `assignee=projects/myproject`
# * `assignee=folders/123`
# * `assignee=organizations/456`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -139,8 +141,8 @@ module Google
end
# Updates a BI reservation.
# Only fields specified in the field_mask are updated.
# Singleton BI reservation always exists with default size 0.
# Only fields specified in the `field_mask` are updated.
# A singleton BI reservation always exists with default size 0.
# In order to reserve BI capacity it needs to be updated to an amount
# greater than 0. In order to release BI capacity reservation size
# must be set to 0.
@ -184,7 +186,7 @@ module Google
# Creates a new capacity commitment resource.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# `projects/myproject/locations/US`
# @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object
# @param [Boolean] enforce_single_admin_project_per_org
# If true, fail the request if another project in the organization has a
@ -224,7 +226,7 @@ module Google
# `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Required. Resource name of the capacity commitment to delete. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `projects/myproject/locations/US/capacityCommitments/123`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -255,7 +257,7 @@ module Google
# Returns information about the capacity commitment.
# @param [String] name
# Required. Resource name of the capacity commitment to retrieve. E.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `projects/myproject/locations/US/capacityCommitments/123`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -286,7 +288,7 @@ module Google
# Lists all the capacity commitments for the admin project.
# @param [String] parent
# Required. Resource name of the parent reservation. E.g.,
# projects/myproject/locations/US
# `projects/myproject/locations/US`
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
@ -320,13 +322,14 @@ 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`.
# Merges capacity commitments of the same plan into a single commitment.
# The resulting capacity commitment has the greater commitment_end_time
# out of the to-be-merged capacity commitments.
# 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
# `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.
@ -358,13 +361,13 @@ module Google
end
# Updates an existing capacity commitment.
# Only plan and renewal_plan fields can be updated.
# Only `plan` and `renewal_plan` fields can be updated.
# Plan can only be changed to a plan of a longer commitment period.
# Attempting to change to a plan with shorter commitment period will fail
# with the error code `google.rpc.Code.FAILED_PRECONDITION`.
# @param [String] name
# Output only. The resource name of the capacity commitment, e.g.,
# projects/myproject/locations/US/capacityCommitments/123
# `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.
@ -399,13 +402,14 @@ module Google
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.
# `commitment_end_time`.
# A common use case is to enable downgrading commitments.
# For example, in order to downgrade from 10000 slots to 8000, you might
# split a 10000 capacity commitment into commitments of 2000 and 8000. Then,
# you would 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
# `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.
@ -439,7 +443,7 @@ module Google
# Creates a new reservation resource.
# @param [String] parent
# Required. Project, location. E.g.,
# projects/myproject/locations/US
# `projects/myproject/locations/US`
# @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object
# @param [String] reservation_id
# The reservation ID. This field must only contain lower case alphanumeric
@ -479,7 +483,7 @@ module Google
# assignments.
# @param [String] name
# Required. Resource name of the reservation to retrieve. E.g.,
# projects/myproject/locations/US/reservations/team1-prod
# `projects/myproject/locations/US/reservations/team1-prod`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -510,7 +514,7 @@ module Google
# Returns information about the reservation.
# @param [String] name
# Required. Resource name of the reservation to retrieve. E.g.,
# projects/myproject/locations/US/reservations/team1-prod
# `projects/myproject/locations/US/reservations/team1-prod`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -541,7 +545,7 @@ module Google
# Lists all the reservations for the project in the specified location.
# @param [String] parent
# Required. The parent resource name containing project and location, e.g.:
# "projects/myproject/locations/US"
# `projects/myproject/locations/US`
# @param [String] filter
# Can be used to filter out reservations based on names, capacity, etc, e.g.:
# filter="reservation.slot_capacity > 200"
@ -585,7 +589,7 @@ module Google
# Updates an existing reservation resource.
# @param [String] name
# The resource name of the reservation, e.g.,
# "projects/*/locations/*/reservations/team1-prod".
# `projects/*/locations/*/reservations/team1-prod`.
# @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object
# @param [String] update_mask
# Standard field mask for the set of fields to be updated.
@ -619,6 +623,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates an assignment object which allows the given project to submit jobs
# of a certain type using slots from the specified reservation.
# Currently a
# resource (project, folder, organization) can only have one assignment per
# each (job_type, location) combination, and that reservation will be used
# for all jobs of the matching type.
# Different assignments can be created on different levels of the
# projects, folders or organization hierarchy. During query execution,
# the assignment is looked up at the project, folder and organization levels
# in that order. The first assignment found is applied to the query.
# When creating assignments, it does not matter if other assignments exist at
# higher levels.
# Example:
# * The organization `organizationA` contains two projects, `project1`
# and `project2`.
# * Assignments for all three entities (`organizationA`, `project1`, and
# `project2`) could all be created and mapped to the same or different
# reservations.
# Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have
# 'bigquery.admin' permissions on the project using the reservation
# and the project that owns this reservation.
@ -626,7 +648,7 @@ module Google
# does not match location of the reservation.
# @param [String] parent
# Required. The parent resource name of the assignment
# E.g.: projects/myproject/locations/US/reservations/team1-prod
# E.g. `projects/myproject/locations/US/reservations/team1-prod`
# @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -658,18 +680,20 @@ module Google
end
# Deletes a assignment. No expansion will happen.
# E.g:
# organizationA contains project1 and project2. Reservation res1 exists.
# CreateAssignment was invoked previously and following assignments were
# created explicitly:
# <organizationA, res1>
# <project1, res1>
# Then deletion of <organizationA, res1> won't affect <project1, res1>. After
# deletion of <organizationA, res1>, queries from project1 will still use
# res1, while queries from project2 will use on-demand mode.
# Example:
# * Organization `organizationA` contains two projects, `project1` and
# `project2`.
# * Reservation `res1` exists and was created previously.
# * CreateAssignment was used previously to define the following
# associations between entities and reservations: `<organizationA, res1>`
# and `<project1, res1>`
# In this example, deletion of the `<organizationA, res1>` assignment won't
# affect the other assignment `<project1, res1>`. After said deletion,
# queries from `project1` will still use `res1` while queries from
# `project2` will switch to use on-demand mode.
# @param [String] name
# Required. Name of the resource, e.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123
# Required. Name of the resource, e.g.
# `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -698,22 +722,25 @@ module Google
end
# Lists assignments.
# Only explicitly created assignments will be returned. E.g:
# organizationA contains project1 and project2. Reservation res1 exists.
# CreateAssignment was invoked previously and following assignments were
# created explicitly:
# <organizationA, res1>
# <project1, res1>
# Then this API will just return the above two assignments for reservation
# res1, and no expansion/merge will happen. Wildcard "-" can be used for
# Only explicitly created assignments will be returned.
# Example:
# * Organization `organizationA` contains two projects, `project1` and
# `project2`.
# * Reservation `res1` exists and was created previously.
# * CreateAssignment was used previously to define the following
# associations between entities and reservations: `<organizationA, res1>`
# and `<project1, res1>`
# In this example, ListAssignments will just return the above two assignments
# for reservation `res1`, and no expansion/merge will happen.
# The wildcard "-" can be used for
# reservations in the request. In that case all assignments belongs to the
# specified project and location will be listed. Note
# "-" cannot be used for projects nor locations.
# specified project and location will be listed.
# **Note** "-" cannot be used for projects nor locations.
# @param [String] parent
# Required. The parent resource name e.g.:
# projects/myproject/locations/US/reservations/team1-prod
# `projects/myproject/locations/US/reservations/team1-prod`
# Or:
# projects/myproject/locations/US/reservations/-
# `projects/myproject/locations/US/reservations/-`
# @param [Fixnum] page_size
# The maximum number of items to return.
# @param [String] page_token
@ -747,16 +774,14 @@ module Google
execute_or_queue_command(command, &block)
end
# Moves a assignment under a new reservation. Customers can do this by
# deleting the existing assignment followed by creating another assignment
# under the new reservation, but this method provides a transactional way to
# do so, to make sure the assignee always has an associated reservation.
# Without the method customers might see some queries run on-demand which
# might be unexpected.
# Moves an assignment under a new reservation.
# This differs from removing an existing assignment and recreating a new one
# by providing a transactional change that ensures an assignee always has an
# associated reservation.
# @param [String] name
# Required. The resource name of the assignment,
# e.g.:
# projects/myproject/locations/US/reservations/team1-prod/assignments/123
# e.g.
# `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
# @param [Google::Apis::BigqueryreservationV1beta1::MoveAssignmentRequest] move_assignment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/binary-authorization/
module BinaryauthorizationV1
VERSION = 'V1'
REVISION = '20200501'
REVISION = '20200515'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -540,7 +540,8 @@ module Google
# @return [Array<Google::Apis::BinaryauthorizationV1::AdmissionWhitelistPattern>]
attr_accessor :admission_whitelist_patterns
# Optional. Per-cluster admission rules. Cluster spec format:
# Optional. LINT.IfChange(cluster_regex)
# Per-cluster admission rules. Cluster spec format:
# `location.clusterId`. There can be at most one admission rule per cluster
# spec.
# A `location` is either a compute zone (e.g. us-central1-a) or a region
@ -548,6 +549,8 @@ module Google
# For `clusterId` syntax restrictions see
# https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.
# clusters.
# LINT.ThenChange(//depot/google3/cloud/console/web/binary_authorization/api/
# models/admission_rule_type.ts:cluster_regex)
# Corresponds to the JSON property `clusterAdmissionRules`
# @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
attr_accessor :cluster_admission_rules

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2_1
VERSION = 'V2_1'
REVISION = '20200421'
REVISION = '20200512'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -10861,6 +10861,11 @@ module Google
# @return [String]
attr_accessor :merchant_order_id
# The identifier of the item.
# Corresponds to the JSON property `orderItemId`
# @return [String]
attr_accessor :order_item_id
# The unique ID of the settlement transaction entry.
# Corresponds to the JSON property `settlementEntryId`
# @return [String]
@ -10884,6 +10889,7 @@ module Google
def update!(**args)
@adjustment_id = args[:adjustment_id] if args.key?(:adjustment_id)
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
@order_item_id = args[:order_item_id] if args.key?(:order_item_id)
@settlement_entry_id = args[:settlement_entry_id] if args.key?(:settlement_entry_id)
@shipment_ids = args[:shipment_ids] if args.key?(:shipment_ids)
@transaction_id = args[:transaction_id] if args.key?(:transaction_id)

View File

@ -4543,6 +4543,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :adjustment_id, as: 'adjustmentId'
property :merchant_order_id, as: 'merchantOrderId'
property :order_item_id, as: 'orderItemId'
property :settlement_entry_id, as: 'settlementEntryId'
collection :shipment_ids, as: 'shipmentIds'
property :transaction_id, as: 'transactionId'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_3
VERSION = 'V3_3'
REVISION = '20200326'
REVISION = '20200514'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -5713,7 +5713,7 @@ module Google
end
end
#
# List of files for a report.
class FileList
include Google::Apis::Core::Hashable
@ -5722,7 +5722,7 @@ module Google
# @return [String]
attr_accessor :etag
#
# The files returned in this response.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DfareportingV3_3::File>]
attr_accessor :items

View File

@ -7254,9 +7254,9 @@ module Google
# Lists files for a report.
# @param [Fixnum] profile_id
# The DFA user profile ID.
# The DFA profile ID.
# @param [Fixnum] report_id
# The ID of the report.
# The ID of the parent report.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] page_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV3_4
VERSION = 'V3_4'
REVISION = '20200326'
REVISION = '20200514'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -6182,7 +6182,7 @@ module Google
end
end
#
# List of files for a report.
class FileList
include Google::Apis::Core::Hashable
@ -6191,7 +6191,7 @@ module Google
# @return [String]
attr_accessor :etag
#
# The files returned in this response.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::DfareportingV3_4::File>]
attr_accessor :items

View File

@ -7251,9 +7251,9 @@ module Google
# Lists files for a report.
# @param [Fixnum] profile_id
# The DFA user profile ID.
# The DFA profile ID.
# @param [Fixnum] report_id
# The ID of the report.
# The ID of the parent report.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] page_token

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2
VERSION = 'V2'
REVISION = '20200512'
REVISION = '20200518'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -615,6 +615,9 @@ module Google
# multiple default text responses exist, they will be concatenated when
# generating audio. If no default platform text responses exist, the
# generated audio content will be empty.
# In some scenarios, multiple output audio fields may be present in the
# response structure. In these cases, only the top-most-level audio output
# has content.
# Corresponds to the JSON property `outputAudio`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1
VERSION = 'V2beta1'
REVISION = '20200512'
REVISION = '20200518'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2736,6 +2736,9 @@ module Google
# multiple default text responses exist, they will be concatenated when
# generating audio. If no default platform text responses exist, the
# generated audio content will be empty.
# In some scenarios, multiple output audio fields may be present in the
# response structure. In these cases, only the top-most-level audio output
# has content.
# Corresponds to the JSON property `outputAudio`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]

View File

@ -1833,7 +1833,7 @@ module Google
# Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
# only use `projects.knowledgeBases.documents`.
# @param [String] parent
# The knoweldge base to create a document for.
# Required. The knoweldge base to create a document for.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object
# @param [String] fields
@ -2736,7 +2736,7 @@ module Google
# Note: The `projects.agent.knowledgeBases.documents` resource is deprecated;
# only use `projects.knowledgeBases.documents`.
# @param [String] parent
# The knoweldge base to create a document for.
# Required. The knoweldge base to create a document for.
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document] google_cloud_dialogflow_v2beta1_document_object
# @param [String] fields

View File

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

View File

@ -1155,8 +1155,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate]
attr_accessor :deidentify_template
# The geographic location to store the deidentification template. Reserved
# for future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -1200,8 +1199,7 @@ module Google
# @return [String]
attr_accessor :job_id
# The geographic location to store and process the job. Reserved for
# future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -1237,8 +1235,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate]
attr_accessor :inspect_template
# The geographic location to store the inspection template. Reserved for
# future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -1273,8 +1270,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger]
attr_accessor :job_trigger
# The geographic location to store the job trigger. Reserved for
# future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -1310,8 +1306,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoTypeConfig]
attr_accessor :config
# The geographic location to store the stored infoType. Reserved for
# future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -1835,8 +1830,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
attr_accessor :item
# The geographic location to process de-identification. Reserved for future
# extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -3314,10 +3308,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
attr_accessor :item
# The geographic location to process content inspection. Reserved for future
# extensions.
# When inspecting images location is restricted to 'global', 'us', 'asia',
# and 'europe'.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -5262,9 +5253,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectConfig]
attr_accessor :inspect_config
# The geographic location to process the request. Reserved for future
# extensions.
# Location is restricted to 'global', 'us', 'asia', and 'europe'.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id
@ -5370,8 +5359,7 @@ module Google
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ContentItem]
attr_accessor :item
# The geographic location to process content reidentification. Reserved for
# future extensions.
# Deprecated. This field has no effect.
# Corresponds to the JSON property `locationId`
# @return [String]
attr_accessor :location_id

View File

@ -60,8 +60,9 @@ module Google
# names. If omitted, or if localized strings are not available,
# en-US strings will be returned.
# @param [String] location_id
# The geographic location to list info types. Reserved for future
# extensions.
# Deprecated. This field has no effect.
# @param [String] parent
# The parent resource name, for example locations/`location_id`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -79,13 +80,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_info_types(filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_info_types(filter: nil, language_code: nil, location_id: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/infoTypes', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
command.query['filter'] = filter unless filter.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['locationId'] = location_id unless location_id.nil?
command.query['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)
@ -94,9 +96,8 @@ module Google
# Returns a list of the sensitive information types that the DLP API
# supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
# learn more.
# @param [String] location_id
# The geographic location to list info types. Reserved for future
# extensions.
# @param [String] parent
# The parent resource name, for example locations/`location_id`.
# @param [String] filter
# filter to only return infoTypes supported by certain parts of the
# API. Defaults to supported_by=INSPECT.
@ -104,6 +105,8 @@ module Google
# BCP-47 language code for localized infoType friendly
# names. If omitted, or if localized strings are not available,
# en-US strings will be returned.
# @param [String] location_id
# Deprecated. This field has no effect.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -121,13 +124,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_location_info_types(location_id, filter: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/locations/{locationId}/infoTypes', options)
def list_location_info_types(parent, filter: nil, language_code: nil, location_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/infoTypes', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInfoTypesResponse
command.params['locationId'] = location_id unless location_id.nil?
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -247,8 +251,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where deidentifications templates will be retrieved
# from. Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -445,8 +448,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where inspection templates will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -538,9 +540,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the deidentification template. Reserved
# for future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -559,14 +558,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_organization_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
def create_organization_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -649,8 +647,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where deidentifications templates will be retrieved
# from. Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -685,12 +682,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_organization_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
def list_organization_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -743,9 +740,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the inspection template. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -764,14 +758,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_organization_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
def create_organization_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -851,8 +844,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where inspection templates will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -887,12 +879,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_organization_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
def list_organization_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -943,9 +935,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the stored infoType. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -964,14 +953,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_organization_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
def create_organization_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -1053,8 +1041,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where stored infoTypes will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -1090,12 +1077,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_organization_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
def list_organization_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -1254,8 +1241,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where stored infoTypes will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -1572,8 +1558,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where deidentifications templates will be retrieved
# from. Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -1831,8 +1816,7 @@ module Google
# * end_time > \"2017-12-12T00:00:00+00:00\"
# The length of this field should be no more than 500 characters.
# @param [String] location_id
# The geographic location where jobs will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -2032,8 +2016,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where inspection templates will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -2277,8 +2260,7 @@ module Google
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
# The length of this field should be no more than 500 characters.
# @param [String] location_id
# The geographic location where job triggers will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of triggeredJob fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -2374,9 +2356,6 @@ module Google
# be all types, but may change over time as detectors are updated.
# @param [String] parent
# The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location to process de-identification. Reserved for future
# extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest] google_privacy_dlp_v2_deidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2395,14 +2374,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def deidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:deidentify', options)
def deidentify_project_location_content(parent, google_privacy_dlp_v2_deidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/content:deidentify', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentRequest::Representation
command.request_object = google_privacy_dlp_v2_deidentify_content_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyContentResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -2417,11 +2395,6 @@ module Google
# and https://cloud.google.com/dlp/docs/inspecting-text,
# @param [String] parent
# The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location to process content inspection. Reserved for future
# extensions.
# When inspecting images location is restricted to 'global', 'us', 'asia',
# and 'europe'.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest] google_privacy_dlp_v2_inspect_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2440,14 +2413,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def inspect_project_location_content(parent, location_id, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:inspect', options)
def inspect_project_location_content(parent, google_privacy_dlp_v2_inspect_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/content:inspect', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentRequest::Representation
command.request_object = google_privacy_dlp_v2_inspect_content_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectContentResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -2460,9 +2432,6 @@ module Google
# to learn more.
# @param [String] parent
# Required. The parent resource name.
# @param [String] location_id
# The geographic location to process content reidentification. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest] google_privacy_dlp_v2_reidentify_content_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2481,14 +2450,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def reidentify_project_location_content(parent, location_id, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/content:reidentify', options)
def reidentify_project_location_content(parent, google_privacy_dlp_v2_reidentify_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/content:reidentify', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentRequest::Representation
command.request_object = google_privacy_dlp_v2_reidentify_content_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ReidentifyContentResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -2501,9 +2469,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the deidentification template. Reserved
# for future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest] google_privacy_dlp_v2_create_deidentify_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2522,14 +2487,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_deidentify_template(parent, location_id, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
def create_project_location_deidentify_template(parent, google_privacy_dlp_v2_create_deidentify_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/deidentifyTemplates', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDeidentifyTemplateRequest::Representation
command.request_object = google_privacy_dlp_v2_create_deidentify_template_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DeidentifyTemplate
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -2612,8 +2576,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where deidentifications templates will be retrieved
# from. Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -2648,12 +2611,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_deidentify_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/deidentifyTemplates', options)
def list_project_location_deidentify_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/deidentifyTemplates', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -2745,9 +2708,6 @@ module Google
# be all types, but may change over time as detectors are updated.
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location to store and process the job. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest] google_privacy_dlp_v2_create_dlp_job_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -2766,14 +2726,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_dlp_job(parent, location_id, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
def create_project_location_dlp_job(parent, google_privacy_dlp_v2_create_dlp_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/dlpJobs', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDlpJobRequest::Representation
command.request_object = google_privacy_dlp_v2_create_dlp_job_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DlpJob
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -2926,9 +2885,6 @@ module Google
# https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location where jobs will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# @param [String] filter
# Allows filtering.
# Supported syntax:
@ -2953,6 +2909,8 @@ module Google
# * inspected_storage = cloud_storage AND (state = done OR state = canceled)
# * end_time > \"2017-12-12T00:00:00+00:00\"
# The length of this field should be no more than 500 characters.
# @param [String] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -2987,13 +2945,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_dlp_jobs(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/dlpJobs', options)
def list_project_location_dlp_jobs(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/dlpJobs', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDlpJobsResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -3012,10 +2970,6 @@ module Google
# be all types, but may change over time as detectors are updated.
# @param [String] parent
# The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location to process the request. Reserved for future
# extensions.
# Location is restricted to 'global', 'us', 'asia', and 'europe'.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest] google_privacy_dlp_v2_redact_image_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3034,14 +2988,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def redact_project_location_image(parent, location_id, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/image:redact', options)
def redact_project_location_image(parent, google_privacy_dlp_v2_redact_image_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/image:redact', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageRequest::Representation
command.request_object = google_privacy_dlp_v2_redact_image_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2RedactImageResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -3053,9 +3006,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the inspection template. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest] google_privacy_dlp_v2_create_inspect_template_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3074,14 +3024,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_inspect_template(parent, location_id, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
def create_project_location_inspect_template(parent, google_privacy_dlp_v2_create_inspect_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/inspectTemplates', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateInspectTemplateRequest::Representation
command.request_object = google_privacy_dlp_v2_create_inspect_template_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2InspectTemplate
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -3161,8 +3110,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where inspection templates will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -3197,12 +3145,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_inspect_templates(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/inspectTemplates', options)
def list_project_location_inspect_templates(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/inspectTemplates', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListInspectTemplatesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -3287,9 +3235,6 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id.
# @param [String] location_id
# The geographic location to store the job trigger. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest] google_privacy_dlp_v2_create_job_trigger_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3308,14 +3253,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_job_trigger(parent, location_id, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
def create_project_location_job_trigger(parent, google_privacy_dlp_v2_create_job_trigger_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/jobTriggers', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateJobTriggerRequest::Representation
command.request_object = google_privacy_dlp_v2_create_job_trigger_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2JobTrigger
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -3429,9 +3373,6 @@ module Google
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
# @param [String] parent
# Required. The parent resource name, for example `projects/my-project-id`.
# @param [String] location_id
# The geographic location where job triggers will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# @param [String] filter
# Allows filtering.
# Supported syntax:
@ -3452,6 +3393,8 @@ module Google
# * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
# * last_run_time > \"2017-12-12T00:00:00+00:00\"
# The length of this field should be no more than 500 characters.
# @param [String] location_id
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of triggeredJob fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -3488,13 +3431,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_job_triggers(parent, location_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/jobTriggers', options)
def list_project_location_job_triggers(parent, filter: nil, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/jobTriggers', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListJobTriggersResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -3544,9 +3487,6 @@ module Google
# @param [String] parent
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location to store the stored infoType. Reserved for
# future extensions.
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest] google_privacy_dlp_v2_create_stored_info_type_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -3565,14 +3505,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_stored_info_type(parent, location_id, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
def create_project_location_stored_info_type(parent, google_privacy_dlp_v2_create_stored_info_type_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+parent}/storedInfoTypes', options)
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateStoredInfoTypeRequest::Representation
command.request_object = google_privacy_dlp_v2_create_stored_info_type_request_object
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2StoredInfoType
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -3654,8 +3593,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where stored infoTypes will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,
@ -3691,12 +3629,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_stored_info_types(parent, location_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/locations/{locationId}/storedInfoTypes', options)
def list_project_location_stored_info_types(parent, location_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2/{+parent}/storedInfoTypes', options)
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse::Representation
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListStoredInfoTypesResponse
command.params['parent'] = parent unless parent.nil?
command.params['locationId'] = location_id unless location_id.nil?
command.query['locationId'] = location_id unless location_id.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?
@ -3855,8 +3793,7 @@ module Google
# Required. The parent resource name, for example projects/my-project-id or
# organizations/my-org-id.
# @param [String] location_id
# The geographic location where stored infoTypes will be retrieved from.
# Use `-` for all locations. Reserved for future extensions.
# Deprecated. This field has no effect.
# @param [String] order_by
# Comma separated list of fields to order by,
# followed by `asc` or `desc` postfix. This list is case-insensitive,

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1
VERSION = 'V1'
REVISION = '20200410'
REVISION = '20200519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -531,6 +531,9 @@ module Google
# 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.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum]
attr_accessor :requested_policy_version
@ -1795,10 +1798,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -1813,7 +1819,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -1891,6 +1899,9 @@ module Google
# the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -2110,10 +2121,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -2128,7 +2142,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -2166,8 +2182,7 @@ module Google
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta1
VERSION = 'V1beta1'
REVISION = '20200410'
REVISION = '20200519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -535,6 +535,9 @@ module Google
# 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.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum]
attr_accessor :requested_policy_version
@ -1703,10 +1706,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -1721,7 +1727,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -1799,6 +1807,9 @@ module Google
# the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -1955,10 +1966,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -1973,7 +1987,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -2011,8 +2027,7 @@ module Google
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask

View File

@ -26,7 +26,7 @@ module Google
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20200410'
REVISION = '20200519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -459,6 +459,9 @@ module Google
# 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.
# To learn which resources support conditions in their IAM policies, see the
# [IAM
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
# Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum]
attr_accessor :requested_policy_version
@ -1705,10 +1708,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -1723,7 +1729,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -1801,6 +1809,9 @@ module Google
# the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset.
# To learn which resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -1951,10 +1962,13 @@ module Google
# Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions; each `role` can be an IAM predefined role or a user-created
# custom role.
# Optionally, a `binding` can specify a `condition`, which is a logical
# expression that allows access to a resource only if the expression evaluates
# to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# For some types of Google Cloud resources, a `binding` can also specify a
# `condition`, which is a logical expression that allows access to a resource
# only if the expression evaluates to `true`. A condition can add constraints
# based on attributes of the request, the resource, or both. To learn which
# resources support conditions in their IAM policies, see the
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
# policies).
# **JSON example:**
# `
# "bindings": [
@ -1969,7 +1983,9 @@ module Google
# `,
# `
# "role": "roles/resourcemanager.organizationViewer",
# "members": ["user:eve@example.com"],
# "members": [
# "user:eve@example.com"
# ],
# "condition": `
# "title": "expirable access",
# "description": "Does not grant access after Sep 2020",
@ -2007,8 +2023,7 @@ module Google
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
# the fields in the mask will be modified. If no mask is provided, the
# following default mask is used:
# paths: "bindings, etag"
# This field is only used by Cloud IAM.
# `paths: "bindings, etag"`
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1
VERSION = 'V1'
REVISION = '20200516'
REVISION = '20200519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,137 @@ module Google
module Apis
module ServicenetworkingV1
# Metadata provided through GetOperation request for the LRO generated by
# AddDnsRecordSet API
class AddDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request to add a record set to a private managed DNS zone in the shared
# producer host project.
class AddDnsRecordSetRequest
include Google::Apis::Core::Hashable
# Required. The network that the consumer is using to connect with services.
# Must be in the form of projects/`project`/global/networks/`network`
# `project` is the project number, as in '12345'
# `network` is the network name.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network
# Represents a DNS record set resource.
# Corresponds to the JSON property `dnsRecordSet`
# @return [Google::Apis::ServicenetworkingV1::DnsRecordSet]
attr_accessor :dns_record_set
# Required. The name of the private DNS zone in the shared producer host project
# to
# which the record set will be added.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@dns_record_set = args[:dns_record_set] if args.key?(:dns_record_set)
@zone = args[:zone] if args.key?(:zone)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# AddDnsZone API
class AddDnsZoneMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request to add a private managed DNS zone in the shared producer host project
# and a matching DNS peering zone in the consumer project.
class AddDnsZoneRequest
include Google::Apis::Core::Hashable
# Required. The network that the consumer is using to connect with services.
# Must be in the form of projects/`project`/global/networks/`network`
# `project` is the project number, as in '12345'
# `network` is the network name.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network
# Required. The DNS name suffix for the zones e.g. `example.com`.
# Corresponds to the JSON property `dnsSuffix`
# @return [String]
attr_accessor :dns_suffix
# Required. The name for both the private zone in the shared producer host
# project and
# the peering zone in the consumer project. Must be unique within both
# projects. The name must be 1-63 characters long, must begin with a letter,
# end with a letter or digit, and only contain lowercase letters, digits or
# dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
@name = args[:name] if args.key?(:name)
end
end
# Represents managed DNS zones created in the shared producer host and consumer
# projects.
class AddDnsZoneResponse
include Google::Apis::Core::Hashable
# Represents a DNS zone resource.
# Corresponds to the JSON property `consumerPeeringZone`
# @return [Google::Apis::ServicenetworkingV1::DnsZone]
attr_accessor :consumer_peering_zone
# Represents a DNS zone resource.
# Corresponds to the JSON property `producerPrivateZone`
# @return [Google::Apis::ServicenetworkingV1::DnsZone]
attr_accessor :producer_private_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_peering_zone = args[:consumer_peering_zone] if args.key?(:consumer_peering_zone)
@producer_private_zone = args[:producer_private_zone] if args.key?(:producer_private_zone)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# AddRoles API
class AddRolesMetadata
@ -1011,6 +1142,72 @@ module Google
end
end
# Represents a DNS record set resource.
class DnsRecordSet
include Google::Apis::Core::Hashable
# Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for
# examples see https://cloud.google.com/dns/records/json-record.
# Corresponds to the JSON property `data`
# @return [Array<String>]
attr_accessor :data
# Required. The DNS or domain name of the record set, e.g. `test.example.com`.
# Corresponds to the JSON property `domain`
# @return [String]
attr_accessor :domain
# Required. The period of time for which this RecordSet can be cached by
# resolvers.
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
# Required. The identifier of a supported record type.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@domain = args[:domain] if args.key?(:domain)
@ttl = args[:ttl] if args.key?(:ttl)
@type = args[:type] if args.key?(:type)
end
end
# Represents a DNS zone resource.
class DnsZone
include Google::Apis::Core::Hashable
# The DNS name suffix of this zone e.g. `example.com.`.
# Corresponds to the JSON property `dnsSuffix`
# @return [String]
attr_accessor :dns_suffix
# User assigned name for this resource. Must be unique within the project.
# The name must be 1-63 characters long, must begin with a letter, end with
# a letter or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
@name = args[:name] if args.key?(:name)
end
end
# `Documentation` provides the information for describing a service.
# Example:
# <pre><code>documentation:
@ -3074,6 +3271,129 @@ module Google
end
end
# Metadata provided through GetOperation request for the LRO generated by
# RemoveDnsRecordSet API
class RemoveDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request to remove a record set from a private managed DNS zone in the shared
# producer host project. The name, type, ttl, and data values must all exactly
# match an existing record set in the specified zone.
class RemoveDnsRecordSetRequest
include Google::Apis::Core::Hashable
# Required. The network that the consumer is using to connect with services.
# Must be in the form of projects/`project`/global/networks/`network`
# `project` is the project number, as in '12345'
# `network` is the network name.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network
# Represents a DNS record set resource.
# Corresponds to the JSON property `dnsRecordSet`
# @return [Google::Apis::ServicenetworkingV1::DnsRecordSet]
attr_accessor :dns_record_set
# Required. The name of the private DNS zone in the shared producer host project
# from
# which the record set will be removed.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@dns_record_set = args[:dns_record_set] if args.key?(:dns_record_set)
@zone = args[:zone] if args.key?(:zone)
end
end
# Blank message response type for RemoveDnsRecordSet API
class RemoveDnsRecordSetResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# RemoveDnsZone API
class RemoveDnsZoneMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request to remove a private managed DNS zone in the shared producer host
# project and a matching DNS peering zone in the consumer project.
class RemoveDnsZoneRequest
include Google::Apis::Core::Hashable
# Required. The network that the consumer is using to connect with services.
# Must be in the form of projects/`project`/global/networks/`network`
# `project` is the project number, as in '12345'
# `network` is the network name.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network
# Required. The name for both the private zone in the shared producer host
# project and
# the peering zone in the consumer project.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@name = args[:name] if args.key?(:name)
end
end
# Blank message response type for RemoveDnsZone API
class RemoveDnsZoneResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a route that was created or discovered by a private access
# management service.
class Route
@ -3928,6 +4248,65 @@ module Google
end
end
# Metadata provided through GetOperation request for the LRO generated by
# UpdateDnsRecordSet API
class UpdateDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request to update a record set from a private managed DNS zone in the shared
# producer host project. The name, type, ttl, and data values of the existing
# record set must all exactly match an existing record set in the specified
# zone.
class UpdateDnsRecordSetRequest
include Google::Apis::Core::Hashable
# Required. The network that the consumer is using to connect with services.
# Must be in the form of projects/`project`/global/networks/`network`
# `project` is the project number, as in '12345'
# `network` is the network name.
# Corresponds to the JSON property `consumerNetwork`
# @return [String]
attr_accessor :consumer_network
# Represents a DNS record set resource.
# Corresponds to the JSON property `existingDnsRecordSet`
# @return [Google::Apis::ServicenetworkingV1::DnsRecordSet]
attr_accessor :existing_dns_record_set
# Represents a DNS record set resource.
# Corresponds to the JSON property `newDnsRecordSet`
# @return [Google::Apis::ServicenetworkingV1::DnsRecordSet]
attr_accessor :new_dns_record_set
# Required. The name of the private DNS zone in the shared producer host project
# from
# which the record set will be removed.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
@existing_dns_record_set = args[:existing_dns_record_set] if args.key?(:existing_dns_record_set)
@new_dns_record_set = args[:new_dns_record_set] if args.key?(:new_dns_record_set)
@zone = args[:zone] if args.key?(:zone)
end
end
# Configuration controlling usage of a service.
class Usage
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,36 @@ module Google
module Apis
module ServicenetworkingV1
class AddDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsRecordSetRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsZoneRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsZoneResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddRolesMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -160,6 +190,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DnsRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Documentation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -370,6 +412,42 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsRecordSetRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsRecordSetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsZoneRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsZoneResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Route
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -442,6 +520,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDnsRecordSetRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Usage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -466,6 +556,47 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AddDnsRecordSetRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :dns_record_set, as: 'dnsRecordSet', class: Google::Apis::ServicenetworkingV1::DnsRecordSet, decorator: Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
property :zone, as: 'zone'
end
end
class AddDnsZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AddDnsZoneRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :dns_suffix, as: 'dnsSuffix'
property :name, as: 'name'
end
end
class AddDnsZoneResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_peering_zone, as: 'consumerPeeringZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
property :producer_private_zone, as: 'producerPrivateZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
end
end
class AddRolesMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -684,6 +815,24 @@ module Google
end
end
class DnsRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data, as: 'data'
property :domain, as: 'domain'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class DnsZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_suffix, as: 'dnsSuffix'
property :name, as: 'name'
end
end
class Documentation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1050,6 +1199,48 @@ module Google
end
end
class RemoveDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsRecordSetRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :dns_record_set, as: 'dnsRecordSet', class: Google::Apis::ServicenetworkingV1::DnsRecordSet, decorator: Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
property :zone, as: 'zone'
end
end
class RemoveDnsRecordSetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsZoneRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :name, as: 'name'
end
end
class RemoveDnsZoneResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Route
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1206,6 +1397,24 @@ module Google
end
end
class UpdateDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UpdateDnsRecordSetRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_network, as: 'consumerNetwork'
property :existing_dns_record_set, as: 'existingDnsRecordSet', class: Google::Apis::ServicenetworkingV1::DnsRecordSet, decorator: Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
property :new_dns_record_set, as: 'newDnsRecordSet', class: Google::Apis::ServicenetworkingV1::DnsRecordSet, decorator: Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
property :zone, as: 'zone'
end
end
class Usage
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -530,6 +530,193 @@ module Google
execute_or_queue_command(command, &block)
end
# Service producers can use this method to add DNS record sets to private DNS
# zones in the shared producer host project.
# @param [String] parent
# Required. The service that is managing peering connectivity for a service
# producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::AddDnsRecordSetRequest] add_dns_record_set_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 add_dns_record_set(parent, add_dns_record_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/dnsRecordSets:add', options)
command.request_representation = Google::Apis::ServicenetworkingV1::AddDnsRecordSetRequest::Representation
command.request_object = add_dns_record_set_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
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
# Service producers can use this method to remove DNS record sets from
# private DNS zones in the shared producer host project.
# @param [String] parent
# Required. The service that is managing peering connectivity for a service
# producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::RemoveDnsRecordSetRequest] remove_dns_record_set_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 remove_dns_record_set(parent, remove_dns_record_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/dnsRecordSets:remove', options)
command.request_representation = Google::Apis::ServicenetworkingV1::RemoveDnsRecordSetRequest::Representation
command.request_object = remove_dns_record_set_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
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
# Service producers can use this method to update DNS record sets from
# private DNS zones in the shared producer host project.
# @param [String] parent
# Required. The service that is managing peering connectivity for a service
# producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::UpdateDnsRecordSetRequest] update_dns_record_set_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 update_dns_record_set(parent, update_dns_record_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/dnsRecordSets:update', options)
command.request_representation = Google::Apis::ServicenetworkingV1::UpdateDnsRecordSetRequest::Representation
command.request_object = update_dns_record_set_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
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
# Service producers can use this method to add private DNS zones in the
# shared producer host project and matching peering zones in the consumer
# project.
# @param [String] parent
# Required. The service that is managing peering connectivity for a service
# producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::AddDnsZoneRequest] add_dns_zone_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 add_dns_zone(parent, add_dns_zone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/dnsZones:add', options)
command.request_representation = Google::Apis::ServicenetworkingV1::AddDnsZoneRequest::Representation
command.request_object = add_dns_zone_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
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
# Service producers can use this method to remove private DNS zones in the
# shared producer host project and matching peering zones in the consumer
# project.
# @param [String] parent
# Required. The service that is managing peering connectivity for a service
# producer's
# organization. For Google services that support this functionality, this
# value is `services/servicenetworking.googleapis.com`.
# @param [Google::Apis::ServicenetworkingV1::RemoveDnsZoneRequest] remove_dns_zone_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::ServicenetworkingV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServicenetworkingV1::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 remove_dns_zone(parent, remove_dns_zone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/dnsZones:remove', options)
command.request_representation = Google::Apis::ServicenetworkingV1::RemoveDnsZoneRequest::Representation
command.request_object = remove_dns_zone_request_object
command.response_representation = Google::Apis::ServicenetworkingV1::Operation::Representation
command.response_class = Google::Apis::ServicenetworkingV1::Operation
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
# Service producers can use this method to add roles in the shared VPC host
# project. Each role is bound to the provided member. Each role must be
# selected from within a whitelisted set of roles. Each role is applied at

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta
VERSION = 'V1beta'
REVISION = '20200516'
REVISION = '20200519'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,60 @@ module Google
module Apis
module ServicenetworkingV1beta
# Metadata provided through GetOperation request for the LRO generated by
# AddDnsRecordSet API
class AddDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# AddDnsZone API
class AddDnsZoneMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents managed DNS zones created in the shared producer host and consumer
# projects.
class AddDnsZoneResponse
include Google::Apis::Core::Hashable
# Represents a DNS zone resource.
# Corresponds to the JSON property `consumerPeeringZone`
# @return [Google::Apis::ServicenetworkingV1beta::DnsZone]
attr_accessor :consumer_peering_zone
# Represents a DNS zone resource.
# Corresponds to the JSON property `producerPrivateZone`
# @return [Google::Apis::ServicenetworkingV1beta::DnsZone]
attr_accessor :producer_private_zone
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consumer_peering_zone = args[:consumer_peering_zone] if args.key?(:consumer_peering_zone)
@producer_private_zone = args[:producer_private_zone] if args.key?(:producer_private_zone)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# AddRoles API
class AddRolesMetadata
@ -912,6 +966,72 @@ module Google
end
end
# Represents a DNS record set resource.
class DnsRecordSet
include Google::Apis::Core::Hashable
# Required. As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1) for
# examples see https://cloud.google.com/dns/records/json-record.
# Corresponds to the JSON property `data`
# @return [Array<String>]
attr_accessor :data
# Required. The DNS or domain name of the record set, e.g. `test.example.com`.
# Corresponds to the JSON property `domain`
# @return [String]
attr_accessor :domain
# Required. The period of time for which this RecordSet can be cached by
# resolvers.
# Corresponds to the JSON property `ttl`
# @return [String]
attr_accessor :ttl
# Required. The identifier of a supported record type.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data = args[:data] if args.key?(:data)
@domain = args[:domain] if args.key?(:domain)
@ttl = args[:ttl] if args.key?(:ttl)
@type = args[:type] if args.key?(:type)
end
end
# Represents a DNS zone resource.
class DnsZone
include Google::Apis::Core::Hashable
# The DNS name suffix of this zone e.g. `example.com.`.
# Corresponds to the JSON property `dnsSuffix`
# @return [String]
attr_accessor :dns_suffix
# User assigned name for this resource. Must be unique within the project.
# The name must be 1-63 characters long, must begin with a letter, end with
# a letter or digit, and only contain lowercase letters, digits or dashes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dns_suffix = args[:dns_suffix] if args.key?(:dns_suffix)
@name = args[:name] if args.key?(:name)
end
end
# `Documentation` provides the information for describing a service.
# Example:
# <pre><code>documentation:
@ -2876,6 +2996,60 @@ module Google
end
end
# Metadata provided through GetOperation request for the LRO generated by
# RemoveDnsRecordSet API
class RemoveDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Blank message response type for RemoveDnsRecordSet API
class RemoveDnsRecordSetResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Metadata provided through GetOperation request for the LRO generated by
# RemoveDnsZone API
class RemoveDnsZoneMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Blank message response type for RemoveDnsZone API
class RemoveDnsZoneResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a route that was created or discovered by a private access
# management service.
class Route
@ -3732,6 +3906,20 @@ module Google
end
end
# Metadata provided through GetOperation request for the LRO generated by
# UpdateDnsRecordSet API
class UpdateDnsRecordSetMetadata
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration controlling usage of a service.
class Usage
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,24 @@ module Google
module Apis
module ServicenetworkingV1beta
class AddDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsZoneResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AddRolesMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +154,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DnsRecordSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DnsZone
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Documentation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -322,6 +352,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsRecordSetResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsZoneMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RemoveDnsZoneResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Route
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -394,6 +448,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDnsRecordSetMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Usage
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -406,6 +466,28 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AddDnsZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class AddDnsZoneResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :consumer_peering_zone, as: 'consumerPeeringZone', class: Google::Apis::ServicenetworkingV1beta::DnsZone, decorator: Google::Apis::ServicenetworkingV1beta::DnsZone::Representation
property :producer_private_zone, as: 'producerPrivateZone', class: Google::Apis::ServicenetworkingV1beta::DnsZone, decorator: Google::Apis::ServicenetworkingV1beta::DnsZone::Representation
end
end
class AddRolesMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -594,6 +676,24 @@ module Google
end
end
class DnsRecordSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data, as: 'data'
property :domain, as: 'domain'
property :ttl, as: 'ttl'
property :type, as: 'type'
end
end
class DnsZone
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dns_suffix, as: 'dnsSuffix'
property :name, as: 'name'
end
end
class Documentation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -930,6 +1030,30 @@ module Google
end
end
class RemoveDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsRecordSetResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsZoneMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class RemoveDnsZoneResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Route
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1086,6 +1210,12 @@ module Google
end
end
class UpdateDnsRecordSetMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Usage
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -20,12 +20,12 @@ module Google
module Apis
# Tasks API
#
# Manages your tasks and task lists.
# The Google Tasks API lets you manage your tasks and task lists.
#
# @see https://developers.google.com/google-apps/tasks/firstapp
# @see
module TasksV1
VERSION = 'V1'
REVISION = '20200129'
REVISION = '20200516'
# Create, edit, organize, and delete all your tasks
AUTH_TASKS = 'https://www.googleapis.com/auth/tasks'

View File

@ -26,24 +26,24 @@ module Google
class Task
include Google::Apis::Core::Hashable
# Completion date of the task (as a RFC 3339 timestamp). This field is omitted
# if the task has not been completed.
# Completion date of the task (as a RFC 3339 timestamp). This field is
# omitted if the task has not been completed.
# Corresponds to the JSON property `completed`
# @return [DateTime]
# @return [String]
attr_accessor :completed
# Flag indicating whether the task has been deleted. The default if False.
# Flag indicating whether the task has been deleted. The default is False.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
alias_method :deleted?, :deleted
# Due date of the task (as a RFC 3339 timestamp). Optional. The due date only
# records date information; the time portion of the timestamp is discarded when
# setting the due date. It isn't possible to read or write the time that a task
# is due via the API.
# records date information; the time portion of the timestamp is discarded
# when setting the due date. It isn't possible to read or write the time that
# a task is due via the API.
# Corresponds to the JSON property `due`
# @return [DateTime]
# @return [String]
attr_accessor :due
# ETag of the resource.
@ -51,9 +51,9 @@ module Google
# @return [String]
attr_accessor :etag
# Flag indicating whether the task is hidden. This is the case if the task had
# been marked completed when the task list was last cleared. The default is
# False. This field is read-only.
# Flag indicating whether the task is hidden. This is the case if the task
# had been marked completed when the task list was last cleared. The default
# is False. This field is read-only.
# Corresponds to the JSON property `hidden`
# @return [Boolean]
attr_accessor :hidden
@ -79,19 +79,19 @@ module Google
# @return [String]
attr_accessor :notes
# Parent task identifier. This field is omitted if it is a top-level task. This
# field is read-only. Use the "move" method to move the task under a different
# parent or to the top level.
# Parent task identifier. This field is omitted if it is a top-level task.
# This field is read-only. Use the "move" method to move the task under a
# different parent or to the top level.
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# String indicating the position of the task among its sibling tasks under the
# same parent task or at the top level. If this string is greater than another
# task's corresponding position string according to lexicographical ordering,
# the task is positioned after the other task under the same parent task (or at
# the top level). This field is read-only. Use the "move" method to move the
# task to another position.
# String indicating the position of the task among its sibling tasks under
# the same parent task or at the top level. If this string is greater than
# another task's corresponding position string according to lexicographical
# ordering, the task is positioned after the other task under the same parent
# task (or at the top level). This field is read-only. Use the "move" method
# to move the task to another position.
# Corresponds to the JSON property `position`
# @return [String]
attr_accessor :position
@ -113,7 +113,7 @@ module Google
# Last modification time of the task (as a RFC 3339 timestamp).
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
def initialize(**args)
@ -143,7 +143,8 @@ module Google
class Link
include Google::Apis::Core::Hashable
# The description. In HTML speak: Everything between <a> and </a>.
# The description. In HTML speak: Everything between &lt;a&gt; and
# &lt;/a&gt;.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
@ -190,8 +191,8 @@ module Google
# @return [String]
attr_accessor :kind
# URL pointing to this task list. Used to retrieve, update, or delete this task
# list.
# URL pointing to this task list. Used to retrieve, update, or delete this
# task list.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
@ -203,7 +204,7 @@ module Google
# Last modification time of the task list (as a RFC 3339 timestamp).
# Corresponds to the JSON property `updated`
# @return [DateTime]
# @return [String]
attr_accessor :updated
def initialize(**args)

View File

@ -55,11 +55,9 @@ module Google
class Task
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :completed, as: 'completed', type: DateTime
property :completed, as: 'completed'
property :deleted, as: 'deleted'
property :due, as: 'due', type: DateTime
property :due, as: 'due'
property :etag, as: 'etag'
property :hidden, as: 'hidden'
property :id, as: 'id'
@ -72,8 +70,7 @@ module Google
property :self_link, as: 'selfLink'
property :status, as: 'status'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
end
class Link
@ -94,8 +91,7 @@ module Google
property :kind, as: 'kind'
property :self_link, as: 'selfLink'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
property :updated, as: 'updated'
end
end

View File

@ -22,7 +22,7 @@ module Google
module TasksV1
# Tasks API
#
# Manages your tasks and task lists.
# The Google Tasks API lets you manage your tasks and task lists.
#
# @example
# require 'google/apis/tasks_v1'
@ -30,7 +30,7 @@ module Google
# Tasks = Google::Apis::TasksV1 # Alias the module
# service = Tasks::TasksService.new
#
# @see https://developers.google.com/google-apps/tasks/firstapp
# @see
class TasksService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -38,16 +38,12 @@ module Google
attr_accessor :key
# @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# 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
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize
super('https://www.googleapis.com/', 'tasks/v1/')
super('https://www.googleapis.com/', '')
@batch_path = 'batch/tasks/v1'
end
@ -57,10 +53,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -73,12 +67,11 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'users/@me/lists/{tasklist}', options)
def delete_tasklist(tasklist, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'tasks/v1/users/@me/lists/{tasklist}', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -88,10 +81,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -104,28 +95,23 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_tasklist(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/@me/lists/{tasklist}', options)
def get_tasklist(tasklist, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'tasks/v1/users/@me/lists/{tasklist}', options)
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a new task list and adds it to the authenticated user's task lists.
# Fails with HTTP code 403 or 429 after reaching the storage limit of 2,000
# lists.
# @param [Google::Apis::TasksV1::TaskList] task_list_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -138,31 +124,28 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'users/@me/lists', options)
def insert_tasklist(task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'tasks/v1/users/@me/lists', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
command.response_class = Google::Apis::TasksV1::TaskList
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns all the authenticated user's task lists.
# @param [Fixnum] max_results
# Maximum number of task lists returned on one page. Optional. The default is 20
# (max allowed: 100).
# Maximum number of task lists returned on one page. Optional. The default is
# 20 (max allowed: 100).
# @param [String] page_token
# Token specifying the result page to return. Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -175,15 +158,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'users/@me/lists', options)
def list_tasklists(max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'tasks/v1/users/@me/lists', options)
command.response_representation = Google::Apis::TasksV1::TaskLists::Representation
command.response_class = Google::Apis::TasksV1::TaskLists
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -195,10 +177,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -211,8 +191,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'users/@me/lists/{tasklist}', options)
def patch_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'tasks/v1/users/@me/lists/{tasklist}', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
@ -220,7 +200,6 @@ module Google
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -231,10 +210,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -247,8 +224,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'users/@me/lists/{tasklist}', options)
def update_tasklist(tasklist, task_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'tasks/v1/users/@me/lists/{tasklist}', options)
command.request_representation = Google::Apis::TasksV1::TaskList::Representation
command.request_object = task_list_object
command.response_representation = Google::Apis::TasksV1::TaskList::Representation
@ -256,7 +233,6 @@ module Google
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -268,10 +244,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -284,12 +258,11 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def clear_task(tasklist, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'lists/{tasklist}/clear', options)
def clear_task(tasklist, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/clear', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -301,10 +274,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -317,13 +288,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'lists/{tasklist}/tasks/{task}', options)
def delete_task(tasklist, task, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
command.params['tasklist'] = tasklist unless tasklist.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -335,10 +305,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -351,20 +319,18 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_task(tasklist, task, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'lists/{tasklist}/tasks/{task}', options)
def get_task(tasklist, task, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a new task on the specified task list. Fails with HTTP code 403 or 429
# after reaching the storage limit of 100,000 tasks per account.
# Creates a new task on the specified task list.
# @param [String] tasklist
# Task list identifier.
# @param [Google::Apis::TasksV1::Task] task_object
@ -372,15 +338,13 @@ module Google
# Parent task identifier. If the task is created at the top level, this
# parameter is omitted. Optional.
# @param [String] previous
# Previous sibling task identifier. If the task is created at the first position
# among its siblings, this parameter is omitted. Optional.
# Previous sibling task identifier. If the task is created at the first
# position among its siblings, this parameter is omitted. Optional.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -393,8 +357,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'lists/{tasklist}/tasks', options)
def insert_task(tasklist, task_object = nil, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
@ -404,7 +368,6 @@ module Google
command.query['previous'] = previous unless previous.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -412,11 +375,11 @@ module Google
# @param [String] tasklist
# Task list identifier.
# @param [String] completed_max
# Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter
# by. Optional. The default is not to filter by completion date.
# Upper bound for a task's completion date (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by completion date.
# @param [String] completed_min
# Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter
# by. Optional. The default is not to filter by completion date.
# Lower bound for a task's completion date (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by completion date.
# @param [String] due_max
# Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by.
# Optional. The default is not to filter by due date.
@ -424,29 +387,28 @@ module Google
# Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by.
# Optional. The default is not to filter by due date.
# @param [Fixnum] max_results
# Maximum number of task lists returned on one page. Optional. The default is 20
# (max allowed: 100).
# Maximum number of task lists returned on one page. Optional. The default is
# 20 (max allowed: 100).
# @param [String] page_token
# Token specifying the result page to return. Optional.
# @param [Boolean] show_completed
# Flag indicating whether completed tasks are returned in the result. Optional.
# The default is True.
# Flag indicating whether completed tasks are returned in the result.
# Optional. The default is True.
# @param [Boolean] show_deleted
# Flag indicating whether deleted tasks are returned in the result. Optional.
# The default is False.
# @param [Boolean] show_hidden
# Flag indicating whether hidden tasks are returned in the result. Optional. The
# default is False.
# Flag indicating whether hidden tasks are returned in the result. Optional.
# The default is False.
# @param [String] updated_min
# Lower bound for a task's last modification time (as a RFC 3339 timestamp) to
# filter by. Optional. The default is not to filter by last modification time.
# Lower bound for a task's last modification time (as a RFC 3339 timestamp)
# to filter by. Optional. The default is not to filter by last modification
# time.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -459,8 +421,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'lists/{tasklist}/tasks', options)
def list_tasks(tasklist, completed_max: nil, completed_min: nil, due_max: nil, due_min: nil, max_results: nil, page_token: nil, show_completed: nil, show_deleted: nil, show_hidden: nil, updated_min: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'tasks/v1/lists/{tasklist}/tasks', options)
command.response_representation = Google::Apis::TasksV1::Tasks::Representation
command.response_class = Google::Apis::TasksV1::Tasks
command.params['tasklist'] = tasklist unless tasklist.nil?
@ -476,7 +438,6 @@ module Google
command.query['updatedMin'] = updated_min unless updated_min.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -496,10 +457,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -512,8 +471,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'lists/{tasklist}/tasks/{task}/move', options)
def move_task(tasklist, task, parent: nil, previous: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'tasks/v1/lists/{tasklist}/tasks/{task}/move', options)
command.response_representation = Google::Apis::TasksV1::Task::Representation
command.response_class = Google::Apis::TasksV1::Task
command.params['tasklist'] = tasklist unless tasklist.nil?
@ -522,7 +481,6 @@ module Google
command.query['previous'] = previous unless previous.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -535,10 +493,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -551,8 +507,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'lists/{tasklist}/tasks/{task}', options)
def patch_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
@ -561,7 +517,6 @@ module Google
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -574,10 +529,8 @@ module Google
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# 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
#
@ -590,8 +543,8 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'lists/{tasklist}/tasks/{task}', options)
def update_task(tasklist, task, task_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'tasks/v1/lists/{tasklist}/tasks/{task}', options)
command.request_representation = Google::Apis::TasksV1::Task::Representation
command.request_object = task_object
command.response_representation = Google::Apis::TasksV1::Task::Representation
@ -600,7 +553,6 @@ module Google
command.params['task'] = task unless task.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
@ -609,7 +561,6 @@ module Google
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end
end
end

View File

@ -18,15 +18,15 @@ require 'google/apis/youtube_v3/representations.rb'
module Google
module Apis
# YouTube Data API
# YouTube Data API v3
#
# Supports core YouTube features, such as uploading videos, creating and
# managing playlists, searching for content, and much more.
# The YouTube Data API v3 is an API that provides access to YouTube data, such
# as videos, playlists, and channels.
#
# @see https://developers.google.com/youtube/v3
# @see https://developers.google.com/youtube/
module YoutubeV3
VERSION = 'V3'
REVISION = '20200423'
REVISION = '20200518'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

File diff suppressed because it is too large Load Diff

View File

@ -298,6 +298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CommentSnippetAuthorChannelId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommentThread
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -544,36 +550,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatPollClosedDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatPollEditedDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatPollItem
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatPollOpenedDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatPollVotedDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiveChatSuperChatDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -712,18 +688,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Nonprofit
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NonprofitId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PageInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1030,12 +994,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GetVideoRatingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListVideosResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1090,6 +1048,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VideoRatingListResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VideoRecordingDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1316,8 +1280,7 @@ module Google
property :channel_title, as: 'channelTitle'
property :description, as: 'description'
property :group_id, as: 'groupId'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
property :title, as: 'title'
@ -1359,8 +1322,7 @@ module Google
property :is_easy_reader, as: 'isEasyReader'
property :is_large, as: 'isLarge'
property :language, as: 'language'
property :last_updated, as: 'lastUpdated', type: DateTime
property :last_updated, as: 'lastUpdated'
property :name, as: 'name'
property :status, as: 'status'
property :track_kind, as: 'trackKind'
@ -1466,8 +1428,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_owner, as: 'contentOwner'
property :time_linked, as: 'timeLinked', type: DateTime
property :time_linked, as: 'timeLinked'
end
end
@ -1619,8 +1580,7 @@ module Google
property :description, as: 'description'
property :localized, as: 'localized', class: Google::Apis::YoutubeV3::ChannelLocalization, decorator: Google::Apis::YoutubeV3::ChannelLocalization::Representation
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
property :title, as: 'title'
@ -1688,7 +1648,8 @@ module Google
class CommentSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :author_channel_id, as: 'authorChannelId'
property :author_channel_id, as: 'authorChannelId', class: Google::Apis::YoutubeV3::CommentSnippetAuthorChannelId, decorator: Google::Apis::YoutubeV3::CommentSnippetAuthorChannelId::Representation
property :author_channel_url, as: 'authorChannelUrl'
property :author_display_name, as: 'authorDisplayName'
property :author_profile_image_url, as: 'authorProfileImageUrl'
@ -1697,17 +1658,22 @@ module Google
property :like_count, as: 'likeCount'
property :moderation_status, as: 'moderationStatus'
property :parent_id, as: 'parentId'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :text_display, as: 'textDisplay'
property :text_original, as: 'textOriginal'
property :updated_at, as: 'updatedAt', type: DateTime
property :updated_at, as: 'updatedAt'
property :video_id, as: 'videoId'
property :viewer_rating, as: 'viewerRating'
end
end
class CommentSnippetAuthorChannelId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
end
end
class CommentThread
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1982,6 +1948,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :backup_ingestion_address, as: 'backupIngestionAddress'
property :ingestion_address, as: 'ingestionAddress'
property :rtmps_backup_ingestion_address, as: 'rtmpsBackupIngestionAddress'
property :rtmps_ingestion_address, as: 'rtmpsIngestionAddress'
property :stream_name, as: 'streamName'
end
end
@ -2064,8 +2032,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bound_stream_id, as: 'boundStreamId'
property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs', type: DateTime
property :bound_stream_last_update_time_ms, as: 'boundStreamLastUpdateTimeMs'
property :closed_captions_type, as: 'closedCaptionsType'
property :enable_auto_start, as: 'enableAutoStart'
property :enable_auto_stop, as: 'enableAutoStop'
@ -2081,7 +2048,6 @@ module Google
property :projection, as: 'projection'
property :record_from_start, as: 'recordFromStart'
property :start_with_slate, as: 'startWithSlate'
property :stereo_layout, as: 'stereoLayout'
end
end
@ -2106,21 +2072,15 @@ module Google
class LiveBroadcastSnippet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :actual_end_time, as: 'actualEndTime', type: DateTime
property :actual_start_time, as: 'actualStartTime', type: DateTime
property :broadcast_type, as: 'broadcastType'
property :actual_end_time, as: 'actualEndTime'
property :actual_start_time, as: 'actualStartTime'
property :channel_id, as: 'channelId'
property :description, as: 'description'
property :is_default_broadcast, as: 'isDefaultBroadcast'
property :live_chat_id, as: 'liveChatId'
property :published_at, as: 'publishedAt', type: DateTime
property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
property :scheduled_start_time, as: 'scheduledStartTime', type: DateTime
property :published_at, as: 'publishedAt'
property :scheduled_end_time, as: 'scheduledEndTime'
property :scheduled_start_time, as: 'scheduledStartTime'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
property :title, as: 'title'
@ -2130,7 +2090,6 @@ module Google
class LiveBroadcastStatistics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :concurrent_viewers, :numeric_string => true, as: 'concurrentViewers'
property :total_chat_count, :numeric_string => true, as: 'totalChatCount'
end
end
@ -2222,8 +2181,7 @@ module Google
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :offline_at, as: 'offlineAt', type: DateTime
property :offline_at, as: 'offlineAt'
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
property :polling_interval_millis, as: 'pollingIntervalMillis'
@ -2253,16 +2211,7 @@ module Google
property :message_retracted_details, as: 'messageRetractedDetails', class: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails, decorator: Google::Apis::YoutubeV3::LiveChatMessageRetractedDetails::Representation
property :poll_closed_details, as: 'pollClosedDetails', class: Google::Apis::YoutubeV3::LiveChatPollClosedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollClosedDetails::Representation
property :poll_edited_details, as: 'pollEditedDetails', class: Google::Apis::YoutubeV3::LiveChatPollEditedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollEditedDetails::Representation
property :poll_opened_details, as: 'pollOpenedDetails', class: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollOpenedDetails::Representation
property :poll_voted_details, as: 'pollVotedDetails', class: Google::Apis::YoutubeV3::LiveChatPollVotedDetails, decorator: Google::Apis::YoutubeV3::LiveChatPollVotedDetails::Representation
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :super_chat_details, as: 'superChatDetails', class: Google::Apis::YoutubeV3::LiveChatSuperChatDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperChatDetails::Representation
property :super_sticker_details, as: 'superStickerDetails', class: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails, decorator: Google::Apis::YoutubeV3::LiveChatSuperStickerDetails::Representation
@ -2313,49 +2262,6 @@ module Google
end
end
class LiveChatPollClosedDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :poll_id, as: 'pollId'
end
end
class LiveChatPollEditedDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation
property :prompt, as: 'prompt'
end
end
class LiveChatPollItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :item_id, as: 'itemId'
end
end
class LiveChatPollOpenedDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::LiveChatPollItem, decorator: Google::Apis::YoutubeV3::LiveChatPollItem::Representation
property :prompt, as: 'prompt'
end
end
class LiveChatPollVotedDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :item_id, as: 'itemId'
property :poll_id, as: 'pollId'
end
end
class LiveChatSuperChatDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2465,8 +2371,7 @@ module Google
property :channel_id, as: 'channelId'
property :description, as: 'description'
property :is_default_stream, as: 'isDefaultStream'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :title, as: 'title'
end
end
@ -2608,22 +2513,6 @@ module Google
end
end
class Nonprofit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :nonprofit_id, as: 'nonprofitId', class: Google::Apis::YoutubeV3::NonprofitId, decorator: Google::Apis::YoutubeV3::NonprofitId::Representation
property :nonprofit_legal_name, as: 'nonprofitLegalName'
end
end
class NonprofitId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
end
end
class PageInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2680,8 +2569,7 @@ module Google
property :note, as: 'note'
property :start_at, as: 'startAt'
property :video_id, as: 'videoId'
property :video_published_at, as: 'videoPublishedAt', type: DateTime
property :video_published_at, as: 'videoPublishedAt'
end
end
@ -2711,8 +2599,7 @@ module Google
property :description, as: 'description'
property :playlist_id, as: 'playlistId'
property :position, as: 'position'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :resource_id, as: 'resourceId', class: Google::Apis::YoutubeV3::ResourceId, decorator: Google::Apis::YoutubeV3::ResourceId::Representation
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
@ -2770,8 +2657,7 @@ module Google
property :description, as: 'description'
property :localized, as: 'localized', class: Google::Apis::YoutubeV3::PlaylistLocalization, decorator: Google::Apis::YoutubeV3::PlaylistLocalization::Representation
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
collection :tags, as: 'tags'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
@ -2864,8 +2750,7 @@ module Google
property :channel_title, as: 'channelTitle'
property :description, as: 'description'
property :live_broadcast_content, as: 'liveBroadcastContent'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
property :title, as: 'title'
@ -2906,8 +2791,7 @@ module Google
property :cumulative_duration_months, as: 'cumulativeDurationMonths'
property :sponsor_details, as: 'sponsorDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
property :sponsor_since, as: 'sponsorSince', type: DateTime
property :sponsor_since, as: 'sponsorSince'
end
end
@ -2959,8 +2843,7 @@ module Google
property :channel_id, as: 'channelId'
property :channel_title, as: 'channelTitle'
property :description, as: 'description'
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
property :resource_id, as: 'resourceId', class: Google::Apis::YoutubeV3::ResourceId, decorator: Google::Apis::YoutubeV3::ResourceId::Representation
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
@ -3014,15 +2897,11 @@ module Google
property :amount_micros, :numeric_string => true, as: 'amountMicros'
property :channel_id, as: 'channelId'
property :comment_text, as: 'commentText'
property :created_at, as: 'createdAt', type: DateTime
property :created_at, as: 'createdAt'
property :currency, as: 'currency'
property :display_string, as: 'displayString'
property :is_super_chat_for_good, as: 'isSuperChatForGood'
property :is_super_sticker_event, as: 'isSuperStickerEvent'
property :message_type, as: 'messageType'
property :nonprofit, as: 'nonprofit', class: Google::Apis::YoutubeV3::Nonprofit, decorator: Google::Apis::YoutubeV3::Nonprofit::Representation
property :super_sticker_metadata, as: 'superStickerMetadata', class: Google::Apis::YoutubeV3::SuperStickerMetadata, decorator: Google::Apis::YoutubeV3::SuperStickerMetadata::Representation
property :supporter_details, as: 'supporterDetails', class: Google::Apis::YoutubeV3::ChannelProfileDetails, decorator: Google::Apis::YoutubeV3::ChannelProfileDetails::Representation
@ -3287,18 +3166,6 @@ module Google
end
end
class GetVideoRatingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
property :kind, as: 'kind'
property :visitor_id, as: 'visitorId'
end
end
class ListVideosResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3321,15 +3188,11 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :active_live_chat_id, as: 'activeLiveChatId'
property :actual_end_time, as: 'actualEndTime', type: DateTime
property :actual_start_time, as: 'actualStartTime', type: DateTime
property :actual_end_time, as: 'actualEndTime'
property :actual_start_time, as: 'actualStartTime'
property :concurrent_viewers, :numeric_string => true, as: 'concurrentViewers'
property :scheduled_end_time, as: 'scheduledEndTime', type: DateTime
property :scheduled_start_time, as: 'scheduledStartTime', type: DateTime
property :scheduled_end_time, as: 'scheduledEndTime'
property :scheduled_start_time, as: 'scheduledStartTime'
end
end
@ -3397,14 +3260,25 @@ module Google
end
end
class VideoRatingListResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :event_id, as: 'eventId'
collection :items, as: 'items', class: Google::Apis::YoutubeV3::VideoRating, decorator: Google::Apis::YoutubeV3::VideoRating::Representation
property :kind, as: 'kind'
property :visitor_id, as: 'visitorId'
end
end
class VideoRecordingDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location', class: Google::Apis::YoutubeV3::GeoPoint, decorator: Google::Apis::YoutubeV3::GeoPoint::Representation
property :location_description, as: 'locationDescription'
property :recording_date, as: 'recordingDate', type: DateTime
property :recording_date, as: 'recordingDate'
end
end
@ -3420,8 +3294,7 @@ module Google
property :live_broadcast_content, as: 'liveBroadcastContent'
property :localized, as: 'localized', class: Google::Apis::YoutubeV3::VideoLocalization, decorator: Google::Apis::YoutubeV3::VideoLocalization::Representation
property :published_at, as: 'publishedAt', type: DateTime
property :published_at, as: 'publishedAt'
collection :tags, as: 'tags'
property :thumbnails, as: 'thumbnails', class: Google::Apis::YoutubeV3::ThumbnailDetails, decorator: Google::Apis::YoutubeV3::ThumbnailDetails::Representation
@ -3449,8 +3322,7 @@ module Google
property :made_for_kids, as: 'madeForKids'
property :privacy_status, as: 'privacyStatus'
property :public_stats_viewable, as: 'publicStatsViewable'
property :publish_at, as: 'publishAt', type: DateTime
property :publish_at, as: 'publishAt'
property :rejection_reason, as: 'rejectionReason'
property :self_declared_made_for_kids, as: 'selfDeclaredMadeForKids'
property :upload_status, as: 'uploadStatus'

File diff suppressed because it is too large Load Diff