speakeasy_client_sdk_ruby 4.1.4 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2972d37e1ac886b59f969f6ef16dae783432112940d77abb282f361ecf1dd62e
4
- data.tar.gz: 807eb705202c5895b8095a9f0bf5d66725b1677295d2640b8bc47cdf7feaabcb
3
+ metadata.gz: ba760c3df1da27c7df35aff14a89340bfc01e0df77883e5fa776304704b921cc
4
+ data.tar.gz: 62333c7e652b3f8821630c8fa6901564218664cd527f7c296299743c580c28da
5
5
  SHA512:
6
- metadata.gz: df06b280a9aefb66c69bf5f58f967a71c80ad5a5f8837975b235305cdf481db1a63e5f68d488647205b2639bafbc53fdce7eecbae3268f3100e9d8ead431079e
7
- data.tar.gz: 9d214ecf787d57b1f3f76c6e22f42560a90b654a1cf5c6bc052a67eae7dae9a792d8d291da73af60a31874868824582ae2cb67aba598601837716de273c14422
6
+ metadata.gz: 636556c2f993708e746ae7027f44a388d8682d4520ab9c3f887db940043097976186597e53bf910b7c6464acba27d6b7ceadb7f0064157a11dc9d83aa821112a
7
+ data.tar.gz: 18c512e9886244f8879d58f1903637907859bf23f4bc5e20be1b2b1d324f559596427324795dc810286061907b365d1cb7172d4d41aeaa53d772f2bb29ad954a
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetChangesReportSignedUrlRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The checksum of the document to retrieve the signed access url for.
15
+ field :document_checksum, ::String, { 'path_param': { 'field_name': 'documentChecksum', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(document_checksum: ::String).void }
19
+ def initialize(document_checksum: nil)
20
+ @document_checksum = document_checksum
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetChangesReportSignedUrlResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # OK
21
+ field :signed_access, T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, signed_access: T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, signed_access: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @signed_access = signed_access
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class GetChangesReportSignedUrlSignedAccess < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ end
@@ -82,6 +82,9 @@ module SpeakeasyClientSDK
82
82
  autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
83
83
  autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
84
84
  autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
85
+ autoload :GetChangesReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb'
86
+ autoload :GetChangesReportSignedUrlSignedAccess, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb'
87
+ autoload :GetChangesReportSignedUrlResponse, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb'
85
88
  autoload :GetLintingReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb'
86
89
  autoload :GetLintingReportSignedUrlSignedAccess, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb'
87
90
  autoload :GetLintingReportSignedUrlResponse, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb'
@@ -19,6 +19,42 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlRequest)).returns(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlResponse) }
23
+ def get_changes_report_signed_url(request)
24
+ # get_changes_report_signed_url - Get the signed access url for the change reports for a particular document.
25
+ url, params = @sdk_configuration.get_server_details
26
+ base_url = Utils.template_url(url, params)
27
+ url = Utils.generate_url(
28
+ ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlRequest,
29
+ base_url,
30
+ '/v1/reports/changes/{documentChecksum}',
31
+ request,
32
+ @sdk_configuration.globals
33
+ )
34
+ headers = {}
35
+ headers['Accept'] = 'application/json'
36
+ headers['user-agent'] = @sdk_configuration.user_agent
37
+
38
+ r = @sdk_configuration.client.get(url) do |req|
39
+ req.headers = headers
40
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
41
+ end
42
+
43
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
44
+
45
+ res = ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlResponse.new(
46
+ status_code: r.status, content_type: content_type, raw_response: r
47
+ )
48
+ if r.status == 200
49
+ if Utils.match_content_type(content_type, 'application/json')
50
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)
51
+ res.signed_access = out
52
+ end
53
+ end
54
+ res
55
+ end
56
+
57
+
22
58
  sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlRequest)).returns(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlResponse) }
23
59
  def get_linting_report_signed_url(request)
24
60
  # get_linting_report_signed_url - Get the signed access url for the linting reports for a particular document.
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0'
44
- @sdk_version = '4.1.4'
45
- @gen_version = '2.306.3'
46
- @user_agent = 'speakeasy-sdk/ruby 4.1.4 2.306.3 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.1.5'
45
+ @gen_version = '2.308.2'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.1.5 2.308.2 0.4.0 speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_client_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.4
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -189,6 +189,9 @@ files:
189
189
  - lib/speakeasy_client_sdk/models/operations/getapis_response.rb
190
190
  - lib/speakeasy_client_sdk/models/operations/getblob_request.rb
191
191
  - lib/speakeasy_client_sdk/models/operations/getblob_response.rb
192
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb
193
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb
194
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb
192
195
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
193
196
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
194
197
  - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb