lib/google/apis/healthcare_v1/service.rb in google-apis-healthcare_v1-0.19.0 vs lib/google/apis/healthcare_v1/service.rb in google-apis-healthcare_v1-0.20.0
- old
+ new
@@ -272,17 +272,20 @@
# 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. To learn which resources support conditions in their IAM policies,
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
- # resource-policies).
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
# @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.
@@ -635,17 +638,20 @@
# 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. To learn which resources support conditions in their IAM policies,
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
- # resource-policies).
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
# @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.
@@ -2076,17 +2082,20 @@
# 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. To learn which resources support conditions in their IAM policies,
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
- # resource-policies).
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
# @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.
@@ -3377,17 +3386,20 @@
# 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. To learn which resources support conditions in their IAM policies,
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
- # resource-policies).
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
# @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.
@@ -3788,10 +3800,66 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Validates an input FHIR resource's conformance to its profiles and the
+ # profiles configured on the FHIR store. Implements the FHIR extended operation $
+ # validate ([DSTU2](http://hl7.org/implement/standards/fhir/DSTU2/resource-
+ # operations.html#validate), [STU3](http://hl7.org/implement/standards/fhir/STU3/
+ # resource-operations.html#validate), or [R4](http://hl7.org/implement/standards/
+ # fhir/R4/resource-operation-validate.html)). The request body must contain a
+ # JSON-encoded FHIR resource, and the request headers must contain `Content-Type:
+ # application/fhir+json`. The `Parameters` input syntax is not supported. The `
+ # profile` query parameter can be used to request that the resource only be
+ # validated against a specific profile. If a profile with the given URL cannot
+ # be found in the FHIR store then an error is returned. Errors generated by
+ # validation contain a JSON-encoded `OperationOutcome` resource describing the
+ # reason for the error. If the request cannot be mapped to a valid API method on
+ # a FHIR store, a generic GCP error might be returned instead.
+ # @param [String] parent
+ # The name of the FHIR store that holds the profiles being used for validation.
+ # @param [String] type
+ # The FHIR resource type of the resource being validated. For a complete list,
+ # see the FHIR Resource Index ([DSTU2](http://hl7.org/implement/standards/fhir/
+ # DSTU2/resourcelist.html), [STU3](http://hl7.org/implement/standards/fhir/STU3/
+ # resourcelist.html), or [R4](http://hl7.org/implement/standards/fhir/R4/
+ # resourcelist.html)). Must match the resource type in the provided content.
+ # @param [Google::Apis::HealthcareV1::HttpBody] http_body_object
+ # @param [String] profile
+ # A profile that this resource should be validated against.
+ # @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::HealthcareV1::HttpBody] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::HealthcareV1::HttpBody]
+ #
+ # @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 resource_project_location_dataset_fhir_store_fhir_validate(parent, type, http_body_object = nil, profile: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+parent}/fhir/{+type}/$validate', options)
+ command.request_representation = Google::Apis::HealthcareV1::HttpBody::Representation
+ command.request_object = http_body_object
+ command.response_representation = Google::Apis::HealthcareV1::HttpBody::Representation
+ command.response_class = Google::Apis::HealthcareV1::HttpBody
+ command.params['parent'] = parent unless parent.nil?
+ command.params['type'] = type unless type.nil?
+ command.query['profile'] = profile unless profile.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 FHIR capability statement ([STU3](http://hl7.org/implement/standards/
# fhir/STU3/capabilitystatement.html), [R4](http://hl7.org/implement/standards/
# fhir/R4/capabilitystatement.html)), or the [conformance statement](http://hl7.
# org/implement/standards/fhir/DSTU2/conformance.html) in the DSTU2 case for the
# store, which contains a description of functionality supported by the server.
@@ -4529,16 +4597,19 @@
# 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. To learn which resources support conditions in their IAM policies,
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
- # resource-policies).
+ # Optional. The maximum policy version that will be used to format the policy.
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected. Requests for policies with any conditional role bindings must
+ # specify version 3. Policies with no conditional role bindings may specify any
+ # valid value or leave the field unset. The policy in the response might use the
+ # policy version that you specified, or it might use a lower policy version. For
+ # example, if you specify version 3, but the policy has no conditional role
+ # bindings, the response uses version 1. To learn which resources support
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
+ # google.com/iam/help/conditions/resource-policies).
# @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.