Autogenerated update (2020-06-17)

Update:
- androidpublisher_v3
- artifactregistry_v1beta1
- cloudasset_v1
- cloudasset_v1beta1
- cloudasset_v1p4beta1
- cloudidentity_v1
- cloudidentity_v1beta1
- healthcare_v1
- healthcare_v1beta1
- iam_v1
- people_v1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- vision_v1
- vision_v1p1beta1
This commit is contained in:
Google APIs 2020-06-17 00:38:10 +00:00
parent b876939241
commit eb8ede0e4e
49 changed files with 8235 additions and 108 deletions

View File

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

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/artifacts/docs/ # @see https://cloud.google.com/artifacts/docs/
module ArtifactregistryV1beta1 module ArtifactregistryV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200605' REVISION = '20200612'
# 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

@ -847,6 +847,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :format attr_accessor :format
# The Cloud KMS resource name of the customer managed encryption key thats
# used to encrypt the contents of the Repository. Has the form:
# `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
# This value may not be changed after the Repository has been created.
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
# Labels with user-defined metadata. # Labels with user-defined metadata.
# This field may contain up to 64 entries. Label keys and values may be no # This field may contain up to 64 entries. Label keys and values may be no
# longer than 63 characters. Label keys must begin with a lowercase letter # longer than 63 characters. Label keys must begin with a lowercase letter
@ -876,6 +884,7 @@ module Google
@create_time = args[:create_time] if args.key?(:create_time) @create_time = args[:create_time] if args.key?(:create_time)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@format = args[:format] if args.key?(:format) @format = args[:format] if args.key?(:format)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@labels = args[:labels] if args.key?(:labels) @labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time) @update_time = args[:update_time] if args.key?(:update_time)

View File

@ -380,6 +380,7 @@ module Google
property :create_time, as: 'createTime' property :create_time, as: 'createTime'
property :description, as: 'description' property :description, as: 'description'
property :format, as: 'format' property :format, as: 'format'
property :kms_key_name, as: 'kmsKeyName'
hash :labels, as: 'labels' hash :labels, as: 'labels'
property :name, as: 'name' property :name, as: 'name'
property :update_time, as: 'updateTime' property :update_time, as: 'updateTime'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1 module CloudassetV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200605' REVISION = '20200613'
# 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

@ -27,7 +27,10 @@ module Google
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform- # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
# resource-hierarchy), # resource-hierarchy),
# a resource outside the Google Cloud resource hierarchy (such as Google # a resource outside the Google Cloud resource hierarchy (such as Google
# Kubernetes Engine clusters and objects), or a Cloud IAM policy. # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
# See [Supported asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for more information.
class Asset class Asset
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -834,7 +837,7 @@ module Google
attr_accessor :denied_values attr_accessor :denied_values
# Determines the inheritance behavior for this `Policy`. # Determines the inheritance behavior for this `Policy`.
# By default, a `ListPolicy` set at a resource supercedes any `Policy` set # By default, a `ListPolicy` set at a resource supersedes any `Policy` set
# anywhere up the resource hierarchy. However, if `inherit_from_parent` is # anywhere up the resource hierarchy. However, if `inherit_from_parent` is
# set to `true`, then the values from the effective `Policy` of the parent # set to `true`, then the values from the effective `Policy` of the parent
# resource are inherited, meaning the values set in this `Policy` are # resource are inherited, meaning the values set in this `Policy` are
@ -958,6 +961,9 @@ module Google
# The name of the `Constraint` the `Policy` is configuring, for example, # The name of the `Constraint` the `Policy` is configuring, for example,
# `constraints/serviceuser.services`. # `constraints/serviceuser.services`.
# A [list of available
# constraints](/resource-manager/docs/organization-policy/org-policy-constraints)
# is available.
# Immutable after creation. # Immutable after creation.
# Corresponds to the JSON property `constraint` # Corresponds to the JSON property `constraint`
# @return [String] # @return [String]
@ -1963,7 +1969,10 @@ module Google
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform- # hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
# resource-hierarchy), # resource-hierarchy),
# a resource outside the Google Cloud resource hierarchy (such as Google # a resource outside the Google Cloud resource hierarchy (such as Google
# Kubernetes Engine clusters and objects), or a Cloud IAM policy. # Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
# See [Supported asset
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
# for more information.
# Corresponds to the JSON property `asset` # Corresponds to the JSON property `asset`
# @return [Google::Apis::CloudassetV1::Asset] # @return [Google::Apis::CloudassetV1::Asset]
attr_accessor :asset attr_accessor :asset

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1beta1 module CloudassetV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200605' REVISION = '20200613'
# 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'

File diff suppressed because it is too large Load Diff

View File

@ -70,6 +70,90 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class GoogleCloudOrgpolicyV1BooleanPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1ListPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudOrgpolicyV1RestoreDefault
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1AccessLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1BasicLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1OsConstraint
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -115,12 +199,20 @@ module Google
class Asset class Asset
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :access_level, as: 'accessLevel', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1AccessLevel::Representation
property :access_policy, as: 'accessPolicy', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1AccessPolicy::Representation
property :asset_type, as: 'assetType' property :asset_type, as: 'assetType'
property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1beta1::Policy, decorator: Google::Apis::CloudassetV1beta1::Policy::Representation property :iam_policy, as: 'iamPolicy', class: Google::Apis::CloudassetV1beta1::Policy, decorator: Google::Apis::CloudassetV1beta1::Policy::Representation
property :name, as: 'name' property :name, as: 'name'
collection :org_policy, as: 'orgPolicy', class: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1Policy, decorator: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1Policy::Representation
property :resource, as: 'resource', class: Google::Apis::CloudassetV1beta1::Resource, decorator: Google::Apis::CloudassetV1beta1::Resource::Representation property :resource, as: 'resource', class: Google::Apis::CloudassetV1beta1::Resource, decorator: Google::Apis::CloudassetV1beta1::Resource::Representation
property :service_perimeter, as: 'servicePerimeter', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeter::Representation
end end
end end
@ -188,6 +280,155 @@ module Google
end end
end end
class GoogleCloudOrgpolicyV1BooleanPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enforced, as: 'enforced'
end
end
class GoogleCloudOrgpolicyV1ListPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :all_values, as: 'allValues'
collection :allowed_values, as: 'allowedValues'
collection :denied_values, as: 'deniedValues'
property :inherit_from_parent, as: 'inheritFromParent'
property :suggested_value, as: 'suggestedValue'
end
end
class GoogleCloudOrgpolicyV1Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1BooleanPolicy, decorator: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1BooleanPolicy::Representation
property :constraint, as: 'constraint'
property :etag, :base64 => true, as: 'etag'
property :list_policy, as: 'listPolicy', class: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1ListPolicy, decorator: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1ListPolicy::Representation
property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1RestoreDefault, decorator: Google::Apis::CloudassetV1beta1::GoogleCloudOrgpolicyV1RestoreDefault::Representation
property :update_time, as: 'updateTime'
property :version, as: 'version'
end
end
class GoogleCloudOrgpolicyV1RestoreDefault
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleIdentityAccesscontextmanagerV1AccessLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :basic, as: 'basic', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1BasicLevel, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1BasicLevel::Representation
property :custom, as: 'custom', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1CustomLevel, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1CustomLevel::Representation
property :description, as: 'description'
property :name, as: 'name'
property :title, as: 'title'
end
end
class GoogleIdentityAccesscontextmanagerV1AccessPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
property :name, as: 'name'
property :parent, as: 'parent'
property :title, as: 'title'
end
end
class GoogleIdentityAccesscontextmanagerV1BasicLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :combining_function, as: 'combiningFunction'
collection :conditions, as: 'conditions', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1Condition, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1Condition::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_policy, as: 'devicePolicy', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy::Representation
collection :ip_subnetworks, as: 'ipSubnetworks'
collection :members, as: 'members'
property :negate, as: 'negate'
collection :regions, as: 'regions'
collection :required_access_levels, as: 'requiredAccessLevels'
end
end
class GoogleIdentityAccesscontextmanagerV1CustomLevel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expr, as: 'expr', class: Google::Apis::CloudassetV1beta1::Expr, decorator: Google::Apis::CloudassetV1beta1::Expr::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1DevicePolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_device_management_levels, as: 'allowedDeviceManagementLevels'
collection :allowed_encryption_statuses, as: 'allowedEncryptionStatuses'
collection :os_constraints, as: 'osConstraints', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1OsConstraint, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1OsConstraint::Representation
property :require_admin_approval, as: 'requireAdminApproval'
property :require_corp_owned, as: 'requireCorpOwned'
property :require_screenlock, as: 'requireScreenlock'
end
end
class GoogleIdentityAccesscontextmanagerV1OsConstraint
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :minimum_version, as: 'minimumVersion'
property :os_type, as: 'osType'
property :require_verified_chrome_os, as: 'requireVerifiedChromeOs'
end
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :name, as: 'name'
property :perimeter_type, as: 'perimeterType'
property :spec, as: 'spec', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig::Representation
property :status, as: 'status', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig::Representation
property :title, as: 'title'
property :use_explicit_dry_run_spec, as: 'useExplicitDryRunSpec'
end
end
class GoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :access_levels, as: 'accessLevels'
collection :resources, as: 'resources'
collection :restricted_services, as: 'restrictedServices'
property :vpc_accessible_services, as: 'vpcAccessibleServices', class: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices, decorator: Google::Apis::CloudassetV1beta1::GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices::Representation
end
end
class GoogleIdentityAccesscontextmanagerV1VpcAccessibleServices
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :allowed_services, as: 'allowedServices'
property :enable_restriction, as: 'enableRestriction'
end
end
class Operation class Operation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -144,8 +144,8 @@ module Google
# @param [String] content_type # @param [String] content_type
# Optional. The content type. # Optional. The content type.
# @param [String] read_time_window_end_time # @param [String] read_time_window_end_time
# End time of the time window (inclusive). # End time of the time window (inclusive). If not specified, the current
# Current timestamp if not specified. # timestamp is used instead.
# @param [String] read_time_window_start_time # @param [String] read_time_window_start_time
# Start time of the time window (exclusive). # Start time of the time window (exclusive).
# @param [String] fields # @param [String] fields
@ -276,8 +276,8 @@ module Google
# @param [String] content_type # @param [String] content_type
# Optional. The content type. # Optional. The content type.
# @param [String] read_time_window_end_time # @param [String] read_time_window_end_time
# End time of the time window (inclusive). # End time of the time window (inclusive). If not specified, the current
# Current timestamp if not specified. # timestamp is used instead.
# @param [String] read_time_window_start_time # @param [String] read_time_window_start_time
# Start time of the time window (exclusive). # Start time of the time window (exclusive).
# @param [String] fields # @param [String] fields

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/asset-inventory/docs/quickstart # @see https://cloud.google.com/asset-inventory/docs/quickstart
module CloudassetV1p4beta1 module CloudassetV1p4beta1
VERSION = 'V1p4beta1' VERSION = 'V1p4beta1'
REVISION = '20200605' REVISION = '20200613'
# 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

@ -294,12 +294,12 @@ module Google
end end
end end
# A role or permission that appears in an access control list. # An IAM role or permission under analysis.
class GoogleCloudAssetV1p4beta1Access class GoogleCloudAssetV1p4beta1Access
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents analysis state of each node in the result graph or non-critical # Represents the detailed state of an entity under analysis, such as a
# errors in the response. # resource, an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
@ -376,8 +376,8 @@ module Google
end end
end end
# Represents analysis state of each node in the result graph or non-critical # Represents the detailed state of an entity under analysis, such as a
# errors in the response. # resource, an identity or an access.
class GoogleCloudAssetV1p4beta1AnalysisState class GoogleCloudAssetV1p4beta1AnalysisState
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -388,9 +388,10 @@ module Google
# The Google standard error code that best describes the state. # The Google standard error code that best describes the state.
# For example: # For example:
# - OK means the node has been successfully explored; # - OK means the analysis on this entity has been successfully finished;
# - PERMISSION_DENIED means an access denied error is encountered; # - PERMISSION_DENIED means an access denied error is encountered;
# - DEADLINE_EXCEEDED means the node hasn't been explored in time; # - DEADLINE_EXCEEDED means the analysis on this entity hasn't been started
# in time;
# Corresponds to the JSON property `code` # Corresponds to the JSON property `code`
# @return [String] # @return [String]
attr_accessor :code attr_accessor :code
@ -431,12 +432,12 @@ module Google
end end
end end
# An identity that appears in an access control list. # An identity under analysis.
class GoogleCloudAssetV1p4beta1Identity class GoogleCloudAssetV1p4beta1Identity
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents analysis state of each node in the result graph or non-critical # Represents the detailed state of an entity under analysis, such as a
# errors in the response. # resource, an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
@ -501,12 +502,12 @@ module Google
end end
end end
# A GCP resource that appears in an access control list. # A Google Cloud resource under analysis.
class GoogleCloudAssetV1p4beta1Resource class GoogleCloudAssetV1p4beta1Resource
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Represents analysis state of each node in the result graph or non-critical # Represents the detailed state of an entity under analysis, such as a
# errors in the response. # resource, an identity or an access.
# Corresponds to the JSON property `analysisState` # Corresponds to the JSON property `analysisState`
# @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState] # @return [Google::Apis::CloudassetV1p4beta1::GoogleCloudAssetV1p4beta1AnalysisState]
attr_accessor :analysis_state attr_accessor :analysis_state
@ -616,8 +617,7 @@ module Google
# Specifies the resource to analyze for access policies, which may be set # Specifies the resource to analyze for access policies, which may be set
# directly on the resource, or on ancestors such as organizations, folders or # directly on the resource, or on ancestors such as organizations, folders or
# projects. Either ResourceSelector or IdentitySelector must be # projects.
# specified in a request.
# Corresponds to the JSON property `resourceSelector` # Corresponds to the JSON property `resourceSelector`
# @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector] # @return [Google::Apis::CloudassetV1p4beta1::ResourceSelector]
attr_accessor :resource_selector attr_accessor :resource_selector
@ -653,8 +653,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :attached_resource_full_name attr_accessor :attached_resource_full_name
# Represents whether all nodes in the transitive closure of the # Represents whether all analyses on the iam_binding have successfully
# iam_binding node have been explored. # finished.
# Corresponds to the JSON property `fullyExplored` # Corresponds to the JSON property `fullyExplored`
# @return [Boolean] # @return [Boolean]
attr_accessor :fully_explored attr_accessor :fully_explored
@ -875,8 +875,7 @@ module Google
# Specifies the resource to analyze for access policies, which may be set # Specifies the resource to analyze for access policies, which may be set
# directly on the resource, or on ancestors such as organizations, folders or # directly on the resource, or on ancestors such as organizations, folders or
# projects. Either ResourceSelector or IdentitySelector must be # projects.
# specified in a request.
class ResourceSelector class ResourceSelector
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -47,8 +47,8 @@ module Google
@batch_path = 'batch' @batch_path = 'batch'
end end
# Analyzes IAM policies based on the specified request. Returns # Analyzes IAM policies to answer which identities have what accesses on
# a list of IamPolicyAnalysisResult matching the request. # which resources.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. Only resources and IAM policies # Required. The relative name of the root asset. Only resources and IAM policies
# within # within
@ -181,10 +181,14 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports IAM policy analysis based on the specified request. This API # Exports the answers of which identities have what accesses on which
# implements the google.longrunning.Operation API allowing you to keep # resources to a Google Cloud Storage destination. The output format is
# track of the export. The metadata contains the request to help callers to # the JSON format that represents a AnalyzeIamPolicyResponse
# map responses to requests. # in the JSON format.
# This method implements the google.longrunning.Operation, which allows
# you to keep track of the export. We recommend intervals of at least 2
# seconds with exponential retry to poll the export operation result. The
# metadata contains the request to help callers to map responses to requests.
# @param [String] parent # @param [String] parent
# Required. The relative name of the root asset. Only resources and IAM policies # Required. The relative name of the root asset. Only resources and IAM policies
# within # within

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1 module CloudidentityV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200401' REVISION = '20200612'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/identity/ # @see https://cloud.google.com/identity/
module CloudidentityV1beta1 module CloudidentityV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200516' REVISION = '20200612'
# See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group # See, change, create, and delete any of the Cloud Identity Groups that you can access, including the members of each group
AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups' AUTH_CLOUD_IDENTITY_GROUPS = 'https://www.googleapis.com/auth/cloud-identity.groups'

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_v1beta2/service.rb'
require 'google/apis/documentai_v1beta2/classes.rb'
require 'google/apis/documentai_v1beta2/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 DocumentaiV1beta2
VERSION = 'V1beta2'
REVISION = '20200612'
# 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,269 @@
# 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 DocumentaiV1beta2
# 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_v1beta2'
#
# Documentai = Google::Apis::DocumentaiV1beta2 # 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
# LRO endpoint to batch process many documents. The output is written
# to Cloud Storage as JSON in the [Document] format.
# @param [String] parent
# Target project and location to make a call.
# Format: `projects/`project-id`/locations/`location-id``.
# If no location is specified, a region will be chosen automatically.
# @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest] google_cloud_documentai_v1beta2_batch_process_documents_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::DocumentaiV1beta2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::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_document_process(parent, google_cloud_documentai_v1beta2_batch_process_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/documents:batchProcess', options)
command.request_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest::Representation
command.request_object = google_cloud_documentai_v1beta2_batch_process_documents_request_object
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation
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
# Processes a single document.
# @param [String] parent
# Target project and location to make a call.
# Format: `projects/`project-id`/locations/`location-id``.
# If no location is specified, a region will be chosen automatically.
# This field is only populated when used in ProcessDocument method.
# @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest] google_cloud_documentai_v1beta2_process_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::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document]
#
# @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_document(parent, google_cloud_documentai_v1beta2_process_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/documents:process', options)
command.request_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest::Representation
command.request_object = google_cloud_documentai_v1beta2_process_document_request_object
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document
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
# LRO endpoint to batch process many documents. The output is written
# to Cloud Storage as JSON in the [Document] format.
# @param [String] parent
# Target project and location to make a call.
# Format: `projects/`project-id`/locations/`location-id``.
# If no location is specified, a region will be chosen automatically.
# @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest] google_cloud_documentai_v1beta2_batch_process_documents_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::DocumentaiV1beta2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::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_document_process(parent, google_cloud_documentai_v1beta2_batch_process_documents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/documents:batchProcess', options)
command.request_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest::Representation
command.request_object = google_cloud_documentai_v1beta2_batch_process_documents_request_object
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation
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
# Processes a single document.
# @param [String] parent
# Target project and location to make a call.
# Format: `projects/`project-id`/locations/`location-id``.
# If no location is specified, a region will be chosen automatically.
# This field is only populated when used in ProcessDocument method.
# @param [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest] google_cloud_documentai_v1beta2_process_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::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document]
#
# @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_document(parent, google_cloud_documentai_v1beta2_process_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta2/{+parent}/documents:process', options)
command.request_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest::Representation
command.request_object = google_cloud_documentai_v1beta2_process_document_request_object
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2Document
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this
# method to poll the operation result at intervals as recommended by the API
# service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::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, 'v1beta2/{+name}', options)
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::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
# 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::DocumentaiV1beta2::GoogleLongrunningOperation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DocumentaiV1beta2::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_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta2/{+name}', options)
command.response_representation = Google::Apis::DocumentaiV1beta2::GoogleLongrunningOperation::Representation
command.response_class = Google::Apis::DocumentaiV1beta2::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
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 HealthcareV1 module HealthcareV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200525' REVISION = '20200605'
# 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

@ -1384,6 +1384,8 @@ module Google
# DeleteInstance deletes an instance associated with the given study, series, # DeleteInstance deletes an instance associated with the given study, series,
# and SOP Instance UID. Delete requests are equivalent to the GET requests # and SOP Instance UID. Delete requests are equivalent to the GET requests
# specified in the Retrieve transaction. # specified in the Retrieve transaction.
# Study and series search results can take a few seconds to be updated after
# an instance is deleted using DeleteInstance.
# @param [String] parent # @param [String] parent
# The name of the DICOM store that is being accessed. For example, # The name of the DICOM store that is being accessed. For example,
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/

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 = '20200525' REVISION = '20200605'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,6 +22,151 @@ module Google
module Apis module Apis
module HealthcareV1beta1 module HealthcareV1beta1
# An annotation record.
class Annotation
include Google::Apis::Core::Hashable
# AnnotationSource holds the source information of the annotation.
# Corresponds to the JSON property `annotationSource`
# @return [Google::Apis::HealthcareV1beta1::AnnotationSource]
attr_accessor :annotation_source
# Additional information for this annotation record, such as annotator and
# verifier information or study campaign.
# Corresponds to the JSON property `customData`
# @return [Hash<String,String>]
attr_accessor :custom_data
# Image annotation.
# Corresponds to the JSON property `imageAnnotation`
# @return [Google::Apis::HealthcareV1beta1::ImageAnnotation]
attr_accessor :image_annotation
# Resource name of the Annotation, of the form
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id`/annotations/`annotation_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Resource level annotation.
# Corresponds to the JSON property `resourceAnnotation`
# @return [Google::Apis::HealthcareV1beta1::ResourceAnnotation]
attr_accessor :resource_annotation
# A TextAnnotation specifies a text range that includes sensitive information.
# Corresponds to the JSON property `textAnnotation`
# @return [Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation]
attr_accessor :text_annotation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_source = args[:annotation_source] if args.key?(:annotation_source)
@custom_data = args[:custom_data] if args.key?(:custom_data)
@image_annotation = args[:image_annotation] if args.key?(:image_annotation)
@name = args[:name] if args.key?(:name)
@resource_annotation = args[:resource_annotation] if args.key?(:resource_annotation)
@text_annotation = args[:text_annotation] if args.key?(:text_annotation)
end
end
# Specifies how to store annotations during de-identification operation.
class AnnotationConfig
include Google::Apis::Core::Hashable
# The name of the annotation store, in the form
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``).
# * The destination annotation store must be in the same project as the
# source data. De-identifying data across multiple projects is not
# supported.
# * The destination annotation store must exist when using
# DeidentifyDicomStore or
# DeidentifyFhirStore.
# DeidentifyDataset
# automatically creates the destination annotation store.
# Corresponds to the JSON property `annotationStoreName`
# @return [String]
attr_accessor :annotation_store_name
# If set to true, the sensitive texts are included in
# SensitiveTextAnnotation
# of Annotation.
# Corresponds to the JSON property `storeQuote`
# @return [Boolean]
attr_accessor :store_quote
alias_method :store_quote?, :store_quote
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_store_name = args[:annotation_store_name] if args.key?(:annotation_store_name)
@store_quote = args[:store_quote] if args.key?(:store_quote)
end
end
# AnnotationSource holds the source information of the annotation.
class AnnotationSource
include Google::Apis::Core::Hashable
# Cloud Healthcare API resource.
# Corresponds to the JSON property `cloudHealthcareSource`
# @return [Google::Apis::HealthcareV1beta1::CloudHealthcareSource]
attr_accessor :cloud_healthcare_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cloud_healthcare_source = args[:cloud_healthcare_source] if args.key?(:cloud_healthcare_source)
end
end
# An Annotation store that can store annotation resources such as
# labels and tags for text, image and audio.
class AnnotationStore
include Google::Apis::Core::Hashable
# Optional. User-supplied key-value pairs used to organize Annotation stores.
# Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
# of maximum 128 bytes, and must conform to the
# following PCRE regular expression:
# \p`Ll`\p`Lo``0,62`
# Label values must be between 1 and 63 characters long, have
# a UTF-8 encoding of maximum 128 bytes, and must conform to the
# following PCRE regular expression: [\p`Ll`\p`Lo`\p`N`_-]`0,63`
# No more than 64 labels can be associated with a given store.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# Resource name of the Annotation store, of the form
# `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)
update!(**args)
end
# Update properties of this object
def update!(**args)
@labels = args[:labels] if args.key?(:labels)
@name = args[:name] if args.key?(:name)
end
end
# Specifies the audit configuration for a service. # Specifies the audit configuration for a service.
# The configuration determines which permission types are logged, and what # The configuration determines which permission types are logged, and what
# identities, if any, are exempted from logging. # identities, if any, are exempted from logging.
@ -221,6 +366,31 @@ module Google
end end
end end
# A bounding polygon for the detected image annotation.
class BoundingPoly
include Google::Apis::Core::Hashable
# A description of this polygon.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
# List of the vertices of this polygon.
# Corresponds to the JSON property `vertices`
# @return [Array<Google::Apis::HealthcareV1beta1::Vertex>]
attr_accessor :vertices
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
@vertices = args[:vertices] if args.key?(:vertices)
end
end
# The request message for Operations.CancelOperation. # The request message for Operations.CancelOperation.
class CancelOperationRequest class CancelOperationRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -253,6 +423,25 @@ module Google
end end
end end
# Cloud Healthcare API resource.
class CloudHealthcareSource
include Google::Apis::Core::Hashable
# Full path of a Cloud Healthcare API resource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# Creates a new message. # Creates a new message.
class CreateMessageRequest class CreateMessageRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -362,6 +551,11 @@ module Google
class DeidentifyConfig class DeidentifyConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies how to store annotations during de-identification operation.
# Corresponds to the JSON property `annotation`
# @return [Google::Apis::HealthcareV1beta1::AnnotationConfig]
attr_accessor :annotation
# Specifies the parameters needed for de-identification of DICOM stores. # Specifies the parameters needed for de-identification of DICOM stores.
# Corresponds to the JSON property `dicom` # Corresponds to the JSON property `dicom`
# @return [Google::Apis::HealthcareV1beta1::DicomConfig] # @return [Google::Apis::HealthcareV1beta1::DicomConfig]
@ -389,6 +583,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@annotation = args[:annotation] if args.key?(:annotation)
@dicom = args[:dicom] if args.key?(:dicom) @dicom = args[:dicom] if args.key?(:dicom)
@fhir = args[:fhir] if args.key?(:fhir) @fhir = args[:fhir] if args.key?(:fhir)
@image = args[:image] if args.key?(:image) @image = args[:image] if args.key?(:image)
@ -585,6 +780,25 @@ module Google
end end
end end
# Contains multiple sensitive information findings for each resource slice.
class Detail
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `findings`
# @return [Array<Google::Apis::HealthcareV1beta1::Finding>]
attr_accessor :findings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@findings = args[:findings] if args.key?(:findings)
end
end
# Specifies the parameters needed for de-identification of DICOM stores. # Specifies the parameters needed for de-identification of DICOM stores.
class DicomConfig class DicomConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -750,6 +964,209 @@ module Google
end end
end end
# Request to evaluate an Annotation store against a
# ground truth [Annotation store].
class EvaluateAnnotationStoreRequest
include Google::Apis::Core::Hashable
# The BigQuery table for export.
# Corresponds to the JSON property `bigqueryDestination`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
attr_accessor :bigquery_destination
# Optional. InfoType mapping for `eval_store`. Different resources can map to
# the same infoType. For example, `PERSON_NAME`, `PERSON`, `NAME`, and
# `HUMAN` are different. To map all of these into a single
# infoType (such as `PERSON_NAME`), specify the following mapping:
# ```
# info_type_mapping["PERSON"] = "PERSON_NAME"
# info_type_mapping["NAME"] = "PERSON_NAME"
# info_type_mapping["HUMAN"] = "PERSON_NAME"
# ```
# Unmentioned infoTypes, such as `DATE`, are treated as identity
# mapping. For example:
# ```
# info_type_mapping["DATE"] = "DATE"
# ```
# InfoTypes are case-insensitive.
# Corresponds to the JSON property `evalInfoTypeMapping`
# @return [Hash<String,String>]
attr_accessor :eval_info_type_mapping
# Optional. Similar to `eval_info_type_mapping`, infoType mapping for
# `golden_store`.
# Corresponds to the JSON property `goldenInfoTypeMapping`
# @return [Hash<String,String>]
attr_accessor :golden_info_type_mapping
# The Annotation store to use as ground truth, 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
# Specifies how to use infoTypes for evaluation. For example, a user might
# only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
# Corresponds to the JSON property `infoTypeConfig`
# @return [Google::Apis::HealthcareV1beta1::InfoTypeConfig]
attr_accessor :info_type_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
@eval_info_type_mapping = args[:eval_info_type_mapping] if args.key?(:eval_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)
@info_type_config = args[:info_type_config] if args.key?(:info_type_config)
end
end
# Response for successful Annotation store evaluation operations. This
# structure is included in the
# response upon operation completion.
class EvaluateAnnotationStoreResponse
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)
update!(**args)
end
# Update properties of this object
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
# 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
# failure occurs, any annotations already exported are not removed.
class ExportAnnotationsRequest
include Google::Apis::Core::Hashable
# The BigQuery table for export.
# Corresponds to the JSON property `bigqueryDestination`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination]
attr_accessor :bigquery_destination
# The Cloud Storage location for export.
# Corresponds to the JSON property `gcsDestination`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination]
attr_accessor :gcs_destination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
end
end
# Response for successful annotation export operations. This structure is
# included in response upon operation
# completion.
class ExportAnnotationsResponse
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)
update!(**args)
end
# Update properties of this object
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
# Exports data from the specified DICOM store. # Exports data from the specified DICOM store.
# If a given resource, such as a DICOM object with the same SOPInstance UID, # If a given resource, such as a DICOM object with the same SOPInstance UID,
# already exists in the output, it is overwritten with the version # already exists in the output, it is overwritten with the version
@ -1135,6 +1552,160 @@ module Google
end end
end end
# List of infoTypes to be filtered.
class FilterList
include Google::Apis::Core::Hashable
# These infoTypes are based on after the `eval_info_type_mapping` and
# `golden_info_type_mapping`.
# Corresponds to the JSON property `infoTypes`
# @return [Array<String>]
attr_accessor :info_types
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@info_types = args[:info_types] if args.key?(:info_types)
end
end
#
class Finding
include Google::Apis::Core::Hashable
# Zero-based ending index of the found text, exclusively.
# Corresponds to the JSON property `end`
# @return [Fixnum]
attr_accessor :end
# The type of information stored in this text range. For example,
# HumanName, BirthDate, or Address.
# Corresponds to the JSON property `infoType`
# @return [String]
attr_accessor :info_type
# The snippet of the sensitive text. This field is only populated during
# deidentification if `store_quote` is set to true in DeidentifyConfig.
# Corresponds to the JSON property `quote`
# @return [String]
attr_accessor :quote
# Zero-based starting index of the found text, inclusively.
# Corresponds to the JSON property `start`
# @return [Fixnum]
attr_accessor :start
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end = args[:end] if args.key?(:end)
@info_type = args[:info_type] if args.key?(:info_type)
@quote = args[:quote] if args.key?(:quote)
@start = args[:start] if args.key?(:start)
end
end
# The BigQuery table for export.
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
include Google::Apis::Core::Hashable
# If the destination table already exists and this flag is `TRUE`, the table
# is overwritten by the contents of the input store. If the flag is not
# set and the destination table already exists, the export call returns an
# error.
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
alias_method :force?, :force
# Specifies the schema format to export.
# Corresponds to the JSON property `schemaType`
# @return [String]
attr_accessor :schema_type
# BigQuery URI to a table, up to 2000 characters long, must be of the form
# bq://projectId.bqDatasetId.tableId.
# Corresponds to the JSON property `tableUri`
# @return [String]
attr_accessor :table_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@force = args[:force] if args.key?(:force)
@schema_type = args[:schema_type] if args.key?(:schema_type)
@table_uri = args[:table_uri] if args.key?(:table_uri)
end
end
# The Cloud Storage location for export.
class GoogleCloudHealthcareV1beta1AnnotationGcsDestination
include Google::Apis::Core::Hashable
# The Cloud Storage destination to export to.
# URI for a Cloud Storage directory where the server writes result files, 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 GoogleCloudHealthcareV1beta1AnnotationGcsSource
include Google::Apis::Core::Hashable
# Points to a Cloud Storage URI containing file(s) with
# content only. 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 .dcm), which
# imports all files with the extension in the specified directory and
# its sub-directories. For example,
# `gs://my-bucket/my-directory/**.json` imports all files with .json
# extensions in `my-directory/` and its sub-directories.
# '?' to match 1 character
# All other URI formats are invalid.
# 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
# Contains a summary of the DeidentifyDicomStore operation. # Contains a summary of the DeidentifyDicomStore operation.
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1824,6 +2395,32 @@ module Google
end end
end end
# Image annotation.
class ImageAnnotation
include Google::Apis::Core::Hashable
# The list of polygons outlining the sensitive regions in the image.
# Corresponds to the JSON property `boundingPolys`
# @return [Array<Google::Apis::HealthcareV1beta1::BoundingPoly>]
attr_accessor :bounding_polys
# 0-based index of the image frame. For example, an image frame in a DICOM
# instance.
# Corresponds to the JSON property `frameIndex`
# @return [Fixnum]
attr_accessor :frame_index
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
@frame_index = args[:frame_index] if args.key?(:frame_index)
end
end
# Specifies how to handle de-identification of image pixels. # Specifies how to handle de-identification of image pixels.
class ImageConfig class ImageConfig
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1843,6 +2440,101 @@ module Google
end end
end end
# 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-supplied resource names which
# indicate the annotation resource. The import operation is not atomic. If a
# failure occurs, any annotations already imported are not removed.
class ImportAnnotationsRequest
include Google::Apis::Core::Hashable
# Specifies the configuration for importing data from Cloud Storage.
# Corresponds to the JSON property `gcsSource`
# @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource]
attr_accessor :gcs_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
end
end
# Final response of importing
# Annotations in
# successful case. This structure is included in the
# response. It is only included
# when the operation finishes.
class ImportAnnotationsResponse
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 the input annotations. All input have been imported
# successfully.
# 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)
@success_count = args[:success_count] if args.key?(:success_count)
end
end
# Returns the errors encountered during DICOM store import. # Returns the errors encountered during DICOM store import.
class ImportDicomDataErrorDetails class ImportDicomDataErrorDetails
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1925,6 +2617,59 @@ module Google
end end
end end
# Specifies how to use infoTypes for evaluation. For example, a user might
# only want to evaluate `PERSON`, `LOCATION`, and `AGE`.
class InfoTypeConfig
include Google::Apis::Core::Hashable
# List of infoTypes to be filtered.
# Corresponds to the JSON property `evaluateList`
# @return [Google::Apis::HealthcareV1beta1::FilterList]
attr_accessor :evaluate_list
# List of infoTypes to be filtered.
# Corresponds to the JSON property `ignoreList`
# @return [Google::Apis::HealthcareV1beta1::FilterList]
attr_accessor :ignore_list
# If `TRUE`, infoTypes described by `filter` are used for evaluation.
# Otherwise, infoTypes are not considered for evaluation.
# For example:
# * Annotated text:
# "Toronto is a location"
# * Finding 1:
# ``"infoType": "PERSON", "quote": "Toronto", "start": 0, "end": 7``
# * Finding 2:
# ``"infoType": "CITY", "quote": "Toronto", "start": 0, "end": 7``
# * Finding 3:
# ````
# * Ground truth:
# ``"infoType": "LOCATION", "quote": "Toronto", "start": 0, "end": 7``
# When `strict_matching` is `TRUE`:
# * Finding 1: 1 false positive
# * Finding 2: 1 false positive
# * Finding 3: 1 false negative
# When `strict_matching` is `FALSE`:
# * Finding 1: 1 true positive
# * Finding 2: 1 true positive
# * Finding 3: 1 false negative
# Corresponds to the JSON property `strictMatching`
# @return [Boolean]
attr_accessor :strict_matching
alias_method :strict_matching?, :strict_matching
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@evaluate_list = args[:evaluate_list] if args.key?(:evaluate_list)
@ignore_list = args[:ignore_list] if args.key?(:ignore_list)
@strict_matching = args[:strict_matching] if args.key?(:strict_matching)
end
end
# A transformation to apply to text that is identified as a specific # A transformation to apply to text that is identified as a specific
# info_type. # info_type.
class InfoTypeTransformation class InfoTypeTransformation
@ -2039,6 +2784,63 @@ module Google
end end
end end
# Lists the Annotation stores
# in the given dataset.
class ListAnnotationStoresResponse
include Google::Apis::Core::Hashable
# The returned Annotation stores. Won't be more Annotation stores than the
# value of page_size in the request.
# Corresponds to the JSON property `annotationStores`
# @return [Array<Google::Apis::HealthcareV1beta1::AnnotationStore>]
attr_accessor :annotation_stores
# Token to retrieve the next page of results or empty if there are no more
# results in the list.
# 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)
@annotation_stores = args[:annotation_stores] if args.key?(:annotation_stores)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Lists the Annotations in the specified
# Annotation store.
class ListAnnotationsResponse
include Google::Apis::Core::Hashable
# The returned Annotations. Won't be more values than the value of
# page_size in the request. See `AnnotationView` in the request for
# populated fields.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::HealthcareV1beta1::Annotation>]
attr_accessor :annotations
# Token to retrieve the next page of results or empty if there are no more
# results in the list.
# 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)
@annotations = args[:annotations] if args.key?(:annotations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Lists the available datasets. # Lists the available datasets.
class ListDatasetsResponse class ListDatasetsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2784,6 +3586,25 @@ module Google
end end
end end
# Resource level annotation.
class ResourceAnnotation
include Google::Apis::Core::Hashable
# A description of the annotation record.
# Corresponds to the JSON property `label`
# @return [String]
attr_accessor :label
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@label = args[:label] if args.key?(:label)
end
end
# A list of FHIR resources. # A list of FHIR resources.
class Resources class Resources
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3051,6 +3872,27 @@ module Google
end end
end end
# A TextAnnotation specifies a text range that includes sensitive information.
class SensitiveTextAnnotation
include Google::Apis::Core::Hashable
# Maps from a resource slice. For example, FHIR resource field path to a set
# of sensitive text findings. For example,
# Appointment.Narrative text1 --> `findings_1, findings_2, findings_3`
# Corresponds to the JSON property `details`
# @return [Hash<String,Google::Apis::HealthcareV1beta1::Detail>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@details = args[:details] if args.key?(:details)
end
end
# Request message for `SetIamPolicy` method. # Request message for `SetIamPolicy` method.
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3349,6 +4191,31 @@ module Google
@value = args[:value] if args.key?(:value) @value = args[:value] if args.key?(:value)
end end
end end
# A 2D coordinate in an image. The origin is the top-left.
class Vertex
include Google::Apis::Core::Hashable
# X coordinate.
# Corresponds to the JSON property `x`
# @return [Float]
attr_accessor :x
# Y coordinate.
# Corresponds to the JSON property `y`
# @return [Float]
attr_accessor :y
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@x = args[:x] if args.key?(:x)
@y = args[:y] if args.key?(:y)
end
end
end end
end end
end end

View File

@ -22,6 +22,30 @@ module Google
module Apis module Apis
module HealthcareV1beta1 module HealthcareV1beta1
class Annotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotationSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AnnotationStore
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -40,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class BoundingPoly
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CancelOperationRequest class CancelOperationRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -52,6 +82,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class CloudHealthcareSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateMessageRequest class CreateMessageRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -112,6 +148,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Detail
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DicomConfig class DicomConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -142,6 +184,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class EvaluateAnnotationStoreRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EvaluateAnnotationStoreResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAnnotationsErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAnnotationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportAnnotationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExportDicomDataRequest class ExportDicomDataRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -196,6 +268,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class FilterList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Finding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1AnnotationGcsDestination
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1AnnotationGcsSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -304,12 +406,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImageAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImageConfig class ImageConfig
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
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 Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportAnnotationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportDicomDataErrorDetails class ImportDicomDataErrorDetails
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -334,6 +460,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class InfoTypeConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InfoTypeTransformation class InfoTypeTransformation
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -352,6 +484,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ListAnnotationStoresResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListAnnotationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDatasetsResponse class ListDatasetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -466,6 +610,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ResourceAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Resources class Resources
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -514,6 +664,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SensitiveTextAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetIamPolicyRequest class SetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -568,6 +724,52 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class Vertex
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Annotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_source, as: 'annotationSource', class: Google::Apis::HealthcareV1beta1::AnnotationSource, decorator: Google::Apis::HealthcareV1beta1::AnnotationSource::Representation
hash :custom_data, as: 'customData'
property :image_annotation, as: 'imageAnnotation', class: Google::Apis::HealthcareV1beta1::ImageAnnotation, decorator: Google::Apis::HealthcareV1beta1::ImageAnnotation::Representation
property :name, as: 'name'
property :resource_annotation, as: 'resourceAnnotation', class: Google::Apis::HealthcareV1beta1::ResourceAnnotation, decorator: Google::Apis::HealthcareV1beta1::ResourceAnnotation::Representation
property :text_annotation, as: 'textAnnotation', class: Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation, decorator: Google::Apis::HealthcareV1beta1::SensitiveTextAnnotation::Representation
end
end
class AnnotationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store_name, as: 'annotationStoreName'
property :store_quote, as: 'storeQuote'
end
end
class AnnotationSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cloud_healthcare_source, as: 'cloudHealthcareSource', class: Google::Apis::HealthcareV1beta1::CloudHealthcareSource, decorator: Google::Apis::HealthcareV1beta1::CloudHealthcareSource::Representation
end
end
class AnnotationStore
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :labels, as: 'labels'
property :name, as: 'name'
end
end
class AuditConfig class AuditConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -595,6 +797,15 @@ module Google
end end
end end
class BoundingPoly
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
collection :vertices, as: 'vertices', class: Google::Apis::HealthcareV1beta1::Vertex, decorator: Google::Apis::HealthcareV1beta1::Vertex::Representation
end
end
class CancelOperationRequest class CancelOperationRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -608,6 +819,13 @@ module Google
end end
end end
class CloudHealthcareSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
class CreateMessageRequest class CreateMessageRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -641,6 +859,8 @@ module Google
class DeidentifyConfig class DeidentifyConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :annotation, as: 'annotation', class: Google::Apis::HealthcareV1beta1::AnnotationConfig, decorator: Google::Apis::HealthcareV1beta1::AnnotationConfig::Representation
property :dicom, as: 'dicom', class: Google::Apis::HealthcareV1beta1::DicomConfig, decorator: Google::Apis::HealthcareV1beta1::DicomConfig::Representation property :dicom, as: 'dicom', class: Google::Apis::HealthcareV1beta1::DicomConfig, decorator: Google::Apis::HealthcareV1beta1::DicomConfig::Representation
property :fhir, as: 'fhir', class: Google::Apis::HealthcareV1beta1::FhirConfig, decorator: Google::Apis::HealthcareV1beta1::FhirConfig::Representation property :fhir, as: 'fhir', class: Google::Apis::HealthcareV1beta1::FhirConfig, decorator: Google::Apis::HealthcareV1beta1::FhirConfig::Representation
@ -702,6 +922,14 @@ module Google
end end
end end
class Detail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :findings, as: 'findings', class: Google::Apis::HealthcareV1beta1::Finding, decorator: Google::Apis::HealthcareV1beta1::Finding::Representation
end
end
class DicomConfig class DicomConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -746,6 +974,56 @@ module Google
end end
end end
class EvaluateAnnotationStoreRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination::Representation
hash :eval_info_type_mapping, as: 'evalInfoTypeMapping'
hash :golden_info_type_mapping, as: 'goldenInfoTypeMapping'
property :golden_store, as: 'goldenStore'
property :info_type_config, as: 'infoTypeConfig', class: Google::Apis::HealthcareV1beta1::InfoTypeConfig, decorator: Google::Apis::HealthcareV1beta1::InfoTypeConfig::Representation
end
end
class EvaluateAnnotationStoreResponse
# @private
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
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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination::Representation
property :gcs_destination, as: 'gcsDestination', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsDestination::Representation
end
end
class ExportAnnotationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :success_count, :numeric_string => true, as: 'successCount'
end
end
class ExportDicomDataRequest class ExportDicomDataRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -834,6 +1112,46 @@ module Google
end end
end end
class FilterList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :info_types, as: 'infoTypes'
end
end
class Finding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end, :numeric_string => true, as: 'end'
property :info_type, as: 'infoType'
property :quote, as: 'quote'
property :start, :numeric_string => true, as: 'start'
end
end
class GoogleCloudHealthcareV1beta1AnnotationBigQueryDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :force, as: 'force'
property :schema_type, as: 'schemaType'
property :table_uri, as: 'tableUri'
end
end
class GoogleCloudHealthcareV1beta1AnnotationGcsDestination
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri_prefix, as: 'uriPrefix'
end
end
class GoogleCloudHealthcareV1beta1AnnotationGcsSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :uri, as: 'uri'
end
end
class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -994,6 +1312,15 @@ module Google
end end
end end
class ImageAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bounding_polys, as: 'boundingPolys', class: Google::Apis::HealthcareV1beta1::BoundingPoly, decorator: Google::Apis::HealthcareV1beta1::BoundingPoly::Representation
property :frame_index, as: 'frameIndex'
end
end
class ImageConfig class ImageConfig
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1001,6 +1328,31 @@ 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
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gcs_source, as: 'gcsSource', class: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource, decorator: Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1AnnotationGcsSource::Representation
end
end
class ImportAnnotationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annotation_store, as: 'annotationStore'
property :success_count, :numeric_string => true, as: 'successCount'
end
end
class ImportDicomDataErrorDetails class ImportDicomDataErrorDetails
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1032,6 +1384,17 @@ module Google
end end
end end
class InfoTypeConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :evaluate_list, as: 'evaluateList', class: Google::Apis::HealthcareV1beta1::FilterList, decorator: Google::Apis::HealthcareV1beta1::FilterList::Representation
property :ignore_list, as: 'ignoreList', class: Google::Apis::HealthcareV1beta1::FilterList, decorator: Google::Apis::HealthcareV1beta1::FilterList::Representation
property :strict_matching, as: 'strictMatching'
end
end
class InfoTypeTransformation class InfoTypeTransformation
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1066,6 +1429,24 @@ module Google
end end
end end
class ListAnnotationStoresResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_stores, as: 'annotationStores', class: Google::Apis::HealthcareV1beta1::AnnotationStore, decorator: Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListAnnotationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotations, as: 'annotations', class: Google::Apis::HealthcareV1beta1::Annotation, decorator: Google::Apis::HealthcareV1beta1::Annotation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDatasetsResponse class ListDatasetsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1250,6 +1631,13 @@ module Google
end end
end end
class ResourceAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :label, as: 'label'
end
end
class Resources class Resources
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1322,6 +1710,14 @@ module Google
end end
end end
class SensitiveTextAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :details, as: 'details', class: Google::Apis::HealthcareV1beta1::Detail, decorator: Google::Apis::HealthcareV1beta1::Detail::Representation
end
end
class SetIamPolicyRequest class SetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1395,6 +1791,14 @@ module Google
property :value, as: 'value' property :value, as: 'value'
end end
end end
class Vertex
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :x, as: 'x'
property :y, as: 'y'
end
end
end end
end end
end end

View File

@ -470,6 +470,196 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new Annotation store within the parent dataset.
# @param [String] parent
# The name of the dataset this Annotation store belongs to.
# @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
# @param [String] annotation_store_id
# The ID of the Annotation store that is being created.
# The string must match the following regex: `[\p`L`\p`N`_\-\.]`1,256``.
# @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::HealthcareV1beta1::AnnotationStore] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_dataset_annotation_store(parent, annotation_store_object = nil, annotation_store_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/annotationStores', options)
command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
command.request_object = annotation_store_object
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
command.params['parent'] = parent unless parent.nil?
command.query['annotationStoreId'] = annotation_store_id unless annotation_store_id.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 the specified Annotation store and removes all annotations that are
# contained within it.
# @param [String] name
# The resource name of the Annotation store to delete.
# @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::HealthcareV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Empty]
#
# @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_project_location_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Empty
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
# Evaluate an Annotation store against a
# ground truth Annotation store.
# When the operation finishes successfully, a detailed response is returned
# of type EvaluateAnnotationStoreResponse, contained in the response. The
# metadata field type is
# OperationMetadata.
# Errors are logged to Cloud Logging
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
# @param [String] eval_store
# 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``.
# @param [Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest] evaluate_annotation_store_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::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def evaluate_annotation_store(eval_store, evaluate_annotation_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+evalStore}:evaluate', options)
command.request_representation = Google::Apis::HealthcareV1beta1::EvaluateAnnotationStoreRequest::Representation
command.request_object = evaluate_annotation_store_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['evalStore'] = eval_store unless eval_store.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Export
# Annotations from
# the Annotation
# store.
# If the request is successful, a detailed response is returned of type
# ExportAnnotationsResponse, contained in the
# response field when the
# operation finishes.
# The metadata field type is
# OperationMetadata.
# If errors occur, the error
# field type is ImportAnnotationsErrorDetails.
# Errors are also logged to Cloud Logging
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
# @param [String] annotation_store
# 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``.
# @param [Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest] export_annotations_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::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def export_annotation_store_annotations(annotation_store, export_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:export', options)
command.request_representation = Google::Apis::HealthcareV1beta1::ExportAnnotationsRequest::Representation
command.request_object = export_annotations_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['annotationStore'] = annotation_store unless annotation_store.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 specified Annotation store or returns NOT_FOUND if it does not
# exist.
# @param [String] name
# The resource name of the Annotation store to get.
# @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::HealthcareV1beta1::AnnotationStore] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
#
# @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_dataset_annotation_store(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
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 the access control policy for a resource. # Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy # Returns an empty policy if the resource exists and does not have a policy
# set. # set.
@ -514,6 +704,139 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Import
# Annotations to
# the Annotation
# store by
# loading data from the specified sources.
# If the request is successful, a detailed response is returned as of type
# ImportAnnotationsResponse, contained in the
# response field when the
# operation finishes.
# The metadata field type is
# OperationMetadata.
# If errors occur, the error
# field type is ImportAnnotationsErrorDetails.
# Errors are also logged to Cloud Logging
# (see [Viewing logs](/healthcare/docs/how-tos/logging)).
# @param [String] annotation_store
# 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``.
# @param [Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest] import_annotations_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::HealthcareV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def import_annotation_store_annotations(annotation_store, import_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+annotationStore}:import', options)
command.request_representation = Google::Apis::HealthcareV1beta1::ImportAnnotationsRequest::Representation
command.request_object = import_annotations_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Operation
command.params['annotationStore'] = annotation_store unless annotation_store.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 Annotation stores in the given dataset for a source store.
# @param [String] parent
# Name of the dataset.
# @param [String] filter
# Restricts stores returned to those matching a filter. Syntax:
# https://cloud.google.com/appengine/docs/standard/python/search/query_strings
# Only filtering on labels is supported, for example `labels.key=value`.
# @param [Fixnum] page_size
# Limit on the number of Annotation stores to return in a single response.
# If zero the default page size of 100 is used.
# @param [String] page_token
# The next_page_token value returned from the previous List request, if any.
# @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::HealthcareV1beta1::ListAnnotationStoresResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_dataset_annotation_stores(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/annotationStores', options)
command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse::Representation
command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationStoresResponse
command.params['parent'] = parent unless parent.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
# Updates the specified Annotation store.
# @param [String] name
# Resource name of the Annotation store, of the form
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id``.
# @param [Google::Apis::HealthcareV1beta1::AnnotationStore] annotation_store_object
# @param [String] update_mask
# The update mask applies to the resource. For the `FieldMask` definition,
# see
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# fieldmask
# @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::HealthcareV1beta1::AnnotationStore] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::AnnotationStore]
#
# @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_project_location_dataset_annotation_store(name, annotation_store_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
command.request_object = annotation_store_object
command.response_representation = Google::Apis::HealthcareV1beta1::AnnotationStore::Representation
command.response_class = Google::Apis::HealthcareV1beta1::AnnotationStore
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
# Sets the access control policy on the specified resource. Replaces any # Sets the access control policy on the specified resource. Replaces any
# existing policy. # existing policy.
# Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. # Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
@ -589,6 +912,198 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Creates a new Annotation record. It is
# valid to create Annotation objects for the same source more than once since
# a unique ID is assigned to each record by this service.
# @param [String] parent
# The name of the Annotation store this annotation belongs to. For example,
# `projects/my-project/locations/us-central1/datasets/mydataset/annotationStores/
# myannotationstore`.
# @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_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::HealthcareV1beta1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Annotation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_dataset_annotation_store_annotation(parent, annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/annotations', options)
command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
command.request_object = annotation_object
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
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 an Annotation or returns
# NOT_FOUND if it does not exist.
# @param [String] name
# The resource name of the Annotation to delete.
# @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::HealthcareV1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Empty]
#
# @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_project_location_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Empty::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Empty
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 an Annotation.
# @param [String] name
# The resource name of the Annotation to retrieve.
# @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::HealthcareV1beta1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Annotation]
#
# @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_dataset_annotation_store_annotation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+name}', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
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 Annotations in the given
# Annotation store for a source
# resource.
# @param [String] parent
# Name of the Annotation store to retrieve Annotations from.
# @param [String] filter
# Restricts Annotations returned to those matching a filter. Functions
# available for filtering are:
# - `matches("annotation_source.cloud_healthcare_source.name", substring)`.
# Filter on `cloud_healthcare_source.name`. For example:
# `matches("annotation_source.cloud_healthcare_source.name", "some source")`.
# - `matches("annotation", substring)`. Filter on all fields of annotation.
# For example: `matches("annotation", "some-content")`.
# - `type("text")`, `type("image")`, `type("resource")`. Filter on the type
# of annotation `data`.
# @param [Fixnum] page_size
# Limit on the number of Annotations to return in a single response.
# If zero the default page size of 100 is used.
# @param [String] page_token
# The next_page_token value returned from the previous List request, if any.
# @param [String] view
# Controls which fields are populated in the response.
# @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::HealthcareV1beta1::ListAnnotationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::ListAnnotationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_dataset_annotation_store_annotations(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+parent}/annotations', options)
command.response_representation = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse::Representation
command.response_class = Google::Apis::HealthcareV1beta1::ListAnnotationsResponse
command.params['parent'] = parent unless parent.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['view'] = view unless view.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 the Annotation.
# @param [String] name
# Resource name of the Annotation, of the form
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/
# annotationStores/`annotation_store_id`/annotations/`annotation_id``.
# @param [Google::Apis::HealthcareV1beta1::Annotation] annotation_object
# @param [String] update_mask
# The update mask applies to the resource. For the `FieldMask` definition,
# see
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
# fieldmask
# @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::HealthcareV1beta1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Annotation]
#
# @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_project_location_dataset_annotation_store_annotation(name, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
command.request_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
command.request_object = annotation_object
command.response_representation = Google::Apis::HealthcareV1beta1::Annotation::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Annotation
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
# Creates a new DICOM store within the parent dataset. # Creates a new DICOM store within the parent dataset.
# @param [String] parent # @param [String] parent
# The name of the dataset this DICOM store belongs to. # The name of the dataset this DICOM store belongs to.
@ -1565,6 +2080,8 @@ module Google
# DeleteInstance deletes an instance associated with the given study, series, # DeleteInstance deletes an instance associated with the given study, series,
# and SOP Instance UID. Delete requests are equivalent to the GET requests # and SOP Instance UID. Delete requests are equivalent to the GET requests
# specified in the Retrieve transaction. # specified in the Retrieve transaction.
# Study and series search results can take a few seconds to be updated after
# an instance is deleted using DeleteInstance.
# @param [String] parent # @param [String] parent
# The name of the DICOM store that is being accessed. For example, # The name of the DICOM store that is being accessed. For example,
# `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/iam/ # @see https://cloud.google.com/iam/
module IamV1 module IamV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200605' REVISION = '20200611'
# 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

@ -358,6 +358,9 @@ module Google
attr_accessor :role attr_accessor :role
# The role ID to use for this role. # The role ID to use for this role.
# A role ID may contain alphanumeric characters, underscores (`_`), and
# periods (`.`). It must contain a minimum of 3 characters and a maximum of
# 64 characters.
# Corresponds to the JSON property `roleId` # Corresponds to the JSON property `roleId`
# @return [String] # @return [String]
attr_accessor :role_id attr_accessor :role_id
@ -1078,6 +1081,7 @@ module Google
attr_accessor :full_resource_name attr_accessor :full_resource_name
# Optional limit on the number of roles to include in the response. # Optional limit on the number of roles to include in the response.
# The default is 300, and the maximum is 1,000.
# Corresponds to the JSON property `pageSize` # Corresponds to the JSON property `pageSize`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :page_size attr_accessor :page_size
@ -1146,6 +1150,7 @@ module Google
attr_accessor :full_resource_name attr_accessor :full_resource_name
# Optional limit on the number of permissions to include in the response. # Optional limit on the number of permissions to include in the response.
# The default is 100, and the maximum is 1,000.
# Corresponds to the JSON property `pageSize` # Corresponds to the JSON property `pageSize`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :page_size attr_accessor :page_size

View File

@ -312,6 +312,7 @@ module Google
# ID or organization ID. # ID or organization ID.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional limit on the number of roles to include in the response. # Optional limit on the number of roles to include in the response.
# The default is 300, and the maximum is 1,000.
# @param [String] page_token # @param [String] page_token
# Optional pagination token returned in an earlier ListRolesResponse. # Optional pagination token returned in an earlier ListRolesResponse.
# @param [Boolean] show_deleted # @param [Boolean] show_deleted
@ -686,6 +687,7 @@ module Google
# ID or organization ID. # ID or organization ID.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional limit on the number of roles to include in the response. # Optional limit on the number of roles to include in the response.
# The default is 300, and the maximum is 1,000.
# @param [String] page_token # @param [String] page_token
# Optional pagination token returned in an earlier ListRolesResponse. # Optional pagination token returned in an earlier ListRolesResponse.
# @param [Boolean] show_deleted # @param [Boolean] show_deleted
@ -1096,6 +1098,7 @@ module Google
# response. Further accounts can subsequently be obtained by including the # response. Further accounts can subsequently be obtained by including the
# ListServiceAccountsResponse.next_page_token # ListServiceAccountsResponse.next_page_token
# in a subsequent request. # in a subsequent request.
# The default is 20, and the maximum is 100.
# @param [String] page_token # @param [String] page_token
# Optional pagination token returned in an earlier # Optional pagination token returned in an earlier
# ListServiceAccountsResponse.next_page_token. # ListServiceAccountsResponse.next_page_token.
@ -1672,6 +1675,7 @@ module Google
# that is defined for an organization or project. # that is defined for an organization or project.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional limit on the number of roles to include in the response. # Optional limit on the number of roles to include in the response.
# The default is 300, and the maximum is 1,000.
# @param [String] page_token # @param [String] page_token
# Optional pagination token returned in an earlier ListRolesResponse. # Optional pagination token returned in an earlier ListRolesResponse.
# @param [String] parent # @param [String] parent

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/people/ # @see https://developers.google.com/people/
module PeopleV1 module PeopleV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200608' REVISION = '20200615'
# See, edit, download, and permanently delete your contacts # See, edit, download, and permanently delete your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'

View File

@ -423,7 +423,7 @@ module Google
end end
end end
# A request to copy an other contact to my contacts group. # A request to copy an "Other contact" to my contacts group.
class CopyOtherContactToMyContactsGroupRequest class CopyOtherContactToMyContactsGroupRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1081,7 +1081,7 @@ module Google
end end
end end
# The response to a request for the authenticated user's other contacts. # The response to a request for the authenticated user's "Other contacts".
class ListOtherContactsResponse class ListOtherContactsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1098,8 +1098,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :next_sync_token attr_accessor :next_sync_token
# The list of other contacts returned as Person resources. Other contacts # The list of "Other contacts" returned as Person resources. "Other contacts"
# support a limited subset of supported fields. See # support a limited subset of fields. See
# ListOtherContactsRequest.request_mask for more detailed information. # ListOtherContactsRequest.request_mask for more detailed information.
# Corresponds to the JSON property `otherContacts` # Corresponds to the JSON property `otherContacts`
# @return [Array<Google::Apis::PeopleV1::Person>] # @return [Array<Google::Apis::PeopleV1::Person>]

View File

@ -296,9 +296,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Copies an other contact to a new contact in the user's MY_CONTACTS group # Copies an "Other contact" to a new contact in the user's "myContacts" group
# @param [String] resource_name # @param [String] resource_name
# Required. The resource name of the other contact to copy. # Required. The resource name of the "Other contact" to copy.
# @param [Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest] copy_other_contact_to_my_contacts_group_request_object # @param [Google::Apis::PeopleV1::CopyOtherContactToMyContactsGroupRequest] copy_other_contact_to_my_contacts_group_request_object
# @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.
@ -329,10 +329,11 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# List all other contacts, that is contacts that are not in a contact group. # List all "Other contacts", that is contacts that are not in a contact
# Other contacts are typically auto created contacts from interactions. # group. "Other contacts" are typically auto created contacts from
# interactions.
# @param [Fixnum] page_size # @param [Fixnum] page_size
# Optional. The number of other contacts to include in the response. Valid # Optional. The number of "Other contacts" to include in the response. Valid
# values are # values are
# between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. # between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.
# @param [String] page_token # @param [String] page_token

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1 module ServiceconsumermanagementV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -2082,6 +2082,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -2336,8 +2337,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -2387,6 +2388,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/service-consumer-management/docs/overview # @see https://cloud.google.com/service-consumer-management/docs/overview
module ServiceconsumermanagementV1beta1 module ServiceconsumermanagementV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -1860,6 +1860,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -2114,8 +2115,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -2165,6 +2166,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1 module ServicenetworkingV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -2433,6 +2433,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -2687,8 +2688,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -2738,6 +2739,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started # @see https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
module ServicenetworkingV1beta module ServicenetworkingV1beta
VERSION = 'V1beta' VERSION = 'V1beta'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -2191,6 +2191,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -2445,8 +2446,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -2496,6 +2497,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1 module ServiceusageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -3084,6 +3084,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -3338,8 +3339,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -3389,6 +3390,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/service-usage/ # @see https://cloud.google.com/service-usage/
module ServiceusageV1beta1 module ServiceusageV1beta1
VERSION = 'V1beta1' VERSION = 'V1beta1'
REVISION = '20200611' REVISION = '20200615'
# 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

@ -2707,6 +2707,36 @@ module Google
end end
end end
# Request message for ImportConsumerOverrides
class ImportConsumerOverridesRequest
include Google::Apis::Core::Hashable
# Whether to force the creation of the quota overrides.
# If creating an override would cause the effective quota for the consumer to
# decrease by more than 10 percent, the call is rejected, as a safety measure
# to avoid accidentally decreasing quota too quickly. Setting the force
# parameter to true ignores this restriction.
# Corresponds to the JSON property `force`
# @return [Boolean]
attr_accessor :force
alias_method :force?, :force
# Import data embedded in the request message
# Corresponds to the JSON property `inlineSource`
# @return [Google::Apis::ServiceusageV1beta1::OverrideInlineSource]
attr_accessor :inline_source
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@force = args[:force] if args.key?(:force)
@inline_source = args[:inline_source] if args.key?(:inline_source)
end
end
# Response message for ImportConsumerOverrides # Response message for ImportConsumerOverrides
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3237,6 +3267,7 @@ module Google
# * `min` minute # * `min` minute
# * `h` hour # * `h` hour
# * `d` day # * `d` day
# * `1` dimensionless
# **Prefixes (PREFIX)** # **Prefixes (PREFIX)**
# * `k` kilo (10^3) # * `k` kilo (10^3)
# * `M` mega (10^6) # * `M` mega (10^6)
@ -3491,8 +3522,8 @@ module Google
# * The first label of the monitored resource descriptor must be # * The first label of the monitored resource descriptor must be
# `resource_container`. There are legacy monitored resource descritptors # `resource_container`. There are legacy monitored resource descritptors
# start with `project_id`. # start with `project_id`.
# * It must include a `location` label. * Maximum of default 5 service defined # * It must include a `location` label.
# monitored resource descriptors # * Maximum of default 5 service defined monitored resource descriptors
# is allowed per service. # is allowed per service.
# * Maximum of default 10 labels per monitored resource is allowed. # * Maximum of default 10 labels per monitored resource is allowed.
# The default maximum limit can be overridden. Please follow # The default maximum limit can be overridden. Please follow
@ -3542,6 +3573,16 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# Required. The monitored resource type. For example, the type
# `cloudsql_database` represents databases in Google Cloud SQL.
# All service defined monitored resource types must be prefixed with the
# service name, in the format of ``service name`/`relative resource name``.
# The relative resource name must follow:
# * Only upper and lower-case letters and digits are allowed.
# * It must start with upper case character and is recommended to use Upper
# Camel Case style.
# * The maximum number of characters allowed for the relative_resource_name
# is 100.
# Note there are legacy service monitored resources not following this rule. # Note there are legacy service monitored resources not following this rule.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
@ -3826,6 +3867,27 @@ module Google
end end
end end
# Import data embedded in the request message
class OverrideInlineSource
include Google::Apis::Core::Hashable
# The overrides to create.
# Each override must have a value for 'metric' and 'unit', to specify
# which metric and which limit the override should be applied to.
# Corresponds to the JSON property `overrides`
# @return [Array<Google::Apis::ServiceusageV1beta1::QuotaOverride>]
attr_accessor :overrides
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@overrides = args[:overrides] if args.key?(:overrides)
end
end
# Represents a documentation page. A page can contain subpages to represent # Represents a documentation page. A page can contain subpages to represent
# nested documentation set structure. # nested documentation set structure.
class Page class Page

View File

@ -298,6 +298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class ImportConsumerOverridesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -436,6 +442,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class OverrideInlineSource
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Page class Page
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1046,6 +1058,15 @@ module Google
end end
end end
class ImportConsumerOverridesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :force, as: 'force'
property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceusageV1beta1::OverrideInlineSource, decorator: Google::Apis::ServiceusageV1beta1::OverrideInlineSource::Representation
end
end
class ImportConsumerOverridesResponse class ImportConsumerOverridesResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1269,6 +1290,14 @@ module Google
end end
end end
class OverrideInlineSource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :overrides, as: 'overrides', class: Google::Apis::ServiceusageV1beta1::QuotaOverride, decorator: Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
end
end
class Page class Page
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -406,6 +406,43 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Create or update multiple consumer overrides atomically, all on the
# same consumer, but on many different metrics or limits.
# The name field in the quota override message should not be set.
# @param [String] parent
# The resource name of the consumer.
# An example name would be:
# `projects/123/services/compute.googleapis.com`
# @param [Google::Apis::ServiceusageV1beta1::ImportConsumerOverridesRequest] import_consumer_overrides_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::ServiceusageV1beta1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ServiceusageV1beta1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def import_consumer_quota_metric_consumer_overrides(parent, import_consumer_overrides_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+parent}/consumerQuotaMetrics:importConsumerOverrides', options)
command.request_representation = Google::Apis::ServiceusageV1beta1::ImportConsumerOverridesRequest::Representation
command.request_object = import_consumer_overrides_request_object
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a summary of all quota information visible to the service # Retrieves a summary of all quota information visible to the service
# consumer, organized by service metric. Each metric includes information # consumer, organized by service metric. Each metric includes information
# about all of its defined limits. Each limit includes the limit # about all of its defined limits. Each limit includes the limit

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1 module VisionV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20200405' REVISION = '20200612'
# 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

@ -673,6 +673,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -825,6 +828,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -1672,6 +1678,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -3476,6 +3485,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -5314,6 +5326,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -7299,6 +7314,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/ # @see https://cloud.google.com/vision/
module VisionV1p1beta1 module VisionV1p1beta1
VERSION = 'V1p1beta1' VERSION = 'V1p1beta1'
REVISION = '20200405' REVISION = '20200612'
# 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

@ -369,6 +369,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -521,6 +524,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -1579,6 +1585,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -3667,6 +3676,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -5505,6 +5517,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...
@ -7490,6 +7505,9 @@ module Google
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
# space. # space.
# Note: when color equality needs to be decided, implementations, unless
# documented otherwise, will treat two colors to be equal if all their red,
# green, blue and alpha values each differ by at most 1e-5.
# Example (Java): # Example (Java):
# import com.google.type.Color; # import com.google.type.Color;
# // ... # // ...