Files
plexgo/models/operations/getmyplexaccount.go

158 lines
3.1 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"net/http"
)
type MyPlex struct {
AuthToken *string `json:"authToken,omitempty"`
Username *string `json:"username,omitempty"`
MappingState *string `json:"mappingState,omitempty"`
MappingError *string `json:"mappingError,omitempty"`
SignInState *string `json:"signInState,omitempty"`
PublicAddress *string `json:"publicAddress,omitempty"`
PublicPort *float64 `json:"publicPort,omitempty"`
PrivateAddress *string `json:"privateAddress,omitempty"`
PrivatePort *float64 `json:"privatePort,omitempty"`
SubscriptionFeatures *string `json:"subscriptionFeatures,omitempty"`
SubscriptionActive *bool `json:"subscriptionActive,omitempty"`
SubscriptionState *string `json:"subscriptionState,omitempty"`
}
func (m *MyPlex) GetAuthToken() *string {
if m == nil {
return nil
}
return m.AuthToken
}
func (m *MyPlex) GetUsername() *string {
if m == nil {
return nil
}
return m.Username
}
func (m *MyPlex) GetMappingState() *string {
if m == nil {
return nil
}
return m.MappingState
}
func (m *MyPlex) GetMappingError() *string {
if m == nil {
return nil
}
return m.MappingError
}
func (m *MyPlex) GetSignInState() *string {
if m == nil {
return nil
}
return m.SignInState
}
func (m *MyPlex) GetPublicAddress() *string {
if m == nil {
return nil
}
return m.PublicAddress
}
func (m *MyPlex) GetPublicPort() *float64 {
if m == nil {
return nil
}
return m.PublicPort
}
func (m *MyPlex) GetPrivateAddress() *string {
if m == nil {
return nil
}
return m.PrivateAddress
}
func (m *MyPlex) GetPrivatePort() *float64 {
if m == nil {
return nil
}
return m.PrivatePort
}
func (m *MyPlex) GetSubscriptionFeatures() *string {
if m == nil {
return nil
}
return m.SubscriptionFeatures
}
func (m *MyPlex) GetSubscriptionActive() *bool {
if m == nil {
return nil
}
return m.SubscriptionActive
}
func (m *MyPlex) GetSubscriptionState() *string {
if m == nil {
return nil
}
return m.SubscriptionState
}
// GetMyPlexAccountResponseBody - MyPlex Account
type GetMyPlexAccountResponseBody struct {
MyPlex *MyPlex `json:"MyPlex,omitempty"`
}
func (g *GetMyPlexAccountResponseBody) GetMyPlex() *MyPlex {
if g == nil {
return nil
}
return g.MyPlex
}
type GetMyPlexAccountResponse struct {
// HTTP response content type for this operation
ContentType string
// HTTP response status code for this operation
StatusCode int
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
// MyPlex Account
Object *GetMyPlexAccountResponseBody
}
func (g *GetMyPlexAccountResponse) GetContentType() string {
if g == nil {
return ""
}
return g.ContentType
}
func (g *GetMyPlexAccountResponse) GetStatusCode() int {
if g == nil {
return 0
}
return g.StatusCode
}
func (g *GetMyPlexAccountResponse) GetRawResponse() *http.Response {
if g == nil {
return nil
}
return g.RawResponse
}
func (g *GetMyPlexAccountResponse) GetObject() *GetMyPlexAccountResponseBody {
if g == nil {
return nil
}
return g.Object
}