lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb in google-cloud-dataflow-v1beta3-0.9.0 vs lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb in google-cloud-dataflow-v1beta3-0.9.1
- old
+ new
@@ -29,10 +29,13 @@
#
# Provides a service for Flex templates. This feature is not ready yet.
#
class Client
# @private
+ API_VERSION = ""
+
+ # @private
DEFAULT_ENDPOINT_TEMPLATE = "dataflow.$UNIVERSE_DOMAIN$"
# @private
attr_reader :flex_templates_service_stub
@@ -220,13 +223,14 @@
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
# Customize the options with defaults
metadata = @config.rpcs.launch_flex_template.metadata.to_h
- # Set x-goog-api-client and x-goog-user-project headers
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
lib_name: @config.lib_name, lib_version: @config.lib_version,
gapic_version: ::Google::Cloud::Dataflow::V1beta3::VERSION
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
header_params = {}
if request.project_id
header_params["project_id"] = request.project_id