regenerated with newest spec, reconfigured actions and adding publishing

This commit is contained in:
Luke Hagar
2024-09-16 15:42:38 +00:00
parent fa4cfa3643
commit b689f4fe66
1660 changed files with 29288 additions and 15630 deletions

View File

@@ -0,0 +1,42 @@
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Operations
SUBSCRIPTION_SERVERS = [
'https://plex.tv/api/v2/'
].freeze
# If the accounts Plex Pass subscription is active
class Subscription < ::PlexRubySDK::Utils::FieldAugmented
extend T::Sig
# If the account's Plex Pass subscription is active
field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
# List of features allowed on your Plex Pass subscription
field :features, T.nilable(T::Array[::PlexRubySDK::Operations::Features]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('features') } }
# Payment service used for your Plex Pass subscription
field :payment_service, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('paymentService') } }
# Name of Plex Pass subscription plan
field :plan, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('plan') } }
# String representation of subscriptionActive
field :status, T.nilable(::PlexRubySDK::Operations::GetTokenDetailsAuthenticationStatus), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('status'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetTokenDetailsAuthenticationStatus, true) } }
# Date the account subscribed to Plex Pass
field :subscribed_at, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('subscribedAt') } }
sig { params(active: T.nilable(T::Boolean), features: T.nilable(T::Array[::PlexRubySDK::Operations::Features]), payment_service: T.nilable(::String), plan: T.nilable(::String), status: T.nilable(::PlexRubySDK::Operations::GetTokenDetailsAuthenticationStatus), subscribed_at: T.nilable(::String)).void }
def initialize(active: nil, features: nil, payment_service: nil, plan: nil, status: nil, subscribed_at: nil)
@active = active
@features = features
@payment_service = payment_service
@plan = plan
@status = status
@subscribed_at = subscribed_at
end
end
end
end