Autogenerated update (2020-10-06)

Update:
- adexchangebuyer_v1_4
- admob_v1
- adsense_v1_4
- apigee_v1
- healthcare_v1beta1
- youtube_partner_v1
This commit is contained in:
Google APIs 2020-10-06 00:39:07 +00:00
parent c18c0c7c8c
commit 3b979b3663
25 changed files with 11710 additions and 452 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest # @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4 module AdexchangebuyerV1_4
VERSION = 'V1_4' VERSION = 'V1_4'
REVISION = '20200826' REVISION = '20201004'
# Manage your Ad Exchange buyer account configuration # Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -3544,6 +3544,11 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :long_value attr_accessor :long_value
#
# Corresponds to the JSON property `requestPlatformTargetingValue`
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting]
attr_accessor :request_platform_targeting_value
# The string value to exclude/include. # The string value to exclude/include.
# Corresponds to the JSON property `stringValue` # Corresponds to the JSON property `stringValue`
# @return [String] # @return [String]
@ -3560,6 +3565,7 @@ module Google
@demog_age_criteria_value = args[:demog_age_criteria_value] if args.key?(:demog_age_criteria_value) @demog_age_criteria_value = args[:demog_age_criteria_value] if args.key?(:demog_age_criteria_value)
@demog_gender_criteria_value = args[:demog_gender_criteria_value] if args.key?(:demog_gender_criteria_value) @demog_gender_criteria_value = args[:demog_gender_criteria_value] if args.key?(:demog_gender_criteria_value)
@long_value = args[:long_value] if args.key?(:long_value) @long_value = args[:long_value] if args.key?(:long_value)
@request_platform_targeting_value = args[:request_platform_targeting_value] if args.key?(:request_platform_targeting_value)
@string_value = args[:string_value] if args.key?(:string_value) @string_value = args[:string_value] if args.key?(:string_value)
end end
end end
@ -3719,6 +3725,25 @@ module Google
end end
end end
#
class TargetingValueRequestPlatformTargeting
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `requestPlatforms`
# @return [Array<String>]
attr_accessor :request_platforms
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@request_platforms = args[:request_platforms] if args.key?(:request_platforms)
end
end
# #
class TargetingValueSize class TargetingValueSize
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -496,6 +496,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class TargetingValueRequestPlatformTargeting
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TargetingValueSize class TargetingValueSize
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1423,6 +1429,8 @@ module Google
property :demog_gender_criteria_value, as: 'demogGenderCriteriaValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria::Representation property :demog_gender_criteria_value, as: 'demogGenderCriteriaValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDemogGenderCriteria::Representation
property :long_value, :numeric_string => true, as: 'longValue' property :long_value, :numeric_string => true, as: 'longValue'
property :request_platform_targeting_value, as: 'requestPlatformTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueRequestPlatformTargeting::Representation
property :string_value, as: 'stringValue' property :string_value, as: 'stringValue'
end end
end end
@ -1475,6 +1483,13 @@ module Google
end end
end end
class TargetingValueRequestPlatformTargeting
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :request_platforms, as: 'requestPlatforms'
end
end
class TargetingValueSize class TargetingValueSize
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -20,12 +20,13 @@ module Google
module Apis module Apis
# AdMob API # AdMob API
# #
# The Google AdMob API lets you programmatically get reports on earnings. # The AdMob API allows publishers to programmatically get information about
# their AdMob account.
# #
# @see https://developers.google.com/admob/api/ # @see https://developers.google.com/admob/api/
module AdmobV1 module AdmobV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200916' REVISION = '20201002'
# See your AdMob data # See your AdMob data
AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report' AUTH_ADMOB_REPORT = 'https://www.googleapis.com/auth/admob.report'

View File

@ -22,7 +22,8 @@ module Google
module AdmobV1 module AdmobV1
# AdMob API # AdMob API
# #
# The Google AdMob API lets you programmatically get reports on earnings. # The AdMob API allows publishers to programmatically get information about
# their AdMob account.
# #
# @example # @example
# require 'google/apis/admob_v1' # require 'google/apis/admob_v1'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/ # @see https://developers.google.com/adsense/management/
module AdsenseV1_4 module AdsenseV1_4
VERSION = 'V1_4' VERSION = 'V1_4'
REVISION = '20200311' REVISION = '20201002'
# View and manage your AdSense data # View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense' AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -129,6 +129,8 @@ module Google
# Account which contains the ad client. # Account which contains the ad client.
# @param [String] ad_client_id # @param [String] ad_client_id
# Ad client to get the code for. # Ad client to get the code for.
# @param [String] tag_partner
# Tag partner to include in the ad code snippet.
# @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
@ -148,12 +150,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_account_adclient_ad_code(account_id, ad_client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_account_adclient_ad_code(account_id, ad_client_id, tag_partner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adcode', options) command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/adcode', options)
command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation command.response_representation = Google::Apis::AdsenseV1_4::AdCode::Representation
command.response_class = Google::Apis::AdsenseV1_4::AdCode command.response_class = Google::Apis::AdsenseV1_4::AdCode
command.params['accountId'] = account_id unless account_id.nil? command.params['accountId'] = account_id unless account_id.nil?
command.params['adClientId'] = ad_client_id unless ad_client_id.nil? command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
command.query['tagPartner'] = tag_partner unless tag_partner.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

@ -29,7 +29,7 @@ module Google
# @see https://cloud.google.com/apigee-api-management/ # @see https://cloud.google.com/apigee-api-management/
module ApigeeV1 module ApigeeV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200924' REVISION = '20201002'
# 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

@ -255,6 +255,86 @@ module Google
end end
end end
# the Api category resource wrapped with response status, error_code etc.
class GoogleCloudApigeeV1ApiCategory
include Google::Apis::Core::Hashable
# the Api category resource.
# Corresponds to the JSON property `data`
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData]
attr_accessor :data
# ID that can be used to find errors in the log files.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# Description of the operation.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# ID that can be used to find request details in the log files.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
# Status of the operation.
# 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)
@data = args[:data] if args.key?(:data)
@error_code = args[:error_code] if args.key?(:error_code)
@message = args[:message] if args.key?(:message)
@request_id = args[:request_id] if args.key?(:request_id)
@status = args[:status] if args.key?(:status)
end
end
# the Api category resource.
class GoogleCloudApigeeV1ApiCategoryData
include Google::Apis::Core::Hashable
# ID of the category (a UUID).
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Name of the category.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Name of the portal.
# Corresponds to the JSON property `siteId`
# @return [String]
attr_accessor :site_id
# Time the category was last modified in milliseconds since epoch.
# Corresponds to the JSON property `updateTime`
# @return [Fixnum]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@site_id = args[:site_id] if args.key?(:site_id)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# #
class GoogleCloudApigeeV1ApiProduct class GoogleCloudApigeeV1ApiProduct
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -631,6 +711,43 @@ module Google
end end
end end
#
class GoogleCloudApigeeV1ApiResponseWrapper
include Google::Apis::Core::Hashable
# ID that can be used to find errors in the log files.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# Description of the operation.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# ID that can be used to find request details in the log files.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
# Status of the operation.
# 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)
@error_code = args[:error_code] if args.key?(:error_code)
@message = args[:message] if args.key?(:message)
@request_id = args[:request_id] if args.key?(:request_id)
@status = args[:status] if args.key?(:status)
end
end
# #
class GoogleCloudApigeeV1App class GoogleCloudApigeeV1App
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2818,6 +2935,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :port attr_accessor :port
# Output only. State of the instance. Values other than ACTIVE means the
# resource is not ready to use.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2833,6 +2956,7 @@ module Google
@location = args[:location] if args.key?(:location) @location = args[:location] if args.key?(:location)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@port = args[:port] if args.key?(:port) @port = args[:port] if args.key?(:port)
@state = args[:state] if args.key?(:state)
end end
end end
@ -3067,6 +3191,49 @@ module Google
end end
end end
# the response for ListApiCategoriesRequest.
class GoogleCloudApigeeV1ListApiCategoriesResponse
include Google::Apis::Core::Hashable
# Details of categories.
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData>]
attr_accessor :data
# ID that can be used to find errors in the log files.
# Corresponds to the JSON property `errorCode`
# @return [String]
attr_accessor :error_code
# Description of the operation.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# ID that can be used to find request details in the log files.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
# Status of the operation.
# 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)
@data = args[:data] if args.key?(:data)
@error_code = args[:error_code] if args.key?(:error_code)
@message = args[:message] if args.key?(:message)
@request_id = args[:request_id] if args.key?(:request_id)
@status = args[:status] if args.key?(:status)
end
end
# #
class GoogleCloudApigeeV1ListApiProductsResponse class GoogleCloudApigeeV1ListApiProductsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4042,6 +4209,41 @@ module Google
end end
end end
# Request for ProvisionOrganization.
class GoogleCloudApigeeV1ProvisionOrganizationRequest
include Google::Apis::Core::Hashable
# Primary Cloud Platform region for analytics data storage. For valid values,
# see [Create an organization](https://docs.apigee.com/hybrid/latest/precog-
# provision). Defaults to us-west1.
# Corresponds to the JSON property `analyticsRegion`
# @return [String]
attr_accessor :analytics_region
# Name of the customer project's VPC network. If provided, the network needs to
# be peered through Service Networking. If none is provided, the organization
# will have access only to the public internet.
# Corresponds to the JSON property `authorizedNetwork`
# @return [String]
attr_accessor :authorized_network
# Cloud Platform location for the runtime instance. Defaults to us-west1-a.
# Corresponds to the JSON property `runtimeLocation`
# @return [String]
attr_accessor :runtime_location
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@analytics_region = args[:analytics_region] if args.key?(:analytics_region)
@authorized_network = args[:authorized_network] if args.key?(:authorized_network)
@runtime_location = args[:runtime_location] if args.key?(:runtime_location)
end
end
# #
class GoogleCloudApigeeV1Query class GoogleCloudApigeeV1Query
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4661,12 +4863,36 @@ module Google
# @return [String] # @return [String]
attr_accessor :basepath attr_accessor :basepath
# The env group config revision_id when this rule was added or last updated.
# This value is set when the rule is created and will only update if the the
# environment_id changes. It is used to determine if the runtime is up to date
# with respect to this rule. This field is omitted from the IngressConfig unless
# the GetDeployedIngressConfig API is called with debug=true.
# Corresponds to the JSON property `envGroupRevision`
# @return [Fixnum]
attr_accessor :env_group_revision
# Name of an environment bound to the environment group in the following format: # Name of an environment bound to the environment group in the following format:
# `organizations/`org`/environments/`env``. # `organizations/`org`/environments/`env``.
# Corresponds to the JSON property `environment` # Corresponds to the JSON property `environment`
# @return [String] # @return [String]
attr_accessor :environment attr_accessor :environment
# The resource name of the proxy revision that is receiving this basepath in the
# following format: `organizations/`org`/apis/`api`/revisions/`rev``. This field
# is omitted from the IngressConfig unless the GetDeployedIngressConfig API is
# called with debug=true.
# Corresponds to the JSON property `receiver`
# @return [String]
attr_accessor :receiver
# The unix timestamp when this rule was updated. This is updated whenever
# env_group_revision is updated. This field is omitted from the IngressConfig
# unless the GetDeployedIngressConfig API is called with debug=true.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -4674,7 +4900,10 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@basepath = args[:basepath] if args.key?(:basepath) @basepath = args[:basepath] if args.key?(:basepath)
@env_group_revision = args[:env_group_revision] if args.key?(:env_group_revision)
@environment = args[:environment] if args.key?(:environment) @environment = args[:environment] if args.key?(:environment)
@receiver = args[:receiver] if args.key?(:receiver)
@update_time = args[:update_time] if args.key?(:update_time)
end end
end end
@ -5422,7 +5651,8 @@ module Google
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoCommonName] # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoCommonName]
attr_accessor :common_name attr_accessor :common_name
# Required. Enables one-way TLS. # Required. Enables TLS. If false, neither one-way nor two-way TLS will be
# enabled.
# Corresponds to the JSON property `enabled` # Corresponds to the JSON property `enabled`
# @return [Boolean] # @return [Boolean]
attr_accessor :enabled attr_accessor :enabled

View File

@ -64,6 +64,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudApigeeV1ApiCategory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1ApiCategoryData
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1ApiProduct class GoogleCloudApigeeV1ApiProduct
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,6 +100,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudApigeeV1ApiResponseWrapper
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1App class GoogleCloudApigeeV1App
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -394,6 +412,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudApigeeV1ListApiCategoriesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1ListApiProductsResponse class GoogleCloudApigeeV1ListApiProductsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -598,6 +622,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudApigeeV1ProvisionOrganizationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudApigeeV1Query class GoogleCloudApigeeV1Query
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -975,6 +1005,28 @@ module Google
end end
end end
class GoogleCloudApigeeV1ApiCategory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :data, as: 'data', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation
property :error_code, as: 'errorCode'
property :message, as: 'message'
property :request_id, as: 'requestId'
property :status, as: 'status'
end
end
class GoogleCloudApigeeV1ApiCategoryData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
property :site_id, as: 'siteId'
property :update_time, :numeric_string => true, as: 'updateTime'
end
end
class GoogleCloudApigeeV1ApiProduct class GoogleCloudApigeeV1ApiProduct
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1047,6 +1099,16 @@ module Google
end end
end end
class GoogleCloudApigeeV1ApiResponseWrapper
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_code, as: 'errorCode'
property :message, as: 'message'
property :request_id, as: 'requestId'
property :status, as: 'status'
end
end
class GoogleCloudApigeeV1App class GoogleCloudApigeeV1App
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1596,6 +1658,7 @@ module Google
property :location, as: 'location' property :location, as: 'location'
property :name, as: 'name' property :name, as: 'name'
property :port, as: 'port' property :port, as: 'port'
property :state, as: 'state'
end end
end end
@ -1670,6 +1733,18 @@ module Google
end end
end end
class GoogleCloudApigeeV1ListApiCategoriesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :data, as: 'data', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation
property :error_code, as: 'errorCode'
property :message, as: 'message'
property :request_id, as: 'requestId'
property :status, as: 'status'
end
end
class GoogleCloudApigeeV1ListApiProductsResponse class GoogleCloudApigeeV1ListApiProductsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1980,6 +2055,15 @@ module Google
end end
end end
class GoogleCloudApigeeV1ProvisionOrganizationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :analytics_region, as: 'analyticsRegion'
property :authorized_network, as: 'authorizedNetwork'
property :runtime_location, as: 'runtimeLocation'
end
end
class GoogleCloudApigeeV1Query class GoogleCloudApigeeV1Query
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -2141,7 +2225,10 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :basepath, as: 'basepath' property :basepath, as: 'basepath'
property :env_group_revision, :numeric_string => true, as: 'envGroupRevision'
property :environment, as: 'environment' property :environment, as: 'environment'
property :receiver, as: 'receiver'
property :update_time, as: 'updateTime'
end end
end end

View File

@ -156,6 +156,9 @@ module Google
# @param [String] name # @param [String] name
# Required. Name of the deployed configuration for the organization in the # Required. Name of the deployed configuration for the organization in the
# following format: 'organizations/`org`/deployedIngressConfig'. # following format: 'organizations/`org`/deployedIngressConfig'.
# @param [String] view
# When set to FULL, additional details about the specific deployments receiving
# traffic will be included in the IngressConfig response's RoutingRules.
# @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
@ -173,11 +176,12 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_organization_deployed_ingress_config(name, fields: nil, quota_user: nil, options: nil, &block) def get_organization_deployed_ingress_config(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options) command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig::Representation command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1IngressConfig
command.params['name'] = name unless name.nil? command.params['name'] = name unless name.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -6489,6 +6493,202 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new category on the portal.
# @param [String] parent
# Required. Name of the portal. Use the following structure in your request: `
# organizations/`org`/sites/`site``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData] google_cloud_apigee_v1_api_category_data_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_organization_site_apicategory(parent, google_cloud_apigee_v1_api_category_data_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/apicategories', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation
command.request_object = google_cloud_apigee_v1_api_category_data_object
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a category from the portal.
# @param [String] name
# Required. Name of the category. Use the following structure in your request: `
# organizations/`org`/sites/`site`/apicategories/`apicategory``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_organization_site_apicategory(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiResponseWrapper
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a category on the portal.
# @param [String] name
# Required. Name of the category. Use the following structure in your request: `
# organizations/`org`/sites/`site`/apicategories/`apicategory``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory]
#
# @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_organization_site_apicategory(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists the categories on the portal.
# @param [String] parent
# Required. Name of the portal. Use the following structure in your request: `
# organizations/`org`/sites/`site``
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_organization_site_apicategories(parent, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/apicategories', options)
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListApiCategoriesResponse
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a category on the portal.
# @param [String] name
# Required. Name of the category. Use the following structure in your request: `
# organizations/`org`/sites/`site`/apicategories/`apicategory``
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData] google_cloud_apigee_v1_api_category_data_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_organization_site_apicategory(name, google_cloud_apigee_v1_api_category_data_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategoryData::Representation
command.request_object = google_cloud_apigee_v1_api_category_data_object
command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ApiCategory
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Provisions a new Apigee organization with a functioning runtime. This is the
# standard way to create trial organizations for a free Apigee trial.
# @param [String] project
# Required. Name of the GCP project with which to associate the Apigee
# organization.
# @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ProvisionOrganizationRequest] google_cloud_apigee_v1_provision_organization_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def provision_project_organization(project, google_cloud_apigee_v1_provision_organization_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+project}:provisionOrganization', options)
command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ProvisionOrganizationRequest::Representation
command.request_object = google_cloud_apigee_v1_provision_organization_request_object
command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
command.params['project'] = project unless project.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected protected
def apply_command_defaults(command) def apply_command_defaults(command)

View File

@ -0,0 +1,38 @@
# 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/billingbudgets_v1/service.rb'
require 'google/apis/billingbudgets_v1/classes.rb'
require 'google/apis/billingbudgets_v1/representations.rb'
module Google
module Apis
# Cloud Billing Budget API
#
# The Cloud Billing Budget API stores Cloud Billing budgets, which define a
# budget plan and the rules to execute as spend is tracked against that plan.
#
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
module BillingbudgetsV1
VERSION = 'V1'
REVISION = '20200919'
# View and manage your Google Cloud Platform billing accounts
AUTH_CLOUD_BILLING = 'https://www.googleapis.com/auth/cloud-billing'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

View File

@ -0,0 +1,362 @@
# 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 BillingbudgetsV1
# A budget is a plan that describes what you expect to spend on Cloud projects,
# plus the rules to execute as spend is tracked against that plan, (for example,
# send an alert when 90% of the target spend is met). Currently all plans are
# monthly budgets so the usage period(s) tracked are implied (calendar months of
# usage back-to-back).
class GoogleCloudBillingBudgetsV1Budget
include Google::Apis::Core::Hashable
# The budgeted amount for each usage period.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount]
attr_accessor :amount
# A filter for a budget, limiting the scope of the cost to calculate.
# Corresponds to the JSON property `budgetFilter`
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter]
attr_accessor :budget_filter
# User data for display name in UI. The name must be less than or equal to 60
# characters.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Optional. Etag to validate that the object is unchanged for a read-modify-
# write operation. An empty etag will cause an update to overwrite other changes.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# Output only. Resource name of the budget. The resource name implies the scope
# of a budget. Values are of the form `billingAccounts/`billingAccountId`/
# budgets/`budgetId``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# NotificationsRule defines notifications that are sent based on budget spend
# and thresholds.
# Corresponds to the JSON property `notificationsRule`
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule]
attr_accessor :notifications_rule
# Optional. Rules that trigger alerts (notifications of thresholds being crossed)
# when spend exceeds the specified percentages of the budget.
# Corresponds to the JSON property `thresholdRules`
# @return [Array<Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule>]
attr_accessor :threshold_rules
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@amount = args[:amount] if args.key?(:amount)
@budget_filter = args[:budget_filter] if args.key?(:budget_filter)
@display_name = args[:display_name] if args.key?(:display_name)
@etag = args[:etag] if args.key?(:etag)
@name = args[:name] if args.key?(:name)
@notifications_rule = args[:notifications_rule] if args.key?(:notifications_rule)
@threshold_rules = args[:threshold_rules] if args.key?(:threshold_rules)
end
end
# The budgeted amount for each usage period.
class GoogleCloudBillingBudgetsV1BudgetAmount
include Google::Apis::Core::Hashable
# Describes a budget amount targeted to last period's spend. At this time, the
# amount is automatically 100% of last period's spend; that is, there are no
# other options yet. Future configuration will be described here (for example,
# configuring a percentage of last period's spend).
# Corresponds to the JSON property `lastPeriodAmount`
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount]
attr_accessor :last_period_amount
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `specifiedAmount`
# @return [Google::Apis::BillingbudgetsV1::GoogleTypeMoney]
attr_accessor :specified_amount
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_period_amount = args[:last_period_amount] if args.key?(:last_period_amount)
@specified_amount = args[:specified_amount] if args.key?(:specified_amount)
end
end
# A filter for a budget, limiting the scope of the cost to calculate.
class GoogleCloudBillingBudgetsV1Filter
include Google::Apis::Core::Hashable
# Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.
# Corresponds to the JSON property `creditTypesTreatment`
# @return [String]
attr_accessor :credit_types_treatment
# Optional. A single label and value pair specifying that usage from only this
# set of labeled resources should be included in the budget. Currently, multiple
# entries or multiple values per entry are not allowed. If omitted, the report
# will include all labeled and unlabeled usage.
# Corresponds to the JSON property `labels`
# @return [Hash<String,Array<Object>>]
attr_accessor :labels
# Optional. A set of projects of the form `projects/`project``, specifying that
# usage from only this set of projects should be included in the budget. If
# omitted, the report will include all usage for the billing account, regardless
# of which project the usage occurred on. Only zero or one project can be
# specified currently.
# Corresponds to the JSON property `projects`
# @return [Array<String>]
attr_accessor :projects
# Optional. A set of services of the form `services/`service_id``, specifying
# that usage from only this set of services should be included in the budget. If
# omitted, the report will include usage for all the services. The service names
# are available through the Catalog API: https://cloud.google.com/billing/v1/how-
# tos/catalog-api.
# Corresponds to the JSON property `services`
# @return [Array<String>]
attr_accessor :services
# Optional. A set of subaccounts of the form `billingAccounts/`account_id``,
# specifying that usage from only this set of subaccounts should be included in
# the budget. If a subaccount is set to the name of the parent account, usage
# from the parent account will be included. If the field is omitted, the report
# will include usage from the parent account and all subaccounts, if they exist.
# Corresponds to the JSON property `subaccounts`
# @return [Array<String>]
attr_accessor :subaccounts
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@credit_types_treatment = args[:credit_types_treatment] if args.key?(:credit_types_treatment)
@labels = args[:labels] if args.key?(:labels)
@projects = args[:projects] if args.key?(:projects)
@services = args[:services] if args.key?(:services)
@subaccounts = args[:subaccounts] if args.key?(:subaccounts)
end
end
# Describes a budget amount targeted to last period's spend. At this time, the
# amount is automatically 100% of last period's spend; that is, there are no
# other options yet. Future configuration will be described here (for example,
# configuring a percentage of last period's spend).
class GoogleCloudBillingBudgetsV1LastPeriodAmount
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response for ListBudgets
class GoogleCloudBillingBudgetsV1ListBudgetsResponse
include Google::Apis::Core::Hashable
# List of the budgets owned by the requested billing account.
# Corresponds to the JSON property `budgets`
# @return [Array<Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget>]
attr_accessor :budgets
# If not empty, indicates that there may be more budgets that match the request;
# this value should be passed in a new `ListBudgetsRequest`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@budgets = args[:budgets] if args.key?(:budgets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# NotificationsRule defines notifications that are sent based on budget spend
# and thresholds.
class GoogleCloudBillingBudgetsV1NotificationsRule
include Google::Apis::Core::Hashable
# Optional. When set to true, disables default notifications sent when a
# threshold is exceeded. Default notifications are sent to those with Billing
# Account Administrator and Billing Account User IAM roles for the target
# account.
# Corresponds to the JSON property `disableDefaultIamRecipients`
# @return [Boolean]
attr_accessor :disable_default_iam_recipients
alias_method :disable_default_iam_recipients?, :disable_default_iam_recipients
# Optional. Targets to send notifications to when a threshold is exceeded. This
# is in addition to default recipients who have billing account IAM roles. The
# value is the full REST resource name of a monitoring notification channel with
# the form `projects/`project_id`/notificationChannels/`channel_id``. A maximum
# of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/
# budgets-notification-recipients for more details.
# Corresponds to the JSON property `monitoringNotificationChannels`
# @return [Array<String>]
attr_accessor :monitoring_notification_channels
# Optional. The name of the Pub/Sub topic where budget related messages will be
# published, in the form `projects/`project_id`/topics/`topic_id``. Updates are
# sent at regular intervals to the topic. The topic needs to be created before
# the budget is created; see https://cloud.google.com/billing/docs/how-to/
# budgets#manage-notifications for more details. Caller is expected to have `
# pubsub.topics.setIamPolicy` permission on the topic when it's set for a budget,
# otherwise, the API call will fail with PERMISSION_DENIED. See https://cloud.
# google.com/billing/docs/how-to/budgets-programmatic-notifications for more
# details on Pub/Sub roles and permissions.
# Corresponds to the JSON property `pubsubTopic`
# @return [String]
attr_accessor :pubsub_topic
# Optional. The schema version of the notification sent to `pubsub_topic`. Only "
# 1.0" is accepted. It represents the JSON schema as defined in https://cloud.
# google.com/billing/docs/how-to/budgets-programmatic-notifications#
# notification_format
# Corresponds to the JSON property `schemaVersion`
# @return [String]
attr_accessor :schema_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disable_default_iam_recipients = args[:disable_default_iam_recipients] if args.key?(:disable_default_iam_recipients)
@monitoring_notification_channels = args[:monitoring_notification_channels] if args.key?(:monitoring_notification_channels)
@pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
@schema_version = args[:schema_version] if args.key?(:schema_version)
end
end
# ThresholdRule contains a definition of a threshold which triggers an alert (a
# notification of a threshold being crossed) to be sent when spend goes above
# the specified amount. Alerts are automatically e-mailed to users with the
# Billing Account Administrator role or the Billing Account User role. The
# thresholds here have no effect on notifications sent to anything configured
# under `Budget.all_updates_rule`.
class GoogleCloudBillingBudgetsV1ThresholdRule
include Google::Apis::Core::Hashable
# Optional. The type of basis used to determine if spend has passed the
# threshold. Behavior defaults to CURRENT_SPEND if not set.
# Corresponds to the JSON property `spendBasis`
# @return [String]
attr_accessor :spend_basis
# Required. Send an alert when this threshold is exceeded. This is a 1.0-based
# percentage, so 0.5 = 50%. Validation: non-negative number.
# Corresponds to the JSON property `thresholdPercent`
# @return [Float]
attr_accessor :threshold_percent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@spend_basis = args[:spend_basis] if args.key?(:spend_basis)
@threshold_percent = args[:threshold_percent] if args.key?(:threshold_percent)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class GoogleProtobufEmpty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents an amount of money with its currency type.
class GoogleTypeMoney
include Google::Apis::Core::Hashable
# The 3-letter currency code defined in ISO 4217.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
# negative. If `units` is negative, `nanos` must be negative or zero. For
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
# 1 unit is one US dollar.
# Corresponds to the JSON property `units`
# @return [Fixnum]
attr_accessor :units
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@nanos = args[:nanos] if args.key?(:nanos)
@units = args[:units] if args.key?(:units)
end
end
end
end
end

View File

@ -0,0 +1,170 @@
# 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 BillingbudgetsV1
class GoogleCloudBillingBudgetsV1Budget
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1BudgetAmount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1Filter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1LastPeriodAmount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1ListBudgetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1NotificationsRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1ThresholdRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleTypeMoney
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudBillingBudgetsV1Budget
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1BudgetAmount::Representation
property :budget_filter, as: 'budgetFilter', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Filter::Representation
property :display_name, as: 'displayName'
property :etag, as: 'etag'
property :name, as: 'name'
property :notifications_rule, as: 'notificationsRule', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1NotificationsRule::Representation
collection :threshold_rules, as: 'thresholdRules', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ThresholdRule::Representation
end
end
class GoogleCloudBillingBudgetsV1BudgetAmount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_period_amount, as: 'lastPeriodAmount', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1LastPeriodAmount::Representation
property :specified_amount, as: 'specifiedAmount', class: Google::Apis::BillingbudgetsV1::GoogleTypeMoney, decorator: Google::Apis::BillingbudgetsV1::GoogleTypeMoney::Representation
end
end
class GoogleCloudBillingBudgetsV1Filter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :credit_types_treatment, as: 'creditTypesTreatment'
hash :labels, as: 'labels', :class => Array do
include Representable::JSON::Collection
items
end
collection :projects, as: 'projects'
collection :services, as: 'services'
collection :subaccounts, as: 'subaccounts'
end
end
class GoogleCloudBillingBudgetsV1LastPeriodAmount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudBillingBudgetsV1ListBudgetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :budgets, as: 'budgets', class: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget, decorator: Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudBillingBudgetsV1NotificationsRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_default_iam_recipients, as: 'disableDefaultIamRecipients'
collection :monitoring_notification_channels, as: 'monitoringNotificationChannels'
property :pubsub_topic, as: 'pubsubTopic'
property :schema_version, as: 'schemaVersion'
end
end
class GoogleCloudBillingBudgetsV1ThresholdRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :spend_basis, as: 'spendBasis'
property :threshold_percent, as: 'thresholdPercent'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleTypeMoney
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :nanos, as: 'nanos'
property :units, :numeric_string => true, as: 'units'
end
end
end
end
end

View File

@ -0,0 +1,249 @@
# 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 BillingbudgetsV1
# Cloud Billing Budget API
#
# The Cloud Billing Budget API stores Cloud Billing budgets, which define a
# budget plan and the rules to execute as spend is tracked against that plan.
#
# @example
# require 'google/apis/billingbudgets_v1'
#
# Billingbudgets = Google::Apis::BillingbudgetsV1 # Alias the module
# service = Billingbudgets::CloudBillingBudgetService.new
#
# @see https://cloud.google.com/billing/docs/how-to/budget-api-overview
class CloudBillingBudgetService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://billingbudgets.googleapis.com/', '')
@batch_path = 'batch'
end
# Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/
# quotas) for more information on the limits of the number of budgets you can
# create.
# @param [String] parent
# Required. The name of the billing account to create the budget in. Values are
# of the form `billingAccounts/`billingAccountId``.
# @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_billing_account_budget(parent, google_cloud_billing_budgets_v1_budget_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/budgets', options)
command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
command.request_object = google_cloud_billing_budgets_v1_budget_object
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a budget. Returns successfully if already deleted.
# @param [String] name
# Required. Name of the budget to delete. Values are of the form `
# billingAccounts/`billingAccountId`/budgets/`budgetId``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::BillingbudgetsV1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a budget. WARNING: There are some fields exposed on the Google Cloud
# Console that aren't available on this API. When reading from the API, you will
# not see these fields in the return value, though they may have been set in the
# Cloud Console.
# @param [String] name
# Required. Name of budget to get. Values are of the form `billingAccounts/`
# billingAccountId`/budgets/`budgetId``.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
#
# @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_billing_account_budget(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a list of budgets for a billing account. WARNING: There are some
# fields exposed on the Google Cloud Console that aren't available on this API.
# When reading from the API, you will not see these fields in the return value,
# though they may have been set in the Cloud Console.
# @param [String] parent
# Required. Name of billing account to list budgets under. Values are of the
# form `billingAccounts/`billingAccountId``.
# @param [Fixnum] page_size
# Optional. The maximum number of budgets to return per page. The default and
# maximum value are 100.
# @param [String] page_token
# Optional. The value returned by the last `ListBudgetsResponse` which indicates
# that this is a continuation of a prior `ListBudgets` call, and that the system
# should return the next page of data.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse]
#
# @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_billing_account_budgets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/budgets', options)
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse::Representation
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1ListBudgetsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates a budget and returns the updated budget. WARNING: There are some
# fields exposed on the Google Cloud Console that aren't available on this API.
# Budget fields that are not exposed in this API will not be changed by this
# method.
# @param [String] name
# Output only. Resource name of the budget. The resource name implies the scope
# of a budget. Values are of the form `billingAccounts/`billingAccountId`/
# budgets/`budgetId``.
# @param [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] google_cloud_billing_budgets_v1_budget_object
# @param [String] update_mask
# Optional. Indicates which fields in the provided budget to update. Read-only
# fields (such as `name`) cannot be changed. If this is not provided, then only
# fields with non-default values from the request are updated. See https://
# developers.google.com/protocol-buffers/docs/proto3#default for more details
# about default values.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_billing_account_budget(name, google_cloud_billing_budgets_v1_budget_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
command.request_object = google_cloud_billing_budgets_v1_budget_object
command.response_representation = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget::Representation
command.response_class = Google::Apis::BillingbudgetsV1::GoogleCloudBillingBudgetsV1Budget
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -0,0 +1,36 @@
# 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/documentai_v1beta3/service.rb'
require 'google/apis/documentai_v1beta3/classes.rb'
require 'google/apis/documentai_v1beta3/representations.rb'
module Google
module Apis
# Cloud Document AI API
#
# Service to parse structured information from unstructured or semi-structured
# documents using state-of-the-art Google AI such as natural language, computer
# vision, translation, and AutoML.
#
# @see https://cloud.google.com/document-ai/docs/
module DocumentaiV1beta3
VERSION = 'V1beta3'
REVISION = '20200828'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,263 @@
# 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 DocumentaiV1beta3
# Cloud Document AI API
#
# Service to parse structured information from unstructured or semi-structured
# documents using state-of-the-art Google AI such as natural language, computer
# vision, translation, and AutoML.
#
# @example
# require 'google/apis/documentai_v1beta3'
#
# Documentai = Google::Apis::DocumentaiV1beta3 # Alias the module
# service = Documentai::DocumentService.new
#
# @see https://cloud.google.com/document-ai/docs/
class DocumentService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://documentai.googleapis.com/', '')
@batch_path = 'batch'
end
# Gets information about a location.
# @param [String] name
# Resource name for the location.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta3/{+name}', options)
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationLocation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# The standard list filter.
# @param [Fixnum] page_size
# The standard list page size.
# @param [String] page_token
# The standard list page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta3/{+name}/locations', options)
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudLocationListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta3/{+name}', options)
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# LRO endpoint to batch process many documents. The output is written to Cloud
# Storage as JSON in the [Document] format.
# @param [String] name
# Required. The processor resource name.
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_project_location_processor_process(name, google_cloud_documentai_v1beta3_batch_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta3/{+name}:batchProcess', options)
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest::Representation
command.request_object = google_cloud_documentai_v1beta3_batch_process_request_object
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Processes a single document.
# @param [String] name
# Required. The processor resource name.
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse]
#
# @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 process_project_location_processor(name, google_cloud_documentai_v1beta3_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta3/{+name}:process', options)
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest::Representation
command.request_object = google_cloud_documentai_v1beta3_process_request_object
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Send a document for Human Review. The input document should be processed by
# the specified processor.
# @param [String] human_review_config
# Required. The resource name of the HumanReviewConfig that the document will be
# reviewed with.
# @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ReviewDocumentRequest] google_cloud_documentai_v1beta3_review_document_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def review_project_location_processor_human_review_config_document(human_review_config, google_cloud_documentai_v1beta3_review_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta3/{+humanReviewConfig}:reviewDocument', options)
command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ReviewDocumentRequest::Representation
command.request_object = google_cloud_documentai_v1beta3_review_document_request_object
command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
command.params['humanReviewConfig'] = human_review_config unless human_review_config.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/healthcare # @see https://cloud.google.com/healthcare
module HealthcareV1beta1 module HealthcareV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200917' REVISION = '20200924'
# 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

@ -1033,43 +1033,6 @@ module Google
end end
end end
# Deprecated. Contains the status of the Deidentify operation.
class DeidentifyErrorDetails
include Google::Apis::Core::Hashable
# Number of resources that failed to process.
# Corresponds to the JSON property `failureResourceCount`
# @return [Fixnum]
attr_accessor :failure_resource_count
# Number of stores that failed to process.
# Corresponds to the JSON property `failureStoreCount`
# @return [Fixnum]
attr_accessor :failure_store_count
# Number of resources successfully processed.
# Corresponds to the JSON property `successResourceCount`
# @return [Fixnum]
attr_accessor :success_resource_count
# Number of stores successfully processed.
# Corresponds to the JSON property `successStoreCount`
# @return [Fixnum]
attr_accessor :success_store_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count)
@failure_store_count = args[:failure_store_count] if args.key?(:failure_store_count)
@success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
@success_store_count = args[:success_store_count] if args.key?(:success_store_count)
end
end
# Creates a new FHIR store with sensitive information de-identified. # Creates a new FHIR store with sensitive information de-identified.
class DeidentifyFhirStoreRequest class DeidentifyFhirStoreRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1113,31 +1076,12 @@ module Google
class DeidentifySummary class DeidentifySummary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Number of resources that failed to process. The failures might be caused by: *
# Invalid user input data * Transient errors that could be skipped
# Corresponds to the JSON property `failureResourceCount`
# @return [Fixnum]
attr_accessor :failure_resource_count
# Number of resources successfully processed.
# Corresponds to the JSON property `successResourceCount`
# @return [Fixnum]
attr_accessor :success_resource_count
# Number of stores successfully processed.
# Corresponds to the JSON property `successStoreCount`
# @return [Fixnum]
attr_accessor :success_store_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count)
@success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
@success_store_count = args[:success_store_count] if args.key?(:success_store_count)
end end
end end
@ -1369,13 +1313,6 @@ module Google
# @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig] # @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig]
attr_accessor :info_type_config attr_accessor :info_type_config
# The Annotation store to compare against `golden_store`, in the format of `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1387,7 +1324,6 @@ module Google
@golden_info_type_mapping = args[:golden_info_type_mapping] if args.key?(:golden_info_type_mapping) @golden_info_type_mapping = args[:golden_info_type_mapping] if args.key?(:golden_info_type_mapping)
@golden_store = args[:golden_store] if args.key?(:golden_store) @golden_store = args[:golden_store] if args.key?(:golden_store)
@info_type_config = args[:info_type_config] if args.key?(:info_type_config) @info_type_config = args[:info_type_config] if args.key?(:info_type_config)
@name = args[:name] if args.key?(:name)
end end
end end
@ -1396,43 +1332,12 @@ module Google
class EvaluateAnnotationStoreResponse class EvaluateAnnotationStoreResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The evaluated Annotation store, in the format of `projects/`project_id`/
# locations/`location_id`/datasets/`dataset_id`/annotationStores/`
# annotation_store_id``.
# Corresponds to the JSON property `evalStore`
# @return [String]
attr_accessor :eval_store
# The number of Annotations in the ground truth Annotation store successfully
# processed.
# Corresponds to the JSON property `goldenCount`
# @return [Fixnum]
attr_accessor :golden_count
# The ground truth Annotation store, in the format of `projects/`project_id`/
# locations/`location_id`/datasets/`dataset_id`/annotationStores/`
# annotation_store_id``.
# Corresponds to the JSON property `goldenStore`
# @return [String]
attr_accessor :golden_store
# The number of Annotations in the eval store that match with corresponding
# annotations in the ground truth Annotation store. Two matched annotations both
# annotate the same resource defined in AnnotationSource.
# Corresponds to the JSON property `matchedCount`
# @return [Fixnum]
attr_accessor :matched_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@eval_store = args[:eval_store] if args.key?(:eval_store)
@golden_count = args[:golden_count] if args.key?(:golden_count)
@golden_store = args[:golden_store] if args.key?(:golden_store)
@matched_count = args[:matched_count] if args.key?(:matched_count)
end end
end end
@ -1519,40 +1424,6 @@ module Google
end end
end end
# Deprecated. Response for failed annotation export operations. This structure
# is included in error details upon operation completion.
class ExportAnnotationsErrorDetails
include Google::Apis::Core::Hashable
# The annotation_store used for the export operation, in the format of `projects/
# `project_id`/locations/`location_id`/datasets/`dataset_id`/annotationStores/`
# annotation_store_id``.
# Corresponds to the JSON property `annotationStore`
# @return [String]
attr_accessor :annotation_store
# The number of annotations that had error.
# Corresponds to the JSON property `errorCount`
# @return [Fixnum]
attr_accessor :error_count
# The number of annotations successfully exported.
# Corresponds to the JSON property `successCount`
# @return [Fixnum]
attr_accessor :success_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_store = args[:annotation_store] if args.key?(:annotation_store)
@error_count = args[:error_count] if args.key?(:error_count)
@success_count = args[:success_count] if args.key?(:success_count)
end
end
# Request to export Annotations. The export operation is not atomic. If a # Request to export Annotations. The export operation is not atomic. If a
# failure occurs, any annotations already exported are not removed. # failure occurs, any annotations already exported are not removed.
class ExportAnnotationsRequest class ExportAnnotationsRequest
@ -1568,13 +1439,6 @@ module Google
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination] # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination]
attr_accessor :gcs_destination attr_accessor :gcs_destination
# The name of the Annotation store to export annotations to, in the format of `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -1583,7 +1447,6 @@ module Google
def update!(**args) def update!(**args)
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination) @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination) @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
@name = args[:name] if args.key?(:name)
end end
end end
@ -1592,26 +1455,12 @@ module Google
class ExportAnnotationsResponse class ExportAnnotationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The annotation_store used for the export operation, in the format of `projects/
# `project_id`/locations/`location_id`/datasets/`dataset_id`/annotationStores/`
# annotation_store_id``.
# Corresponds to the JSON property `annotationStore`
# @return [String]
attr_accessor :annotation_store
# The total number of annotations successfully exported.
# Corresponds to the JSON property `successCount`
# @return [Fixnum]
attr_accessor :success_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@annotation_store = args[:annotation_store] if args.key?(:annotation_store)
@success_count = args[:success_count] if args.key?(:success_count)
end end
end end
@ -1668,7 +1517,7 @@ module Google
# The configuration for exporting to Cloud Storage. # The configuration for exporting to Cloud Storage.
# Corresponds to the JSON property `gcsDestination` # Corresponds to the JSON property `gcsDestination`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination] # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination]
attr_accessor :gcs_destination attr_accessor :gcs_destination
def initialize(**args) def initialize(**args)
@ -2068,9 +1917,9 @@ module Google
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the destination table already exists and this flag is `TRUE`, the table is # Use `write_disposition` instead. If `write_disposition` is specified, this
# overwritten by the contents of the input store. If the flag is not set and the # parameter is ignored. force=false is equivalent to write_disposition=
# destination table already exists, the export call returns an error. # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
# Corresponds to the JSON property `force` # Corresponds to the JSON property `force`
# @return [Boolean] # @return [Boolean]
attr_accessor :force attr_accessor :force
@ -2087,6 +1936,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :table_uri attr_accessor :table_uri
# Determines whether existing tables in the destination dataset are overwritten
# or appended to. If a write_disposition is specified, the `force` parameter is
# ignored.
# Corresponds to the JSON property `writeDisposition`
# @return [String]
attr_accessor :write_disposition
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2096,6 +1952,7 @@ module Google
@force = args[:force] if args.key?(:force) @force = args[:force] if args.key?(:force)
@schema_type = args[:schema_type] if args.key?(:schema_type) @schema_type = args[:schema_type] if args.key?(:schema_type)
@table_uri = args[:table_uri] if args.key?(:table_uri) @table_uri = args[:table_uri] if args.key?(:table_uri)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end end
end end
@ -2219,24 +2076,12 @@ module Google
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Number of objects that processing failed for.
# Corresponds to the JSON property `failureResourceCount`
# @return [Fixnum]
attr_accessor :failure_resource_count
# Number of objects successfully processed.
# Corresponds to the JSON property `successResourceCount`
# @return [Fixnum]
attr_accessor :success_resource_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count)
@success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
end end
end end
@ -2244,18 +2089,12 @@ module Google
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Number of resources successfully processed.
# Corresponds to the JSON property `successResourceCount`
# @return [Fixnum]
attr_accessor :success_resource_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count)
end end
end end
@ -2263,9 +2102,9 @@ module Google
class GoogleCloudHealthcareV1beta1DicomBigQueryDestination class GoogleCloudHealthcareV1beta1DicomBigQueryDestination
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If the destination table already exists and this flag is `TRUE`, the table is # Use `write_disposition` instead. If `write_disposition` is specified, this
# overwritten by the contents of the DICOM store. If the flag is not set and the # parameter is ignored. force=false is equivalent to write_disposition=
# destination table already exists, the export call returns an error. # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
# Corresponds to the JSON property `force` # Corresponds to the JSON property `force`
# @return [Boolean] # @return [Boolean]
attr_accessor :force attr_accessor :force
@ -2277,6 +2116,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :table_uri attr_accessor :table_uri
# Determines whether the existing table in the destination is to be overwritten
# or appended to. If a write_disposition is specified, the `force` parameter is
# ignored.
# Corresponds to the JSON property `writeDisposition`
# @return [String]
attr_accessor :write_disposition
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2285,6 +2131,7 @@ module Google
def update!(**args) def update!(**args)
@force = args[:force] if args.key?(:force) @force = args[:force] if args.key?(:force)
@table_uri = args[:table_uri] if args.key?(:table_uri) @table_uri = args[:table_uri] if args.key?(:table_uri)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end end
end end
@ -2393,10 +2240,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :dataset_uri attr_accessor :dataset_uri
# If this flag is `TRUE`, all tables will be deleted from the dataset before the # Use `write_disposition` instead. If `write_disposition` is specified, this
# new exported tables are written. If the flag is not set and the destination # parameter is ignored. force=false is equivalent to write_disposition=
# dataset contains tables, the export call returns an error. This option is not # WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
# used for the streaming export.
# Corresponds to the JSON property `force` # Corresponds to the JSON property `force`
# @return [Boolean] # @return [Boolean]
attr_accessor :force attr_accessor :force
@ -2408,6 +2254,13 @@ module Google
# @return [Google::Apis::HealthcareV1beta1::SchemaConfig] # @return [Google::Apis::HealthcareV1beta1::SchemaConfig]
attr_accessor :schema_config attr_accessor :schema_config
# Determines whether existing tables in the destination dataset are overwritten
# or appended to. If a write_disposition is specified, the `force` parameter is
# ignored.
# Corresponds to the JSON property `writeDisposition`
# @return [String]
attr_accessor :write_disposition
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2417,6 +2270,88 @@ module Google
@dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri) @dataset_uri = args[:dataset_uri] if args.key?(:dataset_uri)
@force = args[:force] if args.key?(:force) @force = args[:force] if args.key?(:force)
@schema_config = args[:schema_config] if args.key?(:schema_config) @schema_config = args[:schema_config] if args.key?(:schema_config)
@write_disposition = args[:write_disposition] if args.key?(:write_disposition)
end
end
# Response when all resources export successfully. This structure is included in
# the response to describe the detailed outcome after the operation finishes
# successfully.
class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The configuration for exporting to Cloud Storage.
class GoogleCloudHealthcareV1beta1FhirGcsDestination
include Google::Apis::Core::Hashable
# URI for a Cloud Storage directory where result files should be written (in the
# format `gs://`bucket-id`/`path/to/destination/dir``). If there is no trailing
# slash, the service appends one when composing the object path. The Cloud
# Storage bucket referenced in `uri_prefix` must exist or an error occurs.
# Corresponds to the JSON property `uriPrefix`
# @return [String]
attr_accessor :uri_prefix
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
end
end
# Specifies the configuration for importing data from Cloud Storage.
class GoogleCloudHealthcareV1beta1FhirGcsSource
include Google::Apis::Core::Hashable
# Points to a Cloud Storage URI containing file(s) to import. The URI must be in
# the following format: `gs://`bucket_id`/`object_id``. The URI can include
# wildcards in `object_id` and thus identify multiple files. Supported wildcards:
# * `*` to match 0 or more non-separator characters * `**` to match 0 or more
# characters (including separators). Must be used at the end of a path and with
# no other wildcards in the path. Can also be used with a file extension (such
# as .ndjson), which imports all files with the extension in the specified
# directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
# .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and
# its sub-directories. * `?` to match 1 character Files matching the wildcard
# are expected to contain content only, no metadata.
# 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)
@uri = args[:uri] if args.key?(:uri)
end
end
# Final response of importing resources. This structure is included in the
# response to describe the detailed outcome after the operation finishes
# successfully.
class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end end
end end
@ -2491,57 +2426,6 @@ module Google
end end
end end
# The configuration for exporting to Cloud Storage.
class GoogleCloudHealthcareV1beta1FhirRestGcsDestination
include Google::Apis::Core::Hashable
# URI for a Cloud Storage directory where result files should be written (in the
# format `gs://`bucket-id`/`path/to/destination/dir``). If there is no trailing
# slash, the service appends one when composing the object path. The user is
# responsible for creating the Cloud Storage bucket referenced in `uri_prefix`.
# Corresponds to the JSON property `uriPrefix`
# @return [String]
attr_accessor :uri_prefix
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@uri_prefix = args[:uri_prefix] if args.key?(:uri_prefix)
end
end
# Specifies the configuration for importing data from Cloud Storage.
class GoogleCloudHealthcareV1beta1FhirRestGcsSource
include Google::Apis::Core::Hashable
# Points to a Cloud Storage URI containing file(s) to import. The URI must be in
# the following format: `gs://`bucket_id`/`object_id``. The URI can include
# wildcards in `object_id` and thus identify multiple files. Supported wildcards:
# * `*` to match 0 or more non-separator characters * `**` to match 0 or more
# characters (including separators). Must be used at the end of a path and with
# no other wildcards in the path. Can also be used with a file extension (such
# as .ndjson), which imports all files with the extension in the specified
# directory and its sub-directories. For example, `gs://my-bucket/my-directory/**
# .ndjson` imports all files with `.ndjson` extensions in `my-directory/` and
# its sub-directories. * `?` to match 1 character Files matching the wildcard
# are expected to contain content only, no metadata.
# 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)
@uri = args[:uri] if args.key?(:uri)
end
end
# Error response of importing resources. This structure is included in the # Error response of importing resources. This structure is included in the
# error details to describe the detailed error after the operation finishes with # error details to describe the detailed error after the operation finishes with
# some failure. # some failure.
@ -2941,41 +2825,6 @@ module Google
end end
end end
# Deprecated. Final response of importing Annotations in partial or total
# failure case. This structure is included in the error details. It is only
# included when the operation finishes.
class ImportAnnotationsErrorDetails
include Google::Apis::Core::Hashable
# The annotation_store that the annotations were imported to. The name is in the
# format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``.
# Corresponds to the JSON property `annotationStore`
# @return [String]
attr_accessor :annotation_store
# The number of annotations that had errors.
# Corresponds to the JSON property `errorCount`
# @return [Fixnum]
attr_accessor :error_count
# The number of annotations that have been imported.
# Corresponds to the JSON property `successCount`
# @return [Fixnum]
attr_accessor :success_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_store = args[:annotation_store] if args.key?(:annotation_store)
@error_count = args[:error_count] if args.key?(:error_count)
@success_count = args[:success_count] if args.key?(:success_count)
end
end
# Request to import Annotations. The Annotations to be imported must have client- # Request to import Annotations. The Annotations to be imported must have client-
# supplied resource names which indicate the annotation resource. The import # supplied resource names which indicate the annotation resource. The import
# operation is not atomic. If a failure occurs, any annotations already imported # operation is not atomic. If a failure occurs, any annotations already imported
@ -2988,13 +2837,6 @@ module Google
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource] # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
# The name of the Annotation store to which the server imports annotations, in
# the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`
# /annotationStores/`annotation_store_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -3002,7 +2844,6 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@gcs_source = args[:gcs_source] if args.key?(:gcs_source) @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
@name = args[:name] if args.key?(:name)
end end
end end
@ -3011,26 +2852,12 @@ module Google
class ImportAnnotationsResponse class ImportAnnotationsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The annotation_store that the annotations were imported to, in the format `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``.
# Corresponds to the JSON property `annotationStore`
# @return [String]
attr_accessor :annotation_store
# The number of the input annotations. All input have been imported successfully.
# Corresponds to the JSON property `successCount`
# @return [Fixnum]
attr_accessor :success_count
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@annotation_store = args[:annotation_store] if args.key?(:annotation_store)
@success_count = args[:success_count] if args.key?(:success_count)
end end
end end
@ -3136,7 +2963,7 @@ module Google
# Specifies the configuration for importing data from Cloud Storage. # Specifies the configuration for importing data from Cloud Storage.
# Corresponds to the JSON property `gcsSource` # Corresponds to the JSON property `gcsSource`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource] # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource]
attr_accessor :gcs_source attr_accessor :gcs_source
def initialize(**args) def initialize(**args)

View File

@ -202,12 +202,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class DeidentifyErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeidentifyFhirStoreRequest class DeidentifyFhirStoreRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -280,12 +274,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ExportAnnotationsErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAnnotationsRequest class ExportAnnotationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -442,6 +430,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirGcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirGcsSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -454,18 +466,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudHealthcareV1beta1FhirRestGcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirRestGcsSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -532,12 +532,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImportAnnotationsErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportAnnotationsRequest class ImportAnnotationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1209,16 +1203,6 @@ module Google
end end
end end
class DeidentifyErrorDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount'
property :failure_store_count, :numeric_string => true, as: 'failureStoreCount'
property :success_resource_count, :numeric_string => true, as: 'successResourceCount'
property :success_store_count, :numeric_string => true, as: 'successStoreCount'
end
end
class DeidentifyFhirStoreRequest class DeidentifyFhirStoreRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1233,9 +1217,6 @@ module Google
class DeidentifySummary class DeidentifySummary
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount'
property :success_resource_count, :numeric_string => true, as: 'successResourceCount'
property :success_store_count, :numeric_string => true, as: 'successStoreCount'
end end
end end
@ -1303,17 +1284,12 @@ module Google
property :golden_store, as: 'goldenStore' property :golden_store, as: 'goldenStore'
property :info_type_config, as: 'infoTypeConfig', class: Google::Apis::HealthcareV1beta1::InfoTypeConfig, decorator: Google::Apis::HealthcareV1beta1::InfoTypeConfig::Representation property :info_type_config, as: 'infoTypeConfig', class: Google::Apis::HealthcareV1beta1::InfoTypeConfig, decorator: Google::Apis::HealthcareV1beta1::InfoTypeConfig::Representation
property :name, as: 'name'
end end
end end
class EvaluateAnnotationStoreResponse class EvaluateAnnotationStoreResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :eval_store, as: 'evalStore'
property :golden_count, :numeric_string => true, as: 'goldenCount'
property :golden_store, as: 'goldenStore'
property :matched_count, :numeric_string => true, as: 'matchedCount'
end end
end end
@ -1340,15 +1316,6 @@ module Google
end end
end end
class ExportAnnotationsErrorDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :error_count, :numeric_string => true, as: 'errorCount'
property :success_count, :numeric_string => true, as: 'successCount'
end
end
class ExportAnnotationsRequest class ExportAnnotationsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1356,15 +1323,12 @@ module Google
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination::Representation property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination::Representation
property :name, as: 'name'
end end
end end
class ExportAnnotationsResponse class ExportAnnotationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :success_count, :numeric_string => true, as: 'successCount'
end end
end end
@ -1389,7 +1353,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination::Representation property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirBigQueryDestination::Representation
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsDestination::Representation property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsDestination::Representation
end end
end end
@ -1486,6 +1450,7 @@ module Google
property :force, as: 'force' property :force, as: 'force'
property :schema_type, as: 'schemaType' property :schema_type, as: 'schemaType'
property :table_uri, as: 'tableUri' property :table_uri, as: 'tableUri'
property :write_disposition, as: 'writeDisposition'
end end
end end
@ -1523,15 +1488,12 @@ module Google
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount'
property :success_resource_count, :numeric_string => true, as: 'successResourceCount'
end end
end end
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :success_resource_count, :numeric_string => true, as: 'successResourceCount'
end end
end end
@ -1540,6 +1502,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :force, as: 'force' property :force, as: 'force'
property :table_uri, as: 'tableUri' property :table_uri, as: 'tableUri'
property :write_disposition, as: 'writeDisposition'
end end
end end
@ -1573,6 +1536,33 @@ module Google
property :force, as: 'force' property :force, as: 'force'
property :schema_config, as: 'schemaConfig', class: Google::Apis::HealthcareV1beta1::SchemaConfig, decorator: Google::Apis::HealthcareV1beta1::SchemaConfig::Representation property :schema_config, as: 'schemaConfig', class: Google::Apis::HealthcareV1beta1::SchemaConfig, decorator: Google::Apis::HealthcareV1beta1::SchemaConfig::Representation
property :write_disposition, as: 'writeDisposition'
end
end
class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudHealthcareV1beta1FhirGcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri_prefix, as: 'uriPrefix'
end
end
class GoogleCloudHealthcareV1beta1FhirGcsSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
end
end
class GoogleCloudHealthcareV1beta1FhirImportResourcesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end end
end end
@ -1594,20 +1584,6 @@ module Google
end end
end end
class GoogleCloudHealthcareV1beta1FhirRestGcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri_prefix, as: 'uriPrefix'
end
end
class GoogleCloudHealthcareV1beta1FhirRestGcsSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
end
end
class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1712,29 +1688,17 @@ module Google
end end
end end
class ImportAnnotationsErrorDetails
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :error_count, :numeric_string => true, as: 'errorCount'
property :success_count, :numeric_string => true, as: 'successCount'
end
end
class ImportAnnotationsRequest class ImportAnnotationsRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource::Representation property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource::Representation
property :name, as: 'name'
end end
end end
class ImportAnnotationsResponse class ImportAnnotationsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :success_count, :numeric_string => true, as: 'successCount'
end end
end end
@ -1778,7 +1742,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :content_structure, as: 'contentStructure' property :content_structure, as: 'contentStructure'
property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirRestGcsSource::Representation property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1FhirGcsSource::Representation
end end
end end

View File

@ -526,7 +526,7 @@ module Google
# EvaluateAnnotationStoreResponse, contained in the response. The metadata field # EvaluateAnnotationStoreResponse, contained in the response. The metadata field
# type is OperationMetadata. Errors are logged to Cloud Logging (see [Viewing # type is OperationMetadata. Errors are logged to Cloud Logging (see [Viewing
# logs](/healthcare/docs/how-tos/logging)). # logs](/healthcare/docs/how-tos/logging)).
# @param [String] eval_store # @param [String] name
# The Annotation store to compare against `golden_store`, in the format of ` # The Annotation store to compare against `golden_store`, in the format of `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``. # annotationStores/`annotation_store_id``.
@ -548,13 +548,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def evaluate_annotation_store(eval_store, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def evaluate_annotation_store(name, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+evalStore}:evaluate', options) command = make_simple_command(:post, 'v1beta1/{+name}:evaluate', options)
command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation
command.request_object = evaluate_annotation_store_request_object command.request_object = evaluate_annotation_store_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['evalStore'] = eval_store unless eval_store.nil? command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -565,7 +565,7 @@ module Google
# the response field when the operation finishes. The metadata field type is # the response field when the operation finishes. The metadata field type is
# OperationMetadata. Errors are logged to Cloud Logging (see [Viewing logs](/ # OperationMetadata. Errors are logged to Cloud Logging (see [Viewing logs](/
# healthcare/docs/how-tos/logging)). # healthcare/docs/how-tos/logging)).
# @param [String] annotation_store # @param [String] name
# The name of the Annotation store to export annotations to, in the format of ` # The name of the Annotation store to export annotations to, in the format of `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``. # annotationStores/`annotation_store_id``.
@ -587,13 +587,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def export_annotation_store_annotations(annotation_store, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def export_annotation_store_annotations(name, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:export', options) command = make_simple_command(:post, 'v1beta1/{+name}:export', options)
command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation
command.request_object = export_annotations_request_object command.request_object = export_annotations_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['annotationStore'] = annotation_store unless annotation_store.nil? command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -675,7 +675,7 @@ module Google
# type ImportAnnotationsResponse, contained in the response field when the # type ImportAnnotationsResponse, contained in the response field when the
# operation finishes. The metadata field type is OperationMetadata. Errors are # operation finishes. The metadata field type is OperationMetadata. Errors are
# logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/logging)). # logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/logging)).
# @param [String] annotation_store # @param [String] name
# The name of the Annotation store to which the server imports annotations, in # The name of the Annotation store to which the server imports annotations, in
# the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id` # the format `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`
# /annotationStores/`annotation_store_id``. # /annotationStores/`annotation_store_id``.
@ -697,13 +697,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def import_annotation_store_annotations(annotation_store, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) def import_annotation_store_annotations(name, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:import', options) command = make_simple_command(:post, 'v1beta1/{+name}:import', options)
command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation
command.request_object = import_annotations_request_object command.request_object = import_annotations_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['annotationStore'] = annotation_store unless annotation_store.nil? command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
@ -1623,10 +1623,10 @@ module Google
# @param [String] update_mask # @param [String] update_mask
# The update mask that applies to the resource. For the `FieldMask` definition, # The update mask that applies to the resource. For the `FieldMask` definition,
# see https://developers.google.com/protocol-buffers/docs/reference/google. # see https://developers.google.com/protocol-buffers/docs/reference/google.
# protobuf#fieldmask. The `description`, `possible_values`, ` # protobuf#fieldmask. The `description`, `allowed_values`, `
# consent_default_values`, and `data_mapping_default_value` fields are allowed # consent_default_values`, and `data_mapping_default_value` fields are allowed
# to be updated. The updated `possible_values` must contain all values from the # to be updated. The updated `allowed_values` must contain all values from the
# previous `possible_values`. # previous `allowed_values`.
# @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
@ -1980,7 +1980,7 @@ module Google
# Restricts the consents returned to those matching a filter. Syntax: https:// # Restricts the consents returned to those matching a filter. Syntax: https://
# cloud.google.com/appengine/docs/standard/python/search/query_strings The # cloud.google.com/appengine/docs/standard/python/search/query_strings The
# fields available for filtering are: - user_id - consent_artifact - state - # fields available for filtering are: - user_id - consent_artifact - state -
# state_change_time # revision_create_time
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Limit on the number of consents to return in a single response. If zero the # Limit on the number of consents to return in a single response. If zero the
# default page size of 100 is used. # default page size of 100 is used.
@ -2978,11 +2978,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# DeleteStudy deletes all instances within the given study. Delete requests are # DeleteStudyAsync deletes all instances within the given study using an
# equivalent to the GET requests specified in the Retrieve transaction. For # operation. Delete requests are equivalent to the GET requests specified in the
# samples that show how to call DeleteStudy, see [Deleting a study, series, or # Retrieve transaction. The method returns an Operation which will be marked
# instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb# # successful when the deletion is complete. Warning: Inserting instances into a
# deleting_a_study_series_or_instance). # study while a delete operation is running for that study could result in the
# new instances not appearing in search results until the deletion operation
# finishes.
# @param [String] parent # @param [String] parent
# @param [String] dicom_web_path # @param [String] dicom_web_path
# The path of the DeleteStudy request. For example, `studies/`study_uid``. # The path of the DeleteStudy request. For example, `studies/`study_uid``.
@ -2995,18 +2997,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::HealthcareV1beta1::Empty] # @return [Google::Apis::HealthcareV1beta1::Operation]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_dataset_dicom_store_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block) def delete_project_location_dataset_dicom_store_study(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options) command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Empty command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil? command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -3234,11 +3236,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# DeleteSeries deletes all instances within the given study and series. Delete # DeleteSeriesAsync deletes all instances within the given study and series
# requests are equivalent to the GET requests specified in the Retrieve # using an operation. Delete requests are equivalent to the GET requests
# transaction. For samples that show how to call DeleteSeries, see [Deleting a # specified in the Retrieve transaction. The method returns an Operation which
# study, series, or instance](https://cloud.google.com/healthcare/docs/how-tos/ # will be marked successful when the deletion is complete. Warning: Inserting
# dicomweb#deleting_a_study_series_or_instance). # instances into a series while a delete operation is running for that series
# could result in the new instances not appearing in search results until the
# deletion operation finishes.
# @param [String] parent # @param [String] parent
# The name of the DICOM store that is being accessed. For example, `projects/` # The name of the DICOM store that is being accessed. For example, `projects/`
# project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/` # project_id`/locations/`location_id`/datasets/`dataset_id`/dicomStores/`
@ -3255,18 +3259,18 @@ module Google
# Request-specific options # Request-specific options
# #
# @yield [result, err] Result & error if block supplied # @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::HealthcareV1beta1::Empty] parsed result object # @yieldparam result [Google::Apis::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed # @yieldparam err [StandardError] error object if request failed
# #
# @return [Google::Apis::HealthcareV1beta1::Empty] # @return [Google::Apis::HealthcareV1beta1::Operation]
# #
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @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::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_dataset_dicom_store_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block) def delete_project_location_dataset_dicom_store_study_series(parent, dicom_web_path, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options) command = make_simple_command(:delete, 'v1beta1/{+parent}/dicomWeb/{+dicomWebPath}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Empty command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['parent'] = parent unless parent.nil? command.params['parent'] = parent unless parent.nil?
command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil? command.params['dicomWebPath'] = dicom_web_path unless dicom_web_path.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
@ -3775,13 +3779,13 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Export resources from the FHIR store to the specified destination. This # Export resources from the FHIR store to the specified destination. This method
# method returns an Operation that can be used to track the status of the export # returns an Operation that can be used to track the status of the export by
# by calling GetOperation. Immediate fatal errors appear in the error field, # calling GetOperation. Immediate fatal errors appear in the error field, errors
# errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/ # are also logged to Cloud Logging (see [Viewing error logs in Cloud Logging](/
# how-tos/logging)). Otherwise, when the operation finishes, a detailed response # healthcare/docs/how-tos/logging)). Otherwise, when the operation finishes, a
# of type ExportResourcesResponse is returned in the response field. The # detailed response of type ExportResourcesResponse is returned in the response
# metadata field type for this operation is OperationMetadata. # field. The metadata field type for this operation is OperationMetadata.
# @param [String] name # @param [String] name
# The name of the FHIR store to export resource from, in the format of `projects/ # The name of the FHIR store to export resource from, in the format of `projects/
# `project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/` # `project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/`
@ -3901,10 +3905,10 @@ module Google
# considering grouping or ordering, but if the input data contains invalid # considering grouping or ordering, but if the input data contains invalid
# references or if some resources fail to be imported, the FHIR store might be # references or if some resources fail to be imported, the FHIR store might be
# left in a state that violates referential integrity. The import process does # left in a state that violates referential integrity. The import process does
# not trigger Cloud Pub/Sub notification or BigQuery streaming update, # not trigger Pub/Sub notification or BigQuery streaming update, regardless of
# regardless of how those are configured on the FHIR store. If a resource with # how those are configured on the FHIR store. If a resource with the specified
# the specified ID already exists, the most recent version of the resource is # ID already exists, the most recent version of the resource is overwritten
# overwritten without creating a new historical version, regardless of the # without creating a new historical version, regardless of the
# disable_resource_versioning setting on the FHIR store. If transient failures # disable_resource_versioning setting on the FHIR store. If transient failures
# occur during the import, it is possible that successfully imported resources # occur during the import, it is possible that successfully imported resources
# will be overwritten more than once. The import operation is idempotent unless # will be overwritten more than once. The import operation is idempotent unless
@ -3919,22 +3923,22 @@ module Google
# copy of a resource such as Practitioner that might be referred to by many # copy of a resource such as Practitioner that might be referred to by many
# patients. If some resources fail to import, for example due to parsing errors, # patients. If some resources fail to import, for example due to parsing errors,
# successfully imported resources are not rolled back. The location and format # successfully imported resources are not rolled back. The location and format
# of the input data is specified by the parameters below. Note that if no format # of the input data are specified by the parameters in ImportResourcesRequest.
# is specified, this method assumes the `BUNDLE` format. When using the `BUNDLE` # Note that if no format is specified, this method assumes the `BUNDLE` format.
# format this method ignores the `Bundle.type` field, except that `history` # When using the `BUNDLE` format this method ignores the `Bundle.type` field,
# bundles are rejected, and does not apply any of the bundle processing # except that `history` bundles are rejected, and does not apply any of the
# semantics for batch or transaction bundles. Unlike in ExecuteBundle, # bundle processing semantics for batch or transaction bundles. Unlike in
# transaction bundles are not executed as a single transaction and bundle- # ExecuteBundle, transaction bundles are not executed as a single transaction
# internal references are not rewritten. The bundle is treated as a collection # and bundle-internal references are not rewritten. The bundle is treated as a
# of resources to be written as provided in `Bundle.entry.resource`, ignoring ` # collection of resources to be written as provided in `Bundle.entry.resource`,
# Bundle.entry.request`. As an example, this allows the import of `searchset` # ignoring `Bundle.entry.request`. As an example, this allows the import of `
# bundles produced by a FHIR search or Patient-everything operation. This method # searchset` bundles produced by a FHIR search or Patient-everything operation.
# returns an Operation that can be used to track the status of the import by # This method returns an Operation that can be used to track the status of the
# calling GetOperation. Immediate fatal errors appear in the error field, errors # import by calling GetOperation. Immediate fatal errors appear in the error
# are also logged to Cloud Logging (see [Viewing logs](/healthcare/docs/how-tos/ # field, errors are also logged to Cloud Logging (see [Viewing logs](/healthcare/
# logging)). Otherwise, when the operation finishes, a detailed response of type # docs/how-tos/logging)). Otherwise, when the operation finishes, a detailed
# ImportResourcesResponse is returned in the response field. The metadata field # response of type ImportResourcesResponse is returned in the response field.
# type for this operation is OperationMetadata. # The metadata field type for this operation is OperationMetadata.
# @param [String] name # @param [String] name
# The name of the FHIR store to import FHIR resources to, in the format of ` # The name of the FHIR store to import FHIR resources to, in the format of `
# projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/ # projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/fhirStores/

View File

@ -26,7 +26,7 @@ module Google
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/ # @see https://devsite.googleplex.com/youtube/partner/docs/v1/
module YoutubePartnerV1 module YoutubePartnerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20201001' REVISION = '20201005'
# View and manage your assets and associated content on YouTube # View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'