lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb in google-cloud-dataflow-v1beta3-0.1.2 vs lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb in google-cloud-dataflow-v1beta3-0.1.3

- old
+ new

@@ -178,9 +178,24 @@ # # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # + # @example Basic example + # 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_template request + # + # # The returned object is of type Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateResponse. + # p result + # def launch_flex_template request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateRequest