Autogenerated update (2019-10-10)

Delete:
- urlshortener_v1

Update:
- admin_directory_v1
- androidpublisher_v3
- bigquery_v2
- bigqueryconnection_v1beta1
- content_v2
- content_v2_1
- dialogflow_v2
- dialogflow_v2beta1
- iap_v1
- monitoring_v3
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- servicemanagement_v1
This commit is contained in:
Google APIs 2019-10-10 18:08:35 +00:00
parent 1fff78a88a
commit 2cc4297828
44 changed files with 1102 additions and 1145 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/ # @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1 module AdminDirectoryV1
VERSION = 'DirectoryV1' VERSION = 'DirectoryV1'
REVISION = '20190806' REVISION = '20191003'
# View and manage customer related information # View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@ -108,6 +108,9 @@ module Google
# View user schemas on your domain # View user schemas on your domain
AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly' AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end end
end end
end end

View File

@ -740,7 +740,7 @@ module Google
# (Read-only) MAC address used by the Chromebooks internal ethernet port, and # (Read-only) MAC address used by the Chromebooks internal ethernet port, and
# for onboard network (ethernet) interface. The format is twelve (12) # for onboard network (ethernet) interface. The format is twelve (12)
# hexadecimal digits without any delimiter (uppercase letters). This is only # hexadecimal digits without any delimiter (uppercase letters). This is only
# relevant for Dell devices. # relevant for some devices.
# Corresponds to the JSON property `ethernetMacAddress0` # Corresponds to the JSON property `ethernetMacAddress0`
# @return [String] # @return [String]
attr_accessor :ethernet_mac_address0 attr_accessor :ethernet_mac_address0
@ -776,8 +776,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :manufacture_date attr_accessor :manufacture_date
# Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read- # Contains either the Mobile Equipment identifier (MEID) or the International
# only) # Mobile Equipment Identity (IMEI) for the 3G mobile card in the Chromebook (
# Read-only)
# Corresponds to the JSON property `meid` # Corresponds to the JSON property `meid`
# @return [String] # @return [String]
attr_accessor :meid attr_accessor :meid

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher # @see https://developers.google.com/android-publisher
module AndroidpublisherV3 module AndroidpublisherV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20190910' REVISION = '20191009'
# View and manage your Google Play Developer account # View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -1198,6 +1198,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :purchase_time_millis attr_accessor :purchase_time_millis
# The purchase token generated to identify this purchase.
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token
# The type of purchase of the inapp product. This field is only set if this # The type of purchase of the inapp product. This field is only set if this
# purchase was not made using the standard in-app billing flow. Possible values # purchase was not made using the standard in-app billing flow. Possible values
# are: # are:
@ -1221,6 +1226,7 @@ module Google
@order_id = args[:order_id] if args.key?(:order_id) @order_id = args[:order_id] if args.key?(:order_id)
@purchase_state = args[:purchase_state] if args.key?(:purchase_state) @purchase_state = args[:purchase_state] if args.key?(:purchase_state)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type) @purchase_type = args[:purchase_type] if args.key?(:purchase_type)
end end
end end

View File

@ -718,6 +718,7 @@ module Google
property :order_id, as: 'orderId' property :order_id, as: 'orderId'
property :purchase_state, as: 'purchaseState' property :purchase_state, as: 'purchaseState'
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis' property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
property :purchase_token, as: 'purchaseToken'
property :purchase_type, as: 'purchaseType' property :purchase_type, as: 'purchaseType'
end end
end end

View File

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

View File

@ -1772,13 +1772,8 @@ module Google
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions] # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
attr_accessor :google_sheets_options attr_accessor :google_sheets_options
# [Optional, Trusted Tester] If hive partitioning is enabled, which mode to use. # [Optional, Trusted Tester] Deprecated, do not use. Please set
# Two modes are supported: - AUTO: automatically infer partition key name(s) and # hivePartitioningOptions instead.
# type(s). - STRINGS: automatic infer partition key name(s). All types are
# strings. Not all storage formats support hive partitioning -- requesting hive
# partitioning on an unsupported format will lead to an error. Note: this
# setting is in the process of being deprecated in favor of
# hivePartitioningOptions.
# Corresponds to the JSON property `hivePartitioningMode` # Corresponds to the JSON property `hivePartitioningMode`
# @return [String] # @return [String]
attr_accessor :hive_partitioning_mode attr_accessor :hive_partitioning_mode
@ -2472,11 +2467,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :field_delimiter attr_accessor :field_delimiter
# [Optional, Trusted Tester] If hive partitioning is enabled, which mode to use. # [Optional, Trusted Tester] Deprecated, do not use. Please set
# Two modes are supported: - AUTO: automatically infer partition key name(s) and # hivePartitioningOptions instead.
# type(s). - STRINGS: automatic infer partition key name(s). All types are
# strings. Not all storage formats support hive partitioning -- requesting hive
# partitioning on an unsupported format will lead to an error.
# Corresponds to the JSON property `hivePartitioningMode` # Corresponds to the JSON property `hivePartitioningMode`
# @return [String] # @return [String]
attr_accessor :hive_partitioning_mode attr_accessor :hive_partitioning_mode
@ -3299,12 +3291,12 @@ module Google
# DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard- # DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-
# sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google. # sql/data-manipulation-language. "MERGE": MERGE query; see https://cloud.google.
# com/bigquery/docs/reference/standard-sql/data-manipulation-language. " # com/bigquery/docs/reference/standard-sql/data-manipulation-language. "
# ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. " # ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "ASSERT":
# CREATE_FUNCTION": CREATE FUNCTION query. "CREATE_MODEL": CREATE [OR REPLACE] # ASSERT condition AS 'description'. "CREATE_FUNCTION": CREATE FUNCTION query. "
# MODEL ... AS SELECT ... . "CREATE_PROCEDURE": CREATE PROCEDURE query. " # CREATE_MODEL": CREATE [OR REPLACE] MODEL ... AS SELECT ... . "CREATE_PROCEDURE"
# CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. " # : CREATE PROCEDURE query. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS
# CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . " # SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... .
# CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" : # "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" :
# DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": # DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE":
# DROP TABLE query. "DROP_VIEW": DROP VIEW query. # DROP TABLE query. "DROP_VIEW": DROP VIEW query.
# Corresponds to the JSON property `statementType` # Corresponds to the JSON property `statementType`

View File

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

View File

@ -259,6 +259,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.

View File

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

View File

@ -23,8 +23,8 @@ module Google
module ContentV2 module ContentV2
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
class Account class Account
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -919,8 +919,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
# Corresponds to the JSON property `account` # Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account] # @return [Google::Apis::ContentV2::Account]
attr_accessor :account attr_accessor :account
@ -1044,8 +1044,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
# Corresponds to the JSON property `account` # Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2::Account] # @return [Google::Apis::ContentV2::Account]
attr_accessor :account attr_accessor :account
@ -2101,6 +2101,11 @@ module Google
# The list of destinations to include for this target (corresponds to checked # The list of destinations to include for this target (corresponds to checked
# check boxes in Merchant Center). Default destinations are always included # check boxes in Merchant Center). Default destinations are always included
# unless provided in excludedDestinations. # unless provided in excludedDestinations.
# List of supported destinations (if available to the account):
# - DisplayAds
# - Shopping
# - ShoppingActions
# - SurfacesAcrossGoogle
# Corresponds to the JSON property `includedDestinations` # Corresponds to the JSON property `includedDestinations`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :included_destinations attr_accessor :included_destinations
@ -4033,7 +4038,8 @@ module Google
end end
end end
# Order. All methods require the order manager role. # Order. Production access (all methods) requires the order manager role.
# Sandbox access does not.
class Order class Order
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5265,6 +5271,7 @@ module Google
# - "mpx" # - "mpx"
# - "uds" # - "uds"
# - "efw" # - "efw"
# - "jd logistics"
# Acceptable values for FR are: # Acceptable values for FR are:
# - "colissimo" # - "colissimo"
# - "chronopost" # - "chronopost"
@ -5274,6 +5281,8 @@ module Google
# - "colis prive" # - "colis prive"
# - "boxtal" # - "boxtal"
# - "geodis" # - "geodis"
# - "tnt"
# - "la poste"
# Corresponds to the JSON property `carrier` # Corresponds to the JSON property `carrier`
# @return [String] # @return [String]
attr_accessor :carrier attr_accessor :carrier
@ -5552,216 +5561,6 @@ module Google
end end
end end
#
class OrderpaymentsNotifyAuthApprovedRequest
include Google::Apis::Core::Hashable
# Authorized amount for pre-tax charge on user's credit card.
# Corresponds to the JSON property `authAmountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :auth_amount_pretax
# Authorized amount for tax charge on user's credit card.
# Corresponds to the JSON property `authAmountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :auth_amount_tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
@auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
end
end
#
class OrderpaymentsNotifyAuthApprovedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthApprovedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyAuthDeclinedRequest
include Google::Apis::Core::Hashable
# Reason why payment authorization was declined.
# Corresponds to the JSON property `declineReason`
# @return [String]
attr_accessor :decline_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@decline_reason = args[:decline_reason] if args.key?(:decline_reason)
end
end
#
class OrderpaymentsNotifyAuthDeclinedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthDeclinedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyChargeRequest
include Google::Apis::Core::Hashable
# Whether charge was successful.
# Corresponds to the JSON property `chargeState`
# @return [String]
attr_accessor :charge_state
# Deprecated. Please use invoiceIds instead.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Invoice IDs from the orderinvoices service that correspond to the charge.
# Corresponds to the JSON property `invoiceIds`
# @return [Array<String>]
attr_accessor :invoice_ids
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charge_state = args[:charge_state] if args.key?(:charge_state)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
end
end
#
class OrderpaymentsNotifyChargeResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyChargeResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyRefundRequest
include Google::Apis::Core::Hashable
# Deprecated. Please use invoiceIds instead.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Invoice IDs from the orderinvoices service that correspond to the refund.
# Corresponds to the JSON property `invoiceIds`
# @return [Array<String>]
attr_accessor :invoice_ids
# Whether refund was successful.
# Corresponds to the JSON property `refundState`
# @return [String]
attr_accessor :refund_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
@refund_state = args[:refund_state] if args.key?(:refund_state)
end
end
#
class OrderpaymentsNotifyRefundResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyRefundResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
# #
class OrderreportsListDisbursementsResponse class OrderreportsListDisbursementsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6987,7 +6786,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Order. All methods require the order manager role. # Order. Production access (all methods) requires the order manager role.
# Sandbox access does not.
# Corresponds to the JSON property `order` # Corresponds to the JSON property `order`
# @return [Google::Apis::ContentV2::Order] # @return [Google::Apis::ContentV2::Order]
attr_accessor :order attr_accessor :order
@ -7016,7 +6816,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Order. All methods require the order manager role. # Order. Production access (all methods) requires the order manager role.
# Sandbox access does not.
# Corresponds to the JSON property `order` # Corresponds to the JSON property `order`
# @return [Google::Apis::ContentV2::Order] # @return [Google::Apis::ContentV2::Order]
attr_accessor :order attr_accessor :order
@ -9007,7 +8808,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :size_type attr_accessor :size_type
# Size of the item. # Size of the item. Only one value is allowed. For variants with different sizes,
# insert a separate product for each size with the same itemGroupId value (see
# size definition).
# Corresponds to the JSON property `sizes` # Corresponds to the JSON property `sizes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :sizes attr_accessor :sizes

View File

@ -832,54 +832,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OrderpaymentsNotifyAuthApprovedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthApprovedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderreportsListDisbursementsResponse class OrderreportsListDisbursementsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3189,73 +3141,6 @@ module Google
end end
end end
class OrderpaymentsNotifyAuthApprovedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
end
end
class OrderpaymentsNotifyAuthApprovedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyAuthDeclinedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :decline_reason, as: 'declineReason'
end
end
class OrderpaymentsNotifyAuthDeclinedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyChargeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charge_state, as: 'chargeState'
property :invoice_id, as: 'invoiceId'
collection :invoice_ids, as: 'invoiceIds'
end
end
class OrderpaymentsNotifyChargeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyRefundRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
collection :invoice_ids, as: 'invoiceIds'
property :refund_state, as: 'refundState'
end
end
class OrderpaymentsNotifyRefundResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderreportsListDisbursementsResponse class OrderreportsListDisbursementsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1672,166 +1672,6 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Notify about successfully authorizing user's payment method for a given amount.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for for which payment authorization is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse]
#
# @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 notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest::Representation
command.request_object = orderpayments_notify_auth_approved_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.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
# Notify about failure to authorize user's payment method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which payment authorization was declined.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse]
#
# @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 notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest::Representation
command.request_object = orderpayments_notify_auth_declined_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.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
# Notify about charge on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse]
#
# @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 notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest::Representation
command.request_object = orderpayments_notify_charge_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.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
# Notify about refund on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse]
#
# @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 notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest::Representation
command.request_object = orderpayments_notify_refund_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.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
# Retrieves a report for disbursements from your Merchant Center account. # Retrieves a report for disbursements from your Merchant Center account.
# @param [Fixnum] merchant_id # @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client # The ID of the account that manages the order. This cannot be a multi-client

View File

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

View File

@ -23,8 +23,8 @@ module Google
module ContentV2_1 module ContentV2_1
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
class Account class Account
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -785,8 +785,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
# Corresponds to the JSON property `account` # Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2_1::Account] # @return [Google::Apis::ContentV2_1::Account]
attr_accessor :account attr_accessor :account
@ -910,8 +910,8 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Account data. After the creation of a new account it may take a few minutes # Account data. After the creation of a new account it may take a few minutes
# before it is fully operational. The methods delete, insert, patch, and update # before it is fully operational. The methods delete, insert, and update require
# require the admin role. # the admin role.
# Corresponds to the JSON property `account` # Corresponds to the JSON property `account`
# @return [Google::Apis::ContentV2_1::Account] # @return [Google::Apis::ContentV2_1::Account]
attr_accessor :account attr_accessor :account
@ -1909,6 +1909,11 @@ module Google
# The list of destinations to include for this target (corresponds to checked # The list of destinations to include for this target (corresponds to checked
# check boxes in Merchant Center). Default destinations are always included # check boxes in Merchant Center). Default destinations are always included
# unless provided in excludedDestinations. # unless provided in excludedDestinations.
# List of supported destinations (if available to the account):
# - DisplayAds
# - Shopping
# - ShoppingActions
# - SurfacesAcrossGoogle
# Corresponds to the JSON property `includedDestinations` # Corresponds to the JSON property `includedDestinations`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :included_destinations attr_accessor :included_destinations
@ -3409,7 +3414,8 @@ module Google
end end
end end
# Order. All methods require the order manager role. # Order. Production access (all methods) requires the order manager role.
# Sandbox access does not.
class Order class Order
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4311,12 +4317,20 @@ module Google
# @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>] # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
attr_accessor :applicable_items attr_accessor :applicable_items
# Items which this promotion have been applied to. # Items which this promotion have been applied to. Do not provide for orders.
# createtestorder.
# Corresponds to the JSON property `appliedItems` # Corresponds to the JSON property `appliedItems`
# @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>] # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
attr_accessor :applied_items attr_accessor :applied_items
# The party funding the promotion. # Promotion end time in ISO 8601 format. Date, time, and offset required, e.g., "
# 2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# The party funding the promotion. Only merchant is supported for orders.
# createtestorder.
# Corresponds to the JSON property `funder` # Corresponds to the JSON property `funder`
# @return [String] # @return [String]
attr_accessor :funder attr_accessor :funder
@ -4332,17 +4346,26 @@ module Google
# @return [Google::Apis::ContentV2_1::Price] # @return [Google::Apis::ContentV2_1::Price]
attr_accessor :price_value attr_accessor :price_value
# A short title of the promotion to be shown on the checkout page. # A short title of the promotion to be shown on the checkout page. Do not
# provide for orders.createtestorder.
# Corresponds to the JSON property `shortTitle` # Corresponds to the JSON property `shortTitle`
# @return [String] # @return [String]
attr_accessor :short_title attr_accessor :short_title
# The category of the promotion. # Promotion start time in ISO 8601 format. Date, time, and offset required, e.g.,
# "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The category of the promotion. Only moneyOff is supported for orders.
# createtestorder.
# Corresponds to the JSON property `subtype` # Corresponds to the JSON property `subtype`
# @return [String] # @return [String]
attr_accessor :subtype attr_accessor :subtype
# Estimated discount applied to tax (if allowed by law). # Estimated discount applied to tax (if allowed by law). Do not provide for
# orders.createtestorder.
# Corresponds to the JSON property `taxValue` # Corresponds to the JSON property `taxValue`
# @return [Google::Apis::ContentV2_1::Price] # @return [Google::Apis::ContentV2_1::Price]
attr_accessor :tax_value attr_accessor :tax_value
@ -4352,7 +4375,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :title attr_accessor :title
# The scope of the promotion. # The scope of the promotion. Only product is supported for orders.
# createtestorder.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
@ -4365,10 +4389,12 @@ module Google
def update!(**args) def update!(**args)
@applicable_items = args[:applicable_items] if args.key?(:applicable_items) @applicable_items = args[:applicable_items] if args.key?(:applicable_items)
@applied_items = args[:applied_items] if args.key?(:applied_items) @applied_items = args[:applied_items] if args.key?(:applied_items)
@end_time = args[:end_time] if args.key?(:end_time)
@funder = args[:funder] if args.key?(:funder) @funder = args[:funder] if args.key?(:funder)
@merchant_promotion_id = args[:merchant_promotion_id] if args.key?(:merchant_promotion_id) @merchant_promotion_id = args[:merchant_promotion_id] if args.key?(:merchant_promotion_id)
@price_value = args[:price_value] if args.key?(:price_value) @price_value = args[:price_value] if args.key?(:price_value)
@short_title = args[:short_title] if args.key?(:short_title) @short_title = args[:short_title] if args.key?(:short_title)
@start_time = args[:start_time] if args.key?(:start_time)
@subtype = args[:subtype] if args.key?(:subtype) @subtype = args[:subtype] if args.key?(:subtype)
@tax_value = args[:tax_value] if args.key?(:tax_value) @tax_value = args[:tax_value] if args.key?(:tax_value)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
@ -4380,17 +4406,23 @@ module Google
class OrderPromotionItem class OrderPromotionItem
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# # The line item ID of a product. Do not provide for orders.createtestorder.
# Corresponds to the JSON property `lineItemId` # Corresponds to the JSON property `lineItemId`
# @return [String] # @return [String]
attr_accessor :line_item_id attr_accessor :line_item_id
# # Offer ID of a product. Only for orders.createtestorder.
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# orders.createtestorder.
# Corresponds to the JSON property `productId` # Corresponds to the JSON property `productId`
# @return [String] # @return [String]
attr_accessor :product_id attr_accessor :product_id
# The quantity of the associated product. # The quantity of the associated product. Do not provide for orders.
# createtestorder.
# Corresponds to the JSON property `quantity` # Corresponds to the JSON property `quantity`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :quantity attr_accessor :quantity
@ -4402,6 +4434,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id) @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@product_id = args[:product_id] if args.key?(:product_id) @product_id = args[:product_id] if args.key?(:product_id)
@quantity = args[:quantity] if args.key?(:quantity) @quantity = args[:quantity] if args.key?(:quantity)
end end
@ -4626,6 +4659,7 @@ module Google
# - "mpx" # - "mpx"
# - "uds" # - "uds"
# - "efw" # - "efw"
# - "jd logistics"
# Acceptable values for FR are: # Acceptable values for FR are:
# - "colissimo" # - "colissimo"
# - "chronopost" # - "chronopost"
@ -4635,6 +4669,8 @@ module Google
# - "colis prive" # - "colis prive"
# - "boxtal" # - "boxtal"
# - "geodis" # - "geodis"
# - "tnt"
# - "la poste"
# Corresponds to the JSON property `carrier` # Corresponds to the JSON property `carrier`
# @return [String] # @return [String]
attr_accessor :carrier attr_accessor :carrier
@ -5429,7 +5465,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Order. All methods require the order manager role. # Order. Production access (all methods) requires the order manager role.
# Sandbox access does not.
# Corresponds to the JSON property `order` # Corresponds to the JSON property `order`
# @return [Google::Apis::ContentV2_1::Order] # @return [Google::Apis::ContentV2_1::Order]
attr_accessor :order attr_accessor :order
@ -7234,7 +7271,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :size_type attr_accessor :size_type
# Size of the item. # Size of the item. Only one value is allowed. For variants with different sizes,
# insert a separate product for each size with the same itemGroupId value (see
# size definition).
# Corresponds to the JSON property `sizes` # Corresponds to the JSON property `sizes`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :sizes attr_accessor :sizes

View File

@ -2737,11 +2737,13 @@ module Google
collection :applied_items, as: 'appliedItems', class: Google::Apis::ContentV2_1::OrderPromotionItem, decorator: Google::Apis::ContentV2_1::OrderPromotionItem::Representation collection :applied_items, as: 'appliedItems', class: Google::Apis::ContentV2_1::OrderPromotionItem, decorator: Google::Apis::ContentV2_1::OrderPromotionItem::Representation
property :end_time, as: 'endTime'
property :funder, as: 'funder' property :funder, as: 'funder'
property :merchant_promotion_id, as: 'merchantPromotionId' property :merchant_promotion_id, as: 'merchantPromotionId'
property :price_value, as: 'priceValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation property :price_value, as: 'priceValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
property :short_title, as: 'shortTitle' property :short_title, as: 'shortTitle'
property :start_time, as: 'startTime'
property :subtype, as: 'subtype' property :subtype, as: 'subtype'
property :tax_value, as: 'taxValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation property :tax_value, as: 'taxValue', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
@ -2754,6 +2756,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId' property :line_item_id, as: 'lineItemId'
property :offer_id, as: 'offerId'
property :product_id, as: 'productId' property :product_id, as: 'productId'
property :quantity, as: 'quantity' property :quantity, as: 'quantity'
end end

View File

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

View File

@ -130,6 +130,60 @@ module Google
end end
end end
# Represents article answer.
class GoogleCloudDialogflowV2ArticleAnswer
include Google::Apis::Core::Hashable
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# Article match confidence.
# The system's confidence score that this article is a good match for this
# converstation, as a value from 0.0 (completely uncertain) to 1.0
# (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# Article snippets.
# Corresponds to the JSON property `snippets`
# @return [Array<String>]
attr_accessor :snippets
# The article title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The article URI.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@snippets = args[:snippets] if args.key?(:snippets)
@title = args[:title] if args.key?(:title)
@uri = args[:uri] if args.key?(:uri)
end
end
# The request message for EntityTypes.BatchCreateEntities. # The request message for EntityTypes.BatchCreateEntities.
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -738,6 +792,101 @@ module Google
end end
end end
# Represents answer from "frequently asked questions".
class GoogleCloudDialogflowV2FaqAnswer
include Google::Apis::Core::Hashable
# The piece of text from the `source` knowledge base document.
# Corresponds to the JSON property `answer`
# @return [String]
attr_accessor :answer
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# The system's confidence score that this Knowledge answer is a good match
# for this conversational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# The corresponding FAQ question.
# Corresponds to the JSON property `question`
# @return [String]
attr_accessor :question
# Indicates which Knowledge Document this answer was extracted
# from.
# Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer = args[:answer] if args.key?(:answer)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@question = args[:question] if args.key?(:question)
@source = args[:source] if args.key?(:source)
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for
# human agent assistant events in a specific conversation.
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
include Google::Apis::Core::Hashable
# The conversation this notification refers to.
# Format: `projects/<Project ID>/conversations/<Conversation ID>`.
# Corresponds to the JSON property `conversation`
# @return [String]
attr_accessor :conversation
# The participant that the suggestion is compiled for. And This field is used
# to call Participants.ListSuggestions API. Format:
# `projects/<Project ID>/conversations/<Conversation
# ID>/participants/<Participant ID>`.
# It will not be set in legacy workflow.
# HumanAgentAssistantConfig.name for more
# information.
# Corresponds to the JSON property `participant`
# @return [String]
attr_accessor :participant
# The suggestion results payload that this notification refers to.
# Corresponds to the JSON property `suggestionResults`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
attr_accessor :suggestion_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conversation = args[:conversation] if args.key?(:conversation)
@participant = args[:participant] if args.key?(:participant)
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
end
end
# The request message for Agents.ImportAgent. # The request message for Agents.ImportAgent.
class GoogleCloudDialogflowV2ImportAgentRequest class GoogleCloudDialogflowV2ImportAgentRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1793,6 +1942,25 @@ module Google
end end
end end
# Metadata in google::longrunning::Operation for Knowledge operations.
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
include Google::Apis::Core::Hashable
# Output only. The current state of this operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
end
end
# The response message for Contexts.ListContexts. # The response message for Contexts.ListContexts.
class GoogleCloudDialogflowV2ListContextsResponse class GoogleCloudDialogflowV2ListContextsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2397,6 +2565,118 @@ module Google
end end
end end
# The response message for [Participants.SuggestArticles]
class GoogleCloudDialogflowV2SuggestArticlesResponse
include Google::Apis::Core::Hashable
# Articles ordered by score in descending order.
# Corresponds to the JSON property `articleAnswers`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer>]
attr_accessor :article_answers
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@article_answers = args[:article_answers] if args.key?(:article_answers)
@context_size = args[:context_size] if args.key?(:context_size)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# The request message for [Participants.SuggestFaqAnswers]
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
include Google::Apis::Core::Hashable
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# Answers extracted from FAQ documents.
# Corresponds to the JSON property `faqAnswers`
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer>]
attr_accessor :faq_answers
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_size = args[:context_size] if args.key?(:context_size)
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# One response of different type of suggestion response which is used in
# the response of Participants.AnalyzeContent and
# Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
class GoogleCloudDialogflowV2SuggestionResult
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
attr_accessor :error
# The response message for [Participants.SuggestArticles]
# Corresponds to the JSON property `suggestArticlesResponse`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
attr_accessor :suggest_articles_response
# The request message for [Participants.SuggestFaqAnswers]
# Corresponds to the JSON property `suggestFaqAnswersResponse`
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
attr_accessor :suggest_faq_answers_response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
end
end
# Configuration of how speech should be synthesized. # Configuration of how speech should be synthesized.
class GoogleCloudDialogflowV2SynthesizeSpeechConfig class GoogleCloudDialogflowV2SynthesizeSpeechConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -28,6 +28,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2ArticleAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +142,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2FaqAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ImportAgentRequest class GoogleCloudDialogflowV2ImportAgentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -298,6 +316,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2ListContextsResponse class GoogleCloudDialogflowV2ListContextsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,6 +412,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2SuggestArticlesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SynthesizeSpeechConfig class GoogleCloudDialogflowV2SynthesizeSpeechConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -868,6 +910,18 @@ module Google
end end
end end
class GoogleCloudDialogflowV2ArticleAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
collection :snippets, as: 'snippets'
property :title, as: 'title'
property :uri, as: 'uri'
end
end
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1038,6 +1092,28 @@ module Google
end end
end end
class GoogleCloudDialogflowV2FaqAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer'
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
property :question, as: 'question'
property :source, as: 'source'
end
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :conversation, as: 'conversation'
property :participant, as: 'participant'
collection :suggestion_results, as: 'suggestionResults', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult::Representation
end
end
class GoogleCloudDialogflowV2ImportAgentRequest class GoogleCloudDialogflowV2ImportAgentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1326,6 +1402,13 @@ module Google
end end
end end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
end
end
class GoogleCloudDialogflowV2ListContextsResponse class GoogleCloudDialogflowV2ListContextsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1485,6 +1568,38 @@ module Google
end end
end end
class GoogleCloudDialogflowV2SuggestArticlesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :article_answers, as: 'articleAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer::Representation
property :context_size, as: 'contextSize'
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_size, as: 'contextSize'
collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer::Representation
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
end
end
class GoogleCloudDialogflowV2SynthesizeSpeechConfig class GoogleCloudDialogflowV2SynthesizeSpeechConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -22,6 +22,60 @@ module Google
module Apis module Apis
module DialogflowV2beta1 module DialogflowV2beta1
# Represents article answer.
class GoogleCloudDialogflowV2ArticleAnswer
include Google::Apis::Core::Hashable
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# Article match confidence.
# The system's confidence score that this article is a good match for this
# converstation, as a value from 0.0 (completely uncertain) to 1.0
# (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# Article snippets.
# Corresponds to the JSON property `snippets`
# @return [Array<String>]
attr_accessor :snippets
# The article title.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# The article URI.
# Corresponds to the JSON property `uri`
# @return [String]
attr_accessor :uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@snippets = args[:snippets] if args.key?(:snippets)
@title = args[:title] if args.key?(:title)
@uri = args[:uri] if args.key?(:uri)
end
end
# The response message for EntityTypes.BatchUpdateEntityTypes. # The response message for EntityTypes.BatchUpdateEntityTypes.
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -257,6 +311,101 @@ module Google
end end
end end
# Represents answer from "frequently asked questions".
class GoogleCloudDialogflowV2FaqAnswer
include Google::Apis::Core::Hashable
# The piece of text from the `source` knowledge base document.
# Corresponds to the JSON property `answer`
# @return [String]
attr_accessor :answer
# The name of answer record, in the format of
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
# Corresponds to the JSON property `answerRecord`
# @return [String]
attr_accessor :answer_record
# The system's confidence score that this Knowledge answer is a good match
# for this conversational query, range from 0.0 (completely uncertain)
# to 1.0 (completely certain).
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# A map that contains metadata about the answer and the
# document from which it originates.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
# The corresponding FAQ question.
# Corresponds to the JSON property `question`
# @return [String]
attr_accessor :question
# Indicates which Knowledge Document this answer was extracted
# from.
# Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
# ID>/documents/<Document ID>`.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@answer = args[:answer] if args.key?(:answer)
@answer_record = args[:answer_record] if args.key?(:answer_record)
@confidence = args[:confidence] if args.key?(:confidence)
@metadata = args[:metadata] if args.key?(:metadata)
@question = args[:question] if args.key?(:question)
@source = args[:source] if args.key?(:source)
end
end
# Represents a notification sent to Cloud Pub/Sub subscribers for
# human agent assistant events in a specific conversation.
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
include Google::Apis::Core::Hashable
# The conversation this notification refers to.
# Format: `projects/<Project ID>/conversations/<Conversation ID>`.
# Corresponds to the JSON property `conversation`
# @return [String]
attr_accessor :conversation
# The participant that the suggestion is compiled for. And This field is used
# to call Participants.ListSuggestions API. Format:
# `projects/<Project ID>/conversations/<Conversation
# ID>/participants/<Participant ID>`.
# It will not be set in legacy workflow.
# HumanAgentAssistantConfig.name for more
# information.
# Corresponds to the JSON property `participant`
# @return [String]
attr_accessor :participant
# The suggestion results payload that this notification refers to.
# Corresponds to the JSON property `suggestionResults`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult>]
attr_accessor :suggestion_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conversation = args[:conversation] if args.key?(:conversation)
@participant = args[:participant] if args.key?(:participant)
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
end
end
# Represents an intent. # Represents an intent.
# Intents convert a number of user expressions or patterns into an action. An # Intents convert a number of user expressions or patterns into an action. An
# action is an extraction of a user command or sentence semantics. # action is an extraction of a user command or sentence semantics.
@ -1194,6 +1343,25 @@ module Google
end end
end end
# Metadata in google::longrunning::Operation for Knowledge operations.
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
include Google::Apis::Core::Hashable
# Output only. The current state of this operation.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@state = args[:state] if args.key?(:state)
end
end
# Represents the contents of the original request that was passed to # Represents the contents of the original request that was passed to
# the `[Streaming]DetectIntent` call. # the `[Streaming]DetectIntent` call.
class GoogleCloudDialogflowV2OriginalDetectIntentRequest class GoogleCloudDialogflowV2OriginalDetectIntentRequest
@ -1472,6 +1640,118 @@ module Google
end end
end end
# The response message for [Participants.SuggestArticles]
class GoogleCloudDialogflowV2SuggestArticlesResponse
include Google::Apis::Core::Hashable
# Articles ordered by score in descending order.
# Corresponds to the JSON property `articleAnswers`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer>]
attr_accessor :article_answers
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@article_answers = args[:article_answers] if args.key?(:article_answers)
@context_size = args[:context_size] if args.key?(:context_size)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# The request message for [Participants.SuggestFaqAnswers]
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
include Google::Apis::Core::Hashable
# Number of messages prior to and including
# last_conversation_message to compile the suggestion. It may be smaller
# than the CompileSuggestionRequest.context_messages_count field in the
# request if there aren't that many messages in the conversation.
# Corresponds to the JSON property `contextSize`
# @return [Fixnum]
attr_accessor :context_size
# Answers extracted from FAQ documents.
# Corresponds to the JSON property `faqAnswers`
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer>]
attr_accessor :faq_answers
# The name of the latest conversation message used to compile
# suggestion for.
# Format: `projects/<Project ID>/conversations/<Conversation
# ID>/messages/<Message ID>`.
# Corresponds to the JSON property `latestMessage`
# @return [String]
attr_accessor :latest_message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_size = args[:context_size] if args.key?(:context_size)
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
@latest_message = args[:latest_message] if args.key?(:latest_message)
end
end
# One response of different type of suggestion response which is used in
# the response of Participants.AnalyzeContent and
# Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
class GoogleCloudDialogflowV2SuggestionResult
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
attr_accessor :error
# The response message for [Participants.SuggestArticles]
# Corresponds to the JSON property `suggestArticlesResponse`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
attr_accessor :suggest_articles_response
# The request message for [Participants.SuggestFaqAnswers]
# Corresponds to the JSON property `suggestFaqAnswersResponse`
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
attr_accessor :suggest_faq_answers_response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
end
end
# The request message for a webhook call. # The request message for a webhook call.
class GoogleCloudDialogflowV2WebhookRequest class GoogleCloudDialogflowV2WebhookRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis module Apis
module DialogflowV2beta1 module DialogflowV2beta1
class GoogleCloudDialogflowV2ArticleAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -64,6 +70,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2FaqAnswer
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2Intent class GoogleCloudDialogflowV2Intent
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2OriginalDetectIntentRequest class GoogleCloudDialogflowV2OriginalDetectIntentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,6 +262,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2SuggestArticlesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2SuggestionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowV2WebhookRequest class GoogleCloudDialogflowV2WebhookRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -904,6 +946,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudDialogflowV2ArticleAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
collection :snippets, as: 'snippets'
property :title, as: 'title'
property :uri, as: 'uri'
end
end
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -967,6 +1021,28 @@ module Google
end end
end end
class GoogleCloudDialogflowV2FaqAnswer
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :answer, as: 'answer'
property :answer_record, as: 'answerRecord'
property :confidence, as: 'confidence'
hash :metadata, as: 'metadata'
property :question, as: 'question'
property :source, as: 'source'
end
end
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :conversation, as: 'conversation'
property :participant, as: 'participant'
collection :suggestion_results, as: 'suggestionResults', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestionResult::Representation
end
end
class GoogleCloudDialogflowV2Intent class GoogleCloudDialogflowV2Intent
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1227,6 +1303,13 @@ module Google
end end
end end
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :state, as: 'state'
end
end
class GoogleCloudDialogflowV2OriginalDetectIntentRequest class GoogleCloudDialogflowV2OriginalDetectIntentRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1287,6 +1370,38 @@ module Google
end end
end end
class GoogleCloudDialogflowV2SuggestArticlesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :article_answers, as: 'articleAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer::Representation
property :context_size, as: 'contextSize'
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_size, as: 'contextSize'
collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FaqAnswer::Representation
property :latest_message, as: 'latestMessage'
end
end
class GoogleCloudDialogflowV2SuggestionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
end
end
class GoogleCloudDialogflowV2WebhookRequest class GoogleCloudDialogflowV2WebhookRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/iap # @see https://cloud.google.com/iap
module IapV1 module IapV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190920' REVISION = '20191004'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -173,7 +173,7 @@ module Google
# ` # `
# "bindings": [ # "bindings": [
# ` # `
# "role": "role/resourcemanager.organizationAdmin", # "role": "roles/resourcemanager.organizationAdmin",
# "members": [ # "members": [
# "user:mike@example.com", # "user:mike@example.com",
# "group:admins@example.com", # "group:admins@example.com",
@ -279,7 +279,7 @@ module Google
# ` # `
# "bindings": [ # "bindings": [
# ` # `
# "role": "role/resourcemanager.organizationAdmin", # "role": "roles/resourcemanager.organizationAdmin",
# "members": [ # "members": [
# "user:mike@example.com", # "user:mike@example.com",
# "group:admins@example.com", # "group:admins@example.com",

View File

@ -30,7 +30,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/ # @see https://cloud.google.com/monitoring/api/
module MonitoringV3 module MonitoringV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20190929' REVISION = '20191005'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1240,7 +1240,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :description attr_accessor :description
# The label key. # The key for this label. The key must meet the following criteria:
# Does not exceed 100 characters.
# Matches the following regular expression: [a-zA-Z][a-zA-Z0-9_]*
# The first character must be an upper- or lower-case letter.
# The remaining characters must be letters, digits, or underscores.
# Corresponds to the JSON property `key` # Corresponds to the JSON property `key`
# @return [String] # @return [String]
attr_accessor :key attr_accessor :key
@ -2817,6 +2821,15 @@ module Google
# @return [Array<Google::Apis::MonitoringV3::InternalChecker>] # @return [Array<Google::Apis::MonitoringV3::InternalChecker>]
attr_accessor :internal_checkers attr_accessor :internal_checkers
# If this is true, then checks are made only from the 'internal_checkers'. If it
# is false, then checks are made only from the 'selected_regions'. It is an
# error to provide 'selected_regions' when is_internal is true, or to provide '
# internal_checkers' when is_internal is false.
# Corresponds to the JSON property `isInternal`
# @return [Boolean]
attr_accessor :is_internal
alias_method :is_internal?, :is_internal
# An object representing a resource that can be used for monitoring, logging, # An object representing a resource that can be used for monitoring, logging,
# billing, or other purposes. Examples include virtual machine instances, # billing, or other purposes. Examples include virtual machine instances,
# databases, and storage devices such as disks. The type field identifies a # databases, and storage devices such as disks. The type field identifies a
@ -2883,6 +2896,7 @@ module Google
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@http_check = args[:http_check] if args.key?(:http_check) @http_check = args[:http_check] if args.key?(:http_check)
@internal_checkers = args[:internal_checkers] if args.key?(:internal_checkers) @internal_checkers = args[:internal_checkers] if args.key?(:internal_checkers)
@is_internal = args[:is_internal] if args.key?(:is_internal)
@monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@period = args[:period] if args.key?(:period) @period = args[:period] if args.key?(:period)

View File

@ -1074,6 +1074,7 @@ module Google
collection :internal_checkers, as: 'internalCheckers', class: Google::Apis::MonitoringV3::InternalChecker, decorator: Google::Apis::MonitoringV3::InternalChecker::Representation collection :internal_checkers, as: 'internalCheckers', class: Google::Apis::MonitoringV3::InternalChecker, decorator: Google::Apis::MonitoringV3::InternalChecker::Representation
property :is_internal, as: 'isInternal'
property :monitored_resource, as: 'monitoredResource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation property :monitored_resource, as: 'monitoredResource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
property :name, as: 'name' property :name, as: 'name'

View File

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

View File

@ -1480,12 +1480,27 @@ module Google
# @return [String] # @return [String]
attr_accessor :docker_prep attr_accessor :docker_prep
# The timestamp when docker prepartion begins.
# Corresponds to the JSON property `dockerPrepStartTime`
# @return [String]
attr_accessor :docker_prep_start_time
# The time spent downloading the input files and constructing the working # The time spent downloading the input files and constructing the working
# directory. # directory.
# Corresponds to the JSON property `download` # Corresponds to the JSON property `download`
# @return [String] # @return [String]
attr_accessor :download attr_accessor :download
# The timestamp when downloading the input files begins.
# Corresponds to the JSON property `downloadStartTime`
# @return [String]
attr_accessor :download_start_time
# The timestamp when execution begins.
# Corresponds to the JSON property `execStartTime`
# @return [String]
attr_accessor :exec_start_time
# The time spent executing the command (i.e., doing useful work). # The time spent executing the command (i.e., doing useful work).
# Corresponds to the JSON property `execution` # Corresponds to the JSON property `execution`
# @return [String] # @return [String]
@ -1511,6 +1526,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :upload attr_accessor :upload
# The timestamp when uploading the output files begins.
# Corresponds to the JSON property `uploadStartTime`
# @return [String]
attr_accessor :upload_start_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1518,12 +1538,16 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@docker_prep = args[:docker_prep] if args.key?(:docker_prep) @docker_prep = args[:docker_prep] if args.key?(:docker_prep)
@docker_prep_start_time = args[:docker_prep_start_time] if args.key?(:docker_prep_start_time)
@download = args[:download] if args.key?(:download) @download = args[:download] if args.key?(:download)
@download_start_time = args[:download_start_time] if args.key?(:download_start_time)
@exec_start_time = args[:exec_start_time] if args.key?(:exec_start_time)
@execution = args[:execution] if args.key?(:execution) @execution = args[:execution] if args.key?(:execution)
@iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done) @iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done)
@overall = args[:overall] if args.key?(:overall) @overall = args[:overall] if args.key?(:overall)
@stdout = args[:stdout] if args.key?(:stdout) @stdout = args[:stdout] if args.key?(:stdout)
@upload = args[:upload] if args.key?(:upload) @upload = args[:upload] if args.key?(:upload)
@upload_start_time = args[:upload_start_time] if args.key?(:upload_start_time)
end end
end end

View File

@ -614,12 +614,16 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :docker_prep, as: 'dockerPrep' property :docker_prep, as: 'dockerPrep'
property :docker_prep_start_time, as: 'dockerPrepStartTime'
property :download, as: 'download' property :download, as: 'download'
property :download_start_time, as: 'downloadStartTime'
property :exec_start_time, as: 'execStartTime'
property :execution, as: 'execution' property :execution, as: 'execution'
property :iso_prep_done, as: 'isoPrepDone' property :iso_prep_done, as: 'isoPrepDone'
property :overall, as: 'overall' property :overall, as: 'overall'
property :stdout, as: 'stdout' property :stdout, as: 'stdout'
property :upload, as: 'upload' property :upload, as: 'upload'
property :upload_start_time, as: 'uploadStartTime'
end end
end end

View File

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

View File

@ -1461,12 +1461,27 @@ module Google
# @return [String] # @return [String]
attr_accessor :docker_prep attr_accessor :docker_prep
# The timestamp when docker prepartion begins.
# Corresponds to the JSON property `dockerPrepStartTime`
# @return [String]
attr_accessor :docker_prep_start_time
# The time spent downloading the input files and constructing the working # The time spent downloading the input files and constructing the working
# directory. # directory.
# Corresponds to the JSON property `download` # Corresponds to the JSON property `download`
# @return [String] # @return [String]
attr_accessor :download attr_accessor :download
# The timestamp when downloading the input files begins.
# Corresponds to the JSON property `downloadStartTime`
# @return [String]
attr_accessor :download_start_time
# The timestamp when execution begins.
# Corresponds to the JSON property `execStartTime`
# @return [String]
attr_accessor :exec_start_time
# The time spent executing the command (i.e., doing useful work). # The time spent executing the command (i.e., doing useful work).
# Corresponds to the JSON property `execution` # Corresponds to the JSON property `execution`
# @return [String] # @return [String]
@ -1492,6 +1507,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :upload attr_accessor :upload
# The timestamp when uploading the output files begins.
# Corresponds to the JSON property `uploadStartTime`
# @return [String]
attr_accessor :upload_start_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1499,12 +1519,16 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@docker_prep = args[:docker_prep] if args.key?(:docker_prep) @docker_prep = args[:docker_prep] if args.key?(:docker_prep)
@docker_prep_start_time = args[:docker_prep_start_time] if args.key?(:docker_prep_start_time)
@download = args[:download] if args.key?(:download) @download = args[:download] if args.key?(:download)
@download_start_time = args[:download_start_time] if args.key?(:download_start_time)
@exec_start_time = args[:exec_start_time] if args.key?(:exec_start_time)
@execution = args[:execution] if args.key?(:execution) @execution = args[:execution] if args.key?(:execution)
@iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done) @iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done)
@overall = args[:overall] if args.key?(:overall) @overall = args[:overall] if args.key?(:overall)
@stdout = args[:stdout] if args.key?(:stdout) @stdout = args[:stdout] if args.key?(:stdout)
@upload = args[:upload] if args.key?(:upload) @upload = args[:upload] if args.key?(:upload)
@upload_start_time = args[:upload_start_time] if args.key?(:upload_start_time)
end end
end end

View File

@ -583,12 +583,16 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :docker_prep, as: 'dockerPrep' property :docker_prep, as: 'dockerPrep'
property :docker_prep_start_time, as: 'dockerPrepStartTime'
property :download, as: 'download' property :download, as: 'download'
property :download_start_time, as: 'downloadStartTime'
property :exec_start_time, as: 'execStartTime'
property :execution, as: 'execution' property :execution, as: 'execution'
property :iso_prep_done, as: 'isoPrepDone' property :iso_prep_done, as: 'isoPrepDone'
property :overall, as: 'overall' property :overall, as: 'overall'
property :stdout, as: 'stdout' property :stdout, as: 'stdout'
property :upload, as: 'upload' property :upload, as: 'upload'
property :upload_start_time, as: 'uploadStartTime'
end end
end end

View File

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

View File

@ -2158,12 +2158,27 @@ module Google
# @return [String] # @return [String]
attr_accessor :docker_prep attr_accessor :docker_prep
# The timestamp when docker prepartion begins.
# Corresponds to the JSON property `dockerPrepStartTime`
# @return [String]
attr_accessor :docker_prep_start_time
# The time spent downloading the input files and constructing the working # The time spent downloading the input files and constructing the working
# directory. # directory.
# Corresponds to the JSON property `download` # Corresponds to the JSON property `download`
# @return [String] # @return [String]
attr_accessor :download attr_accessor :download
# The timestamp when downloading the input files begins.
# Corresponds to the JSON property `downloadStartTime`
# @return [String]
attr_accessor :download_start_time
# The timestamp when execution begins.
# Corresponds to the JSON property `execStartTime`
# @return [String]
attr_accessor :exec_start_time
# The time spent executing the command (i.e., doing useful work). # The time spent executing the command (i.e., doing useful work).
# Corresponds to the JSON property `execution` # Corresponds to the JSON property `execution`
# @return [String] # @return [String]
@ -2189,6 +2204,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :upload attr_accessor :upload
# The timestamp when uploading the output files begins.
# Corresponds to the JSON property `uploadStartTime`
# @return [String]
attr_accessor :upload_start_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2196,12 +2216,16 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@docker_prep = args[:docker_prep] if args.key?(:docker_prep) @docker_prep = args[:docker_prep] if args.key?(:docker_prep)
@docker_prep_start_time = args[:docker_prep_start_time] if args.key?(:docker_prep_start_time)
@download = args[:download] if args.key?(:download) @download = args[:download] if args.key?(:download)
@download_start_time = args[:download_start_time] if args.key?(:download_start_time)
@exec_start_time = args[:exec_start_time] if args.key?(:exec_start_time)
@execution = args[:execution] if args.key?(:execution) @execution = args[:execution] if args.key?(:execution)
@iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done) @iso_prep_done = args[:iso_prep_done] if args.key?(:iso_prep_done)
@overall = args[:overall] if args.key?(:overall) @overall = args[:overall] if args.key?(:overall)
@stdout = args[:stdout] if args.key?(:stdout) @stdout = args[:stdout] if args.key?(:stdout)
@upload = args[:upload] if args.key?(:upload) @upload = args[:upload] if args.key?(:upload)
@upload_start_time = args[:upload_start_time] if args.key?(:upload_start_time)
end end
end end

View File

@ -901,12 +901,16 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :docker_prep, as: 'dockerPrep' property :docker_prep, as: 'dockerPrep'
property :docker_prep_start_time, as: 'dockerPrepStartTime'
property :download, as: 'download' property :download, as: 'download'
property :download_start_time, as: 'downloadStartTime'
property :exec_start_time, as: 'execStartTime'
property :execution, as: 'execution' property :execution, as: 'execution'
property :iso_prep_done, as: 'isoPrepDone' property :iso_prep_done, as: 'isoPrepDone'
property :overall, as: 'overall' property :overall, as: 'overall'
property :stdout, as: 'stdout' property :stdout, as: 'stdout'
property :upload, as: 'upload' property :upload, as: 'upload'
property :upload_start_time, as: 'uploadStartTime'
end end
end end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-management/ # @see https://cloud.google.com/service-management/
module ServicemanagementV1 module ServicemanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190927' REVISION = '20191004'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1062,7 +1062,7 @@ module Google
class DisableServiceRequest class DisableServiceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The identity of consumer resource which service disablement will be # Required. The identity of consumer resource which service disablement will be
# applied to. # applied to.
# The Google Service Management implementation accepts the following # The Google Service Management implementation accepts the following
# forms: # forms:
@ -1083,6 +1083,19 @@ module Google
end end
end end
# Operation payload for DisableService method.
class DisableServiceResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# `Documentation` provides the information for describing a service. # `Documentation` provides the information for describing a service.
# Example: # Example:
# <pre><code>documentation: # <pre><code>documentation:
@ -1239,7 +1252,7 @@ module Google
class EnableServiceRequest class EnableServiceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The identity of consumer resource which service enablement will be # Required. The identity of consumer resource which service enablement will be
# applied to. # applied to.
# The Google Service Management implementation accepts the following # The Google Service Management implementation accepts the following
# forms: # forms:
@ -1260,6 +1273,19 @@ module Google
end end
end end
# Operation payload for EnableService method.
class EnableServiceResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# `Endpoint` describes a network endpoint that serves a set of APIs. # `Endpoint` describes a network endpoint that serves a set of APIs.
# A service may expose any number of endpoints, and all endpoints share the # A service may expose any number of endpoints, and all endpoints share the
# same service configuration, such as quota configuration and monitoring # same service configuration, such as quota configuration and monitoring
@ -1557,7 +1583,7 @@ module Google
class GenerateConfigReportRequest class GenerateConfigReportRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Service configuration for which we want to generate the report. # Required. Service configuration for which we want to generate the report.
# For this version of API, the supported types are # For this version of API, the supported types are
# google.api.servicemanagement.v1.ConfigRef, # google.api.servicemanagement.v1.ConfigRef,
# google.api.servicemanagement.v1.ConfigSource, # google.api.servicemanagement.v1.ConfigSource,
@ -1566,7 +1592,7 @@ module Google
# @return [Hash<String,Object>] # @return [Hash<String,Object>]
attr_accessor :new_config attr_accessor :new_config
# Service configuration against which the comparison will be done. # Optional. Service configuration against which the comparison will be done.
# For this version of API, the supported types are # For this version of API, the supported types are
# google.api.servicemanagement.v1.ConfigRef, # google.api.servicemanagement.v1.ConfigRef,
# google.api.servicemanagement.v1.ConfigSource, # google.api.servicemanagement.v1.ConfigSource,
@ -3358,7 +3384,7 @@ module Google
# @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy] # @return [Google::Apis::ServicemanagementV1::DeleteServiceStrategy]
attr_accessor :delete_service_strategy attr_accessor :delete_service_strategy
# Optional unique identifier of this Rollout. Only lower case letters, digits # Optional. Unique identifier of this Rollout. Only lower case letters, digits
# and '-' are allowed. # and '-' are allowed.
# If not specified by client, the server will generate one. The generated id # If not specified by client, the server will generate one. The generated id
# will have the form of <date><revision number>, where "date" is the create # will have the form of <date><revision number>, where "date" is the create
@ -3383,7 +3409,7 @@ module Google
# Strategy that specifies how clients of Google Service Controller want to # Strategy that specifies how clients of Google Service Controller want to
# send traffic to use different config versions. This is generally # send traffic to use different config versions. This is generally
# used by API proxy to split traffic based on your configured precentage for # used by API proxy to split traffic based on your configured percentage for
# each config version. # each config version.
# One example of how to gradually rollout a new service configuration using # One example of how to gradually rollout a new service configuration using
# this # this
@ -4276,7 +4302,7 @@ module Google
# Strategy that specifies how clients of Google Service Controller want to # Strategy that specifies how clients of Google Service Controller want to
# send traffic to use different config versions. This is generally # send traffic to use different config versions. This is generally
# used by API proxy to split traffic based on your configured precentage for # used by API proxy to split traffic based on your configured percentage for
# each config version. # each config version.
# One example of how to gradually rollout a new service configuration using # One example of how to gradually rollout a new service configuration using
# this # this

View File

@ -184,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DisableServiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Documentation class Documentation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,6 +208,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EnableServiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Endpoint class Endpoint
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -785,6 +797,12 @@ module Google
end end
end end
class DisableServiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Documentation class Documentation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -815,6 +833,12 @@ module Google
end end
end end
class EnableServiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class Endpoint class Endpoint
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -175,7 +175,8 @@ module Google
# After 30 days, the service will be permanently deleted. # After 30 days, the service will be permanently deleted.
# Operation<response: google.protobuf.Empty> # Operation<response: google.protobuf.Empty>
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -209,7 +210,7 @@ module Google
# unexpected billing charges or security leaks. # unexpected billing charges or security leaks.
# Operation<response: DisableServiceResponse> # Operation<response: DisableServiceResponse>
# @param [String] service_name # @param [String] service_name
# Name of the service to disable. Specifying an unknown service name # Required. Name of the service to disable. Specifying an unknown service name
# will cause the request to fail. # will cause the request to fail.
# @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
# @param [String] fields # @param [String] fields
@ -247,7 +248,8 @@ module Google
# more information. # more information.
# Operation<response: EnableServiceResponse> # Operation<response: EnableServiceResponse>
# @param [String] service_name # @param [String] service_name
# Name of the service to enable. Specifying an unknown service name will # Required. Name of the service to enable. Specifying an unknown service name
# will
# cause the request to fail. # cause the request to fail.
# @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
# @param [String] fields # @param [String] fields
@ -321,7 +323,8 @@ module Google
# Gets a managed service. Authentication is required unless the service is # Gets a managed service. Authentication is required unless the service is
# public. # public.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the `ServiceManager` overview for naming # Required. The name of the service. See the `ServiceManager` overview for
# naming
# requirements. For example: `example.googleapis.com`. # requirements. For example: `example.googleapis.com`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -352,10 +355,11 @@ module Google
# Gets a service configuration (version) for a managed service. # Gets a service configuration (version) for a managed service.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] config_id # @param [String] config_id
# The id of the service configuration resource. # Required. The id of the service configuration resource.
# This field must be specified for the server to return all fields, including # This field must be specified for the server to return all fields, including
# `SourceInfo`. # `SourceInfo`.
# @param [String] view # @param [String] view
@ -478,6 +482,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -556,7 +561,8 @@ module Google
# last 30 days. # last 30 days.
# Operation<response: UndeleteServiceResponse> # Operation<response: UndeleteServiceResponse>
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -593,7 +599,8 @@ module Google
# existing rollouts are kept for each service. The rest will be deleted # existing rollouts are kept for each service. The rest will be deleted
# eventually. # eventually.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [Google::Apis::ServicemanagementV1::Service] service_object # @param [Google::Apis::ServicemanagementV1::Service] service_object
# @param [String] fields # @param [String] fields
@ -627,10 +634,11 @@ module Google
# Gets a service configuration (version) for a managed service. # Gets a service configuration (version) for a managed service.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] config_id # @param [String] config_id
# The id of the service configuration resource. # Required. The id of the service configuration resource.
# This field must be specified for the server to return all fields, including # This field must be specified for the server to return all fields, including
# `SourceInfo`. # `SourceInfo`.
# @param [String] view # @param [String] view
@ -668,7 +676,8 @@ module Google
# Lists the history of the service configuration for a managed service, # Lists the history of the service configuration for a managed service,
# from the newest to the oldest. # from the newest to the oldest.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# The max number of items to include in the response list. Page size is 50 # The max number of items to include in the response list. Page size is 50
@ -716,7 +725,8 @@ module Google
# deleted eventually. # deleted eventually.
# Operation<response: SubmitConfigSourceResponse> # Operation<response: SubmitConfigSourceResponse>
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
# @param [String] fields # @param [String] fields
@ -786,6 +796,7 @@ module Google
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
# @param [String] resource # @param [String] resource
# REQUIRED: The resource for which the policy is being specified. # REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field. # See the operation documentation for the appropriate value for this field.
@ -870,7 +881,8 @@ module Google
# service. The rest will be deleted eventually. # service. The rest will be deleted eventually.
# Operation<response: Rollout> # Operation<response: Rollout>
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
# @param [String] base_rollout_id # @param [String] base_rollout_id
@ -912,10 +924,11 @@ module Google
# Gets a service configuration rollout. # Gets a service configuration rollout.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] rollout_id # @param [String] rollout_id
# The id of the rollout resource. # Required. The id of the rollout resource.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -947,10 +960,11 @@ module Google
# Lists the history of the service configuration rollouts for a managed # Lists the history of the service configuration rollouts for a managed
# service, from the newest to the oldest. # service, from the newest to the oldest.
# @param [String] service_name # @param [String] service_name
# The name of the service. See the [overview](/service-management/overview) # Required. The name of the service. See the [overview](/service-management/
# overview)
# for naming requirements. For example: `example.googleapis.com`. # for naming requirements. For example: `example.googleapis.com`.
# @param [String] filter # @param [String] filter
# Use `filter` to return subset of rollouts. # Required. Use `filter` to return subset of rollouts.
# The following filters are supported: # The following filters are supported:
# -- To limit the results to only those in # -- To limit the results to only those in
# [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS', # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',

View File

@ -1,34 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/urlshortener_v1/service.rb'
require 'google/apis/urlshortener_v1/classes.rb'
require 'google/apis/urlshortener_v1/representations.rb'
module Google
module Apis
# URL Shortener API
#
# Lets you create, inspect, and manage goo.gl short URLs
#
# @see https://developers.google.com/url-shortener/v1/getting_started
module UrlshortenerV1
VERSION = 'V1'
REVISION = '20150519'
# Manage your goo.gl short URLs
AUTH_URLSHORTENER = 'https://www.googleapis.com/auth/urlshortener'
end
end
end

View File

@ -1,246 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module UrlshortenerV1
#
class AnalyticsSnapshot
include Google::Apis::Core::Hashable
# Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present
# if this data is available.
# Corresponds to the JSON property `browsers`
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
attr_accessor :browsers
# Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (
# descending) click counts. Only present if this data is available.
# Corresponds to the JSON property `countries`
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
attr_accessor :countries
# Number of clicks on all goo.gl short URLs pointing to this long URL.
# Corresponds to the JSON property `longUrlClicks`
# @return [Fixnum]
attr_accessor :long_url_clicks
# Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts.
# Only present if this data is available.
# Corresponds to the JSON property `platforms`
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
attr_accessor :platforms
# Top referring hosts, e.g. "www.google.com"; sorted by (descending) click
# counts. Only present if this data is available.
# Corresponds to the JSON property `referrers`
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
attr_accessor :referrers
# Number of clicks on this short URL.
# Corresponds to the JSON property `shortUrlClicks`
# @return [Fixnum]
attr_accessor :short_url_clicks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@browsers = args[:browsers] if args.key?(:browsers)
@countries = args[:countries] if args.key?(:countries)
@long_url_clicks = args[:long_url_clicks] if args.key?(:long_url_clicks)
@platforms = args[:platforms] if args.key?(:platforms)
@referrers = args[:referrers] if args.key?(:referrers)
@short_url_clicks = args[:short_url_clicks] if args.key?(:short_url_clicks)
end
end
#
class AnalyticsSummary
include Google::Apis::Core::Hashable
# Click analytics over all time.
# Corresponds to the JSON property `allTime`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
attr_accessor :all_time
# Click analytics over the last day.
# Corresponds to the JSON property `day`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
attr_accessor :day
# Click analytics over the last month.
# Corresponds to the JSON property `month`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
attr_accessor :month
# Click analytics over the last two hours.
# Corresponds to the JSON property `twoHours`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
attr_accessor :two_hours
# Click analytics over the last week.
# Corresponds to the JSON property `week`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
attr_accessor :week
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@all_time = args[:all_time] if args.key?(:all_time)
@day = args[:day] if args.key?(:day)
@month = args[:month] if args.key?(:month)
@two_hours = args[:two_hours] if args.key?(:two_hours)
@week = args[:week] if args.key?(:week)
end
end
#
class StringCount
include Google::Apis::Core::Hashable
# Number of clicks for this top entry, e.g. for this particular country or
# browser.
# Corresponds to the JSON property `count`
# @return [Fixnum]
attr_accessor :count
# Label assigned to this top entry, e.g. "US" or "Chrome".
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@count = args[:count] if args.key?(:count)
@id = args[:id] if args.key?(:id)
end
end
#
class Url
include Google::Apis::Core::Hashable
# A summary of the click analytics for the short and long URL. Might not be
# present if not requested or currently unavailable.
# Corresponds to the JSON property `analytics`
# @return [Google::Apis::UrlshortenerV1::AnalyticsSummary]
attr_accessor :analytics
# Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'
# HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
# Corresponds to the JSON property `created`
# @return [String]
attr_accessor :created
# Short URL, e.g. "http://goo.gl/l6MS".
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The fixed string "urlshortener#url".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Long URL, e.g. "http://www.google.com/". Might not be present if the status is
# "REMOVED".
# Corresponds to the JSON property `longUrl`
# @return [String]
attr_accessor :long_url
# Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "
# REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for
# example.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@analytics = args[:analytics] if args.key?(:analytics)
@created = args[:created] if args.key?(:created)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@long_url = args[:long_url] if args.key?(:long_url)
@status = args[:status] if args.key?(:status)
end
end
#
class UrlHistory
include Google::Apis::Core::Hashable
# A list of URL resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::UrlshortenerV1::Url>]
attr_accessor :items
# Number of items returned with each full "page" of results. Note that the last
# page could have fewer items than the "itemsPerPage" value.
# Corresponds to the JSON property `itemsPerPage`
# @return [Fixnum]
attr_accessor :items_per_page
# The fixed string "urlshortener#urlHistory".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# A token to provide to get the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Total number of short URLs associated with this user (may be approximate).
# Corresponds to the JSON property `totalItems`
# @return [Fixnum]
attr_accessor :total_items
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@items = args[:items] if args.key?(:items)
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@total_items = args[:total_items] if args.key?(:total_items)
end
end
end
end
end

View File

@ -1,121 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module UrlshortenerV1
class AnalyticsSnapshot
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnalyticsSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class StringCount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Url
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UrlHistory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnalyticsSnapshot
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :browsers, as: 'browsers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
collection :countries, as: 'countries', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
property :long_url_clicks, :numeric_string => true, as: 'longUrlClicks'
collection :platforms, as: 'platforms', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
collection :referrers, as: 'referrers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
property :short_url_clicks, :numeric_string => true, as: 'shortUrlClicks'
end
end
class AnalyticsSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all_time, as: 'allTime', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
property :day, as: 'day', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
property :month, as: 'month', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
property :two_hours, as: 'twoHours', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
property :week, as: 'week', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
end
end
class StringCount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, :numeric_string => true, as: 'count'
property :id, as: 'id'
end
end
class Url
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :analytics, as: 'analytics', class: Google::Apis::UrlshortenerV1::AnalyticsSummary, decorator: Google::Apis::UrlshortenerV1::AnalyticsSummary::Representation
property :created, as: 'created'
property :id, as: 'id'
property :kind, as: 'kind'
property :long_url, as: 'longUrl'
property :status, as: 'status'
end
end
class UrlHistory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::UrlshortenerV1::Url, decorator: Google::Apis::UrlshortenerV1::Url::Representation
property :items_per_page, as: 'itemsPerPage'
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :total_items, as: 'totalItems'
end
end
end
end
end

View File

@ -1,169 +0,0 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module UrlshortenerV1
# URL Shortener API
#
# Lets you create, inspect, and manage goo.gl short URLs
#
# @example
# require 'google/apis/urlshortener_v1'
#
# Urlshortener = Google::Apis::UrlshortenerV1 # Alias the module
# service = Urlshortener::UrlshortenerService.new
#
# @see https://developers.google.com/url-shortener/v1/getting_started
class UrlshortenerService < 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]
# An opaque string that represents a user for quota purposes. Must 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/', 'urlshortener/v1/')
@batch_path = 'batch/urlshortener/v1'
end
# Expands a short URL or gets creation time and analytics.
# @param [String] short_url
# The short URL, including the protocol.
# @param [String] projection
# Additional information to return.
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::UrlshortenerV1::Url]
#
# @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_url(short_url, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'url', options)
command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
command.response_class = Google::Apis::UrlshortenerV1::Url
command.query['projection'] = projection unless projection.nil?
command.query['shortUrl'] = short_url unless short_url.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 short URL.
# @param [Google::Apis::UrlshortenerV1::Url] url_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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::UrlshortenerV1::Url]
#
# @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_url(url_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'url', options)
command.request_representation = Google::Apis::UrlshortenerV1::Url::Representation
command.request_object = url_object
command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
command.response_class = Google::Apis::UrlshortenerV1::Url
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
# Retrieves a list of URLs shortened by a user.
# @param [String] projection
# Additional information to return.
# @param [String] start_token
# Token for requesting successive pages of results.
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::UrlshortenerV1::UrlHistory] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::UrlshortenerV1::UrlHistory]
#
# @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_urls(projection: nil, start_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'url/history', options)
command.response_representation = Google::Apis::UrlshortenerV1::UrlHistory::Representation
command.response_class = Google::Apis::UrlshortenerV1::UrlHistory
command.query['projection'] = projection unless projection.nil?
command.query['start-token'] = start_token unless start_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
protected
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
end
end