Autogenerated update (2019-12-24)

Update:
- healthcare_v1beta1
- sql_v1beta4
This commit is contained in:
Google APIs 2019-12-24 00:37:20 +00:00
parent 75eb9a7e30
commit 5612f7e2a3
6 changed files with 305 additions and 113 deletions

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 = '20191121' REVISION = '20191213'
# 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

@ -162,6 +162,23 @@ module Google
# account. For example, `my-other-app@appspot.gserviceaccount.com`. # account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group. # * `group:`emailid``: An email address that represents a Google group.
# For example, `admins@example.com`. # For example, `admins@example.com`.
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a user that has been recently deleted. For
# example, `alice@example.com?uid=123456789012345678901`. If the user is
# recovered, this value reverts to `user:`emailid`` and the recovered user
# retains the role in the binding.
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
# unique identifier) representing a service account that has been recently
# deleted. For example,
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
# If the service account is undeleted, this value reverts to
# `serviceAccount:`emailid`` and the undeleted service account retains the
# role in the binding.
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
# identifier) representing a Google group that has been recently
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
# the group is recovered, this value reverts to `group:`emailid`` and the
# recovered group retains the role in the binding.
# * `domain:`domain``: The G Suite domain (primary) that represents all the # * `domain:`domain``: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`. # users of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members` # Corresponds to the JSON property `members`
@ -912,6 +929,14 @@ module Google
# @return [Google::Apis::HealthcareV1beta1::NotificationConfig] # @return [Google::Apis::HealthcareV1beta1::NotificationConfig]
attr_accessor :notification_config attr_accessor :notification_config
# The FHIR specification version that this FHIR store supports natively. This
# field is immutable after store creation. Requests are rejected if they
# contain FHIR resources of a different version.
# An empty value is treated as STU3.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args) def initialize(**args)
update!(**args) update!(**args)
end end
@ -924,6 +949,7 @@ module Google
@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)
@notification_config = args[:notification_config] if args.key?(:notification_config) @notification_config = args[:notification_config] if args.key?(:notification_config)
@version = args[:version] if args.key?(:version)
end end
end end
@ -2177,16 +2203,18 @@ module Google
end end
end end
# Defines an Identity and Access Management (IAM) policy. It is used to # An Identity and Access Management (IAM) policy, which specifies access
# specify access control policies for Cloud Platform resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts, # `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can # permissions; each `role` can be an IAM predefined role or a user-created
# optionally specify a `condition`, which is a logic expression that further # custom role.
# constrains the role binding based on attributes about the request and/or # Optionally, a `binding` can specify a `condition`, which is a logical
# target resource. # expression that allows access to a resource only if the expression evaluates
# **JSON Example** # to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2204,13 +2232,15 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# timestamp('2020-10-01T00:00:00.000Z')", # ",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# **YAML Example** # **YAML example:**
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2225,8 +2255,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the # For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs). # [IAM documentation](https://cloud.google.com/iam/docs/).
class Policy class Policy
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2235,9 +2267,9 @@ module Google
# @return [Array<Google::Apis::HealthcareV1beta1::AuditConfig>] # @return [Array<Google::Apis::HealthcareV1beta1::AuditConfig>]
attr_accessor :audit_configs attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Optionally may specify a # Associates a list of `members` to a `role`. Optionally, may specify a
# `condition` that determines when binding is in effect. # `condition` that determines how and when the `bindings` are applied. Each
# `bindings` with no members will result in an error. # of the `bindings` must contain at least one member.
# Corresponds to the JSON property `bindings` # Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::HealthcareV1beta1::Binding>] # @return [Array<Google::Apis::HealthcareV1beta1::Binding>]
attr_accessor :bindings attr_accessor :bindings
@ -2249,26 +2281,31 @@ module Google
# conditions: An `etag` is returned in the response to `getIamPolicy`, and # conditions: An `etag` is returned in the response to `getIamPolicy`, and
# systems are expected to put that etag in the request to `setIamPolicy` to # systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy. # ensure that their change will be applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing # **Important:** If you use IAM Conditions, you must include the `etag` field
# policy is overwritten. Due to blind-set semantics of an etag-less policy, # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
# 'setIamPolicy' will not fail even if the incoming policy version does not # you to overwrite a version `3` policy with a version `1` policy, and all of
# meet the requirements for modifying the stored policy. # the conditions in the version `3` policy are lost.
# Corresponds to the JSON property `etag` # Corresponds to the JSON property `etag`
# NOTE: Values are automatically base64 encoded/decoded in the client library. # NOTE: Values are automatically base64 encoded/decoded in the client library.
# @return [String] # @return [String]
attr_accessor :etag attr_accessor :etag
# Specifies the format of the policy. # Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
# rejected. # are rejected.
# Operations affecting conditional bindings must specify version 3. This can # Any operation that affects conditional role bindings must specify version
# be either setting a conditional policy, modifying a conditional binding, # `3`. This requirement applies to the following operations:
# or removing a binding (conditional or unconditional) from the stored # * Getting a policy that includes a conditional role binding
# conditional policy. # * Adding a conditional role binding to a policy
# Operations on non-conditional policies may specify any valid value or # * Changing a conditional role binding in a policy
# leave the field unset. # * Removing any role binding, with or without a condition, from a policy
# If no etag is provided in the call to `setIamPolicy`, version compliance # that includes conditions
# checks against the stored policy is skipped. # **Important:** If you use IAM Conditions, you must include the `etag` field
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
# you to overwrite a version `3` policy with a version `1` policy, and all of
# the conditions in the version `3` policy are lost.
# If a policy does not include any conditions, operations on that policy may
# specify any valid version or leave the field unset.
# Corresponds to the JSON property `version` # Corresponds to the JSON property `version`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :version attr_accessor :version
@ -2402,8 +2439,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The FHIR resource type to search, such as Patient or Observation. For a # The FHIR resource type to search, such as Patient or Observation. For a
# complete list, see the [FHIR Resource # complete list, see the FHIR Resource Index
# Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
# Corresponds to the JSON property `resourceType` # Corresponds to the JSON property `resourceType`
# @return [String] # @return [String]
attr_accessor :resource_type attr_accessor :resource_type
@ -2465,16 +2503,18 @@ module Google
class SetIamPolicyRequest class SetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Defines an Identity and Access Management (IAM) policy. It is used to # An Identity and Access Management (IAM) policy, which specifies access
# specify access control policies for Cloud Platform resources. # controls for Google Cloud resources.
# A `Policy` is a collection of `bindings`. A `binding` binds one or more # A `Policy` is a collection of `bindings`. A `binding` binds one or more
# `members` to a single `role`. Members can be user accounts, service accounts, # `members` to a single `role`. Members can be user accounts, service accounts,
# Google groups, and domains (such as G Suite). A `role` is a named list of # Google groups, and domains (such as G Suite). A `role` is a named list of
# permissions (defined by IAM or configured by users). A `binding` can # permissions; each `role` can be an IAM predefined role or a user-created
# optionally specify a `condition`, which is a logic expression that further # custom role.
# constrains the role binding based on attributes about the request and/or # Optionally, a `binding` can specify a `condition`, which is a logical
# target resource. # expression that allows access to a resource only if the expression evaluates
# **JSON Example** # to `true`. A condition can add constraints based on attributes of the
# request, the resource, or both.
# **JSON example:**
# ` # `
# "bindings": [ # "bindings": [
# ` # `
@ -2492,13 +2532,15 @@ module Google
# "condition": ` # "condition": `
# "title": "expirable access", # "title": "expirable access",
# "description": "Does not grant access after Sep 2020", # "description": "Does not grant access after Sep 2020",
# "expression": "request.time < # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
# timestamp('2020-10-01T00:00:00.000Z')", # ",
# ` # `
# ` # `
# ] # ],
# "etag": "BwWWja0YfJA=",
# "version": 3
# ` # `
# **YAML Example** # **YAML example:**
# bindings: # bindings:
# - members: # - members:
# - user:mike@example.com # - user:mike@example.com
@ -2513,8 +2555,10 @@ module Google
# title: expirable access # title: expirable access
# description: Does not grant access after Sep 2020 # description: Does not grant access after Sep 2020
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
# - etag: BwWWja0YfJA=
# - version: 3
# For a description of IAM and its features, see the # For a description of IAM and its features, see the
# [IAM developer's guide](https://cloud.google.com/iam/docs). # [IAM documentation](https://cloud.google.com/iam/docs/).
# Corresponds to the JSON property `policy` # Corresponds to the JSON property `policy`
# @return [Google::Apis::HealthcareV1beta1::Policy] # @return [Google::Apis::HealthcareV1beta1::Policy]
attr_accessor :policy attr_accessor :policy

View File

@ -706,6 +706,7 @@ module Google
property :name, as: 'name' property :name, as: 'name'
property :notification_config, as: 'notificationConfig', class: Google::Apis::HealthcareV1beta1::NotificationConfig, decorator: Google::Apis::HealthcareV1beta1::NotificationConfig::Representation property :notification_config, as: 'notificationConfig', class: Google::Apis::HealthcareV1beta1::NotificationConfig, decorator: Google::Apis::HealthcareV1beta1::NotificationConfig::Representation
property :version, as: 'version'
end end
end end

View File

@ -463,6 +463,122 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the access control policy for a resource.
# Returns an empty policy if the resource exists and does not have a policy
# set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# @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::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Policy]
#
# @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_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::HealthcareV1beta1::SetIamPolicyRequest] set_iam_policy_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::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::Policy]
#
# @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 set_annotation_store_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::HealthcareV1beta1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::Policy::Representation
command.response_class = Google::Apis::HealthcareV1beta1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# If the resource does not exist, this will return an empty set of
# permissions, not a NOT_FOUND error.
# Note: This operation is designed to be used for building permission-aware
# UIs and command-line tools, not for authorization checking. This operation
# may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested.
# See the operation documentation for the appropriate value for this field.
# @param [Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest] test_iam_permissions_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::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse]
#
# @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 test_annotation_store_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::HealthcareV1beta1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.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.
@ -2134,9 +2250,11 @@ module Google
# Retrieves the N most recent `Observation` resources for a subject matching # Retrieves the N most recent `Observation` resources for a subject matching
# search criteria specified as query parameters, grouped by # search criteria specified as query parameters, grouped by
# `Observation.code`, sorted from most recent to oldest. # `Observation.code`, sorted from most recent to oldest.
# Implements the FHIR extended operation # Implements the FHIR extended operation Observation-lastn
# [Observation-lastn](http://hl7.org/implement/standards/fhir/STU3/observation- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/observation-operations.
# operations.html#lastn). # html#lastn)).
# DSTU2 doesn't define the Observation-lastn method, but the server supports
# it the same way it supports STU3.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. The following search parameters must # the search method. The following search parameters must
# be provided: # be provided:
@ -2275,14 +2393,19 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Gets the FHIR [capability # Gets the FHIR capability statement
# statement](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement. # ([STU3](http://hl7.org/implement/standards/fhir/STU3/capabilitystatement.html))
# html) # ,
# for the store, which contains a description of functionality supported by # or the [conformance
# the server. # statement](http://hl7.org/implement/standards/fhir/DSTU2/conformance.html)
# Implements the FHIR standard [capabilities # in the DSTU2 case for the store, which contains a description of
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html# # functionality supported by the server.
# capabilities). # Implements the FHIR standard capabilities interaction
# ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#capabilities)),
# or the [conformance
# interaction](http://hl7.org/implement/standards/fhir/DSTU2/http.html#
# conformance)
# in the DSTU2 case.
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
# of a `CapabilityStatement` resource. # of a `CapabilityStatement` resource.
# @param [String] name # @param [String] name
@ -2315,9 +2438,9 @@ module Google
end end
# Deletes FHIR resources that match a search query. # Deletes FHIR resources that match a search query.
# Implements the FHIR standard [conditional delete # Implements the FHIR standard conditional delete interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13. # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.12.1),
# 1). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.13.1)).
# If multiple resources match, all of them will be deleted. # If multiple resources match, all of them will be deleted.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. # the search method.
@ -2331,8 +2454,9 @@ module Google
# The name of the FHIR store this resource belongs to. # The name of the FHIR store this resource belongs to.
# @param [String] type # @param [String] type
# The FHIR resource type to delete, such as Patient or Observation. For a # The FHIR resource type to delete, such as Patient or Observation. For a
# complete list, see the [FHIR Resource # complete list, see the FHIR Resource Index
# Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2364,8 +2488,10 @@ module Google
# If a resource is found based on the search criteria specified in the query # If a resource is found based on the search criteria specified in the query
# parameters, updates part of that resource by applying the operations # parameters, updates part of that resource by applying the operations
# specified in a [JSON Patch](http://jsonpatch.com/) document. # specified in a [JSON Patch](http://jsonpatch.com/) document.
# Implements the FHIR standard [conditional patch # Implements the FHIR standard conditional patch interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).
# DSTU2 doesn't define a conditional patch method, but the server supports it
# in the same way it supports STU3.
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. # the search method.
# If the search criteria identify more than one match, the request will # If the search criteria identify more than one match, the request will
@ -2382,8 +2508,9 @@ module Google
# The name of the FHIR store this resource belongs to. # The name of the FHIR store this resource belongs to.
# @param [String] type # @param [String] type
# The FHIR resource type to update, such as Patient or Observation. For a # The FHIR resource type to update, such as Patient or Observation. For a
# complete list, see the [FHIR Resource # complete list, see the FHIR Resource Index
# Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_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.
@ -2417,9 +2544,9 @@ module Google
# If a resource is found based on the search criteria specified in the query # If a resource is found based on the search criteria specified in the query
# parameters, updates the entire contents of that resource. # parameters, updates the entire contents of that resource.
# Implements the FHIR standard [conditional update # Implements the FHIR standard conditional update interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cond- # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.10.2),
# update). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cond-update)).
# Search terms are provided as query parameters following the same pattern as # Search terms are provided as query parameters following the same pattern as
# the search method. # the search method.
# If the search criteria identify more than one match, the request will # If the search criteria identify more than one match, the request will
@ -2443,8 +2570,9 @@ module Google
# The name of the FHIR store this resource belongs to. # The name of the FHIR store this resource belongs to.
# @param [String] type # @param [String] type
# The FHIR resource type to update, such as Patient or Observation. For a # The FHIR resource type to update, such as Patient or Observation. For a
# complete list, see the [FHIR Resource # complete list, see the FHIR Resource Index
# Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
# Must match the resource type in the provided content. # Must match the resource type in the provided content.
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
# @param [String] fields # @param [String] fields
@ -2478,11 +2606,13 @@ module Google
end end
# Creates a FHIR resource. # Creates a FHIR resource.
# Implements the FHIR standard [create # Implements the FHIR standard create interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#create), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#create),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#create)),
# which creates a new resource with a server-assigned resource ID. # which creates a new resource with a server-assigned resource ID.
# Also supports the FHIR standard [conditional create # Also supports the FHIR standard conditional create interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#ccreate),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate)),
# specified by supplying an `If-None-Exist` header containing a FHIR search # specified by supplying an `If-None-Exist` header containing a FHIR search
# query. If no resources match this search query, the server processes the # query. If no resources match this search query, the server processes the
# create operation as normal. # create operation as normal.
@ -2499,8 +2629,9 @@ module Google
# The name of the FHIR store this resource belongs to. # The name of the FHIR store this resource belongs to.
# @param [String] type # @param [String] type
# The FHIR resource type to create, such as Patient or Observation. For a # The FHIR resource type to create, such as Patient or Observation. For a
# complete list, see the [FHIR Resource # complete list, see the FHIR Resource Index
# Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resourcelist.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html)).
# Must match the resource type in the provided content. # Must match the resource type in the provided content.
# @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object
# @param [String] fields # @param [String] fields
@ -2534,8 +2665,9 @@ module Google
end end
# Deletes a FHIR resource. # Deletes a FHIR resource.
# Implements the FHIR standard [delete # Implements the FHIR standard delete interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#delete). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#delete),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#delete)).
# Note: Unless resource versioning is disabled by setting the # Note: Unless resource versioning is disabled by setting the
# disable_resource_versioning flag # disable_resource_versioning flag
# on the FHIR store, the deleted resources will be moved to a history # on the FHIR store, the deleted resources will be moved to a history
@ -2572,15 +2704,17 @@ module Google
end end
# Executes all the requests in the given Bundle. # Executes all the requests in the given Bundle.
# Implements the FHIR standard [batch/transaction # Implements the FHIR standard batch/transaction interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html# # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#transaction),
# transaction). # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#transaction)).
# Supports all interactions within a bundle, except search. This method # Supports all interactions within a bundle, except search. This method
# accepts Bundles of type `batch` and `transaction`, processing them # accepts Bundles of type `batch` and `transaction`, processing them
# according to the [batch processing # according to the batch processing rules
# rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1) # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.1),
# and [transaction processing # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1))
# rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2). # and transaction processing rules
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#2.1.0.16.2),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2)).
# The request body must contain a JSON-encoded FHIR `Bundle` resource, and # The request body must contain a JSON-encoded FHIR `Bundle` resource, and
# the request headers must contain `Content-Type: application/fhir+json`. # the request headers must contain `Content-Type: application/fhir+json`.
# For a batch bundle or a successful transaction the response body will # For a batch bundle or a successful transaction the response body will
@ -2625,8 +2759,9 @@ module Google
# Lists all the versions of a resource (including the current version and # Lists all the versions of a resource (including the current version and
# deleted versions) from the FHIR store. # deleted versions) from the FHIR store.
# Implements the per-resource form of the FHIR standard [history # Implements the per-resource form of the FHIR standard history interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#history). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#history),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#history)).
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
# of a `Bundle` resource of type `history`, containing the version history # of a `Bundle` resource of type `history`, containing the version history
# sorted from most recent to oldest versions. # sorted from most recent to oldest versions.
@ -2693,8 +2828,10 @@ module Google
# Updates part of an existing resource by applying the operations specified # Updates part of an existing resource by applying the operations specified
# in a [JSON Patch](http://jsonpatch.com/) document. # in a [JSON Patch](http://jsonpatch.com/) document.
# Implements the FHIR standard [patch # Implements the FHIR standard patch interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). # ([STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#patch)).
# DSTU2 doesn't define a patch method, but the server supports it in the same
# way it supports STU3.
# The request body must contain a JSON Patch document, and the request # The request body must contain a JSON Patch document, and the request
# headers must contain `Content-Type: application/json-patch+json`. # headers must contain `Content-Type: application/json-patch+json`.
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
@ -2736,10 +2873,12 @@ module Google
end end
# Gets the contents of a FHIR resource. # Gets the contents of a FHIR resource.
# Implements the FHIR standard [read # Implements the FHIR standard read interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#read). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#read),
# Also supports the FHIR standard [conditional read # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#read)).
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cread) # Also supports the FHIR standard conditional read interaction
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#cread),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#cread))
# specified by supplying an `If-Modified-Since` header with a date/time value # specified by supplying an `If-Modified-Since` header with a date/time value
# or an `If-None-Match` header with an ETag value. # or an `If-None-Match` header with an ETag value.
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
@ -2779,10 +2918,12 @@ module Google
# Searches for resources in the given FHIR store according to criteria # Searches for resources in the given FHIR store according to criteria
# specified as query parameters. # specified as query parameters.
# Implements the FHIR standard [search # Implements the FHIR standard search interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#search) # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#search),
# using the search semantics described in the [FHIR Search # [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#search))
# specification](http://hl7.org/implement/standards/fhir/STU3/search.html). # using the search semantics described in the FHIR Search specification
# ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/search.html),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/search.html)).
# Supports three methods of search defined by the specification: # Supports three methods of search defined by the specification:
# * `GET [base]?[parameters]` to search across all resources. # * `GET [base]?[parameters]` to search across all resources.
# * `GET [base]/[type]?[parameters]` to search resources of a specified # * `GET [base]/[type]?[parameters]` to search resources of a specified
@ -2799,12 +2940,14 @@ module Google
# request cannot be mapped to a valid API method on a FHIR store, a generic # request cannot be mapped to a valid API method on a FHIR store, a generic
# GCP error might be returned instead. # GCP error might be returned instead.
# The server's capability statement, retrieved through # The server's capability statement, retrieved through
# capabilities, indicates the search parameters # capabilities, indicates what search parameters
# that are supported on each FHIR resource. For the list of search # are supported on each FHIR resource. A list of all search parameters
# parameters for STU3, see the # defined by the specification can be found in the FHIR Search Parameter
# [STU3 FHIR Search Parameter # Registry
# Registry](http://hl7.org/implement/standards/fhir/STU3/searchparameter- # ([STU3](http://hl7.org/implement/standards/fhir/STU3/searchparameter-registry.
# registry.html). # html)).
# FHIR search parameters for DSTU2 can be found on each resource's definition
# page.
# Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`, # Supported search modifiers: `:missing`, `:exact`, `:contains`, `:text`,
# `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`. # `:in`, `:not-in`, `:above`, `:below`, `:[type]`, `:not`, and `:recurse`.
# Supported search result parameters: `_sort`, `_count`, `_include`, # Supported search result parameters: `_sort`, `_count`, `_include`,
@ -2852,8 +2995,9 @@ module Google
end end
# Updates the entire contents of a resource. # Updates the entire contents of a resource.
# Implements the FHIR standard [update # Implements the FHIR standard update interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#update),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#update)).
# If the specified resource does # If the specified resource does
# not exist and the FHIR store has # not exist and the FHIR store has
# enable_update_create set, creates the # enable_update_create set, creates the
@ -2902,8 +3046,9 @@ module Google
# Gets the contents of a version (current or historical) of a FHIR resource # Gets the contents of a version (current or historical) of a FHIR resource
# by version ID. # by version ID.
# Implements the FHIR standard [vread # Implements the FHIR standard vread interaction
# interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#vread). # ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/http.html#vread),
# [STU3](http://hl7.org/implement/standards/fhir/STU3/http.html#vread).
# On success, the response body will contain a JSON-encoded representation # On success, the response body will contain a JSON-encoded representation
# of the resource. # of the resource.
# Errors generated by the FHIR store will contain a JSON-encoded # Errors generated by the FHIR store will contain a JSON-encoded
@ -3308,6 +3453,7 @@ module Google
# The resource name of the HL7v2 message to retrieve. # The resource name of the HL7v2 message to retrieve.
# @param [String] view # @param [String] view
# Specifies which parts of the Message resource to return in the response. # Specifies which parts of the Message resource to return in the response.
# When unspecified, equivalent to FULL.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -3338,9 +3484,7 @@ module Google
# Ingests a new HL7v2 message from the hospital and sends a notification to # Ingests a new HL7v2 message from the hospital and sends a notification to
# the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was # the Cloud Pub/Sub topic. Return is an HL7v2 ACK message if the message was
# successfully stored. Otherwise an error is returned. If an identical # successfully stored. Otherwise an error is returned.
# HL7v2 message is created twice only one resource is created on the server
# and no error is reported.
# @param [String] parent # @param [String] parent
# The name of the HL7v2 store this message belongs to. # The name of the HL7v2 store this message belongs to.
# @param [Google::Apis::HealthcareV1beta1::IngestMessageRequest] ingest_message_request_object # @param [Google::Apis::HealthcareV1beta1::IngestMessageRequest] ingest_message_request_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-sql/ # @see https://developers.google.com/cloud-sql/
module SqlV1beta4 module SqlV1beta4
VERSION = 'V1beta4' VERSION = 'V1beta4'
REVISION = '20191205' REVISION = '20191214'
# 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

@ -863,8 +863,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Lists instances under a given project in the alphabetical order of the # Lists instances under a given project.
# instance name.
# @param [String] project # @param [String] project
# Project ID of the project for which to list Cloud SQL instances. # Project ID of the project for which to list Cloud SQL instances.
# @param [String] filter # @param [String] filter
@ -1347,6 +1346,9 @@ module Google
# Project ID of the project that contains the instance. # Project ID of the project that contains the instance.
# @param [String] operation # @param [String] operation
# Instance operation ID. # Instance operation ID.
# @param [String] resource_name
# The name of the operation for Cloud SQL to get.
# Format: projects/`project`/locations/`location`/operations/`operation`
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1364,12 +1366,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) def get_operation(project, operation, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options) command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options)
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
command.response_class = Google::Apis::SqlV1beta4::Operation command.response_class = Google::Apis::SqlV1beta4::Operation
command.params['project'] = project unless project.nil? command.params['project'] = project unless project.nil?
command.params['operation'] = operation unless operation.nil? command.params['operation'] = operation unless operation.nil?
command.query['resourceName'] = resource_name unless resource_name.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)