diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index c1150c415..9d5723e32 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20191003' + REVISION = '20191008' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index aacfed8b1..2a9fbabc4 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -5383,6 +5383,11 @@ module Google # @return [Hash] attr_accessor :labels + # The range partitioning specification for this table, if configured. + # Corresponds to the JSON property `rangePartitioning` + # @return [Google::Apis::BigqueryV2::RangePartitioning] + attr_accessor :range_partitioning + # A reference uniquely identifying the table. # Corresponds to the JSON property `tableReference` # @return [Google::Apis::BigqueryV2::TableReference] @@ -5416,6 +5421,7 @@ module Google @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) + @range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning) @table_reference = args[:table_reference] if args.key?(:table_reference) @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning) @type = args[:type] if args.key?(:type) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 05a8b2018..1a3d168fb 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -1998,6 +1998,8 @@ module Google property :id, as: 'id' property :kind, as: 'kind' hash :labels, as: 'labels' + property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation + property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation diff --git a/generated/google/apis/bigqueryconnection_v1beta1.rb b/generated/google/apis/bigqueryconnection_v1beta1.rb index d2f616a28..80909ee13 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryconnectionV1beta1 VERSION = 'V1beta1' - REVISION = '20191004' + REVISION = '20191009' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryconnection_v1beta1/service.rb b/generated/google/apis/bigqueryconnection_v1beta1/service.rb index a4a2e236f..918ad8568 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1/service.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1/service.rb @@ -187,7 +187,7 @@ module Google # Parent resource name. # Must be in the form: `projects/`project_id`/locations/`location_id`` # @param [Fixnum] max_results - # Maximum number of results to return. + # Maximum number of results per page. # @param [String] page_token # Page token. # @param [String] fields diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index 565d2ee25..3a4efb240 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 VERSION = 'V1' - REVISION = '20190924' + REVISION = '20191012' # 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' diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index 4327feec5..85a38389c 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -58,7 +58,7 @@ module Google class Group include Google::Apis::Core::Hashable - # The time when the Group was created. + # Output only. The time when the Group was created. # Output only. # Corresponds to the JSON property `createTime` # @return [String] @@ -84,14 +84,15 @@ module Google # @return [Google::Apis::CloudidentityV1::EntityKey] attr_accessor :group_key - # `Required`. Labels for Group resource. + # Required. `Required`. Labels for Group resource. # For creating Groups under a namespace, set label key to # 'labels/system/groups/external' and label value as empty. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of the # Group in the format: `groups/`group_id``, where group_id is the unique ID # assigned to the Group. # Must be left blank while creating a Group. @@ -99,14 +100,15 @@ module Google # @return [String] attr_accessor :name - # The entity under which this Group resides in Cloud Identity resource + # Required. Immutable. The entity under which this Group resides in Cloud + # Identity resource # hierarchy. Must be set when creating a Group, read-only afterwards. # Currently allowed types: `identitysources`. # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent - # The time when the Group was last updated. + # Output only. The time when the Group was last updated. # Output only. # Corresponds to the JSON property `updateTime` # @return [String] diff --git a/generated/google/apis/cloudidentity_v1/service.rb b/generated/google/apis/cloudidentity_v1/service.rb index ea02d8c4b..341fb0424 100644 --- a/generated/google/apis/cloudidentity_v1/service.rb +++ b/generated/google/apis/cloudidentity_v1/service.rb @@ -224,7 +224,8 @@ module Google # Updates a Group. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of the # Group in the format: `groups/`group_id``, where group_id is the unique ID # assigned to the Group. # Must be left blank while creating a Group. diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index 04bb95517..a68723ed9 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20190924' + REVISION = '20191012' # 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' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index bd2436fe3..425b4f27f 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -63,7 +63,7 @@ module Google # @return [Array] attr_accessor :additional_group_keys - # The time when the Group was created. + # Output only. The time when the Group was created. # Output only # Corresponds to the JSON property `createTime` # @return [String] @@ -89,7 +89,7 @@ module Google # @return [Google::Apis::CloudidentityV1beta1::EntityKey] attr_accessor :group_key - # Labels for Group resource. + # Required. Labels for Group resource. # Required. # For creating Groups under a namespace, set label key to # 'labels/system/groups/external' and label value as empty. @@ -97,7 +97,8 @@ module Google # @return [Hash] attr_accessor :labels - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of the # Group in the format: `groups/`group_id``, where group_id is the unique id # assigned to the Group. # Must be left blank while creating a Group @@ -105,14 +106,15 @@ module Google # @return [String] attr_accessor :name - # The entity under which this Group resides in Cloud Identity resource + # Required. Immutable. The entity under which this Group resides in Cloud + # Identity resource # hierarchy. Must be set when creating a Group, read-only afterwards. # Currently allowed types: 'identitysources'. # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent - # The time when the Group was last updated. + # Output only. The time when the Group was last updated. # Output only # Corresponds to the JSON property `updateTime` # @return [String] diff --git a/generated/google/apis/cloudidentity_v1beta1/service.rb b/generated/google/apis/cloudidentity_v1beta1/service.rb index bc882e766..f07851076 100644 --- a/generated/google/apis/cloudidentity_v1beta1/service.rb +++ b/generated/google/apis/cloudidentity_v1beta1/service.rb @@ -183,7 +183,8 @@ module Google # Updates a Group. # @param [String] name - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the + # Output only. [Resource name](https://cloud.google.com/apis/design/ + # resource_names) of the # Group in the format: `groups/`group_id``, where group_id is the unique id # assigned to the Group. # Must be left blank while creating a Group diff --git a/generated/google/apis/docs_v1.rb b/generated/google/apis/docs_v1.rb index 7adbd930b..4dceb8bea 100644 --- a/generated/google/apis/docs_v1.rb +++ b/generated/google/apis/docs_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/docs/ module DocsV1 VERSION = 'V1' - REVISION = '20190827' + REVISION = '20191010' # View and manage your Google Docs documents AUTH_DOCUMENTS = 'https://www.googleapis.com/auth/documents' diff --git a/generated/google/apis/docs_v1/classes.rb b/generated/google/apis/docs_v1/classes.rb index 67bc80b79..b838410a9 100644 --- a/generated/google/apis/docs_v1/classes.rb +++ b/generated/google/apis/docs_v1/classes.rb @@ -3706,6 +3706,53 @@ module Google end end + # Replaces the contents of the specified + # NamedRange or + # NamedRanges with the given replacement + # content. + # Note that an individual NamedRange may + # consist of multiple discontinuous + # ranges. In this case, only the + # content in the first range will be replaced. The other ranges and their + # content will be deleted. + # In cases where replacing or deleting any ranges would result in an invalid + # document structure, a 400 bad request error is returned. + class ReplaceNamedRangeContentRequest + include Google::Apis::Core::Hashable + + # The ID of the named range whose content will be replaced. + # If there is no named range with the given ID a 400 bad request error is + # returned. + # Corresponds to the JSON property `namedRangeId` + # @return [String] + attr_accessor :named_range_id + + # The name of the NamedRanges whose + # content will be replaced. + # If there are multiple named ranges with the given name, then + # the content of each one will be replaced. If there are no named ranges + # with the given name, then the request will be a no-op. + # Corresponds to the JSON property `namedRangeName` + # @return [String] + attr_accessor :named_range_name + + # Replaces the content of the specified named range(s) with the given text. + # Corresponds to the JSON property `text` + # @return [String] + attr_accessor :text + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @named_range_id = args[:named_range_id] if args.key?(:named_range_id) + @named_range_name = args[:named_range_name] if args.key?(:named_range_name) + @text = args[:text] if args.key?(:text) + end + end + # A single update to apply to a document. class Request include Google::Apis::Core::Hashable @@ -3811,6 +3858,21 @@ module Google # @return [Google::Apis::DocsV1::ReplaceImageRequest] attr_accessor :replace_image + # Replaces the contents of the specified + # NamedRange or + # NamedRanges with the given replacement + # content. + # Note that an individual NamedRange may + # consist of multiple discontinuous + # ranges. In this case, only the + # content in the first range will be replaced. The other ranges and their + # content will be deleted. + # In cases where replacing or deleting any ranges would result in an invalid + # document structure, a 400 bad request error is returned. + # Corresponds to the JSON property `replaceNamedRangeContent` + # @return [Google::Apis::DocsV1::ReplaceNamedRangeContentRequest] + attr_accessor :replace_named_range_content + # Unmerges cells in a Table. # Corresponds to the JSON property `unmergeTableCells` # @return [Google::Apis::DocsV1::UnmergeTableCellsRequest] @@ -3872,6 +3934,7 @@ module Google @merge_table_cells = args[:merge_table_cells] if args.key?(:merge_table_cells) @replace_all_text = args[:replace_all_text] if args.key?(:replace_all_text) @replace_image = args[:replace_image] if args.key?(:replace_image) + @replace_named_range_content = args[:replace_named_range_content] if args.key?(:replace_named_range_content) @unmerge_table_cells = args[:unmerge_table_cells] if args.key?(:unmerge_table_cells) @update_document_style = args[:update_document_style] if args.key?(:update_document_style) @update_paragraph_style = args[:update_paragraph_style] if args.key?(:update_paragraph_style) diff --git a/generated/google/apis/docs_v1/representations.rb b/generated/google/apis/docs_v1/representations.rb index 6c13447b2..c31e8037b 100644 --- a/generated/google/apis/docs_v1/representations.rb +++ b/generated/google/apis/docs_v1/representations.rb @@ -532,6 +532,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ReplaceNamedRangeContentRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Request class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1807,6 +1813,15 @@ module Google end end + class ReplaceNamedRangeContentRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :named_range_id, as: 'namedRangeId' + property :named_range_name, as: 'namedRangeName' + property :text, as: 'text' + end + end + class Request # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1844,6 +1859,8 @@ module Google property :replace_image, as: 'replaceImage', class: Google::Apis::DocsV1::ReplaceImageRequest, decorator: Google::Apis::DocsV1::ReplaceImageRequest::Representation + property :replace_named_range_content, as: 'replaceNamedRangeContent', class: Google::Apis::DocsV1::ReplaceNamedRangeContentRequest, decorator: Google::Apis::DocsV1::ReplaceNamedRangeContentRequest::Representation + property :unmerge_table_cells, as: 'unmergeTableCells', class: Google::Apis::DocsV1::UnmergeTableCellsRequest, decorator: Google::Apis::DocsV1::UnmergeTableCellsRequest::Representation property :update_document_style, as: 'updateDocumentStyle', class: Google::Apis::DocsV1::UpdateDocumentStyleRequest, decorator: Google::Apis::DocsV1::UpdateDocumentStyleRequest::Representation diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 22fd05d19..9cb24f38b 100644 --- a/generated/google/apis/healthcare_v1beta1.rb +++ b/generated/google/apis/healthcare_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/healthcare module HealthcareV1beta1 VERSION = 'V1beta1' - REVISION = '20190924' + REVISION = '20191008' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/healthcare_v1beta1/classes.rb b/generated/google/apis/healthcare_v1beta1/classes.rb index de77d6fee..0e3510b7a 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -378,6 +378,49 @@ module Google end end + # Creates a new DICOM store with sensitive information de-identified. + class DeidentifyDicomStoreRequest + include Google::Apis::Core::Hashable + + # Configures de-id options specific to different types of content. + # Each submessage customizes the handling of an + # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are + # applied in a nested manner at runtime. + # Corresponds to the JSON property `config` + # @return [Google::Apis::HealthcareV1beta1::DeidentifyConfig] + attr_accessor :config + + # The name of the DICOM store to create and write the redacted data to. + # For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # dicomStores/`dicom_store_id``. + # * The destination dataset must exist. + # * The source dataset and destination dataset must both reside in the same + # project. De-identifying data across multiple projects is not supported. + # * The destination DICOM store must not exist. + # * The caller must have the necessary permissions to create the destination + # DICOM store. + # Corresponds to the JSON property `destinationStore` + # @return [String] + attr_accessor :destination_store + + # Specifies the filter configuration for DICOM resources. + # Corresponds to the JSON property `filterConfig` + # @return [Google::Apis::HealthcareV1beta1::DicomFilterConfig] + attr_accessor :filter_config + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @destination_store = args[:destination_store] if args.key?(:destination_store) + @filter_config = args[:filter_config] if args.key?(:filter_config) + end + end + # Contains the status of the Deidentify operation. class DeidentifyErrorDetails include Google::Apis::Core::Hashable @@ -415,6 +458,49 @@ module Google end end + # Creates a new FHIR store with sensitive information de-identified. + class DeidentifyFhirStoreRequest + include Google::Apis::Core::Hashable + + # Configures de-id options specific to different types of content. + # Each submessage customizes the handling of an + # https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are + # applied in a nested manner at runtime. + # Corresponds to the JSON property `config` + # @return [Google::Apis::HealthcareV1beta1::DeidentifyConfig] + attr_accessor :config + + # The name of the FHIR store to create and write the redacted data to. + # For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # fhirStores/`fhir_store_id``. + # * The destination dataset must exist. + # * The source dataset and destination dataset must both reside in the same + # project. De-identifying data across multiple projects is not supported. + # * The destination FHIR store must not exist. + # * The caller must have the necessary permissions to create the destination + # FHIR store. + # Corresponds to the JSON property `destinationStore` + # @return [String] + attr_accessor :destination_store + + # Filter configuration. + # Corresponds to the JSON property `resourceFilter` + # @return [Google::Apis::HealthcareV1beta1::FhirFilter] + attr_accessor :resource_filter + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @config = args[:config] if args.key?(:config) + @destination_store = args[:destination_store] if args.key?(:destination_store) + @resource_filter = args[:resource_filter] if args.key?(:resource_filter) + end + end + # Contains a detailed summary of the Deidentify operation. class DeidentifySummary include Google::Apis::Core::Hashable @@ -495,6 +581,33 @@ module Google end end + # Specifies the filter configuration for DICOM resources. + class DicomFilterConfig + include Google::Apis::Core::Hashable + + # The Cloud Storage location of the filter configuration file. + # The `gcs_uri` must be in the format `gs://bucket/path/to/object`. + # The filter configuration file must contain a list of resource paths + # separated by newline characters (\n or \r\n). Each resource path + # must be in the format + # "/studies/`studyUID`[/series/`seriesUID`[/instances/`instanceUID`]]" + # The Cloud Healthcare API service account must have the + # `roles/storage.objectViewer` Cloud IAM role for this Cloud Storage + # location. + # Corresponds to the JSON property `resourcePathsGcsUri` + # @return [String] + attr_accessor :resource_paths_gcs_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_paths_gcs_uri = args[:resource_paths_gcs_uri] if args.key?(:resource_paths_gcs_uri) + end + end + # Represents a DICOM store. class DicomStore include Google::Apis::Core::Hashable @@ -711,6 +824,25 @@ module Google end end + # Filter configuration. + class FhirFilter + include Google::Apis::Core::Hashable + + # A list of FHIR resources. + # Corresponds to the JSON property `resources` + # @return [Google::Apis::HealthcareV1beta1::Resources] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resources = args[:resources] if args.key?(:resources) + end + end + # Represents a FHIR store. class FhirStore include Google::Apis::Core::Hashable @@ -829,6 +961,50 @@ module Google end end + # Contains a summary of the DeidentifyDicomStore operation. + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary + include Google::Apis::Core::Hashable + + # Number of objects that processing failed for. + # Corresponds to the JSON property `failureResourceCount` + # @return [Fixnum] + attr_accessor :failure_resource_count + + # Number of objects successfully processed. + # Corresponds to the JSON property `successResourceCount` + # @return [Fixnum] + attr_accessor :success_resource_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @failure_resource_count = args[:failure_resource_count] if args.key?(:failure_resource_count) + @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) + end + end + + # Contains a summary of the DeidentifyFhirStore operation. + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary + include Google::Apis::Core::Hashable + + # Number of resources successfully processed. + # Corresponds to the JSON property `successResourceCount` + # @return [Fixnum] + attr_accessor :success_resource_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @success_resource_count = args[:success_resource_count] if args.key?(:success_resource_count) + end + end + # The BigQuery table where the server writes the output. class GoogleCloudHealthcareV1beta1DicomBigQueryDestination include Google::Apis::Core::Hashable @@ -973,9 +1149,9 @@ module Google # Response when errors occur while exporting resources. # This structure is included in the - # error details to describe the - # detailed outcome. It is only included when the operation finishes with - # errors. + # error + # details to describe the detailed outcome. It is + # only included when the operation finishes with errors. class GoogleCloudHealthcareV1beta1FhirRestExportResourcesErrorDetails include Google::Apis::Core::Hashable @@ -1105,9 +1281,9 @@ module Google # Error response of importing resources. # This structure will be included in the - # error details to describe the - # detailed error. It will only be included when the operation finishes with - # some failure. + # error + # details to describe the detailed error. It will + # only be included when the operation finishes with some failure. class GoogleCloudHealthcareV1beta1FhirRestImportResourcesErrorDetails include Google::Apis::Core::Hashable @@ -2014,7 +2190,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", @@ -2169,6 +2345,25 @@ module Google end end + # A list of FHIR resources. + class Resources + include Google::Apis::Core::Hashable + + # List of resources IDs. For example, "Patient/1234". + # Corresponds to the JSON property `resources` + # @return [Array] + attr_accessor :resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resources = args[:resources] if args.key?(:resources) + end + end + # Configuration for the FHIR BigQuery schema. Determines how the server # generates the schema. class SchemaConfig @@ -2281,7 +2476,7 @@ module Google # ` # "bindings": [ # ` - # "role": "role/resourcemanager.organizationAdmin", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index e321ea5a8..1790f4661 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -82,12 +82,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DeidentifyDicomStoreRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeidentifyErrorDetails class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DeidentifyFhirStoreRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DeidentifySummary class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,6 +112,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DicomFilterConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DicomStore class Representation < Google::Apis::Core::JsonRepresentation; end @@ -142,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FhirFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FhirStore class Representation < Google::Apis::Core::JsonRepresentation; end @@ -154,6 +178,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudHealthcareV1beta1DicomBigQueryDestination class Representation < Google::Apis::Core::JsonRepresentation; end @@ -382,6 +418,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Resources + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SchemaConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -523,6 +565,17 @@ module Google end end + class DeidentifyDicomStoreRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::HealthcareV1beta1::DeidentifyConfig, decorator: Google::Apis::HealthcareV1beta1::DeidentifyConfig::Representation + + property :destination_store, as: 'destinationStore' + property :filter_config, as: 'filterConfig', class: Google::Apis::HealthcareV1beta1::DicomFilterConfig, decorator: Google::Apis::HealthcareV1beta1::DicomFilterConfig::Representation + + end + end + class DeidentifyErrorDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -533,6 +586,17 @@ module Google end end + class DeidentifyFhirStoreRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :config, as: 'config', class: Google::Apis::HealthcareV1beta1::DeidentifyConfig, decorator: Google::Apis::HealthcareV1beta1::DeidentifyConfig::Representation + + property :destination_store, as: 'destinationStore' + property :resource_filter, as: 'resourceFilter', class: Google::Apis::HealthcareV1beta1::FhirFilter, decorator: Google::Apis::HealthcareV1beta1::FhirFilter::Representation + + end + end + class DeidentifySummary # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -554,6 +618,13 @@ module Google end end + class DicomFilterConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_paths_gcs_uri, as: 'resourcePathsGcsUri' + end + end + class DicomStore # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -617,6 +688,14 @@ module Google end end + class FhirFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resources, as: 'resources', class: Google::Apis::HealthcareV1beta1::Resources, decorator: Google::Apis::HealthcareV1beta1::Resources::Representation + + end + end + class FhirStore # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -638,6 +717,21 @@ module Google end end + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyDicomStoreSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :failure_resource_count, :numeric_string => true, as: 'failureResourceCount' + property :success_resource_count, :numeric_string => true, as: 'successResourceCount' + end + end + + class GoogleCloudHealthcareV1beta1DeidentifyDeidentifyFhirStoreSummary + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :success_resource_count, :numeric_string => true, as: 'successResourceCount' + end + end + class GoogleCloudHealthcareV1beta1DicomBigQueryDestination # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -985,6 +1079,13 @@ module Google end end + class Resources + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resources, as: 'resources' + end + end + class SchemaConfig # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index 02702ea22..a65068dba 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -167,6 +167,7 @@ module Google # response field type is # DeidentifySummary. # If errors occur, + # error # details field type is # DeidentifyErrorDetails. # Errors are also logged to Stackdriver Logging. For more information, @@ -498,6 +499,51 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new DICOM store containing de-identified data from the source + # store. The metadata field type + # is OperationMetadata. + # If the request is successful, the + # response field type is + # DeidentifyDicomStoreSummary. If errors occur, + # error + # details field type is + # DeidentifyErrorDetails. + # Errors are also logged to Stackdriver + # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). + # @param [String] source_store + # Source DICOM store resource name. For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # dicomStores/`dicom_store_id``. + # @param [Google::Apis::HealthcareV1beta1::DeidentifyDicomStoreRequest] deidentify_dicom_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 deidentify_dicom_store(source_store, deidentify_dicom_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+sourceStore}:deidentify', options) + command.request_representation = Google::Apis::HealthcareV1beta1::DeidentifyDicomStoreRequest::Representation + command.request_object = deidentify_dicom_store_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Operation + command.params['sourceStore'] = source_store unless source_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 + # Deletes the specified DICOM store and removes all images that are contained # within it. # @param [String] name @@ -1638,6 +1684,51 @@ module Google execute_or_queue_command(command, &block) end + # Creates a new FHIR store containing de-identified data from the source + # store. The metadata field type + # is OperationMetadata. + # If the request is successful, the + # response field type is + # DeidentifyFhirStoreSummary. If errors occur, + # error + # details field type is + # DeidentifyErrorDetails. + # Errors are also logged to Stackdriver + # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). + # @param [String] source_store + # Source FHIR store resource name. For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ + # fhirStores/`fhir_store_id``. + # @param [Google::Apis::HealthcareV1beta1::DeidentifyFhirStoreRequest] deidentify_fhir_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 deidentify_fhir_store(source_store, deidentify_fhir_store_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+sourceStore}:deidentify', options) + command.request_representation = Google::Apis::HealthcareV1beta1::DeidentifyFhirStoreRequest::Representation + command.request_object = deidentify_fhir_store_request_object + command.response_representation = Google::Apis::HealthcareV1beta1::Operation::Representation + command.response_class = Google::Apis::HealthcareV1beta1::Operation + command.params['sourceStore'] = source_store unless source_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 + # Deletes the specified FHIR store and removes all resources within it. # @param [String] name # The resource name of the FHIR store to delete. @@ -2047,9 +2138,15 @@ module Google # [Observation-lastn](http://hl7.org/implement/standards/fhir/STU3/observation- # operations.html#lastn). # Search terms are provided as query parameters following the same pattern as - # the search method. This operation accepts an additional - # query parameter `max`, which specifies N, the maximum number of - # Observations to return from each group, with a default of 1. + # the search method. The following search parameters must + # be provided + # - `subject` or `patient` to specify a subject for the Observation. + # - `code`, `category` or any of the composite parameters that include + # `code`. + # Any other valid Observation search parameters can also be provided. This + # operation accepts an additional query parameter `max`, which specifies N, + # the maximum number of Observations to return from each group, with a + # default of 1. # On success, the response body will contain a JSON-encoded representation # of a `Bundle` resource of type `searchset`, containing the results of the # operation. diff --git a/generated/google/apis/iap_v1.rb b/generated/google/apis/iap_v1.rb index ca5e9e167..6ca5c9ede 100644 --- a/generated/google/apis/iap_v1.rb +++ b/generated/google/apis/iap_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1 VERSION = 'V1' - REVISION = '20191004' + REVISION = '20191011' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/iap_v1/classes.rb b/generated/google/apis/iap_v1/classes.rb index 32da1bb66..f1cc445d2 100644 --- a/generated/google/apis/iap_v1/classes.rb +++ b/generated/google/apis/iap_v1/classes.rb @@ -22,6 +22,60 @@ module Google module Apis module IapV1 + # Access related settings for IAP protected apps. + class AccessSettings + include Google::Apis::Core::Hashable + + # Allows customers to configure HTTP request paths that'll allow HTTP OPTIONS + # call to bypass authentication and authorization. + # Corresponds to the JSON property `corsSettings` + # @return [Google::Apis::IapV1::CorsSettings] + attr_accessor :cors_settings + + # Allows customers to configure tenant_id for GCIP instance per-app. + # Corresponds to the JSON property `gcipSettings` + # @return [Google::Apis::IapV1::GcipSettings] + attr_accessor :gcip_settings + + # Configuration for OAuth login&consent flow behavior. + # Corresponds to the JSON property `oauthSettings` + # @return [Google::Apis::IapV1::OAuthSettings] + attr_accessor :oauth_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cors_settings = args[:cors_settings] if args.key?(:cors_settings) + @gcip_settings = args[:gcip_settings] if args.key?(:gcip_settings) + @oauth_settings = args[:oauth_settings] if args.key?(:oauth_settings) + end + end + + # Wrapper over application specific settings for IAP. + class ApplicationSettings + include Google::Apis::Core::Hashable + + # Configuration for RCTokens generated for CSM workloads protected by IAP. + # RCTokens are IAP generated JWTs that can be verified at the application. The + # RCToken is primarily used for ISTIO deployments, and can be scoped to a + # single mesh by configuring the audience field accordingly + # Corresponds to the JSON property `csmSettings` + # @return [Google::Apis::IapV1::CsmSettings] + attr_accessor :csm_settings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @csm_settings = args[:csm_settings] if args.key?(:csm_settings) + end + end + # Associates `members` with a `role`. class Binding include Google::Apis::Core::Hashable @@ -70,6 +124,51 @@ module Google end end + # Allows customers to configure HTTP request paths that'll allow HTTP OPTIONS + # call to bypass authentication and authorization. + class CorsSettings + include Google::Apis::Core::Hashable + + # Configuration to allow HTTP OPTIONS calls to skip authorization. If + # undefined, IAP will not apply any special logic to OPTIONS requests. + # Corresponds to the JSON property `allowHttpOptions` + # @return [Boolean] + attr_accessor :allow_http_options + alias_method :allow_http_options?, :allow_http_options + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allow_http_options = args[:allow_http_options] if args.key?(:allow_http_options) + end + end + + # Configuration for RCTokens generated for CSM workloads protected by IAP. + # RCTokens are IAP generated JWTs that can be verified at the application. The + # RCToken is primarily used for ISTIO deployments, and can be scoped to a + # single mesh by configuring the audience field accordingly + class CsmSettings + include Google::Apis::Core::Hashable + + # Audience claim set in the generated RCToken. This value is not validated by + # IAP. + # Corresponds to the JSON property `rctokenAud` + # @return [String] + attr_accessor :rctoken_aud + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @rctoken_aud = args[:rctoken_aud] if args.key?(:rctoken_aud) + end + end + # Represents an expression text. Example: # title: "User account presence" # description: "Determines whether the request has a user account" @@ -117,6 +216,38 @@ module Google end end + # Allows customers to configure tenant_id for GCIP instance per-app. + class GcipSettings + include Google::Apis::Core::Hashable + + # Login page URI associated with the GCIP tenants. + # Typically, all resources within the same project share the same login page, + # though it could be overridden at the sub resource level. + # Corresponds to the JSON property `loginPageUri` + # @return [String] + attr_accessor :login_page_uri + + # GCIP tenant ids that are linked to the IAP resource. + # tenant_ids could be a string beginning with a number character to indicate + # authenticating with GCIP tenant flow, or in the format of _ + # to indicate authenticating with GCIP agent flow. + # If agent flow is used, tenant_ids should only contain one single element, + # while for tenant flow, tenant_ids can contain multiple elements. + # Corresponds to the JSON property `tenantIds` + # @return [Array] + attr_accessor :tenant_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @login_page_uri = args[:login_page_uri] if args.key?(:login_page_uri) + @tenant_ids = args[:tenant_ids] if args.key?(:tenant_ids) + end + end + # Request message for `GetIamPolicy` method. class GetIamPolicyRequest include Google::Apis::Core::Hashable @@ -160,6 +291,60 @@ module Google end end + # The IAP configurable settings. + class IapSettings + include Google::Apis::Core::Hashable + + # Access related settings for IAP protected apps. + # Corresponds to the JSON property `accessSettings` + # @return [Google::Apis::IapV1::AccessSettings] + attr_accessor :access_settings + + # Wrapper over application specific settings for IAP. + # Corresponds to the JSON property `applicationSettings` + # @return [Google::Apis::IapV1::ApplicationSettings] + attr_accessor :application_settings + + # Required. The resource name of the IAP protected 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) + @access_settings = args[:access_settings] if args.key?(:access_settings) + @application_settings = args[:application_settings] if args.key?(:application_settings) + @name = args[:name] if args.key?(:name) + end + end + + # Configuration for OAuth login&consent flow behavior. + class OAuthSettings + include Google::Apis::Core::Hashable + + # Domain hint to send as hd=? parameter in OAuth request flow. Enables + # redirect to primary IDP by skipping Google's login screen. + # https://developers.google.com/identity/protocols/OpenIDConnect#hd-param + # Note: IAP does not verify that the id token's hd claim matches this value + # since access behavior is managed by IAM policies. + # Corresponds to the JSON property `loginHint` + # @return [String] + attr_accessor :login_hint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @login_hint = args[:login_hint] if args.key?(:login_hint) + end + end + # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. # A `Policy` is a collection of `bindings`. A `binding` binds one or more diff --git a/generated/google/apis/iap_v1/representations.rb b/generated/google/apis/iap_v1/representations.rb index 967bc9fbe..e2150e218 100644 --- a/generated/google/apis/iap_v1/representations.rb +++ b/generated/google/apis/iap_v1/representations.rb @@ -22,18 +22,48 @@ module Google module Apis module IapV1 + class AccessSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ApplicationSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Binding class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CorsSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CsmSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GcipSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,6 +76,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class IapSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OAuthSettings + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Policy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -70,6 +112,26 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AccessSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cors_settings, as: 'corsSettings', class: Google::Apis::IapV1::CorsSettings, decorator: Google::Apis::IapV1::CorsSettings::Representation + + property :gcip_settings, as: 'gcipSettings', class: Google::Apis::IapV1::GcipSettings, decorator: Google::Apis::IapV1::GcipSettings::Representation + + property :oauth_settings, as: 'oauthSettings', class: Google::Apis::IapV1::OAuthSettings, decorator: Google::Apis::IapV1::OAuthSettings::Representation + + end + end + + class ApplicationSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :csm_settings, as: 'csmSettings', class: Google::Apis::IapV1::CsmSettings, decorator: Google::Apis::IapV1::CsmSettings::Representation + + end + end + class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -80,6 +142,20 @@ module Google end end + class CorsSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_http_options, as: 'allowHttpOptions' + end + end + + class CsmSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :rctoken_aud, as: 'rctokenAud' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -90,6 +166,14 @@ module Google end end + class GcipSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :login_page_uri, as: 'loginPageUri' + collection :tenant_ids, as: 'tenantIds' + end + end + class GetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -105,6 +189,24 @@ module Google end end + class IapSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :access_settings, as: 'accessSettings', class: Google::Apis::IapV1::AccessSettings, decorator: Google::Apis::IapV1::AccessSettings::Representation + + property :application_settings, as: 'applicationSettings', class: Google::Apis::IapV1::ApplicationSettings, decorator: Google::Apis::IapV1::ApplicationSettings::Representation + + property :name, as: 'name' + end + end + + class OAuthSettings + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :login_hint, as: 'loginHint' + end + end + class Policy # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/iap_v1/service.rb b/generated/google/apis/iap_v1/service.rb index a8ac93d0f..e8d7b556b 100644 --- a/generated/google/apis/iap_v1/service.rb +++ b/generated/google/apis/iap_v1/service.rb @@ -84,6 +84,38 @@ module Google execute_or_queue_command(command, &block) end + # Gets the IAP settings on a particular IAP protected resource. + # @param [String] name + # Required. The resource name for which to retrieve the settings. + # Authorization: Requires the `getSettings` permission for the associated + # 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::IapV1::IapSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1::IapSettings] + # + # @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_iap_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}:iapSettings', options) + command.response_representation = Google::Apis::IapV1::IapSettings::Representation + command.response_class = Google::Apis::IapV1::IapSettings + 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 + # Sets the access control policy for an Identity-Aware Proxy protected # resource. Replaces any existing policy. # More information about managing access via IAP can be found at: @@ -157,6 +189,46 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Updates the IAP settings on a particular IAP protected resource. It + # replaces all fields unless the `update_mask` is set. + # @param [String] name + # Required. The resource name of the IAP protected resource. + # @param [Google::Apis::IapV1::IapSettings] iap_settings_object + # @param [String] update_mask + # The field mask specifying which IAP settings should be updated. + # If omitted, the all of the settings are updated. 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::IapV1::IapSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::IapV1::IapSettings] + # + # @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 update_iap_settings(name, iap_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}:iapSettings', options) + command.request_representation = Google::Apis::IapV1::IapSettings::Representation + command.request_object = iap_settings_object + command.response_representation = Google::Apis::IapV1::IapSettings::Representation + command.response_class = Google::Apis::IapV1::IapSettings + command.params['name'] = name unless name.nil? + command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end protected diff --git a/generated/google/apis/policytroubleshooter_v1beta.rb b/generated/google/apis/policytroubleshooter_v1beta.rb index 752c207f1..edbc344e6 100644 --- a/generated/google/apis/policytroubleshooter_v1beta.rb +++ b/generated/google/apis/policytroubleshooter_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iam/ module PolicytroubleshooterV1beta VERSION = 'V1beta' - REVISION = '20191005' + REVISION = '20191012' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1.rb b/generated/google/apis/run_v1.rb index 88332f139..a95784df2 100644 --- a/generated/google/apis/run_v1.rb +++ b/generated/google/apis/run_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/run/ module RunV1 VERSION = 'V1' - REVISION = '20191008' + REVISION = '20191009' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/run_v1/classes.rb b/generated/google/apis/run_v1/classes.rb index 563f61c87..6f44a1a04 100644 --- a/generated/google/apis/run_v1/classes.rb +++ b/generated/google/apis/run_v1/classes.rb @@ -647,7 +647,6 @@ module Google # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, # regardless of whether the variable exists or not. - # Cannot be updated. # More info: # https://kubernetes.io/docs/tasks/inject-data-application/define-command- # argument-container/#running-a-command-in-a-shell @@ -664,7 +663,6 @@ module Google # Cloud Run fully managed: supported # Cloud Run for Anthos: supported # List of environment variables to set in the container. - # Cannot be updated. # Corresponds to the JSON property `env` # @return [Array] attr_accessor :env @@ -697,7 +695,6 @@ module Google # Image pull policy. # One of Always, Never, IfNotPresent. # Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - # Cannot be updated. # More info: # https://kubernetes.io/docs/concepts/containers/images#updating-images # Corresponds to the JSON property `imagePullPolicy` @@ -727,7 +724,6 @@ module Google # DOES NOT prevent that port from being exposed. Any port which is # listening on the default "0.0.0.0" address inside a container will be # accessible from the network. - # Cannot be updated. # Corresponds to the JSON property `ports` # @return [Array] attr_accessor :ports @@ -764,7 +760,6 @@ module Google # message. Will be truncated by the node if greater than 4096 bytes. The # total message length across all containers will be limited to 12kb. # Defaults to /dev/termination-log. - # Cannot be updated. # Corresponds to the JSON property `terminationMessagePath` # @return [String] attr_accessor :termination_message_path @@ -786,7 +781,6 @@ module Google # Cloud Run fully managed: not supported # Cloud Run for Anthos: supported # Pod volumes to mount into the container's filesystem. - # Cannot be updated. # Corresponds to the JSON property `volumeMounts` # @return [Array] attr_accessor :volume_mounts @@ -797,7 +791,6 @@ module Google # Container's working directory. # If not specified, the container runtime's default will be used, which # might be configured in the container image. - # Cannot be updated. # Corresponds to the JSON property `workingDir` # @return [String] attr_accessor :working_dir diff --git a/generated/google/apis/speech_v2beta.rb b/generated/google/apis/speech_v2beta.rb deleted file mode 100644 index 7cd0b6d84..000000000 --- a/generated/google/apis/speech_v2beta.rb +++ /dev/null @@ -1,34 +0,0 @@ -# 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/speech_v2beta/service.rb' -require 'google/apis/speech_v2beta/classes.rb' -require 'google/apis/speech_v2beta/representations.rb' - -module Google - module Apis - # Cloud Speech-to-Text API - # - # Converts audio to text by applying powerful neural network models. - # - # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol - module SpeechV2beta - VERSION = 'V2beta' - REVISION = '20190918' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - end - end -end diff --git a/generated/google/apis/speech_v2beta/classes.rb b/generated/google/apis/speech_v2beta/classes.rb deleted file mode 100644 index da1926277..000000000 --- a/generated/google/apis/speech_v2beta/classes.rb +++ /dev/null @@ -1,355 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module SpeechV2beta - - # The response message for Operations.ListOperations. - class ListOperationsResponse - include Google::Apis::Core::Hashable - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A list of operations that matches the specified filter in the request. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # Describes the progress of a long-running `LongRunningRecognize` call. It is - # included in the `metadata` field of the `Operation` returned by the - # `GetOperation` call of the `google::longrunning::Operations` service. - class LongRunningRecognizeMetadata - include Google::Apis::Core::Hashable - - # Output only. Time of the most recent processing update. - # Corresponds to the JSON property `lastUpdateTime` - # @return [String] - attr_accessor :last_update_time - - # Output only. Approximate percentage of audio processed thus far. Guaranteed to - # be 100 - # when the audio is fully processed and the results are available. - # Corresponds to the JSON property `progressPercent` - # @return [Fixnum] - attr_accessor :progress_percent - - # Output only. Time when the request was received. - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @last_update_time = args[:last_update_time] if args.key?(:last_update_time) - @progress_percent = args[:progress_percent] if args.key?(:progress_percent) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # The only message returned to the client by the `LongRunningRecognize` method. - # It contains the result as zero or more sequential SpeechRecognitionResult - # messages. It is included in the `result.response` field of the `Operation` - # returned by the `GetOperation` call of the `google::longrunning::Operations` - # service. - class LongRunningRecognizeResponse - include Google::Apis::Core::Hashable - - # Output only. Sequential list of transcription results corresponding to - # sequential portions of audio. - # Corresponds to the JSON property `results` - # @return [Array] - attr_accessor :results - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @results = args[:results] if args.key?(:results) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::SpeechV2beta::Status] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # Alternative hypotheses (a.k.a. n-best list). - class SpeechRecognitionAlternative - include Google::Apis::Core::Hashable - - # Output only. The confidence estimate between 0.0 and 1.0. A higher number - # indicates an estimated greater likelihood that the recognized words are - # correct. This field is set only for the top alternative of a non-streaming - # result or, of a streaming result where `is_final=true`. - # This field is not guaranteed to be accurate and users should not rely on it - # to be always provided. - # The default of 0.0 is a sentinel value indicating `confidence` was not set. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Output only. Transcript text representing the words that the user spoke. - # Corresponds to the JSON property `transcript` - # @return [String] - attr_accessor :transcript - - # Output only. A list of word-specific information for each recognized word. - # Note: When `enable_speaker_diarization` is true, you will see all the words - # from the beginning of the audio. - # Corresponds to the JSON property `words` - # @return [Array] - attr_accessor :words - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @transcript = args[:transcript] if args.key?(:transcript) - @words = args[:words] if args.key?(:words) - end - end - - # A speech recognition result corresponding to a portion of the audio. - class SpeechRecognitionResult - include Google::Apis::Core::Hashable - - # Output only. May contain one or more recognition hypotheses (up to the - # maximum specified in `max_alternatives`). - # These alternatives are ordered in terms of accuracy, with the top (first) - # alternative being the most probable, as ranked by the recognizer. - # Corresponds to the JSON property `alternatives` - # @return [Array] - attr_accessor :alternatives - - # Output only. For multi-channel audio, this is the channel number corresponding - # to the - # recognized result for the audio from that channel. - # For `audio_channel_count` = N, its output values can range from `1` to `N`. - # Corresponds to the JSON property `channelTag` - # @return [Fixnum] - attr_accessor :channel_tag - - # Output only. The - # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the - # language in this result. This language code was detected to have the most - # likelihood of being spoken in the audio. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @alternatives = args[:alternatives] if args.key?(:alternatives) - @channel_tag = args[:channel_tag] if args.key?(:channel_tag) - @language_code = args[:language_code] if args.key?(:language_code) - end - end - - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - class Status - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # google.rpc.Status.details field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - - # Word-specific information for recognized words. - class WordInfo - include Google::Apis::Core::Hashable - - # Output only. The confidence estimate between 0.0 and 1.0. A higher number - # indicates an estimated greater likelihood that the recognized words are - # correct. This field is set only for the top alternative of a non-streaming - # result or, of a streaming result where `is_final=true`. - # This field is not guaranteed to be accurate and users should not rely on it - # to be always provided. - # The default of 0.0 is a sentinel value indicating `confidence` was not set. - # Corresponds to the JSON property `confidence` - # @return [Float] - attr_accessor :confidence - - # Output only. Time offset relative to the beginning of the audio, - # and corresponding to the end of the spoken word. - # This field is only set if `enable_word_time_offsets=true` and only - # in the top hypothesis. - # This is an experimental feature and the accuracy of the time offset can - # vary. - # Corresponds to the JSON property `endOffset` - # @return [String] - attr_accessor :end_offset - - # Output only. A distinct integer value is assigned for every speaker within - # the audio. This field specifies which one of those speakers was detected to - # have spoken this word. Value ranges from `1` to - # `diarization_speaker_count`. speaker_tag is set if - # `enable_speaker_diarization` = `true` and only in the top alternative. - # Corresponds to the JSON property `speakerTag` - # @return [Fixnum] - attr_accessor :speaker_tag - - # Output only. Time offset relative to the beginning of the audio, - # and corresponding to the start of the spoken word. - # This field is only set if `enable_word_time_offsets=true` and only - # in the top hypothesis. - # This is an experimental feature and the accuracy of the time offset can - # vary. - # Corresponds to the JSON property `startOffset` - # @return [String] - attr_accessor :start_offset - - # Output only. The word corresponding to this set of information. - # Corresponds to the JSON property `word` - # @return [String] - attr_accessor :word - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @confidence = args[:confidence] if args.key?(:confidence) - @end_offset = args[:end_offset] if args.key?(:end_offset) - @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag) - @start_offset = args[:start_offset] if args.key?(:start_offset) - @word = args[:word] if args.key?(:word) - end - end - end - end -end diff --git a/generated/google/apis/speech_v2beta/representations.rb b/generated/google/apis/speech_v2beta/representations.rb deleted file mode 100644 index 041a99dbe..000000000 --- a/generated/google/apis/speech_v2beta/representations.rb +++ /dev/null @@ -1,152 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module SpeechV2beta - - class ListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LongRunningRecognizeMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LongRunningRecognizeResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Operation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SpeechRecognitionAlternative - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SpeechRecognitionResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Status - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class WordInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::SpeechV2beta::Operation, decorator: Google::Apis::SpeechV2beta::Operation::Representation - - end - end - - class LongRunningRecognizeMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :last_update_time, as: 'lastUpdateTime' - property :progress_percent, as: 'progressPercent' - property :start_time, as: 'startTime' - end - end - - class LongRunningRecognizeResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :results, as: 'results', class: Google::Apis::SpeechV2beta::SpeechRecognitionResult, decorator: Google::Apis::SpeechV2beta::SpeechRecognitionResult::Representation - - end - end - - class Operation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::SpeechV2beta::Status, decorator: Google::Apis::SpeechV2beta::Status::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class SpeechRecognitionAlternative - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :transcript, as: 'transcript' - collection :words, as: 'words', class: Google::Apis::SpeechV2beta::WordInfo, decorator: Google::Apis::SpeechV2beta::WordInfo::Representation - - end - end - - class SpeechRecognitionResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV2beta::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV2beta::SpeechRecognitionAlternative::Representation - - property :channel_tag, as: 'channelTag' - property :language_code, as: 'languageCode' - end - end - - class Status - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - - class WordInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :confidence, as: 'confidence' - property :end_offset, as: 'endOffset' - property :speaker_tag, as: 'speakerTag' - property :start_offset, as: 'startOffset' - property :word, as: 'word' - end - end - end - end -end diff --git a/generated/google/apis/speech_v2beta/service.rb b/generated/google/apis/speech_v2beta/service.rb deleted file mode 100644 index 03f74e00c..000000000 --- a/generated/google/apis/speech_v2beta/service.rb +++ /dev/null @@ -1,138 +0,0 @@ -# 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 SpeechV2beta - # Cloud Speech-to-Text API - # - # Converts audio to text by applying powerful neural network models. - # - # @example - # require 'google/apis/speech_v2beta' - # - # Speech = Google::Apis::SpeechV2beta # Alias the module - # service = Speech::SpeechService.new - # - # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol - class SpeechService < 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://speech.googleapis.com/', '') - @batch_path = 'batch' - 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::SpeechV2beta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpeechV2beta::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 get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta/{+name}', options) - command.response_representation = Google::Apis::SpeechV2beta::Operation::Representation - command.response_class = Google::Apis::SpeechV2beta::Operation - 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 operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # NOTE: the `name` binding allows API services to override the binding - # to use different resource name schemes, such as `users/*/operations`. To - # override the binding, API services can add a binding such as - # `"/v1/`name=users/*`/operations"` to their service configuration. - # For backwards compatibility, the default name includes the operations - # collection id, however overriding users must ensure the name binding - # is the parent resource, without the operations collection id. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::SpeechV2beta::ListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::SpeechV2beta::ListOperationsResponse] - # - # @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_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v2beta/{+name}/operations', options) - command.response_representation = Google::Apis::SpeechV2beta::ListOperationsResponse::Representation - command.response_class = Google::Apis::SpeechV2beta::ListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - 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 diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index ff2980d93..0f9f1ab3c 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20190924' + REVISION = '20191013' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 2e8fd4577..3b4338f15 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -1197,7 +1197,7 @@ module Google end # A description of an iOS device tests may be run on. - # Next tag: 10 + # Next tag: 11 class IosModel include Google::Apis::Core::Hashable diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 7c0fb2b96..f51334843 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20190927' + REVISION = '20191011' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/vision_v1p2beta1.rb b/generated/google/apis/vision_v1p2beta1.rb index 20270f6ad..941d6dced 100644 --- a/generated/google/apis/vision_v1p2beta1.rb +++ b/generated/google/apis/vision_v1p2beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1p2beta1 VERSION = 'V1p2beta1' - REVISION = '20190927' + REVISION = '20191011' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'