Autogenerated update (2019-08-20)

Update:
- androidpublisher_v2
- androidpublisher_v3
- cloudfunctions_v1
- cloudfunctions_v1beta2
- cloudresourcemanager_v2
This commit is contained in:
Google APIs 2019-08-20 00:38:36 +00:00
parent 33a4aea60d
commit ba1d806d81
14 changed files with 115 additions and 69 deletions

View File

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

View File

@ -1886,8 +1886,9 @@ module Google
# @return [Fixnum]
attr_accessor :purchase_time_millis
# The token that was generated when a purchase was made. This uniquely
# identifies a purchase.
# The token which uniquely identifies a one-time purchase or subscription. To
# uniquely identify subscription renewals use order_id (available starting from
# version 3 of the API).
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token

View File

@ -2336,21 +2336,21 @@ module Google
# The package name of the application for which voided purchases need to be
# returned (for example, 'com.some.thing').
# @param [Fixnum] end_time
# The time, in milliseconds since the Epoch, of the newest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be greater than the current time and is ignored if a pagination token
# is set. Default value is current time. Note: This filter is applied on the
# time at which the record is seen as voided by our systems and not the actual
# voided time returned in the response.
# The time, in milliseconds since the Epoch, of the newest voided purchase that
# you want to see in the response. The value of this parameter cannot be greater
# than the current time and is ignored if a pagination token is set. Default
# value is current time. Note: This filter is applied on the time at which the
# record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [Fixnum] max_results
# @param [Fixnum] start_index
# @param [Fixnum] start_time
# The time, in milliseconds since the Epoch, of the oldest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be older than 30 days and is ignored if a pagination token is set.
# Default value is current time minus 30 days. Note: This filter is applied on
# the time at which the record is seen as voided by our systems and not the
# actual voided time returned in the response.
# The time, in milliseconds since the Epoch, of the oldest voided purchase that
# you want to see in the response. The value of this parameter cannot be older
# than 30 days and is ignored if a pagination token is set. Default value is
# current time minus 30 days. Note: This filter is applied on the time at which
# the record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [String] token
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

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

View File

@ -2075,18 +2075,46 @@ module Google
# @return [String]
attr_accessor :kind
# The order id which uniquely identifies a one-time purchase, subscription
# purchase, or subscription renewal.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# The time at which the purchase was made, in milliseconds since the epoch (Jan
# 1, 1970).
# Corresponds to the JSON property `purchaseTimeMillis`
# @return [Fixnum]
attr_accessor :purchase_time_millis
# The token that was generated when a purchase was made. This uniquely
# identifies a purchase.
# The token which uniquely identifies a one-time purchase or subscription. To
# uniquely identify subscription renewals use order_id (available starting from
# version 3 of the API).
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token
# The reason why the purchase was voided, possible values are:
# - Other
# - Remorse
# - Not_received
# - Defective
# - Accidental_purchase
# - Fraud
# - Friendly_fraud
# - Chargeback
# Corresponds to the JSON property `voidedReason`
# @return [Fixnum]
attr_accessor :voided_reason
# The initiator of voided purchase, possible values are:
# - User
# - Developer
# - Google
# Corresponds to the JSON property `voidedSource`
# @return [Fixnum]
attr_accessor :voided_source
# The time at which the purchase was canceled/refunded/charged-back, in
# milliseconds since the epoch (Jan 1, 1970).
# Corresponds to the JSON property `voidedTimeMillis`
@ -2100,8 +2128,11 @@ module Google
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@order_id = args[:order_id] if args.key?(:order_id)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
@voided_reason = args[:voided_reason] if args.key?(:voided_reason)
@voided_source = args[:voided_source] if args.key?(:voided_source)
@voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
end
end

View File

@ -957,8 +957,11 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :order_id, as: 'orderId'
property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
property :purchase_token, as: 'purchaseToken'
property :voided_reason, as: 'voidedReason'
property :voided_source, as: 'voidedSource'
property :voided_time_millis, :numeric_string => true, as: 'voidedTimeMillis'
end
end

View File

@ -2246,22 +2246,33 @@ module Google
# The package name of the application for which voided purchases need to be
# returned (for example, 'com.some.thing').
# @param [Fixnum] end_time
# The time, in milliseconds since the Epoch, of the newest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be greater than the current time and is ignored if a pagination token
# is set. Default value is current time. Note: This filter is applied on the
# time at which the record is seen as voided by our systems and not the actual
# voided time returned in the response.
# The time, in milliseconds since the Epoch, of the newest voided purchase that
# you want to see in the response. The value of this parameter cannot be greater
# than the current time and is ignored if a pagination token is set. Default
# value is current time. Note: This filter is applied on the time at which the
# record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [Fixnum] max_results
# @param [Fixnum] start_index
# @param [Fixnum] start_time
# The time, in milliseconds since the Epoch, of the oldest voided in-app product
# purchase that you want to see in the response. The value of this parameter
# cannot be older than 30 days and is ignored if a pagination token is set.
# Default value is current time minus 30 days. Note: This filter is applied on
# the time at which the record is seen as voided by our systems and not the
# actual voided time returned in the response.
# The time, in milliseconds since the Epoch, of the oldest voided purchase that
# you want to see in the response. The value of this parameter cannot be older
# than 30 days and is ignored if a pagination token is set. Default value is
# current time minus 30 days. Note: This filter is applied on the time at which
# the record is seen as voided by our systems and not the actual voided time
# returned in the response.
# @param [String] token
# @param [Fixnum] type
# The type of voided purchases that you want to see in the response. Possible
# values are:
# - 0: Only voided in-app product purchases will be returned in the response.
# This is the default value.
# - 1: Both voided in-app purchases and voided subscription purchases will be
# returned in the response. Note: Before requesting to receive voided
# subscription purchases, you must switch to use orderId in the response which
# uniquely identifies one-time purchases and subscriptions. Otherwise, you will
# receive multiple subscription orders with the same PurchaseToken, because
# subscription renewal orders share the same PurchaseToken.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2281,7 +2292,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{packageName}/purchases/voidedpurchases', options)
command.response_representation = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse
@ -2291,6 +2302,7 @@ module Google
command.query['startIndex'] = start_index unless start_index.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['token'] = token unless token.nil?
command.query['type'] = type unless type.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?

View File

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

View File

@ -39,7 +39,7 @@ module Google
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# "user:jose@example.com"
# ]
# `,
# `
@ -51,7 +51,7 @@ module Google
# ]
# `,
# `
# "service": "fooservice.googleapis.com"
# "service": "sampleservice.googleapis.com"
# "audit_log_configs": [
# `
# "log_type": "DATA_READ",
@ -59,16 +59,16 @@ module Google
# `
# "log_type": "DATA_WRITE",
# "exempted_members": [
# "user:bar@gmail.com"
# "user:aliya@example.com"
# ]
# `
# ]
# `
# ]
# `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
# bar@gmail.com from DATA_WRITE logging.
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts jose@example.com from DATA_READ logging, and
# aliya@example.com from DATA_WRITE logging.
class AuditConfig
include Google::Apis::Core::Hashable
@ -102,7 +102,7 @@ module Google
# `
# "log_type": "DATA_READ",
# "exempted_members": [
# "user:foo@gmail.com"
# "user:jose@example.com"
# ]
# `,
# `
@ -111,7 +111,7 @@ module Google
# ]
# `
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
# foo@gmail.com from DATA_READ logging.
# jose@example.com from DATA_READ logging.
class AuditLogConfig
include Google::Apis::Core::Hashable
@ -157,7 +157,7 @@ module Google
# * `allAuthenticatedUsers`: A special identifier that represents anyone
# who is authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google
# account. For example, `alice@gmail.com` .
# account. For example, `alice@example.com` .
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group.
@ -240,7 +240,6 @@ module Google
# Describes a Cloud Function that contains user computation executed in
# response to an event. It encapsulate function and triggers configurations.
# LINT.IfChange
class CloudFunction
include Google::Apis::Core::Hashable
@ -310,23 +309,21 @@ module Google
# by it.
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
# This feature is currently in alpha, available only for whitelisted users.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Required. The runtime in which the function is going to run. Choices:
# * `nodejs6`: Node.js 6
# * `nodejs8`: Node.js 8
# * `nodejs10`: Node.js 10
# * `python37`: Python 3.7
# * `go111`: Go 1.11
# The runtime in which to run the function. Required when deploying a new
# function, optional when updating an existing function. For a complete
# list of possible choices, see the
# [`gcloud` command
# reference](/sdk/gcloud/reference/functions/deploy#--runtime).
# Corresponds to the JSON property `runtime`
# @return [String]
attr_accessor :runtime
# The email of the function's service account. If empty, defaults to
# `project_id`@appspot.gserviceaccount.com.
# ``project_id`@appspot.gserviceaccount.com`.
# Corresponds to the JSON property `serviceAccountEmail`
# @return [String]
attr_accessor :service_account_email
@ -366,8 +363,8 @@ module Google
# @return [String]
attr_accessor :update_time
# Output only.
# The version identifier of the Cloud Function. Each deployment attempt
# Output only. The version identifier of the Cloud Function. Each deployment
# attempt
# results in a new version of a function being created.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
@ -381,7 +378,6 @@ module Google
# replace it.
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
# This feature is currently in alpha, available only for whitelisted users.
# Corresponds to the JSON property `vpcConnector`
# @return [String]
attr_accessor :vpc_connector
@ -984,7 +980,7 @@ module Google
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# policy is overwritten.
# Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String]

View File

@ -398,6 +398,11 @@ module Google
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -415,11 +420,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_function_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
def get_project_location_function_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::CloudfunctionsV1::Policy::Representation
command.response_class = Google::Apis::CloudfunctionsV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/functions
module CloudfunctionsV1beta2
VERSION = 'V1beta2'
REVISION = '20190607'
REVISION = '20190807'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -147,23 +147,21 @@ module Google
# by it.
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
# This feature is currently in alpha, available only for whitelisted users.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
# Required. The runtime in which the function is going to run. Choices:
# * `nodejs6`: Node.js 6
# * `nodejs8`: Node.js 8
# * `nodejs10`: Node.js 10
# * `python37`: Python 3.7
# * `go111`: Go 1.11
# The runtime in which to run the function. Required when deploying a new
# function, optional when updating an existing function. For a complete
# list of possible choices, see the
# [`gcloud` command
# reference](/sdk/gcloud/reference/functions/deploy#--runtime).
# Corresponds to the JSON property `runtime`
# @return [String]
attr_accessor :runtime
# The email of the function's service account. If empty, defaults to
# `project_id`@appspot.gserviceaccount.com.
# ``project_id`@appspot.gserviceaccount.com`.
# Corresponds to the JSON property `serviceAccount`
# @return [String]
attr_accessor :service_account
@ -219,8 +217,8 @@ module Google
# @return [String]
attr_accessor :update_time
# Output only.
# The version identifier of the Cloud Function. Each deployment attempt
# Output only. The version identifier of the Cloud Function. Each deployment
# attempt
# results in a new version of a function being created.
# Corresponds to the JSON property `versionId`
# @return [Fixnum]
@ -234,7 +232,6 @@ module Google
# replace it.
# See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
# more information on connecting Cloud projects.
# This feature is currently in alpha, available only for whitelisted users.
# Corresponds to the JSON property `vpcConnector`
# @return [String]
attr_accessor :vpc_connector

View File

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

View File

@ -371,7 +371,7 @@ module Google
include Google::Apis::Core::Hashable
# Optional. The policy format version to be returned.
# Acceptable values are 0 and 1.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# Corresponds to the JSON property `requestedPolicyVersion`