feat: Automated regeneration of dialogflow v3beta1 client (#2444)

This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-01-20 02:20:19,194 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-dialogflow-v3beta1
nothing to commit, working tree clean
2021-01-20 02:20:19,326 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dialogflow v3beta1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dialogflow v3beta1
git clean -df
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.8
Fetching public_suffix 4.0.6
Fetching minitest 5.14.3
Fetching zeitwerk 2.4.2
Installing zeitwerk 2.4.2
Installing minitest 5.14.3
Installing public_suffix 4.0.6
Installing concurrent-ruby 1.1.8
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.2.6
Fetching byebug 11.1.3
Fetching coderay 1.1.3
Installing byebug 11.1.3 with native extensions
Fetching json 2.5.1
Installing coderay 1.1.3
Installing json 2.5.1 with native extensions
Fetching docile 1.3.5
Installing docile 1.3.5
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Using sync 0.5.0
Fetching thor 1.0.1
Installing thor 1.0.1
Fetching rexml 3.2.4
Fetching declarative 0.0.20
Installing rexml 3.2.4
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Fetching faraday-net_http 1.0.1
Installing fakefs 0.20.1
Installing faraday-net_http 1.0.1
Fetching multipart-post 2.1.1
Fetching ruby2_keywords 0.0.4
Installing multipart-post 2.1.1
Installing ruby2_keywords 0.0.4
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Fetching jwt 2.2.2
Installing github-markup 1.7.0
Installing jwt 2.2.2
Fetching memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Installing memoist 0.16.2
Fetching os 0.9.6
Fetching httpclient 2.8.3
Installing os 0.9.6
Fetching mini_mime 1.0.2
Installing httpclient 2.8.3
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.1104
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching rspec-support 3.10.1
Installing mime-types-data 3.2020.1104
Installing rspec-support 3.10.1
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching method_source 1.0.0
Fetching opencensus 0.5.0
Installing method_source 1.0.0
Installing opencensus 0.5.0
Fetching parallel 1.20.1
Installing parallel 1.20.1
Fetching powerpack 0.1.3
Fetching yard 0.9.26
Installing powerpack 0.1.3
Fetching rainbow 2.2.2
Fetching redcarpet 3.5.1
Installing yard 0.9.26
Installing rainbow 2.2.2 with native extensions
Installing redcarpet 3.5.1 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.11.0
Installing ruby-progressbar 1.11.0
Fetching unicode-display_width 1.7.0
Fetching parser 2.7.2.0
Installing unicode-display_width 1.7.0
Fetching addressable 2.7.0
Installing parser 2.7.2.0
Installing addressable 2.7.0
Fetching i18n 1.8.7
Installing i18n 1.8.7
Fetching tzinfo 2.0.4
Fetching tins 1.28.0
Installing tzinfo 2.0.4
Fetching crack 0.4.5
Installing tins 1.28.0
Installing crack 0.4.5
Fetching faraday 1.3.0
Installing faraday 1.3.0
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching logging 2.3.0
Fetching rspec-expectations 3.10.1
Fetching rspec-core 3.10.1
Installing logging 2.3.0
Installing rspec-expectations 3.10.1
Installing rspec-core 3.10.1
Fetching rspec-mocks 3.10.1
Installing rspec-mocks 3.10.1
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching simplecov 0.16.1
Fetching launchy 2.5.0
Installing launchy 2.5.0
Installing simplecov 0.16.1
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Fetching activesupport 6.1.1
Installing webmock 2.3.2
Installing activesupport 6.1.1
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching httparty 0.18.1
Fetching term-ansicolor 1.7.1
Installing httparty 0.18.1
Installing term-ansicolor 1.7.1
Fetching rspec 3.10.0
Installing rspec 3.10.0
Fetching pry-byebug 3.9.0
Fetching pry-doc 0.13.5
Installing pry-byebug 3.9.0
Fetching googleauth 0.14.0
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Installing googleauth 0.14.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching google-apis-core 0.2.0
Installing google-apis-core 0.2.0
Installing pry-doc 0.13.5
Fetching google-apis-discovery_v1 0.1.0
Installing google-apis-discovery_v1 0.1.0
Using google-apis-generator 0.1.2 from source at `.`
Bundle complete! 25 Gemfile dependencies, 81 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:

HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.

If you are upgrading your Rails application from an older version of Rails:

Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.

If you are starting a NEW Rails application, you can ignore this notice.

For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0

Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen /workspace/generated --api=dialogflow.v3beta1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check
Loading dialogflow, version v3beta1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/dialogflow.v3beta1.json
    conflict  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/classes.rb
<v3beta1/classes.rb? (enter "h" for help) [Ynaqdhm] a
       force  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/classes.rb
    conflict  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/representations.rb
       force  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/representations.rb
    conflict  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/service.rb
       force  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/service.rb
    conflict  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/gem_version.rb
       force  google-apis-dialogflow_v3beta1/lib/google/apis/dialogflow_v3beta1/gem_version.rb
    conflict  google-apis-dialogflow_v3beta1/CHANGELOG.md
       force  google-apis-dialogflow_v3beta1/CHANGELOG.md
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using rake 13.0.3
Using public_suffix 4.0.6
Using bundler 2.2.6
Using declarative 0.0.20
Using declarative-option 0.1.0
Using diff-lcs 1.4.4
Using faraday-net_http 1.0.1
Using multipart-post 2.1.1
Using ruby2_keywords 0.0.4
Using jwt 2.2.2
Using memoist 0.16.2
Using multi_json 1.15.0
Using httpclient 2.8.3
Using mini_mime 1.0.2
Using uber 0.1.0
Using retriable 3.1.2
Using rexml 3.2.4
Fetching os 1.1.1
Using opencensus 0.5.0
Using redcarpet 3.5.1
Using rspec-support 3.10.1
Using yard 0.9.26
Using addressable 2.7.0
Using faraday 1.3.0
Using representable 3.0.4
Using rspec-core 3.10.1
Using rspec-mocks 3.10.1
Using rspec-expectations 3.10.1
Using signet 0.14.0
Using rspec 3.10.0
Installing os 1.1.1
Using googleauth 0.14.0
Using google-apis-core 0.2.0
Using google-apis-dialogflow_v3beta1 0.2.0 from source at `.`
Bundle complete! 8 Gemfile dependencies, 33 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
/root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

Google::Apis::DialogflowV3beta1
  should load

Finished in 0.44185 seconds (files took 0.10175 seconds to load)
1 example, 0 failures

Files:           4
Modules:         3 (    1 undocumented)
Classes:       325 (    0 undocumented)
Constants:       6 (    0 undocumented)
Attributes:    339 (    0 undocumented)
Methods:       741 (    0 undocumented)
 99.93% documented
google-apis-dialogflow_v3beta1 0.2.0 built to pkg/google-apis-dialogflow_v3beta1-0.2.0.gem.
    conflict  /workspace/api_names_out.yaml
       force  /workspace/api_names_out.yaml
2021-01-20 02:21:11,371 synthtool [DEBUG] > Wrote metadata to generated/google-apis-dialogflow_v3beta1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google-apis-dialogflow_v3beta1/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/b2701f0e-b0ac-4a60-aa04-e8400e6973a0/targets

- [ ] To automatically regenerate this PR, check this box.
This commit is contained in:
Yoshi Automation Bot 2021-01-20 02:34:09 -08:00 committed by GitHub
parent 9df3b831e5
commit 5fb3ed978c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 828 deletions

View File

@ -94048,6 +94048,7 @@
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/enableSpellCorrection": enable_spell_correction
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/enableStackdriverLogging": enable_stackdriver_logging
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/name": name
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/securitySettings": security_settings
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/speechToTextSettings": speech_to_text_settings
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/startFlow": start_flow
"/dialogflow:v3beta1/GoogleCloudDialogflowCxV3beta1Agent/timeZone": time_zone

View File

@ -1,8 +1,9 @@
# Release history for google-apis-dialogflow_v3beta1
### v0.2.0 (2021-01-13)
### v0.2.0 (2021-01-20)
* Regenerated from discovery document revision 20210108
* Regenerated from discovery document revision 20210118
* Regenerated using generator version 0.1.2
### v0.1.0 (2021-01-07)

View File

@ -512,9 +512,11 @@ module Google
attr_accessor :is_list
alias_method :is_list?, :is_list
# Indicates whether the parameter content is logged in text and audio. If it is
# set to true, the parameter content will be replaced to parameter name in both
# request and response. The default value is false.
# Indicates whether the parameter content should be redacted in text and audio.
# If the flag is set to true, the parameter content will be replaced by
# parameter name in both request and response. Note: the parameter content is
# subject to redaction if either parameter level redaction or entity type level
# redaction is enabled.
# Corresponds to the JSON property `redact`
# @return [Boolean]
attr_accessor :redact
@ -1057,9 +1059,11 @@ module Google
attr_accessor :is_list
alias_method :is_list?, :is_list
# Indicates whether the parameter content is logged in text and audio. If it is
# set to true, the parameter content will be replaced to parameter id in both
# request and response. The default value is false.
# Indicates whether the parameter content should be redacted in text and audio.
# If the flag is set to true, the parameter content will be replaced by
# parameter name in both request and response. Note: the parameter content is
# subject to redaction if either parameter level redaction or entity type level
# redaction is enabled.
# Corresponds to the JSON property `redact`
# @return [Boolean]
attr_accessor :redact
@ -2384,6 +2388,12 @@ module Google
# @return [String]
attr_accessor :name
# Name of the SecuritySettings reference for the agent. Format: `projects//
# locations//securitySettings/`.
# Corresponds to the JSON property `securitySettings`
# @return [String]
attr_accessor :security_settings
# Settings related to speech recognition.
# Corresponds to the JSON property `speechToTextSettings`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings]
@ -2415,6 +2425,7 @@ module Google
@enable_spell_correction = args[:enable_spell_correction] if args.key?(:enable_spell_correction)
@enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
@name = args[:name] if args.key?(:name)
@security_settings = args[:security_settings] if args.key?(:security_settings)
@speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
@start_flow = args[:start_flow] if args.key?(:start_flow)
@time_zone = args[:time_zone] if args.key?(:time_zone)
@ -2975,7 +2986,7 @@ module Google
end
end
# An **entity entry** for an associated entity type. Next Id = 8
# An **entity entry** for an associated entity type.
class GoogleCloudDialogflowCxV3beta1EntityTypeEntity
include Google::Apis::Core::Hashable
@ -3174,255 +3185,6 @@ module Google
end
end
# Represents an experiment in an environment. Next ID: 13
class GoogleCloudDialogflowCxV3beta1Experiment
include Google::Apis::Core::Hashable
# Creation time of this experiment.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Definition of the experiment. Next ID: 3
# Corresponds to the JSON property `definition`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentDefinition]
attr_accessor :definition
# The human-readable description of the experiment.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. The human-readable name of the experiment (unique in an environment).
# Limit of 64 characters.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# End time of this experiment.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Maximum number of days to run the experiment.
# Corresponds to the JSON property `experimentLength`
# @return [String]
attr_accessor :experiment_length
# Last update time of this experiment.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :last_update_time
# The name of the experiment. Format: projects//locations//agents//environments//
# experiments/..
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The inference result which includes an objective metric to optimize and the
# confidence interval.
# Corresponds to the JSON property `result`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResult]
attr_accessor :result
# Start time of this experiment.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The current state of the experiment. Transition triggered by Expriments.
# StartExperiment: PENDING->RUNNING. Transition triggered by Expriments.
# CancelExperiment: PENDING->CANCELLED or RUNNING->CANCELLED.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# The history of updates to the experiment variants.
# Corresponds to the JSON property `variantsHistory`
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VariantsHistory>]
attr_accessor :variants_history
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@definition = args[:definition] if args.key?(:definition)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@end_time = args[:end_time] if args.key?(:end_time)
@experiment_length = args[:experiment_length] if args.key?(:experiment_length)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@name = args[:name] if args.key?(:name)
@result = args[:result] if args.key?(:result)
@start_time = args[:start_time] if args.key?(:start_time)
@state = args[:state] if args.key?(:state)
@variants_history = args[:variants_history] if args.key?(:variants_history)
end
end
# Definition of the experiment. Next ID: 3
class GoogleCloudDialogflowCxV3beta1ExperimentDefinition
include Google::Apis::Core::Hashable
# The condition defines which subset of sessions are selected for this
# experiment. If not specified, all sessions are eligible. E.g. "query_input.
# language_code=en" See the [conditions reference](https://cloud.google.com/
# dialogflow/cx/docs/reference/condition).
# Corresponds to the JSON property `condition`
# @return [String]
attr_accessor :condition
# A list of flow version variants.
# Corresponds to the JSON property `versionVariants`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants]
attr_accessor :version_variants
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@condition = args[:condition] if args.key?(:condition)
@version_variants = args[:version_variants] if args.key?(:version_variants)
end
end
# The inference result which includes an objective metric to optimize and the
# confidence interval.
class GoogleCloudDialogflowCxV3beta1ExperimentResult
include Google::Apis::Core::Hashable
# The last time the experiment's stats data was updated. Will have default value
# if stats have never been computed for this experiment.
# Corresponds to the JSON property `lastUpdateTime`
# @return [String]
attr_accessor :last_update_time
# Version variants and metrics.
# Corresponds to the JSON property `versionMetrics`
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics>]
attr_accessor :version_metrics
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
@version_metrics = args[:version_metrics] if args.key?(:version_metrics)
end
end
# A confidence interval is a range of possible values for the experiment
# objective you are trying to measure.
class GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
include Google::Apis::Core::Hashable
# The confidence level used to construct the interval, i.e. there is X% chance
# that the true value is within this interval.
# Corresponds to the JSON property `confidenceLevel`
# @return [Float]
attr_accessor :confidence_level
# Lower bound of the interval.
# Corresponds to the JSON property `lowerBound`
# @return [Float]
attr_accessor :lower_bound
# The percent change between an experiment metric's value and the value for its
# control.
# Corresponds to the JSON property `ratio`
# @return [Float]
attr_accessor :ratio
# Upper bound of the interval.
# Corresponds to the JSON property `upperBound`
# @return [Float]
attr_accessor :upper_bound
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confidence_level = args[:confidence_level] if args.key?(:confidence_level)
@lower_bound = args[:lower_bound] if args.key?(:lower_bound)
@ratio = args[:ratio] if args.key?(:ratio)
@upper_bound = args[:upper_bound] if args.key?(:upper_bound)
end
end
# Metric and corresponding confidence intervals.
class GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
include Google::Apis::Core::Hashable
# A confidence interval is a range of possible values for the experiment
# objective you are trying to measure.
# Corresponds to the JSON property `confidenceInterval`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval]
attr_accessor :confidence_interval
# Ratio value of a metric.
# Corresponds to the JSON property `ratio`
# @return [Float]
attr_accessor :ratio
# The type of the metric.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confidence_interval = args[:confidence_interval] if args.key?(:confidence_interval)
@ratio = args[:ratio] if args.key?(:ratio)
@type = args[:type] if args.key?(:type)
end
end
# Version variant and associated metrics.
class GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
include Google::Apis::Core::Hashable
# The metrics and corresponding confidence intervals in the inference result.
# Corresponds to the JSON property `metrics`
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultMetric>]
attr_accessor :metrics
# Number of sessions that were allocated to this version.
# Corresponds to the JSON property `sessionCount`
# @return [Fixnum]
attr_accessor :session_count
# The name of the flow Version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metrics = args[:metrics] if args.key?(:metrics)
@session_count = args[:session_count] if args.key?(:session_count)
@version = args[:version] if args.key?(:version)
end
end
# The request message for Agents.ExportAgent.
class GoogleCloudDialogflowCxV3beta1ExportAgentRequest
include Google::Apis::Core::Hashable
@ -3712,9 +3474,11 @@ module Google
attr_accessor :is_list
alias_method :is_list?, :is_list
# Indicates whether the parameter content is logged in text and audio. If it is
# set to true, the parameter content will be replaced to parameter name in both
# request and response. The default value is false.
# Indicates whether the parameter content should be redacted in text and audio.
# If the flag is set to true, the parameter content will be replaced by
# parameter name in both request and response. Note: the parameter content is
# subject to redaction if either parameter level redaction or entity type level
# redaction is enabled.
# Corresponds to the JSON property `redact`
# @return [Boolean]
attr_accessor :redact
@ -4413,9 +4177,11 @@ module Google
attr_accessor :is_list
alias_method :is_list?, :is_list
# Indicates whether the parameter content is logged in text and audio. If it is
# set to true, the parameter content will be replaced to parameter id in both
# request and response. The default value is false.
# Indicates whether the parameter content should be redacted in text and audio.
# If the flag is set to true, the parameter content will be replaced by
# parameter name in both request and response. Note: the parameter content is
# subject to redaction if either parameter level redaction or entity type level
# redaction is enabled.
# Corresponds to the JSON property `redact`
# @return [Boolean]
attr_accessor :redact
@ -4583,34 +4349,6 @@ module Google
end
end
# The response message for Experiments.ListExperiments.
class GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
include Google::Apis::Core::Hashable
# The list of experiments. There will be a maximum number of items returned
# based on the page_size field in the request. The list may in some cases be
# empty or contain fewer entries than page_size even if this isn't the last page.
# Corresponds to the JSON property `experiments`
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment>]
attr_accessor :experiments
# Token to retrieve the next page of results, or empty if there are no more
# results in the list.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@experiments = args[:experiments] if args.key?(:experiments)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The response message for Flows.ListFlows.
class GoogleCloudDialogflowCxV3beta1ListFlowsResponse
include Google::Apis::Core::Hashable
@ -6260,32 +5998,6 @@ module Google
end
end
# The request message for Experiments.StartExperiment.
class GoogleCloudDialogflowCxV3beta1StartExperimentRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The request message for Experiments.StopExperiment.
class GoogleCloudDialogflowCxV3beta1StopExperimentRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Configuration of how speech should be synthesized.
class GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
include Google::Apis::Core::Hashable
@ -6947,31 +6659,6 @@ module Google
end
end
# The history of variants update.
class GoogleCloudDialogflowCxV3beta1VariantsHistory
include Google::Apis::Core::Hashable
# Update time of the variants.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# A list of flow version variants.
# Corresponds to the JSON property `versionVariants`
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants]
attr_accessor :version_variants
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@update_time = args[:update_time] if args.key?(:update_time)
@version_variants = args[:version_variants] if args.key?(:version_variants)
end
end
# Represents a version of a flow.
class GoogleCloudDialogflowCxV3beta1Version
include Google::Apis::Core::Hashable
@ -7024,59 +6711,6 @@ module Google
end
end
# A list of flow version variants.
class GoogleCloudDialogflowCxV3beta1VersionVariants
include Google::Apis::Core::Hashable
# A list of flow version variants.
# Corresponds to the JSON property `variants`
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant>]
attr_accessor :variants
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@variants = args[:variants] if args.key?(:variants)
end
end
# A single flow version with specified traffic allocation.
class GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
include Google::Apis::Core::Hashable
# Whether the variant is for the control group.
# Corresponds to the JSON property `isControlGroup`
# @return [Boolean]
attr_accessor :is_control_group
alias_method :is_control_group?, :is_control_group
# Percentage of the traffic which should be routed to this version of flow.
# Traffic allocation for a single flow must sum up to 1.0.
# Corresponds to the JSON property `trafficAllocation`
# @return [Float]
attr_accessor :traffic_allocation
# The name of the flow version. Format: `projects//locations//agents//flows//
# versions/`.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@is_control_group = args[:is_control_group] if args.key?(:is_control_group)
@traffic_allocation = args[:traffic_allocation] if args.key?(:traffic_allocation)
@version = args[:version] if args.key?(:version)
end
end
# Description of which voice to use for speech synthesis.
class GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
include Google::Apis::Core::Hashable

View File

@ -19,10 +19,10 @@ module Google
GEM_VERSION = "0.2.0"
# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.1.1"
GENERATOR_VERSION = "0.1.2"
# Revision of the discovery document this client was generated from
REVISION = "20210108"
REVISION = "20210118"
end
end
end

View File

@ -568,42 +568,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1Experiment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExperimentDefinition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExperimentResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ExportAgentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -808,12 +772,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1ListFlowsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1078,18 +1036,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1StartExperimentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1StopExperimentRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1198,30 +1144,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1VariantsHistory
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1Version
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1VersionVariants
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -2700,6 +2628,7 @@ module Google
property :enable_spell_correction, as: 'enableSpellCorrection'
property :enable_stackdriver_logging, as: 'enableStackdriverLogging'
property :name, as: 'name'
property :security_settings, as: 'securitySettings'
property :speech_to_text_settings, as: 'speechToTextSettings', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SpeechToTextSettings::Representation
property :start_flow, as: 'startFlow'
@ -2928,75 +2857,6 @@ module Google
end
end
class GoogleCloudDialogflowCxV3beta1Experiment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :definition, as: 'definition', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentDefinition, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentDefinition::Representation
property :description, as: 'description'
property :display_name, as: 'displayName'
property :end_time, as: 'endTime'
property :experiment_length, as: 'experimentLength'
property :last_update_time, as: 'lastUpdateTime'
property :name, as: 'name'
property :result, as: 'result', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResult, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResult::Representation
property :start_time, as: 'startTime'
property :state, as: 'state'
collection :variants_history, as: 'variantsHistory', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VariantsHistory, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VariantsHistory::Representation
end
end
class GoogleCloudDialogflowCxV3beta1ExperimentDefinition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :condition, as: 'condition'
property :version_variants, as: 'versionVariants', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants::Representation
end
end
class GoogleCloudDialogflowCxV3beta1ExperimentResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_update_time, as: 'lastUpdateTime'
collection :version_metrics, as: 'versionMetrics', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics::Representation
end
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence_level, as: 'confidenceLevel'
property :lower_bound, as: 'lowerBound'
property :ratio, as: 'ratio'
property :upper_bound, as: 'upperBound'
end
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence_interval, as: 'confidenceInterval', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval::Representation
property :ratio, as: 'ratio'
property :type, as: 'type'
end
end
class GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :metrics, as: 'metrics', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultMetric, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExperimentResultMetric::Representation
property :session_count, as: 'sessionCount'
property :version, as: 'version'
end
end
class GoogleCloudDialogflowCxV3beta1ExportAgentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3319,15 +3179,6 @@ module Google
end
end
class GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :experiments, as: 'experiments', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleCloudDialogflowCxV3beta1ListFlowsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3769,18 +3620,6 @@ module Google
end
end
class GoogleCloudDialogflowCxV3beta1StartExperimentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDialogflowCxV3beta1StopExperimentRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3963,15 +3802,6 @@ module Google
end
end
class GoogleCloudDialogflowCxV3beta1VariantsHistory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :update_time, as: 'updateTime'
property :version_variants, as: 'versionVariants', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariants::Representation
end
end
class GoogleCloudDialogflowCxV3beta1Version
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3985,23 +3815,6 @@ module Google
end
end
class GoogleCloudDialogflowCxV3beta1VersionVariants
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :variants, as: 'variants', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant::Representation
end
end
class GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_control_group, as: 'isControlGroup'
property :traffic_allocation, as: 'trafficAllocation'
property :version, as: 'version'
end
end
class GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -778,247 +778,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates an Experiment in the specified Environment.
# @param [String] parent
# Required. The Agent to create an Environment for. Format: `projects//locations/
# /agents//environments/`.
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] google_cloud_dialogflow_cx_v3beta1_experiment_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_agent_environment_experiment(parent, google_cloud_dialogflow_cx_v3beta1_experiment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3beta1/{+parent}/experiments', options)
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.request_object = google_cloud_dialogflow_cx_v3beta1_experiment_object
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified Experiment.
# @param [String] name
# Required. The name of the Environment to delete. Format: `projects//locations//
# agents//environments//experiments/`.
# @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::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_location_agent_environment_experiment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3beta1/{+name}', options)
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified Experiment.
# @param [String] name
# Required. The name of the Environment. Format: `projects//locations//agents//
# environments//experiments/`.
# @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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_agent_environment_experiment(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3beta1/{+name}', options)
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the list of all experiments in the specified Environment.
# @param [String] parent
# Required. The Environment to list all environments for. Format: `projects//
# locations//agents//environments/`.
# @param [Fixnum] page_size
# The maximum number of items to return in a single page. By default 20 and at
# most 100.
# @param [String] page_token
# 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
# 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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListExperimentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListExperimentsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_agent_environment_experiments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3beta1/{+parent}/experiments', options)
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListExperimentsResponse::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified Experiment.
# @param [String] name
# The name of the experiment. Format: projects//locations//agents//environments//
# experiments/..
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] google_cloud_dialogflow_cx_v3beta1_experiment_object
# @param [String] update_mask
# Required. The mask to control which fields get updated.
# @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::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_project_location_agent_environment_experiment(name, google_cloud_dialogflow_cx_v3beta1_experiment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v3beta1/{+name}', options)
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.request_object = google_cloud_dialogflow_cx_v3beta1_experiment_object
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts the specified Experiment. This rpc only changes the state of experiment
# from PENDING to RUNNING.
# @param [String] name
# Required. Resource name of the experiment to start. Format: `projects//
# locations//agents//environments//experiments/`.
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1StartExperimentRequest] google_cloud_dialogflow_cx_v3beta1_start_experiment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment]
#
# @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 start_project_location_agent_environment_experiment(name, google_cloud_dialogflow_cx_v3beta1_start_experiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3beta1/{+name}:start', options)
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1StartExperimentRequest::Representation
command.request_object = google_cloud_dialogflow_cx_v3beta1_start_experiment_request_object
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Stops the specified Experiment. This rpc only changes the state of experiment
# from RUNNING to DONE.
# @param [String] name
# Required. Resource name of the experiment to stop. Format: `projects//
# locations//agents//environments//experiments/`.
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1StopExperimentRequest] google_cloud_dialogflow_cx_v3beta1_stop_experiment_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment]
#
# @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 stop_project_location_agent_environment_experiment(name, google_cloud_dialogflow_cx_v3beta1_stop_experiment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3beta1/{+name}:stop', options)
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1StopExperimentRequest::Representation
command.request_object = google_cloud_dialogflow_cx_v3beta1_stop_experiment_request_object
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment::Representation
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Experiment
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Processes a natural language query and returns structured, actionable data as
# a result. This method is not idempotent, because it may cause session entity
# types to be updated, which in turn might affect results of future queries.

View File

@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "416a3e07b1c434039131ec133ff43cd11975fd0e"
"sha": "915a4d7671830bab31334d6988a09436c3196390"
}
}
]