Skip to content

Commit

Permalink
feat(release): Update SDK to support VPC API version 2023-12-19
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Selvakumar <[email protected]>
  • Loading branch information
deepaksibm committed Dec 21, 2023
1 parent 8e4b613 commit 117dc13
Show file tree
Hide file tree
Showing 5 changed files with 3,838 additions and 1,294 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Setting up and using the API client is simple, just pass in your authenticator o

# Pass the authenticator into the VpcV1 service
vpc_v1 = IbmVpc::VpcV1.new(
version: "2022-09-13" # Will default to the latest version if not specified
version: "2023-12-19" # Will default to the latest version if not specified
authenticator: authenticator
)

Expand Down
3 changes: 3 additions & 0 deletions lib/ibm_vpc/common.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require_relative "./version.rb"
require "securerandom"

module IbmVpc
# SDK Common class
Expand All @@ -15,6 +16,8 @@ def get_sdk_headers(service_name, service_version, operation_id)
headers["User-Agent"] = user_agent_string
return headers if service_name.nil? || service_version.nil? || operation_id.nil?

headers["X-Request-Id"] = SecureRandom.uuid

headers["X-IBMCloud-SDK-Analytics"] = "service_name=#{service_name};service_version=#{service_version};operation_id=#{operation_id}"
headers
end
Expand Down
Loading

0 comments on commit 117dc13

Please sign in to comment.