# Modify the configuration for all FlexTemplatesService clients::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configuredo|config|config.timeout=10.0end
Configure the FlexTemplatesService Client instance.
The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on Client.configure.
See Configuration
for a description of the configuration fields.
# Create a client using the default configurationclient=::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new# Create a client using a custom configurationclient=::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.newdo|config|config.timeout=10.0end
Pass arguments to launch_flex_template via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
Parameters
project_id (::String) — Required. The ID of the Cloud Platform project that the job belongs to.
require"google/cloud/dataflow/v1beta3"# Create a client object. The client can be reused for multiple calls.client=Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new# Create a request. To set request fields, pass in keyword arguments.request=Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new# Call the launch_flex_template method.result=client.launch_flex_templaterequest# The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.presult
#logger
deflogger()->Logger
The logger used for request/response debug logging.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Dataflow V1beta3 API - Class Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client (v0.13.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.1 (latest)](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.13.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.13.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.12.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.12.1/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.11.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.11.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.10.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.10.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.9.1](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.9.1/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.8.2](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.8.2/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.7.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.7.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.6.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.6.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.5.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.5.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.4.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.4.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.3.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.3.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.2.0](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.2.0/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)\n- [0.1.4](/ruby/docs/reference/google-cloud-dataflow-v1beta3/0.1.4/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client) \nReference documentation and code samples for the Dataflow V1beta3 API class Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.\n\nClient for the FlexTemplatesService service.\n\n\n\u003cbr /\u003e\n\nProvides a service for Flex templates. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### .configure\n\n def self.configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the FlexTemplatesService Client class.\n\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration \"Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration))\n**Example** \n\n```ruby\n# Modify the configuration for all FlexTemplatesService clients\n::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure do |config|\n config.timeout = 10.0\nend\n```\n\n### #configure\n\n def configure() { |config| ... } -\u003e Client::Configuration\n\nConfigure the FlexTemplatesService Client instance.\n\n\nThe configuration is set to the derived mode, meaning that values can be changed,\nbut structural changes (adding new fields, etc.) are not allowed. Structural changes\nshould be made on [Client.configure](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client#Google__Cloud__Dataflow__V1beta3__FlexTemplatesService__Client_configure_class_ \"Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.configure (method)\").\n\n\u003cbr /\u003e\n\nSee [Configuration](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration \"Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client::Configuration (class)\")\nfor a description of the configuration fields. \n**Yields**\n\n- (config) --- Configure the Client client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration)) \n**Returns**\n\n- ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration))\n\n### #initialize\n\n def initialize() { |config| ... } -\u003e Client\n\nCreate a new FlexTemplatesService client object. \n**Yields**\n\n- (config) --- Configure the FlexTemplatesService client. \n**Yield Parameter**\n\n- **config** ([Client::Configuration](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client-Configuration)) \n**Returns**\n\n- ([Client](./Google-Cloud-Dataflow-V1beta3-FlexTemplatesService-Client)) --- a new instance of Client\n**Example** \n\n```ruby\n# Create a client using the default configuration\nclient = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new\n\n# Create a client using a custom configuration\nclient = ::Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new do |config|\n config.timeout = 10.0\nend\n```\n\n### #launch_flex_template\n\n def launch_flex_template(request, options = nil) -\u003e ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse\n def launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) -\u003e ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse\n\nLaunch a job with a FlexTemplate. \n**Overloads** \n\n def launch_flex_template(request, options = nil) -\u003e ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse\n\nPass arguments to `launch_flex_template` via a request object, either of type [LaunchFlexTemplateRequest](/ruby/docs/reference/google-cloud-dataflow-v1beta3/latest/Google-Cloud-Dataflow-V1beta3-LaunchFlexTemplateRequest \"Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest (class)\") or an equivalent Hash. \n**Parameters**\n\n- **request** ([::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest](./Google-Cloud-Dataflow-V1beta3-LaunchFlexTemplateRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.\n- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. \n\n def launch_flex_template(project_id: nil, launch_parameter: nil, location: nil, validate_only: nil) -\u003e ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse\n\nPass arguments to `launch_flex_template` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). \n**Parameters**\n\n- **project_id** (::String) --- Required. The ID of the Cloud Platform project that the job belongs to.\n- **launch_parameter** ([::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter](./Google-Cloud-Dataflow-V1beta3-LaunchFlexTemplateParameter), ::Hash) --- Required. Parameter to launch a job form Flex Template.\n- **location** (::String) --- Required. The [regional endpoint](https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. E.g., us-central1, us-west1.\n- **validate_only** (::Boolean) --- If true, the request is validated but not actually executed. Defaults to false. \n**Yields**\n\n- (response, operation) --- Access the result along with the RPC operation \n**Yield Parameters**\n\n- **response** ([::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse](./Google-Cloud-Dataflow-V1beta3-LaunchFlexTemplateResponse))\n- **operation** (::GRPC::ActiveCall::Operation) \n**Returns**\n\n- ([::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse](./Google-Cloud-Dataflow-V1beta3-LaunchFlexTemplateResponse)) \n**Raises**\n\n- (::Google::Cloud::Error) --- if the RPC is aborted.\n**Example**\n\nBasic example \n\n```ruby\nrequire \"google/cloud/dataflow/v1beta3\"\n\n# Create a client object. The client can be reused for multiple calls.\nclient = Google::Cloud::Dataflow::V1beta3::FlexTemplatesService::Client.new\n\n# Create a request. To set request fields, pass in keyword arguments.\nrequest = Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest.new\n\n# Call the launch_flex_template method.\nresult = client.launch_flex_template request\n\n# The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse.\np result\n```\n\n### #logger\n\n def logger() -\u003e Logger\n\nThe logger used for request/response debug logging. \n**Returns**\n\n- (Logger)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)"]]