transport

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 20 Imported by: 0

README

Go API client for transport

Transporting Packages: https://docs.saviyntcloud.com/bundle/EIC-Admin-AMS/page/Content/Chapter07-General-Administrator/Transporting-Packages.htm

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import transport "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value transport.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), transport.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value transport.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), transport.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using transport.ContextOperationServerIndices and transport.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), transport.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), transport.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost:3000

Class Method HTTP request Description
TransportAPI ExportTransportPackage Post /ECM/api/v5/exportTransportPackage Export Transport Package
TransportAPI ImportTransportPackage Post /ECM/api/v5/importTransportPackage Import Transport Package
TransportAPI TransportPackageStatus Get /ECM/api/v5/transportPackageStatus Transport Package Status

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

https://github.com/saviynt

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	TransportAPI *TransportAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Saviynt Transport API API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiExportTransportPackageRequest

type ApiExportTransportPackageRequest struct {
	ApiService *TransportAPIService
	// contains filtered or unexported fields
}

func (ApiExportTransportPackageRequest) Execute

func (ApiExportTransportPackageRequest) ExportTransportPackageRequest

func (r ApiExportTransportPackageRequest) ExportTransportPackageRequest(exportTransportPackageRequest ExportTransportPackageRequest) ApiExportTransportPackageRequest

type ApiImportTransportPackageRequest

type ApiImportTransportPackageRequest struct {
	ApiService *TransportAPIService
	// contains filtered or unexported fields
}

func (ApiImportTransportPackageRequest) Execute

func (ApiImportTransportPackageRequest) ImportTransportPackageRequest

func (r ApiImportTransportPackageRequest) ImportTransportPackageRequest(importTransportPackageRequest ImportTransportPackageRequest) ApiImportTransportPackageRequest

type ApiTransportPackageStatusRequest

type ApiTransportPackageStatusRequest struct {
	ApiService *TransportAPIService
	// contains filtered or unexported fields
}

func (ApiTransportPackageStatusRequest) Execute

func (ApiTransportPackageStatusRequest) TransportPackageStatusRequest

func (r ApiTransportPackageStatusRequest) TransportPackageStatusRequest(transportPackageStatusRequest TransportPackageStatusRequest) ApiTransportPackageStatusRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ExportTransportPackageRequest

type ExportTransportPackageRequest struct {
	// username of the user exporting the package
	Updateuser *string `json:"updateuser,omitempty"`
	// (can be true or false) - option to transport owners for selected objects
	Transportowner *string `json:"transportowner,omitempty"`
	// can be true or false) - option to transport members for selected objects such as SAV role
	Transportmembers *string `json:"transportmembers,omitempty"`
	// (can be true or false) - Determines if package needs to be exported online
	Exportonline string `json:"exportonline"`
	// (if exportonline is false) - Local path where export package will be generated
	Exportpath *string `json:"exportpath,omitempty"`
	// (if exportonline is true) - Name of the environment which can be created at the following path : Admin -> Global Configurations -> Misc -> Transport -> Add New Transport
	Environmentname       *string `json:"environmentname,omitempty"`
	Businessjustification *string `json:"businessjustification,omitempty"`
	// Supported objects : savRoles, emailTemplate, roles, analyticsV1, analyticsV2, globalConfig, workflows, connection, appOnboarding, userGroups, scanRules, organizations, securitySystems
	Objectstoexport ObjectsToExport `json:"objectstoexport"`
}

ExportTransportPackageRequest

func NewExportTransportPackageRequest

func NewExportTransportPackageRequest(exportonline string, objectstoexport ObjectsToExport) *ExportTransportPackageRequest

NewExportTransportPackageRequest instantiates a new ExportTransportPackageRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExportTransportPackageRequestWithDefaults

func NewExportTransportPackageRequestWithDefaults() *ExportTransportPackageRequest

NewExportTransportPackageRequestWithDefaults instantiates a new ExportTransportPackageRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExportTransportPackageRequest) GetBusinessjustification

func (o *ExportTransportPackageRequest) GetBusinessjustification() string

GetBusinessjustification returns the Businessjustification field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetBusinessjustificationOk

func (o *ExportTransportPackageRequest) GetBusinessjustificationOk() (*string, bool)

GetBusinessjustificationOk returns a tuple with the Businessjustification field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetEnvironmentname

func (o *ExportTransportPackageRequest) GetEnvironmentname() string

GetEnvironmentname returns the Environmentname field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetEnvironmentnameOk

func (o *ExportTransportPackageRequest) GetEnvironmentnameOk() (*string, bool)

GetEnvironmentnameOk returns a tuple with the Environmentname field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetExportonline

func (o *ExportTransportPackageRequest) GetExportonline() string

GetExportonline returns the Exportonline field value

func (*ExportTransportPackageRequest) GetExportonlineOk

func (o *ExportTransportPackageRequest) GetExportonlineOk() (*string, bool)

GetExportonlineOk returns a tuple with the Exportonline field value and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetExportpath

func (o *ExportTransportPackageRequest) GetExportpath() string

GetExportpath returns the Exportpath field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetExportpathOk

func (o *ExportTransportPackageRequest) GetExportpathOk() (*string, bool)

GetExportpathOk returns a tuple with the Exportpath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetObjectstoexport

func (o *ExportTransportPackageRequest) GetObjectstoexport() ObjectsToExport

GetObjectstoexport returns the Objectstoexport field value

func (*ExportTransportPackageRequest) GetObjectstoexportOk

func (o *ExportTransportPackageRequest) GetObjectstoexportOk() (*ObjectsToExport, bool)

GetObjectstoexportOk returns a tuple with the Objectstoexport field value and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetTransportmembers

func (o *ExportTransportPackageRequest) GetTransportmembers() string

GetTransportmembers returns the Transportmembers field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetTransportmembersOk

func (o *ExportTransportPackageRequest) GetTransportmembersOk() (*string, bool)

GetTransportmembersOk returns a tuple with the Transportmembers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetTransportowner

func (o *ExportTransportPackageRequest) GetTransportowner() string

GetTransportowner returns the Transportowner field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetTransportownerOk

func (o *ExportTransportPackageRequest) GetTransportownerOk() (*string, bool)

GetTransportownerOk returns a tuple with the Transportowner field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) GetUpdateuser

func (o *ExportTransportPackageRequest) GetUpdateuser() string

GetUpdateuser returns the Updateuser field value if set, zero value otherwise.

func (*ExportTransportPackageRequest) GetUpdateuserOk

func (o *ExportTransportPackageRequest) GetUpdateuserOk() (*string, bool)

GetUpdateuserOk returns a tuple with the Updateuser field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExportTransportPackageRequest) HasBusinessjustification

func (o *ExportTransportPackageRequest) HasBusinessjustification() bool

HasBusinessjustification returns a boolean if a field has been set.

func (*ExportTransportPackageRequest) HasEnvironmentname

func (o *ExportTransportPackageRequest) HasEnvironmentname() bool

HasEnvironmentname returns a boolean if a field has been set.

func (*ExportTransportPackageRequest) HasExportpath

func (o *ExportTransportPackageRequest) HasExportpath() bool

HasExportpath returns a boolean if a field has been set.

func (*ExportTransportPackageRequest) HasTransportmembers

func (o *ExportTransportPackageRequest) HasTransportmembers() bool

HasTransportmembers returns a boolean if a field has been set.

func (*ExportTransportPackageRequest) HasTransportowner

func (o *ExportTransportPackageRequest) HasTransportowner() bool

HasTransportowner returns a boolean if a field has been set.

func (*ExportTransportPackageRequest) HasUpdateuser

func (o *ExportTransportPackageRequest) HasUpdateuser() bool

HasUpdateuser returns a boolean if a field has been set.

func (ExportTransportPackageRequest) MarshalJSON

func (o ExportTransportPackageRequest) MarshalJSON() ([]byte, error)

func (*ExportTransportPackageRequest) SetBusinessjustification

func (o *ExportTransportPackageRequest) SetBusinessjustification(v string)

SetBusinessjustification gets a reference to the given string and assigns it to the Businessjustification field.

func (*ExportTransportPackageRequest) SetEnvironmentname

func (o *ExportTransportPackageRequest) SetEnvironmentname(v string)

SetEnvironmentname gets a reference to the given string and assigns it to the Environmentname field.

func (*ExportTransportPackageRequest) SetExportonline

func (o *ExportTransportPackageRequest) SetExportonline(v string)

SetExportonline sets field value

func (*ExportTransportPackageRequest) SetExportpath

func (o *ExportTransportPackageRequest) SetExportpath(v string)

SetExportpath gets a reference to the given string and assigns it to the Exportpath field.

func (*ExportTransportPackageRequest) SetObjectstoexport

func (o *ExportTransportPackageRequest) SetObjectstoexport(v ObjectsToExport)

SetObjectstoexport sets field value

func (*ExportTransportPackageRequest) SetTransportmembers

func (o *ExportTransportPackageRequest) SetTransportmembers(v string)

SetTransportmembers gets a reference to the given string and assigns it to the Transportmembers field.

func (*ExportTransportPackageRequest) SetTransportowner

func (o *ExportTransportPackageRequest) SetTransportowner(v string)

SetTransportowner gets a reference to the given string and assigns it to the Transportowner field.

func (*ExportTransportPackageRequest) SetUpdateuser

func (o *ExportTransportPackageRequest) SetUpdateuser(v string)

SetUpdateuser gets a reference to the given string and assigns it to the Updateuser field.

func (ExportTransportPackageRequest) ToMap

func (o ExportTransportPackageRequest) ToMap() (map[string]interface{}, error)

func (*ExportTransportPackageRequest) UnmarshalJSON

func (o *ExportTransportPackageRequest) UnmarshalJSON(data []byte) (err error)

type ExportTransportPackageResponse

type ExportTransportPackageResponse struct {
	Msg            string `json:"msg"`
	FileName       string `json:"fileName"`
	MsgDescription string `json:"msgDescription"`
	Errorcode      int32  `json:"errorcode"`
}

ExportTransportPackageResponse struct for ExportTransportPackageResponse

func NewExportTransportPackageResponse

func NewExportTransportPackageResponse(msg string, fileName string, msgDescription string, errorcode int32) *ExportTransportPackageResponse

NewExportTransportPackageResponse instantiates a new ExportTransportPackageResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExportTransportPackageResponseWithDefaults

func NewExportTransportPackageResponseWithDefaults() *ExportTransportPackageResponse

NewExportTransportPackageResponseWithDefaults instantiates a new ExportTransportPackageResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExportTransportPackageResponse) GetErrorcode

func (o *ExportTransportPackageResponse) GetErrorcode() int32

GetErrorcode returns the Errorcode field value

func (*ExportTransportPackageResponse) GetErrorcodeOk

func (o *ExportTransportPackageResponse) GetErrorcodeOk() (*int32, bool)

GetErrorcodeOk returns a tuple with the Errorcode field value and a boolean to check if the value has been set.

func (*ExportTransportPackageResponse) GetFileName

func (o *ExportTransportPackageResponse) GetFileName() string

GetFileName returns the FileName field value

func (*ExportTransportPackageResponse) GetFileNameOk

func (o *ExportTransportPackageResponse) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value and a boolean to check if the value has been set.

func (*ExportTransportPackageResponse) GetMsg

GetMsg returns the Msg field value

func (*ExportTransportPackageResponse) GetMsgDescription

func (o *ExportTransportPackageResponse) GetMsgDescription() string

GetMsgDescription returns the MsgDescription field value

func (*ExportTransportPackageResponse) GetMsgDescriptionOk

func (o *ExportTransportPackageResponse) GetMsgDescriptionOk() (*string, bool)

GetMsgDescriptionOk returns a tuple with the MsgDescription field value and a boolean to check if the value has been set.

func (*ExportTransportPackageResponse) GetMsgOk

func (o *ExportTransportPackageResponse) GetMsgOk() (*string, bool)

GetMsgOk returns a tuple with the Msg field value and a boolean to check if the value has been set.

func (ExportTransportPackageResponse) MarshalJSON

func (o ExportTransportPackageResponse) MarshalJSON() ([]byte, error)

func (*ExportTransportPackageResponse) SetErrorcode

func (o *ExportTransportPackageResponse) SetErrorcode(v int32)

SetErrorcode sets field value

func (*ExportTransportPackageResponse) SetFileName

func (o *ExportTransportPackageResponse) SetFileName(v string)

SetFileName sets field value

func (*ExportTransportPackageResponse) SetMsg

SetMsg sets field value

func (*ExportTransportPackageResponse) SetMsgDescription

func (o *ExportTransportPackageResponse) SetMsgDescription(v string)

SetMsgDescription sets field value

func (ExportTransportPackageResponse) ToMap

func (o ExportTransportPackageResponse) ToMap() (map[string]interface{}, error)

func (*ExportTransportPackageResponse) UnmarshalJSON added in v0.3.0

func (o *ExportTransportPackageResponse) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type ImportTransportPackageRequest

type ImportTransportPackageRequest struct {
	// Complete path of the package that needs to be imported
	Packagetoimport string `json:"packagetoimport"`
	// username of the user importing the package
	Updateuser            *string `json:"updateuser,omitempty"`
	Businessjustification *string `json:"businessjustification,omitempty"`
}

ImportTransportPackageRequest struct for ImportTransportPackageRequest

func NewImportTransportPackageRequest

func NewImportTransportPackageRequest(packagetoimport string) *ImportTransportPackageRequest

NewImportTransportPackageRequest instantiates a new ImportTransportPackageRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewImportTransportPackageRequestWithDefaults

func NewImportTransportPackageRequestWithDefaults() *ImportTransportPackageRequest

NewImportTransportPackageRequestWithDefaults instantiates a new ImportTransportPackageRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ImportTransportPackageRequest) GetBusinessjustification

func (o *ImportTransportPackageRequest) GetBusinessjustification() string

GetBusinessjustification returns the Businessjustification field value if set, zero value otherwise.

func (*ImportTransportPackageRequest) GetBusinessjustificationOk

func (o *ImportTransportPackageRequest) GetBusinessjustificationOk() (*string, bool)

GetBusinessjustificationOk returns a tuple with the Businessjustification field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageRequest) GetPackagetoimport

func (o *ImportTransportPackageRequest) GetPackagetoimport() string

GetPackagetoimport returns the Packagetoimport field value

func (*ImportTransportPackageRequest) GetPackagetoimportOk

func (o *ImportTransportPackageRequest) GetPackagetoimportOk() (*string, bool)

GetPackagetoimportOk returns a tuple with the Packagetoimport field value and a boolean to check if the value has been set.

func (*ImportTransportPackageRequest) GetUpdateuser

func (o *ImportTransportPackageRequest) GetUpdateuser() string

GetUpdateuser returns the Updateuser field value if set, zero value otherwise.

func (*ImportTransportPackageRequest) GetUpdateuserOk

func (o *ImportTransportPackageRequest) GetUpdateuserOk() (*string, bool)

GetUpdateuserOk returns a tuple with the Updateuser field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageRequest) HasBusinessjustification

func (o *ImportTransportPackageRequest) HasBusinessjustification() bool

HasBusinessjustification returns a boolean if a field has been set.

func (*ImportTransportPackageRequest) HasUpdateuser

func (o *ImportTransportPackageRequest) HasUpdateuser() bool

HasUpdateuser returns a boolean if a field has been set.

func (ImportTransportPackageRequest) MarshalJSON

func (o ImportTransportPackageRequest) MarshalJSON() ([]byte, error)

func (*ImportTransportPackageRequest) SetBusinessjustification

func (o *ImportTransportPackageRequest) SetBusinessjustification(v string)

SetBusinessjustification gets a reference to the given string and assigns it to the Businessjustification field.

func (*ImportTransportPackageRequest) SetPackagetoimport

func (o *ImportTransportPackageRequest) SetPackagetoimport(v string)

SetPackagetoimport sets field value

func (*ImportTransportPackageRequest) SetUpdateuser

func (o *ImportTransportPackageRequest) SetUpdateuser(v string)

SetUpdateuser gets a reference to the given string and assigns it to the Updateuser field.

func (ImportTransportPackageRequest) ToMap

func (o ImportTransportPackageRequest) ToMap() (map[string]interface{}, error)

func (*ImportTransportPackageRequest) UnmarshalJSON

func (o *ImportTransportPackageRequest) UnmarshalJSON(data []byte) (err error)

type ImportTransportPackageResponse

type ImportTransportPackageResponse struct {
	Msg            *string `json:"msg,omitempty"`
	RequestId      *string `json:"requestId,omitempty"`
	MsgDescription *string `json:"msgDescription,omitempty"`
	Errorcode      *int32  `json:"errorcode,omitempty"`
}

ImportTransportPackageResponse struct for ImportTransportPackageResponse

func NewImportTransportPackageResponse

func NewImportTransportPackageResponse() *ImportTransportPackageResponse

NewImportTransportPackageResponse instantiates a new ImportTransportPackageResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewImportTransportPackageResponseWithDefaults

func NewImportTransportPackageResponseWithDefaults() *ImportTransportPackageResponse

NewImportTransportPackageResponseWithDefaults instantiates a new ImportTransportPackageResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ImportTransportPackageResponse) GetErrorcode

func (o *ImportTransportPackageResponse) GetErrorcode() int32

GetErrorcode returns the Errorcode field value if set, zero value otherwise.

func (*ImportTransportPackageResponse) GetErrorcodeOk

func (o *ImportTransportPackageResponse) GetErrorcodeOk() (*int32, bool)

GetErrorcodeOk returns a tuple with the Errorcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageResponse) GetMsg

GetMsg returns the Msg field value if set, zero value otherwise.

func (*ImportTransportPackageResponse) GetMsgDescription

func (o *ImportTransportPackageResponse) GetMsgDescription() string

GetMsgDescription returns the MsgDescription field value if set, zero value otherwise.

func (*ImportTransportPackageResponse) GetMsgDescriptionOk

func (o *ImportTransportPackageResponse) GetMsgDescriptionOk() (*string, bool)

GetMsgDescriptionOk returns a tuple with the MsgDescription field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageResponse) GetMsgOk

func (o *ImportTransportPackageResponse) GetMsgOk() (*string, bool)

GetMsgOk returns a tuple with the Msg field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageResponse) GetRequestId

func (o *ImportTransportPackageResponse) GetRequestId() string

GetRequestId returns the RequestId field value if set, zero value otherwise.

func (*ImportTransportPackageResponse) GetRequestIdOk

func (o *ImportTransportPackageResponse) GetRequestIdOk() (*string, bool)

GetRequestIdOk returns a tuple with the RequestId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ImportTransportPackageResponse) HasErrorcode

func (o *ImportTransportPackageResponse) HasErrorcode() bool

HasErrorcode returns a boolean if a field has been set.

func (*ImportTransportPackageResponse) HasMsg

HasMsg returns a boolean if a field has been set.

func (*ImportTransportPackageResponse) HasMsgDescription

func (o *ImportTransportPackageResponse) HasMsgDescription() bool

HasMsgDescription returns a boolean if a field has been set.

func (*ImportTransportPackageResponse) HasRequestId

func (o *ImportTransportPackageResponse) HasRequestId() bool

HasRequestId returns a boolean if a field has been set.

func (ImportTransportPackageResponse) MarshalJSON

func (o ImportTransportPackageResponse) MarshalJSON() ([]byte, error)

func (*ImportTransportPackageResponse) SetErrorcode

func (o *ImportTransportPackageResponse) SetErrorcode(v int32)

SetErrorcode gets a reference to the given int32 and assigns it to the Errorcode field.

func (*ImportTransportPackageResponse) SetMsg

SetMsg gets a reference to the given string and assigns it to the Msg field.

func (*ImportTransportPackageResponse) SetMsgDescription

func (o *ImportTransportPackageResponse) SetMsgDescription(v string)

SetMsgDescription gets a reference to the given string and assigns it to the MsgDescription field.

func (*ImportTransportPackageResponse) SetRequestId

func (o *ImportTransportPackageResponse) SetRequestId(v string)

SetRequestId gets a reference to the given string and assigns it to the RequestId field.

func (ImportTransportPackageResponse) ToMap

func (o ImportTransportPackageResponse) ToMap() (map[string]interface{}, error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableExportTransportPackageRequest

type NullableExportTransportPackageRequest struct {
	// contains filtered or unexported fields
}

func (NullableExportTransportPackageRequest) Get

func (NullableExportTransportPackageRequest) IsSet

func (NullableExportTransportPackageRequest) MarshalJSON

func (v NullableExportTransportPackageRequest) MarshalJSON() ([]byte, error)

func (*NullableExportTransportPackageRequest) Set

func (*NullableExportTransportPackageRequest) UnmarshalJSON

func (v *NullableExportTransportPackageRequest) UnmarshalJSON(src []byte) error

func (*NullableExportTransportPackageRequest) Unset

type NullableExportTransportPackageResponse

type NullableExportTransportPackageResponse struct {
	// contains filtered or unexported fields
}

func (NullableExportTransportPackageResponse) Get

func (NullableExportTransportPackageResponse) IsSet

func (NullableExportTransportPackageResponse) MarshalJSON

func (v NullableExportTransportPackageResponse) MarshalJSON() ([]byte, error)

func (*NullableExportTransportPackageResponse) Set

func (*NullableExportTransportPackageResponse) UnmarshalJSON

func (v *NullableExportTransportPackageResponse) UnmarshalJSON(src []byte) error

func (*NullableExportTransportPackageResponse) Unset

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableImportTransportPackageRequest

type NullableImportTransportPackageRequest struct {
	// contains filtered or unexported fields
}

func (NullableImportTransportPackageRequest) Get

func (NullableImportTransportPackageRequest) IsSet

func (NullableImportTransportPackageRequest) MarshalJSON

func (v NullableImportTransportPackageRequest) MarshalJSON() ([]byte, error)

func (*NullableImportTransportPackageRequest) Set

func (*NullableImportTransportPackageRequest) UnmarshalJSON

func (v *NullableImportTransportPackageRequest) UnmarshalJSON(src []byte) error

func (*NullableImportTransportPackageRequest) Unset

type NullableImportTransportPackageResponse

type NullableImportTransportPackageResponse struct {
	// contains filtered or unexported fields
}

func (NullableImportTransportPackageResponse) Get

func (NullableImportTransportPackageResponse) IsSet

func (NullableImportTransportPackageResponse) MarshalJSON

func (v NullableImportTransportPackageResponse) MarshalJSON() ([]byte, error)

func (*NullableImportTransportPackageResponse) Set

func (*NullableImportTransportPackageResponse) UnmarshalJSON

func (v *NullableImportTransportPackageResponse) UnmarshalJSON(src []byte) error

func (*NullableImportTransportPackageResponse) Unset

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableObjectsToExport

type NullableObjectsToExport struct {
	// contains filtered or unexported fields
}

func NewNullableObjectsToExport

func NewNullableObjectsToExport(val *ObjectsToExport) *NullableObjectsToExport

func (NullableObjectsToExport) Get

func (NullableObjectsToExport) IsSet

func (v NullableObjectsToExport) IsSet() bool

func (NullableObjectsToExport) MarshalJSON

func (v NullableObjectsToExport) MarshalJSON() ([]byte, error)

func (*NullableObjectsToExport) Set

func (*NullableObjectsToExport) UnmarshalJSON

func (v *NullableObjectsToExport) UnmarshalJSON(src []byte) error

func (*NullableObjectsToExport) Unset

func (v *NullableObjectsToExport) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTransportPackageStatusRequest

type NullableTransportPackageStatusRequest struct {
	// contains filtered or unexported fields
}

func (NullableTransportPackageStatusRequest) Get

func (NullableTransportPackageStatusRequest) IsSet

func (NullableTransportPackageStatusRequest) MarshalJSON

func (v NullableTransportPackageStatusRequest) MarshalJSON() ([]byte, error)

func (*NullableTransportPackageStatusRequest) Set

func (*NullableTransportPackageStatusRequest) UnmarshalJSON

func (v *NullableTransportPackageStatusRequest) UnmarshalJSON(src []byte) error

func (*NullableTransportPackageStatusRequest) Unset

type NullableTransportPackageStatusResponse

type NullableTransportPackageStatusResponse struct {
	// contains filtered or unexported fields
}

func (NullableTransportPackageStatusResponse) Get

func (NullableTransportPackageStatusResponse) IsSet

func (NullableTransportPackageStatusResponse) MarshalJSON

func (v NullableTransportPackageStatusResponse) MarshalJSON() ([]byte, error)

func (*NullableTransportPackageStatusResponse) Set

func (*NullableTransportPackageStatusResponse) UnmarshalJSON

func (v *NullableTransportPackageStatusResponse) UnmarshalJSON(src []byte) error

func (*NullableTransportPackageStatusResponse) Unset

type ObjectsToExport

type ObjectsToExport struct {
	SavRoles      []string `json:"savRoles,omitempty"`
	EmailTemplate []string `json:"emailTemplate,omitempty"`
}

ObjectsToExport struct for ObjectsToExport

func NewObjectsToExport

func NewObjectsToExport() *ObjectsToExport

NewObjectsToExport instantiates a new ObjectsToExport object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewObjectsToExportWithDefaults

func NewObjectsToExportWithDefaults() *ObjectsToExport

NewObjectsToExportWithDefaults instantiates a new ObjectsToExport object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ObjectsToExport) GetEmailTemplate

func (o *ObjectsToExport) GetEmailTemplate() []string

GetEmailTemplate returns the EmailTemplate field value if set, zero value otherwise.

func (*ObjectsToExport) GetEmailTemplateOk

func (o *ObjectsToExport) GetEmailTemplateOk() ([]string, bool)

GetEmailTemplateOk returns a tuple with the EmailTemplate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectsToExport) GetSavRoles

func (o *ObjectsToExport) GetSavRoles() []string

GetSavRoles returns the SavRoles field value if set, zero value otherwise.

func (*ObjectsToExport) GetSavRolesOk

func (o *ObjectsToExport) GetSavRolesOk() ([]string, bool)

GetSavRolesOk returns a tuple with the SavRoles field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectsToExport) HasEmailTemplate

func (o *ObjectsToExport) HasEmailTemplate() bool

HasEmailTemplate returns a boolean if a field has been set.

func (*ObjectsToExport) HasSavRoles

func (o *ObjectsToExport) HasSavRoles() bool

HasSavRoles returns a boolean if a field has been set.

func (ObjectsToExport) MarshalJSON

func (o ObjectsToExport) MarshalJSON() ([]byte, error)

func (*ObjectsToExport) SetEmailTemplate

func (o *ObjectsToExport) SetEmailTemplate(v []string)

SetEmailTemplate gets a reference to the given []string and assigns it to the EmailTemplate field.

func (*ObjectsToExport) SetSavRoles

func (o *ObjectsToExport) SetSavRoles(v []string)

SetSavRoles gets a reference to the given []string and assigns it to the SavRoles field.

func (ObjectsToExport) ToMap

func (o ObjectsToExport) ToMap() (map[string]interface{}, error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type TransportAPIService

type TransportAPIService service

TransportAPIService TransportAPI service

func (*TransportAPIService) ExportTransportPackage

ExportTransportPackage Export Transport Package

This API creates a compressed file containing objects specified for T2P migration.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiExportTransportPackageRequest

func (*TransportAPIService) ExportTransportPackageExecute

Execute executes the request

@return ExportTransportPackageResponse

func (*TransportAPIService) ImportTransportPackage

ImportTransportPackage Import Transport Package

This API imports a compressed file containing objects specified for T2P migration.

Supported objects:

savRoles, emailTemplate, roles, analyticsV1, analyticsV2, globalConfig, workflows, connection, appOnboarding, userGroups, scanRules, organizations, securitySystems

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiImportTransportPackageRequest

func (*TransportAPIService) ImportTransportPackageExecute

Execute executes the request

@return ImportTransportPackageResponse

func (*TransportAPIService) TransportPackageStatus

TransportPackageStatus Transport Package Status

This API obtains the status of the transport request (import, export, or transfer), and helps in confirming whether the transport was completed successfully or failed.

Note: This API returns the status of only those requests that have been processed using the Enhanced Transport feature.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTransportPackageStatusRequest

func (*TransportAPIService) TransportPackageStatusExecute

Execute executes the request

@return TransportPackageStatusResponse

type TransportPackageStatusRequest

type TransportPackageStatusRequest struct {
	// enter the type of transport request (export, import, or transfer)
	Operation string `json:"operation"`
	// enter the transport package zip file name in full (including the .zip extension)
	Filename string `json:"filename"`
	// (required only if the operation is import) - enter the request ID generated during the submission of the import request
	Requestid *string `json:"requestid,omitempty"`
}

TransportPackageStatusRequest struct for TransportPackageStatusRequest

func NewTransportPackageStatusRequest

func NewTransportPackageStatusRequest(operation string, filename string) *TransportPackageStatusRequest

NewTransportPackageStatusRequest instantiates a new TransportPackageStatusRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportPackageStatusRequestWithDefaults

func NewTransportPackageStatusRequestWithDefaults() *TransportPackageStatusRequest

NewTransportPackageStatusRequestWithDefaults instantiates a new TransportPackageStatusRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportPackageStatusRequest) GetFilename

func (o *TransportPackageStatusRequest) GetFilename() string

GetFilename returns the Filename field value

func (*TransportPackageStatusRequest) GetFilenameOk

func (o *TransportPackageStatusRequest) GetFilenameOk() (*string, bool)

GetFilenameOk returns a tuple with the Filename field value and a boolean to check if the value has been set.

func (*TransportPackageStatusRequest) GetOperation

func (o *TransportPackageStatusRequest) GetOperation() string

GetOperation returns the Operation field value

func (*TransportPackageStatusRequest) GetOperationOk

func (o *TransportPackageStatusRequest) GetOperationOk() (*string, bool)

GetOperationOk returns a tuple with the Operation field value and a boolean to check if the value has been set.

func (*TransportPackageStatusRequest) GetRequestid

func (o *TransportPackageStatusRequest) GetRequestid() string

GetRequestid returns the Requestid field value if set, zero value otherwise.

func (*TransportPackageStatusRequest) GetRequestidOk

func (o *TransportPackageStatusRequest) GetRequestidOk() (*string, bool)

GetRequestidOk returns a tuple with the Requestid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransportPackageStatusRequest) HasRequestid

func (o *TransportPackageStatusRequest) HasRequestid() bool

HasRequestid returns a boolean if a field has been set.

func (TransportPackageStatusRequest) MarshalJSON

func (o TransportPackageStatusRequest) MarshalJSON() ([]byte, error)

func (*TransportPackageStatusRequest) SetFilename

func (o *TransportPackageStatusRequest) SetFilename(v string)

SetFilename sets field value

func (*TransportPackageStatusRequest) SetOperation

func (o *TransportPackageStatusRequest) SetOperation(v string)

SetOperation sets field value

func (*TransportPackageStatusRequest) SetRequestid

func (o *TransportPackageStatusRequest) SetRequestid(v string)

SetRequestid gets a reference to the given string and assigns it to the Requestid field.

func (TransportPackageStatusRequest) ToMap

func (o TransportPackageStatusRequest) ToMap() (map[string]interface{}, error)

func (*TransportPackageStatusRequest) UnmarshalJSON

func (o *TransportPackageStatusRequest) UnmarshalJSON(data []byte) (err error)

type TransportPackageStatusResponse

type TransportPackageStatusResponse struct {
	Msg            string `json:"msg"`
	MsgDescription string `json:"msgDescription"`
	ErrorCode      int32  `json:"errorCode"`
}

TransportPackageStatusResponse struct for TransportPackageStatusResponse

func NewTransportPackageStatusResponse

func NewTransportPackageStatusResponse(msg string, msgDescription string, errorCode int32) *TransportPackageStatusResponse

NewTransportPackageStatusResponse instantiates a new TransportPackageStatusResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransportPackageStatusResponseWithDefaults

func NewTransportPackageStatusResponseWithDefaults() *TransportPackageStatusResponse

NewTransportPackageStatusResponseWithDefaults instantiates a new TransportPackageStatusResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransportPackageStatusResponse) GetErrorCode

func (o *TransportPackageStatusResponse) GetErrorCode() int32

GetErrorCode returns the ErrorCode field value

func (*TransportPackageStatusResponse) GetErrorCodeOk

func (o *TransportPackageStatusResponse) GetErrorCodeOk() (*int32, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*TransportPackageStatusResponse) GetMsg

GetMsg returns the Msg field value

func (*TransportPackageStatusResponse) GetMsgDescription

func (o *TransportPackageStatusResponse) GetMsgDescription() string

GetMsgDescription returns the MsgDescription field value

func (*TransportPackageStatusResponse) GetMsgDescriptionOk

func (o *TransportPackageStatusResponse) GetMsgDescriptionOk() (*string, bool)

GetMsgDescriptionOk returns a tuple with the MsgDescription field value and a boolean to check if the value has been set.

func (*TransportPackageStatusResponse) GetMsgOk

func (o *TransportPackageStatusResponse) GetMsgOk() (*string, bool)

GetMsgOk returns a tuple with the Msg field value and a boolean to check if the value has been set.

func (TransportPackageStatusResponse) MarshalJSON

func (o TransportPackageStatusResponse) MarshalJSON() ([]byte, error)

func (*TransportPackageStatusResponse) SetErrorCode

func (o *TransportPackageStatusResponse) SetErrorCode(v int32)

SetErrorCode sets field value

func (*TransportPackageStatusResponse) SetMsg

SetMsg sets field value

func (*TransportPackageStatusResponse) SetMsgDescription

func (o *TransportPackageStatusResponse) SetMsgDescription(v string)

SetMsgDescription sets field value

func (TransportPackageStatusResponse) ToMap

func (o TransportPackageStatusResponse) ToMap() (map[string]interface{}, error)

func (*TransportPackageStatusResponse) UnmarshalJSON added in v0.3.0

func (o *TransportPackageStatusResponse) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL