diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 0bb5b5e4a..65fa33136 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2 VERSION = 'V2' - REVISION = '20190909' + REVISION = '20190914' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 91c59442a..5821494bf 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -693,8 +693,7 @@ module Google class GoogleCloudDialogflowV2ExportAgentRequest include Google::Apis::Core::Hashable - # Optional. The - # [Google Cloud Storage](https://cloud.google.com/storage/docs/) + # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) # URI to export the agent to. # The format of this URI must be `gs:///`. # If left unspecified, the serialized agent is returned inline. @@ -719,15 +718,13 @@ module Google # The exported agent. # Example for how to export an agent to a zip file via a command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:
+        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
         # export'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
+        # -H 'Accept: application/json'
         # --compressed \
-        # --data-binary '``' \
         # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
         # | base64 --decode > <agent zip file>
# Corresponds to the JSON property `agentContent` @@ -759,14 +756,13 @@ module Google # The agent to import. # Example for how to import an agent via the command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:
-        # import\
+        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
+        # import'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
+        # -H 'Authorization: Bearer'\
+        # $(gcloud auth application-default print-access-token) \
         # -H 'Accept: application/json' \
         # -H 'Content-Type: application/json' \
-        # --compressed \
         # --data-binary "`
         # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
         # `"
@@ -1282,7 +1278,7 @@ module Google end end - # Optional. Contains information about a button. + # Contains information about a button. class GoogleCloudDialogflowV2IntentMessageCardButton include Google::Apis::Core::Hashable @@ -2265,14 +2261,13 @@ module Google # The agent to restore. # Example for how to restore an agent via the command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:
-        # restore\
+        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
+        # restore'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
         # -H 'Accept: application/json' \
         # -H 'Content-Type: application/json' \
-        # --compressed \
         # --data-binary "`
         # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
         # `"
@@ -2753,26 +2748,6 @@ module Google end end - # Metadata for article suggestion models. - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - include Google::Apis::Core::Hashable - - # Optional. Type of the article suggestion model. The available values are: - # * `article-suggestion-gbt-1` - (default) Article Suggestion Gbt model. - # Corresponds to the JSON property `modelType` - # @return [String] - attr_accessor :model_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @model_type = args[:model_type] if args.key?(:model_type) - end - end - # The response message for EntityTypes.BatchUpdateEntityTypes. class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse include Google::Apis::Core::Hashable @@ -2855,63 +2830,6 @@ module Google end end - # Represents a conversation model. - class GoogleCloudDialogflowV2beta1ConversationModel - include Google::Apis::Core::Hashable - - # Metadata for article suggestion models. - # Corresponds to the JSON property `articleSuggestionModelMetadata` - # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata] - attr_accessor :article_suggestion_model_metadata - - # Output only. Creation time of this model. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Required. Datasets used to create model. - # Corresponds to the JSON property `datasets` - # @return [Array] - attr_accessor :datasets - - # Required. The display name of the model. At most 64 bytes long. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Output only. ConversationModel resource name. Format: - # `projects//conversationModels/` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Metadata for smart reply models. - # Corresponds to the JSON property `smartReplyModelMetadata` - # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata] - attr_accessor :smart_reply_model_metadata - - # Output only. State of the model. A model can only serve prediction requests - # after it gets deployed. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata) - @create_time = args[:create_time] if args.key?(:create_time) - @datasets = args[:datasets] if args.key?(:datasets) - @display_name = args[:display_name] if args.key?(:display_name) - @name = args[:name] if args.key?(:name) - @smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata) - @state = args[:state] if args.key?(:state) - end - end - # Represents an entity type. # Entity types serve as a tool for extracting parameter values from natural # language queries. @@ -3049,15 +2967,13 @@ module Google # The exported agent. # Example for how to export an agent to a zip file via a command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/
-        # agent:export'\
+        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
+        # export'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
+        # -H 'Accept: application/json'
         # --compressed \
-        # --data-binary '``' \
         # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
         # | base64 --decode > <agent zip file>
# Corresponds to the JSON property `agentContent` @@ -3082,29 +2998,6 @@ module Google end end - # InputDataset used to create model or do evaluation. - class GoogleCloudDialogflowV2beta1InputDataset - include Google::Apis::Core::Hashable - - # Required. ConversationDataset resource name. Format: - # `projects//conversationDatasets/` - # or - # `projects//conversationDatasets//annotatedConversationDatasets/` - # Corresponds to the JSON property `dataset` - # @return [String] - attr_accessor :dataset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dataset = args[:dataset] if args.key?(:dataset) - end - end - # Represents an intent. # Intents convert a number of user expressions or patterns into an action. An # action is an extraction of a user command or sentence semantics. @@ -3324,6 +3217,12 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard] attr_accessor :basic_card + # Browse Carousel Card for Actions on Google. + # https://developers.google.com/actions/assistant/responses#browsing_carousel + # Corresponds to the JSON property `browseCarouselCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard] + attr_accessor :browse_carousel_card + # The card response message. # Corresponds to the JSON property `card` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard] @@ -3350,6 +3249,11 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect] attr_accessor :list_select + # The media content card for Actions on Google. + # Corresponds to the JSON property `mediaContent` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageMediaContent] + attr_accessor :media_content + # Returns a response containing a custom, platform-specific payload. # See the Intent.Message.Platform type for a description of the # structure that may be required for your platform. @@ -3409,6 +3313,11 @@ module Google # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions] attr_accessor :suggestions + # Table card for Actions on Google. + # Corresponds to the JSON property `tableCard` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCard] + attr_accessor :table_card + # Plays audio from a file in Telephony Gateway. # Corresponds to the JSON property `telephonyPlayAudio` # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio] @@ -3440,11 +3349,13 @@ module Google # Update properties of this object def update!(**args) @basic_card = args[:basic_card] if args.key?(:basic_card) + @browse_carousel_card = args[:browse_carousel_card] if args.key?(:browse_carousel_card) @card = args[:card] if args.key?(:card) @carousel_select = args[:carousel_select] if args.key?(:carousel_select) @image = args[:image] if args.key?(:image) @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion) @list_select = args[:list_select] if args.key?(:list_select) + @media_content = args[:media_content] if args.key?(:media_content) @payload = args[:payload] if args.key?(:payload) @platform = args[:platform] if args.key?(:platform) @quick_replies = args[:quick_replies] if args.key?(:quick_replies) @@ -3453,6 +3364,7 @@ module Google @rbm_text = args[:rbm_text] if args.key?(:rbm_text) @simple_responses = args[:simple_responses] if args.key?(:simple_responses) @suggestions = args[:suggestions] if args.key?(:suggestions) + @table_card = args[:table_card] if args.key?(:table_card) @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio) @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech) @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call) @@ -3547,6 +3459,105 @@ module Google end end + # Browse Carousel Card for Actions on Google. + # https://developers.google.com/actions/assistant/responses#browsing_carousel + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + include Google::Apis::Core::Hashable + + # Optional. Settings for displaying the image. Applies to every image in + # items. + # Corresponds to the JSON property `imageDisplayOptions` + # @return [String] + attr_accessor :image_display_options + + # Required. List of items in the Browse Carousel Card. Minimum of two + # items, maximum of ten. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_display_options = args[:image_display_options] if args.key?(:image_display_options) + @items = args[:items] if args.key?(:items) + end + end + + # Browsing carousel tile + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + include Google::Apis::Core::Hashable + + # Optional. Description of the carousel item. Maximum of four lines of + # text. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. Text that appears at the bottom of the Browse Carousel + # Card. Maximum of one line of text. + # Corresponds to the JSON property `footer` + # @return [String] + attr_accessor :footer + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Actions on Google action to open a given url. + # Corresponds to the JSON property `openUriAction` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction] + attr_accessor :open_uri_action + + # Required. Title of the carousel item. Maximum of two lines of text. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @footer = args[:footer] if args.key?(:footer) + @image = args[:image] if args.key?(:image) + @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action) + @title = args[:title] if args.key?(:title) + end + end + + # Actions on Google action to open a given url. + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + include Google::Apis::Core::Hashable + + # Required. URL + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Optional. Specifies the type of viewer that is used when opening + # the URL. Defaults to opening via web browser. + # Corresponds to the JSON property `urlTypeHint` + # @return [String] + attr_accessor :url_type_hint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] if args.key?(:url) + @url_type_hint = args[:url_type_hint] if args.key?(:url_type_hint) + end + end + # The card response message. class GoogleCloudDialogflowV2beta1IntentMessageCard include Google::Apis::Core::Hashable @@ -3667,6 +3678,31 @@ module Google end end + # Column properties for TableCard. + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + include Google::Apis::Core::Hashable + + # Required. Column heading. + # Corresponds to the JSON property `header` + # @return [String] + attr_accessor :header + + # Optional. Defines text alignment for all cells in this column. + # Corresponds to the JSON property `horizontalAlignment` + # @return [String] + attr_accessor :horizontal_alignment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header = args[:header] if args.key?(:header) + @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) + end + end + # The image response message. class GoogleCloudDialogflowV2beta1IntentMessageImage include Google::Apis::Core::Hashable @@ -3783,6 +3819,74 @@ module Google end end + # The media content card for Actions on Google. + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + include Google::Apis::Core::Hashable + + # Required. List of media objects. + # Corresponds to the JSON property `mediaObjects` + # @return [Array] + attr_accessor :media_objects + + # Optional. What type of media is the content (ie "audio"). + # Corresponds to the JSON property `mediaType` + # @return [String] + attr_accessor :media_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @media_objects = args[:media_objects] if args.key?(:media_objects) + @media_type = args[:media_type] if args.key?(:media_type) + end + end + + # Response media object for media content card. + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + include Google::Apis::Core::Hashable + + # Required. Url where the media is stored. + # Corresponds to the JSON property `contentUrl` + # @return [String] + attr_accessor :content_url + + # Optional. Description of media card. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `icon` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :icon + + # The image response message. + # Corresponds to the JSON property `largeImage` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :large_image + + # Required. Name of media card. + # 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) + @content_url = args[:content_url] if args.key?(:content_url) + @description = args[:description] if args.key?(:description) + @icon = args[:icon] if args.key?(:icon) + @large_image = args[:large_image] if args.key?(:large_image) + @name = args[:name] if args.key?(:name) + end + end + # The quick replies response message. class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies include Google::Apis::Core::Hashable @@ -4301,6 +4405,100 @@ module Google end end + # Table card for Actions on Google. + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + include Google::Apis::Core::Hashable + + # Optional. List of buttons for the card. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Optional. Display properties for the columns in this table. + # Corresponds to the JSON property `columnProperties` + # @return [Array] + attr_accessor :column_properties + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Optional. Rows in this table of data. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # Optional. Subtitle to the title. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Required. Title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @column_properties = args[:column_properties] if args.key?(:column_properties) + @image = args[:image] if args.key?(:image) + @rows = args[:rows] if args.key?(:rows) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # Cell of TableCardRow. + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + include Google::Apis::Core::Hashable + + # Required. Text in this cell. + # 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) + @text = args[:text] if args.key?(:text) + end + end + + # Row of TableCard. + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + include Google::Apis::Core::Hashable + + # Optional. List of cells that make up this row. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + # Optional. Whether to add a visual divider after this row. + # Corresponds to the JSON property `dividerAfter` + # @return [Boolean] + attr_accessor :divider_after + alias_method :divider_after?, :divider_after + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + @divider_after = args[:divider_after] if args.key?(:divider_after) + end + end + # Plays audio from a file in Telephony Gateway. class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio include Google::Apis::Core::Hashable @@ -4936,27 +5134,6 @@ module Google end end - # Metadata for smart reply models. - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - include Google::Apis::Core::Hashable - - # Optional. Type of the article suggestion model. The available values are: - # * `smart-reply-dual-encoder-model-1` - (default) Smart Reply Dual Encoder - # model. - # Corresponds to the JSON property `modelType` - # @return [String] - attr_accessor :model_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @model_type = args[:model_type] if args.key?(:model_type) - end - end - # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index eab65b123..39884a69d 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -430,12 +430,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,12 +448,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1ConversationModel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1EntityType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -484,12 +472,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1InputDataset - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -526,6 +508,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageCard class Representation < Google::Apis::Core::JsonRepresentation; end @@ -550,6 +550,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageImage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +580,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies class Representation < Google::Apis::Core::JsonRepresentation; end @@ -676,6 +694,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio class Representation < Google::Apis::Core::JsonRepresentation; end @@ -766,12 +802,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1523,13 +1553,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :model_type, as: 'modelType' - end - end - class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1555,22 +1578,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1ConversationModel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :article_suggestion_model_metadata, as: 'articleSuggestionModelMetadata', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata::Representation - - property :create_time, as: 'createTime' - collection :datasets, as: 'datasets', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1InputDataset, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1InputDataset::Representation - - property :display_name, as: 'displayName' - property :name, as: 'name' - property :smart_reply_model_metadata, as: 'smartReplyModelMetadata', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata::Representation - - property :state, as: 'state' - end - end - class GoogleCloudDialogflowV2beta1EntityType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1609,13 +1616,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1InputDataset - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dataset, as: 'dataset' - end - end - class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1660,6 +1660,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :basic_card, as: 'basicCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCard::Representation + property :browse_carousel_card, as: 'browseCarouselCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard::Representation + property :card, as: 'card', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCard::Representation property :carousel_select, as: 'carouselSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect::Representation @@ -1670,6 +1672,8 @@ module Google property :list_select, as: 'listSelect', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageListSelect::Representation + property :media_content, as: 'mediaContent', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageMediaContent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageMediaContent::Representation + hash :payload, as: 'payload' property :platform, as: 'platform' property :quick_replies, as: 'quickReplies', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies::Representation @@ -1684,6 +1688,8 @@ module Google property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation + property :table_card, as: 'tableCard', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCard, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCard::Representation + property :telephony_play_audio, as: 'telephonyPlayAudio', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio::Representation property :telephony_synthesize_speech, as: 'telephonySynthesizeSpeech', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech::Representation @@ -1724,6 +1730,36 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_display_options, as: 'imageDisplayOptions' + collection :items, as: 'items', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :footer, as: 'footer' + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :open_uri_action, as: 'openUriAction', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :url_type_hint, as: 'urlTypeHint' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageCard # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1763,6 +1799,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header, as: 'header' + property :horizontal_alignment, as: 'horizontalAlignment' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1800,6 +1844,28 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :media_objects, as: 'mediaObjects', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject::Representation + + property :media_type, as: 'mediaType' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_url, as: 'contentUrl' + property :description, as: 'description' + property :icon, as: 'icon', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :large_image, as: 'largeImage', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :name, as: 'name' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1949,6 +2015,38 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton::Representation + + collection :column_properties, as: 'columnProperties', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageColumnProperties, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageColumnProperties::Representation + + property :image, as: 'image', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + collection :rows, as: 'rows', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCardRow, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCardRow::Representation + + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCardCell, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessageTableCardCell::Representation + + property :divider_after, as: 'dividerAfter' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2099,13 +2197,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :model_type, as: 'modelType' - end - end - class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index 35ec54b8e..f7196ad31 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -271,7 +271,7 @@ module Google # Optional. The maximum number of items to return in a single page. By # default 100 and at most 1000. # @param [String] page_token - # Optional. The next_page_token value returned from a previous list request. + # The next_page_token value returned from a previous list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index db9cc684b..88196147a 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20190909' + REVISION = '20190914' # 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/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 8fb424ad5..b0315f2c2 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -237,15 +237,13 @@ module Google # The exported agent. # Example for how to export an agent to a zip file via a command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_name>/agent:
+        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
         # export'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
+        # -H 'Accept: application/json'
         # --compressed \
-        # --data-binary '``' \
         # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
         # | base64 --decode > <agent zip file>
# Corresponds to the JSON property `agentContent` @@ -669,7 +667,7 @@ module Google end end - # Optional. Contains information about a button. + # Contains information about a button. class GoogleCloudDialogflowV2IntentMessageCardButton include Google::Apis::Core::Hashable @@ -1739,26 +1737,6 @@ module Google end end - # Metadata for article suggestion models. - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - include Google::Apis::Core::Hashable - - # Optional. Type of the article suggestion model. The available values are: - # * `article-suggestion-gbt-1` - (default) Article Suggestion Gbt model. - # Corresponds to the JSON property `modelType` - # @return [String] - attr_accessor :model_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @model_type = args[:model_type] if args.key?(:model_type) - end - end - # The request message for EntityTypes.BatchCreateEntities. class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest include Google::Apis::Core::Hashable @@ -2074,63 +2052,6 @@ module Google end end - # Represents a conversation model. - class GoogleCloudDialogflowV2beta1ConversationModel - include Google::Apis::Core::Hashable - - # Metadata for article suggestion models. - # Corresponds to the JSON property `articleSuggestionModelMetadata` - # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata] - attr_accessor :article_suggestion_model_metadata - - # Output only. Creation time of this model. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # Required. Datasets used to create model. - # Corresponds to the JSON property `datasets` - # @return [Array] - attr_accessor :datasets - - # Required. The display name of the model. At most 64 bytes long. - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Output only. ConversationModel resource name. Format: - # `projects//conversationModels/` - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Metadata for smart reply models. - # Corresponds to the JSON property `smartReplyModelMetadata` - # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata] - attr_accessor :smart_reply_model_metadata - - # Output only. State of the model. A model can only serve prediction requests - # after it gets deployed. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata) - @create_time = args[:create_time] if args.key?(:create_time) - @datasets = args[:datasets] if args.key?(:datasets) - @display_name = args[:display_name] if args.key?(:display_name) - @name = args[:name] if args.key?(:name) - @smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata) - @state = args[:state] if args.key?(:state) - end - end - # The request to detect user's intent. class GoogleCloudDialogflowV2beta1DetectIntentRequest include Google::Apis::Core::Hashable @@ -2494,15 +2415,13 @@ module Google # The exported agent. # Example for how to export an agent to a zip file via a command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/
-        # agent:export'\
+        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
+        # export'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
+        # -H 'Accept: application/json'
         # --compressed \
-        # --data-binary '``' \
         # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
         # | base64 --decode > <agent zip file>
# Corresponds to the JSON property `agentContent` @@ -2556,14 +2475,13 @@ module Google # The agent to import. # Example for how to import an agent via the command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/
-        # agent:import\
+        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
+        # import'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
+        # -H 'Authorization: Bearer'\
+        # $(gcloud auth application-default print-access-token) \
         # -H 'Accept: application/json' \
         # -H 'Content-Type: application/json' \
-        # --compressed \
         # --data-binary "`
         # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
         # `"
@@ -2698,29 +2616,6 @@ module Google end end - # InputDataset used to create model or do evaluation. - class GoogleCloudDialogflowV2beta1InputDataset - include Google::Apis::Core::Hashable - - # Required. ConversationDataset resource name. Format: - # `projects//conversationDatasets/` - # or - # `projects//conversationDatasets//annotatedConversationDatasets/` - # Corresponds to the JSON property `dataset` - # @return [String] - attr_accessor :dataset - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @dataset = args[:dataset] if args.key?(:dataset) - end - end - # Represents an intent. # Intents convert a number of user expressions or patterns into an action. An # action is an extraction of a user command or sentence semantics. @@ -2959,6 +2854,12 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCard] attr_accessor :basic_card + # Browse Carousel Card for Actions on Google. + # https://developers.google.com/actions/assistant/responses#browsing_carousel + # Corresponds to the JSON property `browseCarouselCard` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard] + attr_accessor :browse_carousel_card + # The card response message. # Corresponds to the JSON property `card` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCard] @@ -2985,6 +2886,11 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect] attr_accessor :list_select + # The media content card for Actions on Google. + # Corresponds to the JSON property `mediaContent` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageMediaContent] + attr_accessor :media_content + # Returns a response containing a custom, platform-specific payload. # See the Intent.Message.Platform type for a description of the # structure that may be required for your platform. @@ -3044,6 +2950,11 @@ module Google # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions] attr_accessor :suggestions + # Table card for Actions on Google. + # Corresponds to the JSON property `tableCard` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCard] + attr_accessor :table_card + # Plays audio from a file in Telephony Gateway. # Corresponds to the JSON property `telephonyPlayAudio` # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio] @@ -3075,11 +2986,13 @@ module Google # Update properties of this object def update!(**args) @basic_card = args[:basic_card] if args.key?(:basic_card) + @browse_carousel_card = args[:browse_carousel_card] if args.key?(:browse_carousel_card) @card = args[:card] if args.key?(:card) @carousel_select = args[:carousel_select] if args.key?(:carousel_select) @image = args[:image] if args.key?(:image) @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion) @list_select = args[:list_select] if args.key?(:list_select) + @media_content = args[:media_content] if args.key?(:media_content) @payload = args[:payload] if args.key?(:payload) @platform = args[:platform] if args.key?(:platform) @quick_replies = args[:quick_replies] if args.key?(:quick_replies) @@ -3088,6 +3001,7 @@ module Google @rbm_text = args[:rbm_text] if args.key?(:rbm_text) @simple_responses = args[:simple_responses] if args.key?(:simple_responses) @suggestions = args[:suggestions] if args.key?(:suggestions) + @table_card = args[:table_card] if args.key?(:table_card) @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio) @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech) @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call) @@ -3182,6 +3096,105 @@ module Google end end + # Browse Carousel Card for Actions on Google. + # https://developers.google.com/actions/assistant/responses#browsing_carousel + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + include Google::Apis::Core::Hashable + + # Optional. Settings for displaying the image. Applies to every image in + # items. + # Corresponds to the JSON property `imageDisplayOptions` + # @return [String] + attr_accessor :image_display_options + + # Required. List of items in the Browse Carousel Card. Minimum of two + # items, maximum of ten. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @image_display_options = args[:image_display_options] if args.key?(:image_display_options) + @items = args[:items] if args.key?(:items) + end + end + + # Browsing carousel tile + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + include Google::Apis::Core::Hashable + + # Optional. Description of the carousel item. Maximum of four lines of + # text. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Optional. Text that appears at the bottom of the Browse Carousel + # Card. Maximum of one line of text. + # Corresponds to the JSON property `footer` + # @return [String] + attr_accessor :footer + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Actions on Google action to open a given url. + # Corresponds to the JSON property `openUriAction` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction] + attr_accessor :open_uri_action + + # Required. Title of the carousel item. Maximum of two lines of text. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @footer = args[:footer] if args.key?(:footer) + @image = args[:image] if args.key?(:image) + @open_uri_action = args[:open_uri_action] if args.key?(:open_uri_action) + @title = args[:title] if args.key?(:title) + end + end + + # Actions on Google action to open a given url. + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + include Google::Apis::Core::Hashable + + # Required. URL + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + # Optional. Specifies the type of viewer that is used when opening + # the URL. Defaults to opening via web browser. + # Corresponds to the JSON property `urlTypeHint` + # @return [String] + attr_accessor :url_type_hint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @url = args[:url] if args.key?(:url) + @url_type_hint = args[:url_type_hint] if args.key?(:url_type_hint) + end + end + # The card response message. class GoogleCloudDialogflowV2beta1IntentMessageCard include Google::Apis::Core::Hashable @@ -3302,6 +3315,31 @@ module Google end end + # Column properties for TableCard. + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + include Google::Apis::Core::Hashable + + # Required. Column heading. + # Corresponds to the JSON property `header` + # @return [String] + attr_accessor :header + + # Optional. Defines text alignment for all cells in this column. + # Corresponds to the JSON property `horizontalAlignment` + # @return [String] + attr_accessor :horizontal_alignment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @header = args[:header] if args.key?(:header) + @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment) + end + end + # The image response message. class GoogleCloudDialogflowV2beta1IntentMessageImage include Google::Apis::Core::Hashable @@ -3418,6 +3456,74 @@ module Google end end + # The media content card for Actions on Google. + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + include Google::Apis::Core::Hashable + + # Required. List of media objects. + # Corresponds to the JSON property `mediaObjects` + # @return [Array] + attr_accessor :media_objects + + # Optional. What type of media is the content (ie "audio"). + # Corresponds to the JSON property `mediaType` + # @return [String] + attr_accessor :media_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @media_objects = args[:media_objects] if args.key?(:media_objects) + @media_type = args[:media_type] if args.key?(:media_type) + end + end + + # Response media object for media content card. + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + include Google::Apis::Core::Hashable + + # Required. Url where the media is stored. + # Corresponds to the JSON property `contentUrl` + # @return [String] + attr_accessor :content_url + + # Optional. Description of media card. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The image response message. + # Corresponds to the JSON property `icon` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :icon + + # The image response message. + # Corresponds to the JSON property `largeImage` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :large_image + + # Required. Name of media card. + # 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) + @content_url = args[:content_url] if args.key?(:content_url) + @description = args[:description] if args.key?(:description) + @icon = args[:icon] if args.key?(:icon) + @large_image = args[:large_image] if args.key?(:large_image) + @name = args[:name] if args.key?(:name) + end + end + # The quick replies response message. class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies include Google::Apis::Core::Hashable @@ -3936,6 +4042,100 @@ module Google end end + # Table card for Actions on Google. + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + include Google::Apis::Core::Hashable + + # Optional. List of buttons for the card. + # Corresponds to the JSON property `buttons` + # @return [Array] + attr_accessor :buttons + + # Optional. Display properties for the columns in this table. + # Corresponds to the JSON property `columnProperties` + # @return [Array] + attr_accessor :column_properties + + # The image response message. + # Corresponds to the JSON property `image` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage] + attr_accessor :image + + # Optional. Rows in this table of data. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # Optional. Subtitle to the title. + # Corresponds to the JSON property `subtitle` + # @return [String] + attr_accessor :subtitle + + # Required. Title of the card. + # Corresponds to the JSON property `title` + # @return [String] + attr_accessor :title + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buttons = args[:buttons] if args.key?(:buttons) + @column_properties = args[:column_properties] if args.key?(:column_properties) + @image = args[:image] if args.key?(:image) + @rows = args[:rows] if args.key?(:rows) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) + end + end + + # Cell of TableCardRow. + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + include Google::Apis::Core::Hashable + + # Required. Text in this cell. + # 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) + @text = args[:text] if args.key?(:text) + end + end + + # Row of TableCard. + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + include Google::Apis::Core::Hashable + + # Optional. List of cells that make up this row. + # Corresponds to the JSON property `cells` + # @return [Array] + attr_accessor :cells + + # Optional. Whether to add a visual divider after this row. + # Corresponds to the JSON property `dividerAfter` + # @return [Boolean] + attr_accessor :divider_after + alias_method :divider_after?, :divider_after + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cells = args[:cells] if args.key?(:cells) + @divider_after = args[:divider_after] if args.key?(:divider_after) + end + end + # Plays audio from a file in Telephony Gateway. class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio include Google::Apis::Core::Hashable @@ -4888,14 +5088,13 @@ module Google # The agent to restore. # Example for how to restore an agent via the command line: #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_name>/
-        # agent:restore\
+        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
+        # restore'\
         # -X POST \
-        # -H 'Authorization: Bearer '$(gcloud auth application-default
-        # print-access-token) \
+        # -H 'Authorization: Bearer' \
+        # $(gcloud auth application-default print-access-token) \
         # -H 'Accept: application/json' \
         # -H 'Content-Type: application/json' \
-        # --compressed \
         # --data-binary "`
         # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
         # `"
@@ -5064,27 +5263,6 @@ module Google end end - # Metadata for smart reply models. - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - include Google::Apis::Core::Hashable - - # Optional. Type of the article suggestion model. The available values are: - # * `smart-reply-dual-encoder-model-1` - (default) Smart Reply Dual Encoder - # model. - # Corresponds to the JSON property `modelType` - # @return [String] - attr_accessor :model_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @model_type = args[:model_type] if args.key?(:model_type) - end - end - # Hints for the speech recognizer to help with recognition in a specific # conversation state. class GoogleCloudDialogflowV2beta1SpeechContext @@ -5225,6 +5403,68 @@ module Google end end + # Represents a single validation error. + class GoogleCloudDialogflowV2beta1ValidationError + include Google::Apis::Core::Hashable + + # The names of the entries that the error is associated with. + # Format: + # - "projects//agent", if the error is associated with the entire + # agent. + # - "projects//agent/intents/", if the error is + # associated with certain intents. + # - "projects//agent/intents//trainingPhrases/", if the + # error is associated with certain intent training phrases. + # - "projects//agent/intents//parameters/", if the error is associated with certain intent parameters. + # - "projects//agent/entities/", if the error is + # associated with certain entities. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # The detailed error messsage. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # The severity of the error. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entries = args[:entries] if args.key?(:entries) + @error_message = args[:error_message] if args.key?(:error_message) + @severity = args[:severity] if args.key?(:severity) + end + end + + # Represents the output of agent validation. + class GoogleCloudDialogflowV2beta1ValidationResult + include Google::Apis::Core::Hashable + + # Contains all validation errors. + # Corresponds to the JSON property `validationErrors` + # @return [Array] + attr_accessor :validation_errors + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @validation_errors = args[:validation_errors] if args.key?(:validation_errors) + end + end + # Description of which voice to use for speech synthesis. class GoogleCloudDialogflowV2beta1VoiceSelectionParams include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index ccd23d27a..209ebfa7e 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -256,12 +256,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -322,12 +316,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1ConversationModel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1DetectIntentRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -400,12 +388,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1InputDataset - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1Intent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -448,6 +430,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageCard class Representation < Google::Apis::Core::JsonRepresentation; end @@ -472,6 +472,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageImage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -496,6 +502,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies class Representation < Google::Apis::Core::JsonRepresentation; end @@ -598,6 +616,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio class Representation < Google::Apis::Core::JsonRepresentation; end @@ -778,12 +814,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudDialogflowV2beta1SpeechContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -808,6 +838,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1ValidationError + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1ValidationResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1287,13 +1329,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :model_type, as: 'modelType' - end - end - class GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1384,22 +1419,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1ConversationModel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :article_suggestion_model_metadata, as: 'articleSuggestionModelMetadata', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleSuggestionModelMetadata::Representation - - property :create_time, as: 'createTime' - collection :datasets, as: 'datasets', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputDataset, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputDataset::Representation - - property :display_name, as: 'displayName' - property :name, as: 'name' - property :smart_reply_model_metadata, as: 'smartReplyModelMetadata', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartReplyModelMetadata::Representation - - property :state, as: 'state' - end - end - class GoogleCloudDialogflowV2beta1DetectIntentRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1526,13 +1545,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1InputDataset - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :dataset, as: 'dataset' - end - end - class GoogleCloudDialogflowV2beta1Intent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1585,6 +1597,8 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :basic_card, as: 'basicCard', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCard, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCard::Representation + property :browse_carousel_card, as: 'browseCarouselCard', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard::Representation + property :card, as: 'card', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCard, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCard::Representation property :carousel_select, as: 'carouselSelect', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect::Representation @@ -1595,6 +1609,8 @@ module Google property :list_select, as: 'listSelect', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect::Representation + property :media_content, as: 'mediaContent', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageMediaContent, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageMediaContent::Representation + hash :payload, as: 'payload' property :platform, as: 'platform' property :quick_replies, as: 'quickReplies', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies::Representation @@ -1609,6 +1625,8 @@ module Google property :suggestions, as: 'suggestions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions::Representation + property :table_card, as: 'tableCard', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCard, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCard::Representation + property :telephony_play_audio, as: 'telephonyPlayAudio', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio::Representation property :telephony_synthesize_speech, as: 'telephonySynthesizeSpeech', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech::Representation @@ -1649,6 +1667,36 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :image_display_options, as: 'imageDisplayOptions' + collection :items, as: 'items', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem::Representation + + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :footer, as: 'footer' + property :image, as: 'image', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :open_uri_action, as: 'openUriAction', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction::Representation + + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :url, as: 'url' + property :url_type_hint, as: 'urlTypeHint' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageCard # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1688,6 +1736,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageColumnProperties + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :header, as: 'header' + property :horizontal_alignment, as: 'horizontalAlignment' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1725,6 +1781,28 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageMediaContent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :media_objects, as: 'mediaObjects', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject::Representation + + property :media_type, as: 'mediaType' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_url, as: 'contentUrl' + property :description, as: 'description' + property :icon, as: 'icon', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :large_image, as: 'largeImage', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + property :name, as: 'name' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageQuickReplies # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1874,6 +1952,38 @@ module Google end end + class GoogleCloudDialogflowV2beta1IntentMessageTableCard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :buttons, as: 'buttons', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton::Representation + + collection :column_properties, as: 'columnProperties', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageColumnProperties, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageColumnProperties::Representation + + property :image, as: 'image', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage::Representation + + collection :rows, as: 'rows', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCardRow, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCardRow::Representation + + property :subtitle, as: 'subtitle' + property :title, as: 'title' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardCell + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :text, as: 'text' + end + end + + class GoogleCloudDialogflowV2beta1IntentMessageTableCardRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :cells, as: 'cells', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCardCell, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTableCardCell::Representation + + property :divider_after, as: 'dividerAfter' + end + end + class GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2168,13 +2278,6 @@ module Google end end - class GoogleCloudDialogflowV2beta1SmartReplyModelMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :model_type, as: 'modelType' - end - end - class GoogleCloudDialogflowV2beta1SpeechContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2209,6 +2312,23 @@ module Google end end + class GoogleCloudDialogflowV2beta1ValidationError + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries' + property :error_message, as: 'errorMessage' + property :severity, as: 'severity' + end + end + + class GoogleCloudDialogflowV2beta1ValidationResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :validation_errors, as: 'validationErrors', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationError, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationError::Representation + + end + end + class GoogleCloudDialogflowV2beta1VoiceSelectionParams # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 0cca3ba7a..31d2053e0 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -182,6 +182,45 @@ module Google execute_or_queue_command(command, &block) end + # Gets agent validation result. Agent validation is performed during + # training time and is updated automatically when training is completed. + # @param [String] parent + # Required. The project that the agent is associated with. + # Format: `projects/`. + # @param [String] language_code + # Optional. The language for which you want a validation result. If not + # specified, the agent's default language is used. [Many + # languages](https://cloud.google.com/dialogflow/docs/reference/language) + # are supported. Note: languages must be enabled in the agent before they can + # be used. + # @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationResult] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationResult] + # + # @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_agent_validation_result(parent, language_code: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+parent}/agent/validationResult', options) + command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationResult::Representation + command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ValidationResult + command.params['parent'] = parent unless parent.nil? + command.query['languageCode'] = language_code unless language_code.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Imports the specified agent from a ZIP file. # Uploads new intents and entity types without deleting the existing ones. # Intents and entity types with the same name are replaced with the new diff --git a/generated/google/apis/healthcare_v1beta1.rb b/generated/google/apis/healthcare_v1beta1.rb index 989d91a8b..22f6bc858 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 = '20190901' + REVISION = '20190918' # 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 21e75c855..d9afb0215 100644 --- a/generated/google/apis/healthcare_v1beta1/classes.rb +++ b/generated/google/apis/healthcare_v1beta1/classes.rb @@ -266,7 +266,7 @@ module Google # The default timezone used by this dataset. Must be a either a valid IANA # time zone name such as "America/New_York" or empty, which defaults to UTC. - # This is used for parsing times in resources (e.g., HL7 messages) where no + # This is used for parsing times in resources, such as HL7 messages, where no # explicit timezone is specified. # Corresponds to the JSON property `timeZone` # @return [String] @@ -318,12 +318,12 @@ module Google # @return [Google::Apis::HealthcareV1beta1::DicomConfig] attr_accessor :dicom - # Specifies how de-identification of a FHIR store should be handled. + # Specifies how to handle de-identification of a FHIR store. # Corresponds to the JSON property `fhir` # @return [Google::Apis::HealthcareV1beta1::FhirConfig] attr_accessor :fhir - # Specifies how de-identification of image pixel should be handled. + # Specifies how to handle de-identification of image pixels. # Corresponds to the JSON property `image` # @return [Google::Apis::HealthcareV1beta1::ImageConfig] attr_accessor :image @@ -359,8 +359,7 @@ module Google # @return [Google::Apis::HealthcareV1beta1::DeidentifyConfig] attr_accessor :config - # The name of the dataset resource to create and write the redacted data to - # (e.g., + # The name of the dataset resource to create and write the redacted data to. # * The destination dataset must not exist. # * The destination dataset must be in the same project as the source # dataset. De-identifying data across multiple projects is not supported. @@ -383,12 +382,12 @@ module Google class DeidentifyErrorDetails include Google::Apis::Core::Hashable - # Number of resources failed to process. + # Number of resources that failed to process. # Corresponds to the JSON property `failureResourceCount` # @return [Fixnum] attr_accessor :failure_resource_count - # Number of stores failed to process. + # Number of stores that failed to process. # Corresponds to the JSON property `failureStoreCount` # @return [Fixnum] attr_accessor :failure_store_count @@ -420,6 +419,14 @@ module Google class DeidentifySummary include Google::Apis::Core::Hashable + # Number of resources that failed to process. + # The failures might be caused by: + # * Invalid user input data + # * Transient errors that could be skipped + # Corresponds to the JSON property `failureResourceCount` + # @return [Fixnum] + attr_accessor :failure_resource_count + # Number of resources successfully processed. # Corresponds to the JSON property `successResourceCount` # @return [Fixnum] @@ -436,6 +443,7 @@ module Google # 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) @success_store_count = args[:success_store_count] if args.key?(:success_store_count) end @@ -511,7 +519,7 @@ module Google # @return [String] attr_accessor :name - # Specifies where notifications should be sent upon changes to a data store. + # Specifies where to send notifications upon changes to a data store. # Corresponds to the JSON property `notificationConfig` # @return [Google::Apis::HealthcareV1beta1::NotificationConfig] attr_accessor :notification_config @@ -580,20 +588,20 @@ module Google end # Exports data from the specified DICOM store. - # If a given resource (e.g., a DICOM object with the same SOPInstance UID) + # If a given resource, such as a DICOM object with the same SOPInstance UID, # already exists in the output, it is overwritten with the version # in the source dataset. - # Exported DICOM data will persist when the DICOM store from which it was + # Exported DICOM data persists when the DICOM store from which it was # exported is deleted. class ExportDicomDataRequest include Google::Apis::Core::Hashable - # The BigQuery table where the output should be written. + # The BigQuery table where the server writes the output. # Corresponds to the JSON property `bigqueryDestination` # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomBigQueryDestination] attr_accessor :bigquery_destination - # The Cloud Storage location where the output should be written, and the export + # The Cloud Storage location where the server writes the output and the export # configuration. # Corresponds to the JSON property `gcsDestination` # @return [Google::Apis::HealthcareV1beta1::GoogleCloudHealthcareV1beta1DicomGcsDestination] @@ -682,12 +690,12 @@ module Google end end - # Specifies how de-identification of a FHIR store should be handled. + # Specifies how to handle de-identification of a FHIR store. class FhirConfig include Google::Apis::Core::Hashable # Specifies FHIR paths to match and how to transform them. Any field that - # is not matched by a FieldMetadata will be passed through to the output + # is not matched by a FieldMetadata is passed through to the output # dataset unmodified. All extensions are removed in the output. # Corresponds to the JSON property `fieldMetadataList` # @return [Array] @@ -709,12 +717,12 @@ module Google # Whether to disable referential integrity in this FHIR store. This field is # immutable after FHIR store creation. - # The default value is false, meaning that the API will enforce referential - # integrity and fail the requests that will result in inconsistent state in + # The default value is false, meaning that the API enforces referential + # integrity and fails the requests that result in inconsistent state in # the FHIR store. - # When this field is set to true, the API will skip referential integrity - # check. Consequently, operations that rely on references, such as - # GetPatientEverything, will not return all the results if broken references + # When this field is set to true, the API skips referential integrity + # checks. Consequently, operations that rely on references, such as + # GetPatientEverything, do not return all the results if broken references # exist. # Corresponds to the JSON property `disableReferentialIntegrity` # @return [Boolean] @@ -723,35 +731,25 @@ module Google # Whether to disable resource versioning for this FHIR store. This field can # not be changed after the creation of FHIR store. - # If set to false, which is the default behavior, all write operations will + # If set to false, which is the default behavior, all write operations # cause historical versions to be recorded automatically. The historical # versions can be fetched through the history APIs, but cannot be updated. - # If set to true, no historical versions will be kept. The server will send - # back errors for attempts to read the historical versions. + # If set to true, no historical versions are kept. The server sends + # errors for attempts to read the historical versions. # Corresponds to the JSON property `disableResourceVersioning` # @return [Boolean] attr_accessor :disable_resource_versioning alias_method :disable_resource_versioning?, :disable_resource_versioning - # Whether to allow the bulk import API to accept history bundles and directly - # insert historical resource versions into the FHIR store. Importing resource - # histories creates resource interactions that appear to have occurred in the - # past, which clients may not want to allow. If set to false, history bundles - # within an import will fail with an error. - # Corresponds to the JSON property `enableHistoryImport` - # @return [Boolean] - attr_accessor :enable_history_import - alias_method :enable_history_import?, :enable_history_import - # Whether this FHIR store has the [updateCreate # capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html# # CapabilityStatement.rest.resource.updateCreate). # This determines if the client can use an Update operation to create a new # resource with a client-specified ID. If false, all IDs are server-assigned - # through the Create operation and attempts to Update a non-existent resource - # will return errors. Please treat the audit logs with appropriate levels of + # through the Create operation and attempts to update a non-existent resource + # return errors. Please treat the audit logs with appropriate levels of # care if client-specified resource IDs contain sensitive data such as - # patient identifiers, those IDs will be part of the FHIR resource path + # patient identifiers, those IDs are part of the FHIR resource path # recorded in Cloud audit logs and Cloud Pub/Sub notifications. # Corresponds to the JSON property `enableUpdateCreate` # @return [Boolean] @@ -777,7 +775,7 @@ module Google # @return [String] attr_accessor :name - # Specifies where notifications should be sent upon changes to a data store. + # Specifies where to send notifications upon changes to a data store. # Corresponds to the JSON property `notificationConfig` # @return [Google::Apis::HealthcareV1beta1::NotificationConfig] attr_accessor :notification_config @@ -790,7 +788,6 @@ module Google def update!(**args) @disable_referential_integrity = args[:disable_referential_integrity] if args.key?(:disable_referential_integrity) @disable_resource_versioning = args[:disable_resource_versioning] if args.key?(:disable_resource_versioning) - @enable_history_import = args[:enable_history_import] if args.key?(:enable_history_import) @enable_update_create = args[:enable_update_create] if args.key?(:enable_update_create) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @@ -812,8 +809,8 @@ module Google # period-separated list where each component is either a field name or # FHIR type name, for example: Patient, HumanName. # For "choice" types (those defined in the FHIR spec with the form: - # field[x]) we use two separate components. e.g. "deceasedAge.unit" is - # matched by "Deceased.Age.unit". + # field[x]) we use two separate components. For example, + # "deceasedAge.unit" is matched by "Deceased.Age.unit". # Supported types are: AdministrativeGenderCode, Code, Date, DateTime, # Decimal, HumanName, Id, LanguageCode, Markdown, MimeTypeCode, Oid, # String, Uri, Uuid, Xhtml. @@ -832,12 +829,12 @@ module Google end end - # The BigQuery table where the output should be written. + # The BigQuery table where the server writes the output. class GoogleCloudHealthcareV1beta1DicomBigQueryDestination include Google::Apis::Core::Hashable # If the destination table already exists and this flag is `TRUE`, the table - # will be overwritten by the contents of the DICOM store. If the flag is not + # is overwritten by the contents of the DICOM store. If the flag is not # set and the destination table already exists, the export call returns an # error. # Corresponds to the JSON property `force` @@ -862,31 +859,31 @@ module Google end end - # The Cloud Storage location where the output should be written, and the export + # The Cloud Storage location where the server writes the output and the export # configuration. class GoogleCloudHealthcareV1beta1DicomGcsDestination include Google::Apis::Core::Hashable # MIME types supported by DICOM spec. - # Each file will be written in the following format: + # Each file is written in the following format: # `.../`study_id`/`series_id`/`instance_id`[/`frame_number`].`extension`` - # The frame_number component will exist only for multi-frame instances. + # The frame_number component exists only for multi-frame instances. # Refer to the DICOM conformance statement for permissible MIME types: # https://cloud.google.com/healthcare/docs/dicom#wado-rs - # The following extensions will be used for output files: + # The following extensions are used for output files: # application/dicom -> .dcm # image/jpeg -> .jpg # image/png -> .png - # If unspecified, the instances will be exported in their original + # If unspecified, the instances are exported in their original # DICOM format. # Corresponds to the JSON property `mimeType` # @return [String] attr_accessor :mime_type # The Cloud Storage destination to export to. - # URI for a Cloud Storage directory where result files should be written (in - # the format `gs://`bucket-id`/`path/to/destination/dir``). If there is no - # trailing slash, the service will append one when composing the object path. + # URI for a Cloud Storage directory where the server writes the result files, + # in the format `gs://`bucket-id`/`path/to/destination/dir``). If there is no + # trailing slash, the service appends one when composing the object path. # The user is responsible for creating the Cloud Storage bucket referenced in # `uri_prefix`. # Corresponds to the JSON property `uriPrefix` @@ -1205,7 +1202,7 @@ module Google # @return [String] attr_accessor :name - # Specifies where notifications should be sent upon changes to a data store. + # Specifies where to send notifications upon changes to a data store. # Corresponds to the JSON property `notificationConfig` # @return [Google::Apis::HealthcareV1beta1::NotificationConfig] attr_accessor :notification_config @@ -1290,7 +1287,7 @@ module Google end end - # Specifies how de-identification of image pixel should be handled. + # Specifies how to handle de-identification of image pixels. class ImageConfig include Google::Apis::Core::Hashable @@ -1314,8 +1311,8 @@ module Google include Google::Apis::Core::Hashable # Deprecated. Use only for debugging purposes. - # Contains sample errors encountered in imports of individual resources - # (for example, a Cloud Storage object). + # Contains sample errors encountered in imports of individual resources. + # For example, a Cloud Storage object. # Corresponds to the JSON property `sampleErrors` # @return [Array] attr_accessor :sample_errors @@ -1332,8 +1329,8 @@ module Google # Imports data into the specified DICOM store. # Returns an error if any of the files to import are not DICOM files. This - # API will accept duplicate DICOM instances, by simply ignoring the newly - # pushed instance (it will not overwrite). + # API accepts duplicate DICOM instances by ignoring the newly-pushed instance. + # It does not overwrite. class ImportDicomDataRequest include Google::Apis::Core::Hashable @@ -1408,8 +1405,8 @@ module Google # @return [Array] attr_accessor :info_types - # Define how to redact sensitive values. Default behaviour is erase, - # e.g. "My name is Jake." becomes "My name is ." + # Define how to redact sensitive values. Default behaviour is erase. + # For example, "My name is Jake." becomes "My name is ." # Corresponds to the JSON property `redactConfig` # @return [Google::Apis::HealthcareV1beta1::RedactConfig] attr_accessor :redact_config @@ -1799,13 +1796,13 @@ module Google end end - # Specifies where notifications should be sent upon changes to a data store. + # Specifies where to send notifications upon changes to a data store. class NotificationConfig include Google::Apis::Core::Hashable # The [Cloud Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that # notifications of changes are published on. Supplied by the client. - # PubsubMessage.Data will contain the resource name. + # PubsubMessage.Data contains the resource name. # PubsubMessage.MessageId is the ID of this message. It is guaranteed to be # unique within the topic. # PubsubMessage.PublishTime is the time at which the message was published. @@ -1814,7 +1811,7 @@ module Google # names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped # to a project. cloud-healthcare@system.gserviceaccount.com must have # publisher permissions on the given Cloud Pub/Sub topic. Not having adequate - # permissions will cause the calls that send notifications to fail. + # permissions causes the calls that send notifications to fail. # Corresponds to the JSON property `pubsubTopic` # @return [String] attr_accessor :pubsub_topic @@ -1961,8 +1958,8 @@ module Google attr_accessor :allow_null_header alias_method :allow_null_header?, :allow_null_header - # Byte(s) to be used as the segment terminator. If this is unset, '\r' will - # be used as segment terminator. + # Byte(s) to use as the segment terminator. If this is unset, '\r' is + # used as segment terminator. # Corresponds to the JSON property `segmentTerminator` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1983,7 +1980,7 @@ module Google class PatientId include Google::Apis::Core::Hashable - # ID type, e.g. MRN or NHS. + # ID type. For example, MRN or NHS. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -2069,7 +2066,12 @@ module Google # @return [String] attr_accessor :etag - # Deprecated. + # Specifies the format of the policy. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Policies with any conditional bindings must specify version 3. Policies + # without any conditional bindings may specify any valid value or leave the + # field unset. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2118,8 +2120,8 @@ module Google end end - # Define how to redact sensitive values. Default behaviour is erase, - # e.g. "My name is Jake." becomes "My name is ." + # Define how to redact sensitive values. Default behaviour is erase. + # For example, "My name is Jake." becomes "My name is ." class RedactConfig include Google::Apis::Core::Hashable @@ -2209,22 +2211,23 @@ module Google # identify different instances of a repeated field. # Regex for key: (\d+)(\[\d+\])?(.\d+)?(.\d+)? # Examples of (key, value) pairs: - # - (0.1, "foo"): Component 1 of Field 0 has the value "foo". - # - (1.1.2, "bar"): Sub-component 2 of Component 1 of field 1 has the value - # "bar". - # - (1[2].1, "baz"): Component 1 of Instance 2 of Field 1, which is repeated, - # has the value "baz". + # * (0.1, "hemoglobin") denotes that the first component of Field 0 has the + # value "hemoglobin". + # * (1.1.2, "CBC") denotes that the second sub-component of the first + # component of Field 1 has the value "CBC". + # * (1[0].1, "HbA1c") denotes that the first component of the + # first Instance of Field 1, which is repeated, has the value "HbA1c". # Corresponds to the JSON property `fields` # @return [Hash] attr_accessor :fields - # A string that indicates the type of segment, e.g., EVN, PID. + # A string that indicates the type of segment. For example, EVN or PID. # Corresponds to the JSON property `segmentId` # @return [String] attr_accessor :segment_id - # Set ID for segments that can be in a set. This can be empty if it is - # missing or it is not applicable. + # Set ID for segments that can be in a set. This can be empty if it's + # missing or isn't applicable. # Corresponds to the JSON property `setId` # @return [String] attr_accessor :set_id diff --git a/generated/google/apis/healthcare_v1beta1/representations.rb b/generated/google/apis/healthcare_v1beta1/representations.rb index 54ccd33ba..e321ea5a8 100644 --- a/generated/google/apis/healthcare_v1beta1/representations.rb +++ b/generated/google/apis/healthcare_v1beta1/representations.rb @@ -536,6 +536,7 @@ module Google class DeidentifySummary # @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' property :success_store_count, :numeric_string => true, as: 'successStoreCount' end @@ -621,7 +622,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation property :disable_referential_integrity, as: 'disableReferentialIntegrity' property :disable_resource_versioning, as: 'disableResourceVersioning' - property :enable_history_import, as: 'enableHistoryImport' property :enable_update_create, as: 'enableUpdateCreate' hash :labels, as: 'labels' property :name, as: 'name' diff --git a/generated/google/apis/healthcare_v1beta1/service.rb b/generated/google/apis/healthcare_v1beta1/service.rb index b24982c59..a1e1b060d 100644 --- a/generated/google/apis/healthcare_v1beta1/service.rb +++ b/generated/google/apis/healthcare_v1beta1/service.rb @@ -124,8 +124,8 @@ module Google # A Google Cloud Platform project can contain up to 500 datasets across all # regions. # @param [String] parent - # The name of the project in which the dataset should be created (e.g., - # `projects/`project_id`/locations/`location_id``). + # The name of the project where the server creates the dataset. For + # example, `projects/`project_id`/locations/`location_id``. # @param [Google::Apis::HealthcareV1beta1::Dataset] dataset_object # @param [String] dataset_id # The ID of the dataset that is being created. @@ -169,11 +169,11 @@ module Google # If errors occur, # details field type is # DeidentifyErrorDetails. - # Errors are also logged to Stackdriver - # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). + # Errors are also logged to Stackdriver Logging. For more information, + # see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging). # @param [String] source_dataset - # Source dataset resource name. (e.g., - # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``). + # Source dataset resource name. For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # @param [Google::Apis::HealthcareV1beta1::DeidentifyDatasetRequest] deidentify_dataset_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -208,8 +208,8 @@ module Google # Deleting a dataset does not affect the sources from which the dataset was # imported (if any). # @param [String] name - # The name of the dataset to delete (e.g., - # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``). + # The name of the dataset to delete. For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -239,8 +239,8 @@ module Google # Gets any metadata associated with a dataset. # @param [String] name - # The name of the dataset to read (e.g., - # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``). + # The name of the dataset to read. For example, + # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -276,9 +276,11 @@ module Google # 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. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -309,8 +311,8 @@ module Google # Lists the health datasets in the current project. # @param [String] parent - # The name of the project whose datasets should be listed (e.g., - # `projects/`project_id`/locations/`location_id``). + # The name of the project whose datasets should be listed. + # For example, `projects/`project_id`/locations/`location_id``. # @param [Fixnum] page_size # The maximum number of items to return. Capped to 100 if not specified. # May not be larger than 1000. @@ -532,9 +534,10 @@ module Google # The metadata field type is # OperationMetadata. # @param [String] name - # The DICOM store resource name from which the data should be exported (e.g., + # The DICOM store resource name from which to export the data. For + # example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # dicomStores/`dicom_store_id``). + # dicomStores/`dicom_store_id``. # @param [Google::Apis::HealthcareV1beta1::ExportDicomDataRequest] export_dicom_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -603,9 +606,11 @@ module Google # 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. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -635,16 +640,18 @@ module Google end # Imports data into the DICOM store by copying it from the specified source. - # For errors, the Operation will be populated with error details (in the form - # of ImportDicomDataErrorDetails in error.details), which will hold + # For errors, the Operation is populated with error details (in the form + # of ImportDicomDataErrorDetails in error.details), which hold # finer-grained error information. Errors are also logged to Stackdriver - # (see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging)). + # Logging. For more information, + # see [Viewing logs](/healthcare/docs/how-tos/stackdriver-logging). # The metadata field type is # OperationMetadata. # @param [String] name - # The name of the DICOM store resource into which the data is imported (e.g., + # The name of the DICOM store resource into which the data is imported. + # For example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ - # dicomStores/`dicom_store_id``). + # dicomStores/`dicom_store_id``. # @param [Google::Apis::HealthcareV1beta1::ImportDicomDataRequest] import_dicom_data_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -681,7 +688,7 @@ module Google # @param [String] filter # Restricts stores returned to those matching a filter. Syntax: # https://cloud.google.com/appengine/docs/standard/python/search/query_strings - # Only filtering on labels is supported, for example `labels.key=value`. + # Only filtering on labels is supported. For example, `labels.key=value`. # @param [Fixnum] page_size # Limit on the number of DICOM stores to return in a single response. # If zero the default page size of 100 is used. @@ -761,11 +768,11 @@ module Google # SearchForInstances returns a list of matching instances. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # The path of the SearchForInstancesRequest DICOMweb request (for example, # `instances` or `series/`series_uid`/instances` or # `studies/`study_uid`/instances`). # @param [String] fields @@ -799,11 +806,11 @@ module Google # SearchForSeries returns a list of matching series. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # The path of the SearchForSeries DICOMweb request(for example, `series` or # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -836,11 +843,11 @@ module Google # SearchForStudies returns a list of matching studies. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForStudies DICOMweb request (e.g., `studies`). + # The path of the SearchForStudies DICOMweb request (for example, `studies`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -908,12 +915,12 @@ module Google # identifiers (SUID). See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the StoreInstances DICOMweb request (e.g., - # `studies/[`study_id`]`). Note that the `study_uid` is optional. + # The path of the StoreInstances DICOMweb request (for example, + # `studies/[`study_uid`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -987,11 +994,11 @@ module Google # DeleteStudy deletes all instances within the given study. Delete requests # are equivalent to the GET requests specified in the WADO-RS standard. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DeleteStudy request (e.g., `studies/`study_id``). + # The path of the DeleteStudy request (for example, `studies/`study_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1024,12 +1031,12 @@ module Google # presented as metadata with the bulk data removed. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveStudyMetadata DICOMweb request (e.g., - # `studies/`study_id`/metadata`). + # The path of the RetrieveStudyMetadata DICOMweb request (for example, + # `studies/`study_uid`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1061,12 +1068,12 @@ module Google # RetrieveStudy returns all instances within the given study. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveStudy DICOMweb request (e.g., - # `studies/`study_id``). + # The path of the RetrieveStudy DICOMweb request (for example, + # `studies/`study_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1098,11 +1105,11 @@ module Google # SearchForInstances returns a list of matching instances. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # The path of the SearchForInstancesRequest DICOMweb request (for example, # `instances` or `series/`series_uid`/instances` or # `studies/`study_uid`/instances`). # @param [String] fields @@ -1136,11 +1143,11 @@ module Google # SearchForSeries returns a list of matching series. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForSeries DICOMweb request(e.g., `series` or + # The path of the SearchForSeries DICOMweb request(for example, `series` or # `studies/`study_uid`/series`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1174,12 +1181,12 @@ module Google # identifiers (SUID). See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.5. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the StoreInstances DICOMweb request (e.g., - # `studies/[`study_id`]`). Note that the `study_uid` is optional. + # The path of the StoreInstances DICOMweb request (for example, + # `studies/[`study_uid`]`). Note that the `study_uid` is optional. # @param [Google::Apis::HealthcareV1beta1::HttpBody] http_body_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1215,12 +1222,12 @@ module Google # Delete requests are equivalent to the GET requests specified in the WADO-RS # standard. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DeleteSeries request (e.g., - # `studies/`study_id`/series/`series_id``). + # The path of the DeleteSeries request (for example, + # `studies/`study_uid`/series/`series_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1253,12 +1260,12 @@ module Google # series, presented as metadata with the bulk data removed. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveSeriesMetadata DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/metadata`). + # The path of the RetrieveSeriesMetadata DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1290,12 +1297,12 @@ module Google # RetrieveSeries returns all instances within the given study and series. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveSeries DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id``). + # The path of the RetrieveSeries DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1327,11 +1334,11 @@ module Google # SearchForInstances returns a list of matching instances. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the SearchForInstancesRequest DICOMweb request (e.g., + # The path of the SearchForInstancesRequest DICOMweb request (for example, # `instances` or `series/`series_uid`/instances` or # `studies/`study_uid`/instances`). # @param [String] fields @@ -1366,12 +1373,12 @@ module Google # and SOP Instance UID. Delete requests are equivalent to the GET requests # specified in the WADO-RS standard. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the DeleteInstance request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id``). + # The path of the DeleteInstance request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1404,12 +1411,12 @@ module Google # and SOP Instance UID. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveInstance DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id``). + # The path of the RetrieveInstance DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid``). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1443,12 +1450,12 @@ module Google # removed. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveInstanceMetadata DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id`/metadata`). + # The path of the RetrieveInstanceMetadata DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid`/metadata`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1481,12 +1488,12 @@ module Google # series, and SOP Instance UID in an acceptable Rendered Media Type. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveRenderedInstance DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id`/rendered`). + # The path of the RetrieveRenderedInstance DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid`/rendered`). # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1519,12 +1526,12 @@ module Google # SOP Instance UID and frame numbers. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveFrames DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` + # The path of the RetrieveFrames DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid`/frames/` # frame_list``). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1559,12 +1566,12 @@ module Google # Type. See # http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4. # @param [String] parent - # The name of the DICOM store that is being accessed (e.g., + # The name of the DICOM store that is being accessed (for example, # `projects/`project_id`/locations/`location_id`/datasets/`dataset_id`/ # dicomStores/`dicom_store_id``). # @param [String] dicom_web_path - # The path of the RetrieveRenderedFrames DICOMweb request (e.g., - # `studies/`study_id`/series/`series_id`/instances/`instance_id`/frames/` + # The path of the RetrieveRenderedFrames DICOMweb request (for example, + # `studies/`study_uid`/series/`series_uid`/instances/`instance_uid`/frames/` # frame_list`/rendered`). # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1747,9 +1754,11 @@ module Google # 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. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1820,7 +1829,7 @@ module Google # The location and format of the input data is specified by the parameters # below. Note that if no format is specified, this method assumes the # `BUNDLE` format. When using the `BUNDLE` format this method ignores the - # `Bundle.type` field, except for the special case of `history`, and does + # `Bundle.type` field, except that `history` bundles are rejected, and does # not apply any of the bundle processing semantics for batch or transaction # bundles. Unlike in ExecuteBundle, transaction bundles are not executed # as a single transaction and bundle-internal references are not rewritten. @@ -1829,16 +1838,6 @@ module Google # an example, this allows the import of `searchset` bundles produced by a # FHIR search or # Patient-everything operation. - # If history imports are enabled by setting - # enable_history_import in the FHIR - # store's configuration, this method can import historical versions - # of a resource by supplying a bundle of type `history` and using the - # `BUNDLE` format. The historical versions in the bundle must have - # `lastUpdated` timestamps, and the resulting resource history on the server - # will appear as if the versions had been created at those timestamps. If a - # current or historical version with the supplied resource ID already - # exists, the bundle is rejected to avoid creating an inconsistent sequence - # of resource versions. # This method returns an Operation that can # be used to track the status of the import by calling # GetOperation. @@ -2948,9 +2947,11 @@ module Google # 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. - # Acceptable values are 0, 1, and 3. - # If the value is 0, or the field is omitted, policy format version 1 will be - # returned. + # Valid values are 0, 1, and 3. Requests specifying an invalid value will be + # rejected. + # Requests for policies with any conditional bindings must specify version 3. + # Policies without any conditional bindings may specify any valid value or + # leave the field unset. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -2985,7 +2986,7 @@ module Google # @param [String] filter # Restricts stores returned to those matching a filter. Syntax: # https://cloud.google.com/appengine/docs/standard/python/search/query_strings - # Only filtering on labels is supported, for example `labels.key=value`. + # Only filtering on labels is supported. For example, `labels.key=value`. # @param [Fixnum] page_size # Limit on the number of HL7v2 stores to return in a single response. # If zero the default page size of 100 is used. @@ -3207,8 +3208,7 @@ module Google # @param [String] name # The resource name of the HL7v2 message to retrieve. # @param [String] view - # Specifies which parts of the Message resource should be returned - # in the response. + # Specifies which parts of the Message resource to return in the response. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -3284,29 +3284,30 @@ module Google # Restricts messages returned to those matching a filter. Syntax: # https://cloud.google.com/appengine/docs/standard/python/search/query_strings # Fields/functions available for filtering are: - # * `message_type`, from the MSH-9 segment; for example - # `NOT message_type = "ADT"` + # * `message_type`, from the MSH-9 segment. For example, + # `NOT message_type = "ADT"`. # * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in - # the dataset's time_zone, from the MSH-7 segment; for example - # `send_date < "2017-01-02"` + # the dataset's time_zone, from the MSH-7 segment. For example, + # `send_date < "2017-01-02"`. # * `send_time`, the timestamp when the message was sent, using the - # RFC3339 time format for comparisons, from the MSH-7 segment; for example - # `send_time < "2017-01-02T00:00:00-05:00"` + # RFC3339 time format for comparisons, from the MSH-7 segment. For example, + # `send_time < "2017-01-02T00:00:00-05:00"`. # * `send_facility`, the care center that the message came from, from the - # MSH-4 segment; for example `send_facility = "ABC"` + # MSH-4 segment. For example, `send_facility = "ABC"`. # * `HL7RegExp(expr)`, which does regular expression matching of `expr` - # against the message payload using re2 (http://code.google.com/p/re2/) - # syntax; for example `HL7RegExp("^.*\|.*\|EMERG")` + # against the message payload using RE2 syntax + # (https://github.com/google/re2/wiki/Syntax). For example, + # `HL7RegExp("^.*\|.*\|EMERG")`. # * `PatientId(value, type)`, which matches if the message lists a patient # having an ID of the given value and type in the PID-2, PID-3, or PID-4 - # segments; for example `PatientId("123456", "MRN")` + # segments. For example, `PatientId("123456", "MRN")`. # * `labels.x`, a string value of the label with key `x` as set using the # Message.labels - # map, for example `labels."priority"="high"`. The operator `:*` can be used - # to assert the existence of a label, for example `labels."priority":*`. + # map. For example, `labels."priority"="high"`. The operator `:*` can be used + # to assert the existence of a label. For example, `labels."priority":*`. # Limitations on conjunctions: # * Negation on the patient ID function or the labels field is not - # supported, for example these queries are invalid: + # supported. For example, these queries are invalid: # `NOT PatientId("123456", "MRN")`, `NOT labels."tag1":*`, # `NOT labels."tag2"="val2"`. # * Conjunction of multiple patient ID functions is not supported, for @@ -3315,7 +3316,7 @@ module Google # * Conjunction of multiple labels fields is also not supported, for # example this query is invalid: `labels."tag1":* AND labels."tag2"="val2"`. # * Conjunction of one patient ID function, one labels field and conditions - # on other fields is supported, for example this query is valid: + # on other fields is supported. For example, this query is valid: # `PatientId("123456", "MRN") AND labels."tag1":* AND message_type = "ADT"`. # @param [String] order_by # Orders messages returned by the specified order_by clause. @@ -3371,8 +3372,8 @@ module Google # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf# # fieldmask # Only the `labels` field is allowed to be updated. - # The labels in the request will be merged with the existing set of labels. - # Existing labels with the same keys will be updated. + # The labels in the request are merged with the existing set of labels. + # Existing labels with the same keys are updated. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/servicemanagement_v1.rb b/generated/google/apis/servicemanagement_v1.rb index 808c9d1ff..c2638295f 100644 --- a/generated/google/apis/servicemanagement_v1.rb +++ b/generated/google/apis/servicemanagement_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-management/ module ServicemanagementV1 VERSION = 'V1' - REVISION = '20190903' + REVISION = '20190914' # 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/servicemanagement_v1/classes.rb b/generated/google/apis/servicemanagement_v1/classes.rb index d7910cc3f..0efcf3eaa 100644 --- a/generated/google/apis/servicemanagement_v1/classes.rb +++ b/generated/google/apis/servicemanagement_v1/classes.rb @@ -3227,10 +3227,7 @@ module Google # @return [String] attr_accessor :display_name - # Duration of this limit in textual notation. Example: "100s", "24h", "1d". - # For duration longer than a day, only multiple of days is supported. We - # support only "100s" and "1d" for now. Additional support will be added in - # the future. "0" indicates indefinite duration. + # Duration of this limit in textual notation. Must be "100s" or "1d". # Used by group-based quotas only. # Corresponds to the JSON property `duration` # @return [String] diff --git a/generated/google/apis/storage_v1.rb b/generated/google/apis/storage_v1.rb index 8d9a1dfcd..930167776 100644 --- a/generated/google/apis/storage_v1.rb +++ b/generated/google/apis/storage_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1 VERSION = 'V1' - REVISION = '20190812' + REVISION = '20190910' # 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/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index e2a0e4177..685ad8dde 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -371,7 +371,7 @@ module Google # uniformBucketLevelAccess.enabled may be changed from true to false until the # locked time, after which the field is immutable. # Corresponds to the JSON property `lockedTime` - # @return [String] + # @return [DateTime] attr_accessor :locked_time def initialize(**args) diff --git a/generated/google/apis/storage_v1/representations.rb b/generated/google/apis/storage_v1/representations.rb index 4ddeebe33..17f9089b3 100644 --- a/generated/google/apis/storage_v1/representations.rb +++ b/generated/google/apis/storage_v1/representations.rb @@ -365,7 +365,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :enabled, as: 'enabled' - property :locked_time, as: 'lockedTime' + property :locked_time, as: 'lockedTime', type: DateTime + end end end diff --git a/generated/google/apis/storage_v1beta1.rb b/generated/google/apis/storage_v1beta1.rb index 3baa9161f..49b9e2998 100644 --- a/generated/google/apis/storage_v1beta1.rb +++ b/generated/google/apis/storage_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta1 VERSION = 'V1beta1' - REVISION = '20180620' + REVISION = '20190910' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1beta1/service.rb b/generated/google/apis/storage_v1beta1/service.rb index c3c0e5d76..9ecf6b78d 100644 --- a/generated/google/apis/storage_v1beta1/service.rb +++ b/generated/google/apis/storage_v1beta1/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'storage/v1beta1/') + super('https://storage.googleapis.com/', 'storage/v1beta1/') @batch_path = 'batch/storage/v1beta1' end diff --git a/generated/google/apis/storage_v1beta2.rb b/generated/google/apis/storage_v1beta2.rb index e0a016464..2448e5203 100644 --- a/generated/google/apis/storage_v1beta2.rb +++ b/generated/google/apis/storage_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/storage/docs/json_api/ module StorageV1beta2 VERSION = 'V1beta2' - REVISION = '20190620' + REVISION = '20190910' # Manage your data and permissions in Google Cloud Storage AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control' diff --git a/generated/google/apis/storage_v1beta2/service.rb b/generated/google/apis/storage_v1beta2/service.rb index 754caa782..3743c3b02 100644 --- a/generated/google/apis/storage_v1beta2/service.rb +++ b/generated/google/apis/storage_v1beta2/service.rb @@ -47,7 +47,7 @@ module Google attr_accessor :user_ip def initialize - super('https://www.googleapis.com/', 'storage/v1beta2/') + super('https://storage.googleapis.com/', 'storage/v1beta2/') @batch_path = 'batch/storage/v1beta2' end