Name | Type | Description | Notes |
---|---|---|---|
AuthMode | Pointer to string | The authentication mode to use when accessing this upstream. | [optional] [default to "None"] |
AuthSecret | Pointer to NullableString | Secret to provide with requests to upstream. | [optional] |
AuthUsername | Pointer to NullableString | Username to provide with requests to upstream. | [optional] |
CreatedAt | Pointer to time.Time | The datetime the upstream source was created. | [optional] [readonly] |
DisableReason | Pointer to string | [optional] [readonly] [default to "N/A"] | |
ExtraHeader1 | Pointer to NullableString | The key for extra header #1 to send to upstream. | [optional] |
ExtraHeader2 | Pointer to NullableString | The key for extra header #2 to send to upstream. | [optional] |
ExtraValue1 | Pointer to NullableString | The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] |
ExtraValue2 | Pointer to NullableString | The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted. | [optional] |
IsActive | Pointer to bool | Whether or not this upstream is active and ready for requests. | [optional] |
Mode | Pointer to string | The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode. | [optional] [default to "Proxy Only"] |
Name | string | A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream. | |
PendingValidation | Pointer to bool | When true, this upstream source is pending validation. | [optional] [readonly] |
Priority | Pointer to int64 | Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. | [optional] |
SlugPerm | Pointer to string | [optional] [readonly] | |
UpdatedAt | Pointer to time.Time | [optional] [readonly] | |
UpstreamUrl | string | The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository. | |
VerifySsl | Pointer to bool | If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams. | [optional] |
func NewComposerUpstream(name string, upstreamUrl string, ) *ComposerUpstream
NewComposerUpstream instantiates a new ComposerUpstream 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 NewComposerUpstreamWithDefaults() *ComposerUpstream
NewComposerUpstreamWithDefaults instantiates a new ComposerUpstream 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 (o *ComposerUpstream) GetAuthMode() string
GetAuthMode returns the AuthMode field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetAuthModeOk() (*string, bool)
GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetAuthMode(v string)
SetAuthMode sets AuthMode field to given value.
func (o *ComposerUpstream) HasAuthMode() bool
HasAuthMode returns a boolean if a field has been set.
func (o *ComposerUpstream) GetAuthSecret() string
GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetAuthSecretOk() (*string, bool)
GetAuthSecretOk returns a tuple with the AuthSecret field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetAuthSecret(v string)
SetAuthSecret sets AuthSecret field to given value.
func (o *ComposerUpstream) HasAuthSecret() bool
HasAuthSecret returns a boolean if a field has been set.
func (o *ComposerUpstream) SetAuthSecretNil(b bool)
SetAuthSecretNil sets the value for AuthSecret to be an explicit nil
func (o *ComposerUpstream) UnsetAuthSecret()
UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil
func (o *ComposerUpstream) GetAuthUsername() string
GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetAuthUsernameOk() (*string, bool)
GetAuthUsernameOk returns a tuple with the AuthUsername field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetAuthUsername(v string)
SetAuthUsername sets AuthUsername field to given value.
func (o *ComposerUpstream) HasAuthUsername() bool
HasAuthUsername returns a boolean if a field has been set.
func (o *ComposerUpstream) SetAuthUsernameNil(b bool)
SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil
func (o *ComposerUpstream) UnsetAuthUsername()
UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil
func (o *ComposerUpstream) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetCreatedAtOk() (*time.Time, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *ComposerUpstream) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *ComposerUpstream) GetDisableReason() string
GetDisableReason returns the DisableReason field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetDisableReasonOk() (*string, bool)
GetDisableReasonOk returns a tuple with the DisableReason field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetDisableReason(v string)
SetDisableReason sets DisableReason field to given value.
func (o *ComposerUpstream) HasDisableReason() bool
HasDisableReason returns a boolean if a field has been set.
func (o *ComposerUpstream) GetExtraHeader1() string
GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetExtraHeader1Ok() (*string, bool)
GetExtraHeader1Ok returns a tuple with the ExtraHeader1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetExtraHeader1(v string)
SetExtraHeader1 sets ExtraHeader1 field to given value.
func (o *ComposerUpstream) HasExtraHeader1() bool
HasExtraHeader1 returns a boolean if a field has been set.
func (o *ComposerUpstream) SetExtraHeader1Nil(b bool)
SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil
func (o *ComposerUpstream) UnsetExtraHeader1()
UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil
func (o *ComposerUpstream) GetExtraHeader2() string
GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetExtraHeader2Ok() (*string, bool)
GetExtraHeader2Ok returns a tuple with the ExtraHeader2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetExtraHeader2(v string)
SetExtraHeader2 sets ExtraHeader2 field to given value.
func (o *ComposerUpstream) HasExtraHeader2() bool
HasExtraHeader2 returns a boolean if a field has been set.
func (o *ComposerUpstream) SetExtraHeader2Nil(b bool)
SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil
func (o *ComposerUpstream) UnsetExtraHeader2()
UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil
func (o *ComposerUpstream) GetExtraValue1() string
GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetExtraValue1Ok() (*string, bool)
GetExtraValue1Ok returns a tuple with the ExtraValue1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetExtraValue1(v string)
SetExtraValue1 sets ExtraValue1 field to given value.
func (o *ComposerUpstream) HasExtraValue1() bool
HasExtraValue1 returns a boolean if a field has been set.
func (o *ComposerUpstream) SetExtraValue1Nil(b bool)
SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil
func (o *ComposerUpstream) UnsetExtraValue1()
UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil
func (o *ComposerUpstream) GetExtraValue2() string
GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetExtraValue2Ok() (*string, bool)
GetExtraValue2Ok returns a tuple with the ExtraValue2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetExtraValue2(v string)
SetExtraValue2 sets ExtraValue2 field to given value.
func (o *ComposerUpstream) HasExtraValue2() bool
HasExtraValue2 returns a boolean if a field has been set.
func (o *ComposerUpstream) SetExtraValue2Nil(b bool)
SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil
func (o *ComposerUpstream) UnsetExtraValue2()
UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil
func (o *ComposerUpstream) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetIsActiveOk() (*bool, bool)
GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *ComposerUpstream) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o *ComposerUpstream) GetMode() string
GetMode returns the Mode field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetModeOk() (*string, bool)
GetModeOk returns a tuple with the Mode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetMode(v string)
SetMode sets Mode field to given value.
func (o *ComposerUpstream) HasMode() bool
HasMode returns a boolean if a field has been set.
func (o *ComposerUpstream) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetName(v string)
SetName sets Name field to given value.
func (o *ComposerUpstream) GetPendingValidation() bool
GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetPendingValidationOk() (*bool, bool)
GetPendingValidationOk returns a tuple with the PendingValidation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetPendingValidation(v bool)
SetPendingValidation sets PendingValidation field to given value.
func (o *ComposerUpstream) HasPendingValidation() bool
HasPendingValidation returns a boolean if a field has been set.
func (o *ComposerUpstream) GetPriority() int64
GetPriority returns the Priority field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetPriorityOk() (*int64, bool)
GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetPriority(v int64)
SetPriority sets Priority field to given value.
func (o *ComposerUpstream) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *ComposerUpstream) GetSlugPerm() string
GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetSlugPermOk() (*string, bool)
GetSlugPermOk returns a tuple with the SlugPerm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetSlugPerm(v string)
SetSlugPerm sets SlugPerm field to given value.
func (o *ComposerUpstream) HasSlugPerm() bool
HasSlugPerm returns a boolean if a field has been set.
func (o *ComposerUpstream) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetUpdatedAtOk() (*time.Time, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *ComposerUpstream) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *ComposerUpstream) GetUpstreamUrl() string
GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetUpstreamUrlOk() (*string, bool)
GetUpstreamUrlOk returns a tuple with the UpstreamUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetUpstreamUrl(v string)
SetUpstreamUrl sets UpstreamUrl field to given value.
func (o *ComposerUpstream) GetVerifySsl() bool
GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise.
func (o *ComposerUpstream) GetVerifySslOk() (*bool, bool)
GetVerifySslOk returns a tuple with the VerifySsl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *ComposerUpstream) SetVerifySsl(v bool)
SetVerifySsl sets VerifySsl field to given value.
func (o *ComposerUpstream) HasVerifySsl() bool
HasVerifySsl returns a boolean if a field has been set.