plex_ruby_sdk 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a0f21d1ad1d697718e6f516c682d9561f3412ee56a1a6eebeacf4ba8dc75f08
4
- data.tar.gz: e5232442f381ee97a33fac8cb2bf6705729d032a9acabfe8d32f3780045d4728
3
+ metadata.gz: eebea4698454a160543c4f2101b6b48b99da17ebc39972edc5f242baeb1bb5e8
4
+ data.tar.gz: 1b420c82f44d24d10cd0c778ae5e55f0a594f4448c103397300c1c12388355d9
5
5
  SHA512:
6
- metadata.gz: cda4da4352fa027f65f5079061760247fbef322a3605aff3b5d2d163fa3da56ee9edd9a62d842c02d1bcbebde6d26a9d6645b692e120327e68c67183a7aedba8
7
- data.tar.gz: 779c403f01232ff3118d5c36441d94d2507451b92e1479ae42665ad0af7797f63a233ace1b4d7e1eede56c76b534d0b0d30d237cd72895be4247c17afa91c8bc
6
+ metadata.gz: 3b7b6065c681ce750afa6b9380a401040d5d5835205b3d09ffb4d61c5623a0717027096d34be0d266bde2908414e3d2d07371d460b8d26d658cc16f6f4b546c4
7
+ data.tar.gz: 5c284388ae6f2e2be0a22b031a8d7b5dfd4a28a9018de54c8446a27fb45d7768f87f68e87776965b32c1970077be20e4fd8008c0278b271098af139885c0a046
@@ -162,13 +162,13 @@ module PlexRubySDK
162
162
  end
163
163
 
164
164
 
165
- sig { params(x_plex_client_identifier: T.nilable(::String), request_body: T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::PostUsersSignInDataResponse) }
166
- def post_users_sign_in_data(x_plex_client_identifier = nil, request_body = nil, server_url = nil)
165
+ sig { params(client_id: T.nilable(::String), request_body: T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::PostUsersSignInDataResponse) }
166
+ def post_users_sign_in_data(client_id = nil, request_body = nil, server_url = nil)
167
167
  # post_users_sign_in_data - Get User Sign In Data
168
168
  # Sign in user with username and password and return user data with Plex authentication token
169
169
  request = ::PlexRubySDK::Operations::PostUsersSignInDataRequest.new(
170
170
 
171
- x_plex_client_identifier: x_plex_client_identifier,
171
+ client_id: client_id,
172
172
  request_body: request_body
173
173
  )
174
174
  base_url = Utils.template_url(POST_USERS_SIGN_IN_DATA_SERVERS[0], {
@@ -31,14 +31,14 @@ module PlexRubySDK
31
31
  # Indicates if the region has privacy restrictions.
32
32
  field :in_privacy_restricted_region, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_region') } }
33
33
  # The postal code of the location.
34
- field :postal_code, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
34
+ field :postal_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
35
35
  # The name of the primary administrative subdivision.
36
36
  field :subdivisions, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subdivisions') } }
37
37
  # The time zone of the country.
38
38
  field :time_zone, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('time_zone') } }
39
39
 
40
40
 
41
- sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::Integer, subdivisions: ::String, time_zone: ::String).void }
41
+ sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::String, subdivisions: ::String, time_zone: ::String).void }
42
42
  def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
43
43
  @city = city
44
44
  @code = code
@@ -14,6 +14,11 @@ module PlexRubySDK
14
14
  class GetServerResourcesRequest < ::PlexRubySDK::Utils::FieldAugmented
15
15
  extend T::Sig
16
16
 
17
+ # The unique identifier for the client application
18
+ # This is used to track the client application and its usage
19
+ # (UUID, serial number, or other number unique per device)
20
+ #
21
+ field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
17
22
  # Include Https entries in the results
18
23
  field :include_https, T.nilable(::PlexRubySDK::Operations::IncludeHttps), { 'query_param': { 'field_name': 'includeHttps', 'style': 'form', 'explode': true } }
19
24
  # Include IPv6 entries in the results
@@ -22,19 +27,14 @@ module PlexRubySDK
22
27
  # E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
23
28
  #
24
29
  field :include_relay, T.nilable(::PlexRubySDK::Operations::IncludeRelay), { 'query_param': { 'field_name': 'includeRelay', 'style': 'form', 'explode': true } }
25
- # The unique identifier for the client application
26
- # This is used to track the client application and its usage
27
- # (UUID, serial number, or other number unique per device)
28
- #
29
- field :x_plex_client_identifier, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
30
30
 
31
31
 
32
- sig { params(include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay), x_plex_client_identifier: T.nilable(::String)).void }
33
- def initialize(include_https: nil, include_i_pv6: nil, include_relay: nil, x_plex_client_identifier: nil)
32
+ sig { params(client_id: T.nilable(::String), include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay)).void }
33
+ def initialize(client_id: nil, include_https: nil, include_i_pv6: nil, include_relay: nil)
34
+ @client_id = client_id
34
35
  @include_https = include_https
35
36
  @include_i_pv6 = include_i_pv6
36
37
  @include_relay = include_relay
37
- @x_plex_client_identifier = x_plex_client_identifier
38
38
  end
39
39
  end
40
40
  end
@@ -31,14 +31,14 @@ module PlexRubySDK
31
31
  # Indicates if the region has privacy restrictions.
32
32
  field :in_privacy_restricted_region, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_region') } }
33
33
  # The postal code of the location.
34
- field :postal_code, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
34
+ field :postal_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
35
35
  # The name of the primary administrative subdivision.
36
36
  field :subdivisions, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subdivisions') } }
37
37
  # The time zone of the country.
38
38
  field :time_zone, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('time_zone') } }
39
39
 
40
40
 
41
- sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::Integer, subdivisions: ::String, time_zone: ::String).void }
41
+ sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::String, subdivisions: ::String, time_zone: ::String).void }
42
42
  def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
43
43
  @city = city
44
44
  @code = code
@@ -35,12 +35,12 @@ module PlexRubySDK
35
35
 
36
36
  field :trusted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('trusted') } }
37
37
 
38
- field :auth_token, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
38
+ field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
39
39
 
40
40
  field :new_registration, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('newRegistration') } }
41
41
 
42
42
 
43
- sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: ::PlexRubySDK::Operations::GeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::Object), new_registration: T.nilable(::Object)).void }
43
+ sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: ::PlexRubySDK::Operations::GeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::String), new_registration: T.nilable(::Object)).void }
44
44
  def initialize(client_identifier: nil, code: nil, created_at: nil, expires_at: nil, expires_in: nil, id: nil, location: nil, product: nil, qr: nil, trusted: nil, auth_token: nil, new_registration: nil)
45
45
  @client_identifier = client_identifier
46
46
  @code = code
@@ -14,25 +14,34 @@ module PlexRubySDK
14
14
  class GetPinRequest < ::PlexRubySDK::Utils::FieldAugmented
15
15
  extend T::Sig
16
16
 
17
- # Determines the kind of code returned by the API call
18
- # Strong codes are used for Pin authentication flows
19
- # Non-Strong codes are used for `Plex.tv/link`
20
- #
21
- field :strong, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'strong', 'style': 'form', 'explode': true } }
22
17
  # The unique identifier for the client application
23
18
  # This is used to track the client application and its usage
24
19
  # (UUID, serial number, or other number unique per device)
25
20
  #
26
- field :x_plex_client_identifier, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
21
+ field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
22
+
23
+ field :client_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Product', 'style': 'form', 'explode': true } }
24
+
25
+ field :client_platform, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Platform', 'style': 'form', 'explode': true } }
27
26
 
28
- field :x_plex_product, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Product', 'style': 'form', 'explode': true } }
27
+ field :client_version, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Version', 'style': 'form', 'explode': true } }
28
+
29
+ field :device_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Device', 'style': 'form', 'explode': true } }
30
+ # Determines the kind of code returned by the API call
31
+ # Strong codes are used for Pin authentication flows
32
+ # Non-Strong codes are used for `Plex.tv/link`
33
+ #
34
+ field :strong, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'strong', 'style': 'form', 'explode': true } }
29
35
 
30
36
 
31
- sig { params(strong: T.nilable(T::Boolean), x_plex_client_identifier: T.nilable(::String), x_plex_product: T.nilable(::String)).void }
32
- def initialize(strong: nil, x_plex_client_identifier: nil, x_plex_product: nil)
37
+ sig { params(client_id: T.nilable(::String), client_name: T.nilable(::String), client_platform: T.nilable(::String), client_version: T.nilable(::String), device_name: T.nilable(::String), strong: T.nilable(T::Boolean)).void }
38
+ def initialize(client_id: nil, client_name: nil, client_platform: nil, client_version: nil, device_name: nil, strong: nil)
39
+ @client_id = client_id
40
+ @client_name = client_name
41
+ @client_platform = client_platform
42
+ @client_version = client_version
43
+ @device_name = device_name
33
44
  @strong = strong
34
- @x_plex_client_identifier = x_plex_client_identifier
35
- @x_plex_product = x_plex_product
36
45
  end
37
46
  end
38
47
  end
@@ -35,12 +35,12 @@ module PlexRubySDK
35
35
 
36
36
  field :trusted, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('trusted') } }
37
37
 
38
- field :auth_token, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
38
+ field :auth_token, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('authToken') } }
39
39
 
40
40
  field :new_registration, T.nilable(::Object), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('newRegistration') } }
41
41
 
42
42
 
43
- sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: ::PlexRubySDK::Operations::GetTokenByPinIdGeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::Object), new_registration: T.nilable(::Object)).void }
43
+ sig { params(client_identifier: ::String, code: ::String, created_at: ::DateTime, expires_at: ::DateTime, expires_in: ::Integer, id: ::Integer, location: ::PlexRubySDK::Operations::GetTokenByPinIdGeoData, product: ::String, qr: ::String, trusted: T::Boolean, auth_token: T.nilable(::String), new_registration: T.nilable(::Object)).void }
44
44
  def initialize(client_identifier: nil, code: nil, created_at: nil, expires_at: nil, expires_in: nil, id: nil, location: nil, product: nil, qr: nil, trusted: nil, auth_token: nil, new_registration: nil)
45
45
  @client_identifier = client_identifier
46
46
  @code = code
@@ -31,14 +31,14 @@ module PlexRubySDK
31
31
  # Indicates if the region has privacy restrictions.
32
32
  field :in_privacy_restricted_region, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('in_privacy_restricted_region') } }
33
33
  # The postal code of the location.
34
- field :postal_code, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
34
+ field :postal_code, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('postal_code') } }
35
35
  # The name of the primary administrative subdivision.
36
36
  field :subdivisions, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subdivisions') } }
37
37
  # The time zone of the country.
38
38
  field :time_zone, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('time_zone') } }
39
39
 
40
40
 
41
- sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::Integer, subdivisions: ::String, time_zone: ::String).void }
41
+ sig { params(city: ::String, code: ::String, continent_code: ::String, coordinates: ::String, country: ::String, european_union_member: T::Boolean, in_privacy_restricted_country: T::Boolean, in_privacy_restricted_region: T::Boolean, postal_code: ::String, subdivisions: ::String, time_zone: ::String).void }
42
42
  def initialize(city: nil, code: nil, continent_code: nil, coordinates: nil, country: nil, european_union_member: nil, in_privacy_restricted_country: nil, in_privacy_restricted_region: nil, postal_code: nil, subdivisions: nil, time_zone: nil)
43
43
  @city = city
44
44
  @code = code
@@ -20,13 +20,13 @@ module PlexRubySDK
20
20
  # This is used to track the client application and its usage
21
21
  # (UUID, serial number, or other number unique per device)
22
22
  #
23
- field :x_plex_client_identifier, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
23
+ field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
24
24
 
25
25
 
26
- sig { params(pin_id: ::Integer, x_plex_client_identifier: T.nilable(::String)).void }
27
- def initialize(pin_id: nil, x_plex_client_identifier: nil)
26
+ sig { params(pin_id: ::Integer, client_id: T.nilable(::String)).void }
27
+ def initialize(pin_id: nil, client_id: nil)
28
28
  @pin_id = pin_id
29
- @x_plex_client_identifier = x_plex_client_identifier
29
+ @client_id = client_id
30
30
  end
31
31
  end
32
32
  end
@@ -14,19 +14,19 @@ module PlexRubySDK
14
14
  class PostUsersSignInDataRequest < ::PlexRubySDK::Utils::FieldAugmented
15
15
  extend T::Sig
16
16
 
17
- # Login credentials
18
- field :request_body, T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), { 'request': { 'media_type': 'application/x-www-form-urlencoded' } }
19
17
  # The unique identifier for the client application
20
18
  # This is used to track the client application and its usage
21
19
  # (UUID, serial number, or other number unique per device)
22
20
  #
23
- field :x_plex_client_identifier, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
21
+ field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
22
+ # Login credentials
23
+ field :request_body, T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), { 'request': { 'media_type': 'application/x-www-form-urlencoded' } }
24
24
 
25
25
 
26
- sig { params(request_body: T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), x_plex_client_identifier: T.nilable(::String)).void }
27
- def initialize(request_body: nil, x_plex_client_identifier: nil)
26
+ sig { params(client_id: T.nilable(::String), request_body: T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody)).void }
27
+ def initialize(client_id: nil, request_body: nil)
28
+ @client_id = client_id
28
29
  @request_body = request_body
29
- @x_plex_client_identifier = x_plex_client_identifier
30
30
  end
31
31
  end
32
32
  end
@@ -216,13 +216,13 @@ module PlexRubySDK
216
216
  end
217
217
 
218
218
 
219
- sig { params(x_plex_client_identifier: T.nilable(::String), include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetServerResourcesResponse) }
220
- def get_server_resources(x_plex_client_identifier = nil, include_https = nil, include_relay = nil, include_i_pv6 = nil, server_url = nil)
219
+ sig { params(client_id: T.nilable(::String), include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetServerResourcesResponse) }
220
+ def get_server_resources(client_id = nil, include_https = nil, include_relay = nil, include_i_pv6 = nil, server_url = nil)
221
221
  # get_server_resources - Get Server Resources
222
222
  # Get Plex server access tokens and server connections
223
223
  request = ::PlexRubySDK::Operations::GetServerResourcesRequest.new(
224
224
 
225
- x_plex_client_identifier: x_plex_client_identifier,
225
+ client_id: client_id,
226
226
  include_https: include_https,
227
227
  include_relay: include_relay,
228
228
  include_i_pv6: include_i_pv6
@@ -267,16 +267,10 @@ module PlexRubySDK
267
267
  end
268
268
 
269
269
 
270
- sig { params(strong: T.nilable(T::Boolean), x_plex_client_identifier: T.nilable(::String), x_plex_product: T.nilable(::String), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetPinResponse) }
271
- def get_pin(strong = nil, x_plex_client_identifier = nil, x_plex_product = nil, server_url = nil)
270
+ sig { params(request: T.nilable(::PlexRubySDK::Operations::GetPinRequest), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetPinResponse) }
271
+ def get_pin(request, server_url = nil)
272
272
  # get_pin - Get a Pin
273
- # Retrieve a Pin from Plex.tv for authentication flows
274
- request = ::PlexRubySDK::Operations::GetPinRequest.new(
275
-
276
- strong: strong,
277
- x_plex_client_identifier: x_plex_client_identifier,
278
- x_plex_product: x_plex_product
279
- )
273
+ # Retrieve a Pin ID from Plex.tv to use for authentication flows
280
274
  base_url = Utils.template_url(GET_PIN_SERVERS[0], {
281
275
  })
282
276
  base_url = server_url if !server_url.nil?
@@ -296,7 +290,7 @@ module PlexRubySDK
296
290
  res = ::PlexRubySDK::Operations::GetPinResponse.new(
297
291
  status_code: r.status, content_type: content_type, raw_response: r
298
292
  )
299
- if r.status == 200
293
+ if r.status == 201
300
294
  if Utils.match_content_type(content_type, 'application/json')
301
295
  out = Utils.unmarshal_complex(r.env.response_body, ::PlexRubySDK::Operations::GetPinAuthPinContainer)
302
296
  res.auth_pin_container = out
@@ -311,14 +305,14 @@ module PlexRubySDK
311
305
  end
312
306
 
313
307
 
314
- sig { params(pin_id: ::Integer, x_plex_client_identifier: T.nilable(::String), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetTokenByPinIdResponse) }
315
- def get_token_by_pin_id(pin_id, x_plex_client_identifier = nil, server_url = nil)
308
+ sig { params(pin_id: ::Integer, client_id: T.nilable(::String), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetTokenByPinIdResponse) }
309
+ def get_token_by_pin_id(pin_id, client_id = nil, server_url = nil)
316
310
  # get_token_by_pin_id - Get Access Token by PinId
317
311
  # Retrieve an Access Token from Plex.tv after the Pin has been authenticated
318
312
  request = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
319
313
 
320
314
  pin_id: pin_id,
321
- x_plex_client_identifier: x_plex_client_identifier
315
+ client_id: client_id
322
316
  )
323
317
  base_url = Utils.template_url(GET_TOKEN_BY_PIN_ID_SERVERS[0], {
324
318
  })
@@ -18,7 +18,11 @@ module PlexRubySDK
18
18
  sig do
19
19
  params(client: Faraday::Request,
20
20
  security: T.nilable(Shared::Security),
21
- x_plex_client_identifier: ::String,
21
+ client_id: ::String,
22
+ client_name: ::String,
23
+ client_version: ::String,
24
+ client_platform: ::String,
25
+ device_name: ::String,
22
26
  protocol: T.nilable(::PlexRubySDK::ServerVariables::ServerProtocol),
23
27
  ip: T.nilable(::String),
24
28
  port: T.nilable(::String),
@@ -28,7 +32,11 @@ module PlexRubySDK
28
32
  end
29
33
  def initialize(client: nil,
30
34
  security: nil,
31
- x_plex_client_identifier: nil,
35
+ client_id: nil,
36
+ client_name: nil,
37
+ client_version: nil,
38
+ client_platform: nil,
39
+ device_name: nil,
32
40
  protocol: nil,
33
41
  ip: nil,
34
42
  port: nil,
@@ -39,7 +47,11 @@ module PlexRubySDK
39
47
  ## Instantiates the SDK configuring it with the provided parameters.
40
48
  # @param [Faraday::Request] client The faraday HTTP client to use for all operations
41
49
  # @param [Shared::Security] security The security details required for authentication
42
- # @param [::String] x_plex_client_identifier: Configures the x_plex_client_identifier parameter for all supported operations
50
+ # @param [::String] client_id: Configures the client_id parameter for all supported operations
51
+ # @param [::String] client_name: Configures the client_name parameter for all supported operations
52
+ # @param [::String] client_version: Configures the client_version parameter for all supported operations
53
+ # @param [::String] client_platform: Configures the client_platform parameter for all supported operations
54
+ # @param [::String] device_name: Configures the device_name parameter for all supported operations
43
55
  # @param [T.nilable(::PlexRubySDK::ServerVariables::ServerProtocol)] protocol: Allows setting the protocol variable for url substitution
44
56
  # @param [T.nilable(::String)] ip: Allows setting the ip variable for url substitution
45
57
  # @param [T.nilable(::String)] port: Allows setting the port variable for url substitution
@@ -74,7 +86,11 @@ module PlexRubySDK
74
86
  globals = {
75
87
  'parameters': {
76
88
  'queryParam': {
77
- 'x_plex_client_identifier': x_plex_client_identifier,
89
+ 'client_id': client_id,
90
+ 'client_name': client_name,
91
+ 'client_version': client_version,
92
+ 'client_platform': client_platform,
93
+ 'device_name': device_name,
78
94
  },
79
95
  'pathParam': {
80
96
  },
@@ -42,9 +42,9 @@ module PlexRubySDK
42
42
  @globals = globals.nil? ? {} : globals
43
43
  @language = 'ruby'
44
44
  @openapi_doc_version = '0.0.3'
45
- @sdk_version = '0.3.5'
46
- @gen_version = '2.415.8'
47
- @user_agent = 'speakeasy-sdk/ruby 0.3.5 2.415.8 0.0.3 plex_ruby_sdk'
45
+ @sdk_version = '0.3.6'
46
+ @gen_version = '2.416.6'
47
+ @user_agent = 'speakeasy-sdk/ruby 0.3.6 2.416.6 0.0.3 plex_ruby_sdk'
48
48
  end
49
49
 
50
50
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plex_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - LukeHagar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-16 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday