Autogenerated update (2019-01-31)
Update: - cloudasset_v1beta1 - cloudresourcemanager_v1 - cloudresourcemanager_v1beta1 - dlp_v2 - iam_v1 - storagetransfer_v1 - youtube_v3
This commit is contained in:
1 parent
9b43faa06e
commit
b2eff01c7f
22 files changed
+4929
-30
No files matched your search
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://console.cloud.google.com/apis/api/cloudasset.googleapis.com/overview
|
||||
module CloudassetV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20181204'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -47,11 +47,84 @@ module Google
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Exports assets with time and resource types to a given Cloud Storage
|
||||
# location. The output format is newline-delimited JSON.
|
||||
# This API implements the google.longrunning.Operation API allowing you
|
||||
# to keep track of the export.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id"), a project number (such as "projects/12345"), or
|
||||
# a folder number (such as "folders/123").
|
||||
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_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::CloudassetV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudassetV1beta1::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 export_folder_assets(parent, export_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+parent}:exportAssets', options)
|
||||
command.request_representation = Google::Apis::CloudassetV1beta1::ExportAssetsRequest::Representation
|
||||
command.request_object = export_assets_request_object
|
||||
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudassetV1beta1::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
|
||||
|
||||
# Gets the latest state of a long-running operation. Clients can use this
|
||||
# method to poll the operation result at intervals as recommended by the API
|
||||
# service.
|
||||
# @param [String] name
|
||||
# The name of the operation resource.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudassetV1beta1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudassetV1beta1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_folder_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
||||
command.response_representation = Google::Apis::CloudassetV1beta1::Operation::Representation
|
||||
command.response_class = Google::Apis::CloudassetV1beta1::Operation
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Batch gets the update history of assets that overlap a time window.
|
||||
# For RESOURCE content, this API outputs history with asset in both
|
||||
# non-delete or deleted status.
|
||||
# For IAM_POLICY content, this API outputs history when the asset and its
|
||||
# attached IAM POLICY both exist. This can create gaps in the output history.
|
||||
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
||||
# error.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. It can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
@@ -109,9 +182,9 @@ module Google
|
||||
# to keep track of the export.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization
|
||||
# number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id"), or a project number (such as "projects/12345").
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id"), a project number (such as "projects/12345"), or
|
||||
# a folder number (such as "folders/123").
|
||||
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -179,6 +252,8 @@ module Google
|
||||
# non-delete or deleted status.
|
||||
# For IAM_POLICY content, this API outputs history when the asset and its
|
||||
# attached IAM POLICY both exist. This can create gaps in the output history.
|
||||
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
||||
# error.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. It can only be an
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
@@ -236,9 +311,9 @@ module Google
|
||||
# to keep track of the export.
|
||||
# @param [String] parent
|
||||
# Required. The relative name of the root asset. This can only be an
|
||||
# organization
|
||||
# number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id"), or a project number (such as "projects/12345").
|
||||
# organization number (such as "organizations/123"), a project ID (such as
|
||||
# "projects/my-project-id"), a project number (such as "projects/12345"), or
|
||||
# a folder number (such as "folders/123").
|
||||
# @param [Google::Apis::CloudassetV1beta1::ExportAssetsRequest] export_assets_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20181015'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -465,7 +465,9 @@ module Google
|
||||
|
||||
# Fetches an Organization resource identified by the specified resource name.
|
||||
# @param [String] name
|
||||
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
||||
# The resource name of the Organization to fetch. This is the organization's
|
||||
# relative path in the API, formatted as "organizations/[organizationId]".
|
||||
# For example, "organizations/1234".
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/resource-manager
|
||||
module CloudresourcemanagerV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20181015'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -50,7 +50,9 @@ module Google
|
||||
|
||||
# Fetches an Organization resource identified by the specified resource name.
|
||||
# @param [String] name
|
||||
# The resource name of the Organization to fetch, e.g. "organizations/1234".
|
||||
# The resource name of the Organization to fetch. This is the organization's
|
||||
# relative path in the API, formatted as "organizations/[organizationId]".
|
||||
# For example, "organizations/1234".
|
||||
# @param [String] organization_id
|
||||
# The id of the Organization resource to fetch.
|
||||
# This field is deprecated and will be removed in v1. Use name instead.
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/dlp/docs/
|
||||
module DlpV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20181229'
|
||||
REVISION = '20190129'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -27,6 +27,12 @@ module Google
|
||||
class GooglePrivacyDlpV2Action
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Enable email notification to project owners and editors on jobs's
|
||||
# completion/failure.
|
||||
# Corresponds to the JSON property `jobNotificationEmails`
|
||||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails]
|
||||
attr_accessor :job_notification_emails
|
||||
|
||||
# Publish the results of a DlpJob to a pub sub channel.
|
||||
# Compatible with: Inspect, Risk
|
||||
# Corresponds to the JSON property `pubSub`
|
||||
@@ -61,6 +67,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@job_notification_emails = args[:job_notification_emails] if args.key?(:job_notification_emails)
|
||||
@pub_sub = args[:pub_sub] if args.key?(:pub_sub)
|
||||
@publish_summary_to_cscc = args[:publish_summary_to_cscc] if args.key?(:publish_summary_to_cscc)
|
||||
@save_findings = args[:save_findings] if args.key?(:save_findings)
|
||||
@@ -3057,6 +3064,20 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Enable email notification to project owners and editors on jobs's
|
||||
# completion/failure.
|
||||
class GooglePrivacyDlpV2JobNotificationEmails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Contains a configuration to make dlp api calls on a repeating basis.
|
||||
# See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
|
||||
class GooglePrivacyDlpV2JobTrigger
|
||||
@@ -4658,6 +4679,12 @@ module Google
|
||||
class GooglePrivacyDlpV2Regex
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The index of the submatch to extract as findings. When not
|
||||
# specified, the entire match is returned. No more than 3 may be included.
|
||||
# Corresponds to the JSON property `groupIndexes`
|
||||
# @return [Array<Fixnum>]
|
||||
attr_accessor :group_indexes
|
||||
|
||||
# Pattern defining the regular expression. Its syntax
|
||||
# (https://github.com/google/re2/wiki/Syntax) can be found under the
|
||||
# google/re2 repository on GitHub.
|
||||
@@ -4671,6 +4698,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_indexes = args[:group_indexes] if args.key?(:group_indexes)
|
||||
@pattern = args[:pattern] if args.key?(:pattern)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -502,6 +502,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GooglePrivacyDlpV2JobNotificationEmails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GooglePrivacyDlpV2JobTrigger
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1039,6 +1045,8 @@ module Google
|
||||
class GooglePrivacyDlpV2Action
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :job_notification_emails, as: 'jobNotificationEmails', class: Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2JobNotificationEmails::Representation
|
||||
|
||||
property :pub_sub, as: 'pubSub', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishToPubSub::Representation
|
||||
|
||||
property :publish_summary_to_cscc, as: 'publishSummaryToCscc', class: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2PublishSummaryToCscc::Representation
|
||||
@@ -1880,6 +1888,12 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GooglePrivacyDlpV2JobNotificationEmails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class GooglePrivacyDlpV2JobTrigger
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2369,6 +2383,7 @@ module Google
|
||||
class GooglePrivacyDlpV2Regex
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :group_indexes, as: 'groupIndexes'
|
||||
property :pattern, as: 'pattern'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1524,6 +1524,26 @@ module Google
|
||||
# See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
||||
# @param [String] parent
|
||||
# The parent resource name, for example `projects/my-project-id`.
|
||||
# @param [String] filter
|
||||
# Optional. Allows filtering.
|
||||
# Supported syntax:
|
||||
# * Filter expressions are made up of one or more restrictions.
|
||||
# * Restrictions can be combined by `AND` or `OR` logical operators. A
|
||||
# sequence of restrictions implicitly uses `AND`.
|
||||
# * A restriction has the form of `<field> <operator> <value>`.
|
||||
# * Supported fields/values for inspect jobs:
|
||||
# - `status` - HEALTHY|PAUSED|CANCELLED
|
||||
# - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
||||
# - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
||||
# quotation marks. Nanoseconds are ignored.
|
||||
# - 'error_count' - Number of errors that have occurred while running.
|
||||
# * The operator must be `=` or `!=` for status and inspected_storage.
|
||||
# Examples:
|
||||
# * inspected_storage = cloud_storage AND status = HEALTHY
|
||||
# * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
||||
# * 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] order_by
|
||||
# Optional comma separated list of triggeredJob fields to order by,
|
||||
# followed by `asc` or `desc` postfix. This list is case-insensitive,
|
||||
@@ -1533,6 +1553,7 @@ module Google
|
||||
# Supported fields are:
|
||||
# - `create_time`: corresponds to time the JobTrigger was created.
|
||||
# - `update_time`: corresponds to time the JobTrigger was last updated.
|
||||
# - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
||||
# - `name`: corresponds to JobTrigger's name.
|
||||
# - `display_name`: corresponds to JobTrigger's display name.
|
||||
# - `status`: corresponds to JobTrigger's status.
|
||||
@@ -1559,11 +1580,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_job_triggers(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_project_job_triggers(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '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.query['filter'] = filter unless filter.nil?
|
||||
command.query['orderBy'] = order_by unless order_by.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
|
||||
@@ -27,7 +27,7 @@ module Google
|
||||
# @see https://cloud.google.com/iam/
|
||||
module IamV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190111'
|
||||
REVISION = '20190125'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -871,6 +871,10 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# **Note**: This method is in the process of being deprecated. Call the
|
||||
# [`signBlob()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/
|
||||
# signBlob)
|
||||
# method of the Cloud IAM Service Account Credentials API instead.
|
||||
# Signs a blob using a service account's system-managed private key.
|
||||
# @param [String] name
|
||||
# The resource name of the service account in the following format:
|
||||
@@ -908,6 +912,10 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# **Note**: This method is in the process of being deprecated. Call the
|
||||
# [`signJwt()`](/iam/credentials/reference/rest/v1/projects.serviceAccounts/
|
||||
# signJwt)
|
||||
# method of the Cloud IAM Service Account Credentials API instead.
|
||||
# Signs a JWT using a service account's system-managed private key.
|
||||
# If no expiry time (`exp`) is provided in the `SignJwtRequest`, IAM sets an
|
||||
# an expiry time of one hour by default. If you request an expiry time of
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/storage/transfer
|
||||
module StoragetransferV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180919'
|
||||
REVISION = '20190128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -187,6 +187,8 @@ module Google
|
||||
attr_accessor :error_count
|
||||
|
||||
# Error samples.
|
||||
# No more than 100 error log entries may be recorded for a given
|
||||
# error code for a single task.
|
||||
# Corresponds to the JSON property `errorLogEntries`
|
||||
# @return [Array<Google::Apis::StoragetransferV1::ErrorLogEntry>]
|
||||
attr_accessor :error_log_entries
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/videointelligence_v1p2beta1/service.rb'
|
||||
require 'google/apis/videointelligence_v1p2beta1/classes.rb'
|
||||
require 'google/apis/videointelligence_v1p2beta1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Cloud Video Intelligence API
|
||||
#
|
||||
# Detects objects, explicit content, and scene changes in videos. It also
|
||||
# specifies the region for annotation and transcribes speech to text.
|
||||
#
|
||||
# @see https://cloud.google.com/video-intelligence/docs/
|
||||
module VideointelligenceV1p2beta1
|
||||
VERSION = 'V1p2beta1'
|
||||
REVISION = '20190122'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,93 @@
|
||||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module VideointelligenceV1p2beta1
|
||||
# Cloud Video Intelligence API
|
||||
#
|
||||
# Detects objects, explicit content, and scene changes in videos. It also
|
||||
# specifies the region for annotation and transcribes speech to text.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/videointelligence_v1p2beta1'
|
||||
#
|
||||
# Videointelligence = Google::Apis::VideointelligenceV1p2beta1 # Alias the module
|
||||
# service = Videointelligence::CloudVideoIntelligenceService.new
|
||||
#
|
||||
# @see https://cloud.google.com/video-intelligence/docs/
|
||||
class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://videointelligence.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Performs asynchronous video annotation. Progress and results can be
|
||||
# retrieved through the `google.longrunning.Operations` interface.
|
||||
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
|
||||
# `Operation.response` contains `AnnotateVideoResponse` (results).
|
||||
# @param [Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p2beta1_annotate_video_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::VideointelligenceV1p2beta1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @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 annotate_video(google_cloud_videointelligence_v1p2beta1_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1p2beta1/videos:annotate', options)
|
||||
command.request_representation = Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1AnnotateVideoRequest::Representation
|
||||
command.request_object = google_cloud_videointelligence_v1p2beta1_annotate_video_request_object
|
||||
command.response_representation = Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::VideointelligenceV1p2beta1::GoogleLongrunningOperation
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://developers.google.com/youtube/v3
|
||||
module YoutubeV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20180511'
|
||||
REVISION = '20190128'
|
||||
|
||||
# Manage your YouTube account
|
||||
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
|
||||
|
||||
@@ -1003,16 +1003,6 @@ module Google
|
||||
attr_accessor :copyright_strikes_good_standing
|
||||
alias_method :copyright_strikes_good_standing?, :copyright_strikes_good_standing
|
||||
|
||||
# Describes the general state of the channel. This field will always show if
|
||||
# there are any issues whatsoever with the channel. Currently this field
|
||||
# represents the result of the logical and operation over the community
|
||||
# guidelines good standing, the copyright strikes good standing and the content
|
||||
# ID claims good standing, but this may change in the future.
|
||||
# Corresponds to the JSON property `overallGoodStanding`
|
||||
# @return [Boolean]
|
||||
attr_accessor :overall_good_standing
|
||||
alias_method :overall_good_standing?, :overall_good_standing
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -1022,7 +1012,6 @@ module Google
|
||||
@community_guidelines_good_standing = args[:community_guidelines_good_standing] if args.key?(:community_guidelines_good_standing)
|
||||
@content_id_claims_good_standing = args[:content_id_claims_good_standing] if args.key?(:content_id_claims_good_standing)
|
||||
@copyright_strikes_good_standing = args[:copyright_strikes_good_standing] if args.key?(:copyright_strikes_good_standing)
|
||||
@overall_good_standing = args[:overall_good_standing] if args.key?(:overall_good_standing)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -4367,6 +4356,12 @@ module Google
|
||||
# @return [Google::Apis::YoutubeV3::LiveChatSuperChatDetails]
|
||||
attr_accessor :super_chat_details
|
||||
|
||||
# Details about the Super Sticker event, this is only set if the type is '
|
||||
# superStickerEvent'.
|
||||
# Corresponds to the JSON property `superStickerDetails`
|
||||
# @return [Google::Apis::YoutubeV3::LiveChatSuperStickerDetails]
|
||||
attr_accessor :super_sticker_details
|
||||
|
||||
# Details about the text message, this is only set if the type is '
|
||||
# textMessageEvent'.
|
||||
# Corresponds to the JSON property `textMessageDetails`
|
||||
@@ -4403,6 +4398,7 @@ module Google
|
||||
@poll_voted_details = args[:poll_voted_details] if args.key?(:poll_voted_details)
|
||||
@published_at = args[:published_at] if args.key?(:published_at)
|
||||
@super_chat_details = args[:super_chat_details] if args.key?(:super_chat_details)
|
||||
@super_sticker_details = args[:super_sticker_details] if args.key?(:super_sticker_details)
|
||||
@text_message_details = args[:text_message_details] if args.key?(:text_message_details)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@user_banned_details = args[:user_banned_details] if args.key?(:user_banned_details)
|
||||
@@ -4695,8 +4691,8 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :currency
|
||||
|
||||
# The tier in which the amount belongs to. Lower amounts belong to lower tiers.
|
||||
# Starts at 1.
|
||||
# The tier in which the amount belongs. Lower amounts belong to lower tiers. The
|
||||
# lowest tier is 1.
|
||||
# Corresponds to the JSON property `tier`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :tier
|
||||
@@ -4720,6 +4716,50 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LiveChatSuperStickerDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A rendered string that displays the fund amount and currency to the user.
|
||||
# Corresponds to the JSON property `amountDisplayString`
|
||||
# @return [String]
|
||||
attr_accessor :amount_display_string
|
||||
|
||||
# The amount purchased by the user, in micros (1,750,000 micros = 1.75).
|
||||
# Corresponds to the JSON property `amountMicros`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :amount_micros
|
||||
|
||||
# The currency in which the purchase was made.
|
||||
# Corresponds to the JSON property `currency`
|
||||
# @return [String]
|
||||
attr_accessor :currency
|
||||
|
||||
# Information about the Super Sticker.
|
||||
# Corresponds to the JSON property `superStickerMetadata`
|
||||
# @return [Google::Apis::YoutubeV3::SuperStickerMetadata]
|
||||
attr_accessor :super_sticker_metadata
|
||||
|
||||
# The tier in which the amount belongs. Lower amounts belong to lower tiers. The
|
||||
# lowest tier is 1.
|
||||
# Corresponds to the JSON property `tier`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :tier
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@amount_display_string = args[:amount_display_string] if args.key?(:amount_display_string)
|
||||
@amount_micros = args[:amount_micros] if args.key?(:amount_micros)
|
||||
@currency = args[:currency] if args.key?(:currency)
|
||||
@super_sticker_metadata = args[:super_sticker_metadata] if args.key?(:super_sticker_metadata)
|
||||
@tier = args[:tier] if args.key?(:tier)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class LiveChatTextMessageDetails
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6692,6 +6732,12 @@ module Google
|
||||
attr_accessor :is_super_chat_for_good
|
||||
alias_method :is_super_chat_for_good?, :is_super_chat_for_good
|
||||
|
||||
# True if this event is a Super Sticker event.
|
||||
# Corresponds to the JSON property `isSuperStickerEvent`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_super_sticker_event
|
||||
alias_method :is_super_sticker_event?, :is_super_sticker_event
|
||||
|
||||
# The tier for the paid message, which is based on the amount of money spent to
|
||||
# purchase the message.
|
||||
# Corresponds to the JSON property `messageType`
|
||||
@@ -6703,6 +6749,12 @@ module Google
|
||||
# @return [Google::Apis::YoutubeV3::Nonprofit]
|
||||
attr_accessor :nonprofit
|
||||
|
||||
# If this event is a Super Sticker event, this field will contain metadata about
|
||||
# the Super Sticker.
|
||||
# Corresponds to the JSON property `superStickerMetadata`
|
||||
# @return [Google::Apis::YoutubeV3::SuperStickerMetadata]
|
||||
attr_accessor :super_sticker_metadata
|
||||
|
||||
# Details about the supporter.
|
||||
# Corresponds to the JSON property `supporterDetails`
|
||||
# @return [Google::Apis::YoutubeV3::ChannelProfileDetails]
|
||||
@@ -6721,12 +6773,47 @@ module Google
|
||||
@currency = args[:currency] if args.key?(:currency)
|
||||
@display_string = args[:display_string] if args.key?(:display_string)
|
||||
@is_super_chat_for_good = args[:is_super_chat_for_good] if args.key?(:is_super_chat_for_good)
|
||||
@is_super_sticker_event = args[:is_super_sticker_event] if args.key?(:is_super_sticker_event)
|
||||
@message_type = args[:message_type] if args.key?(:message_type)
|
||||
@nonprofit = args[:nonprofit] if args.key?(:nonprofit)
|
||||
@super_sticker_metadata = args[:super_sticker_metadata] if args.key?(:super_sticker_metadata)
|
||||
@supporter_details = args[:supporter_details] if args.key?(:supporter_details)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class SuperStickerMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Internationalized alt text that describes the sticker image and any animation
|
||||
# associated with it.
|
||||
# Corresponds to the JSON property `altText`
|
||||
# @return [String]
|
||||
attr_accessor :alt_text
|
||||
|
||||
# Specifies the localization language in which the alt text is returned.
|
||||
# Corresponds to the JSON property `altTextLanguage`
|
||||
# @return [String]
|
||||
attr_accessor :alt_text_language
|
||||
|
||||
# Unique identifier of the Super Sticker. This is a shorter form of the alt_text
|
||||
# that includes pack name and a recognizable characteristic of the sticker.
|
||||
# Corresponds to the JSON property `stickerId`
|
||||
# @return [String]
|
||||
attr_accessor :sticker_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@alt_text = args[:alt_text] if args.key?(:alt_text)
|
||||
@alt_text_language = args[:alt_text_language] if args.key?(:alt_text_language)
|
||||
@sticker_id = args[:sticker_id] if args.key?(:sticker_id)
|
||||
end
|
||||
end
|
||||
|
||||
# A thumbnail is an image representing a YouTube resource.
|
||||
class Thumbnail
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -574,6 +574,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LiveChatSuperStickerDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class LiveChatTextMessageDetails
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -844,6 +850,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SuperStickerMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Thumbnail
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -1345,7 +1357,6 @@ module Google
|
||||
property :community_guidelines_good_standing, as: 'communityGuidelinesGoodStanding'
|
||||
property :content_id_claims_good_standing, as: 'contentIdClaimsGoodStanding'
|
||||
property :copyright_strikes_good_standing, as: 'copyrightStrikesGoodStanding'
|
||||
property :overall_good_standing, as: 'overallGoodStanding'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2180,6 +2191,8 @@ module Google
|
||||
|
||||
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
|
||||
|
||||
property :text_message_details, as: 'textMessageDetails', class: Google::Apis::YoutubeV3::LiveChatTextMessageDetails, decorator: Google::Apis::YoutubeV3::LiveChatTextMessageDetails::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
@@ -2280,6 +2293,18 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class LiveChatSuperStickerDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :amount_display_string, as: 'amountDisplayString'
|
||||
property :amount_micros, :numeric_string => true, as: 'amountMicros'
|
||||
property :currency, as: 'currency'
|
||||
property :super_sticker_metadata, as: 'superStickerMetadata', class: Google::Apis::YoutubeV3::SuperStickerMetadata, decorator: Google::Apis::YoutubeV3::SuperStickerMetadata::Representation
|
||||
|
||||
property :tier, as: 'tier'
|
||||
end
|
||||
end
|
||||
|
||||
class LiveChatTextMessageDetails
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -2820,14 +2845,26 @@ module Google
|
||||
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
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SuperStickerMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alt_text, as: 'altText'
|
||||
property :alt_text_language, as: 'altTextLanguage'
|
||||
property :sticker_id, as: 'stickerId'
|
||||
end
|
||||
end
|
||||
|
||||
class Thumbnail
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
Reference in new issue
Block a user