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 NewCranUpstream(name string, upstreamUrl string, ) *CranUpstream
NewCranUpstream instantiates a new CranUpstream 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 NewCranUpstreamWithDefaults() *CranUpstream
NewCranUpstreamWithDefaults instantiates a new CranUpstream 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 *CranUpstream) GetAuthMode() string
GetAuthMode returns the AuthMode field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetAuthMode(v string)
SetAuthMode sets AuthMode field to given value.
func (o *CranUpstream) HasAuthMode() bool
HasAuthMode returns a boolean if a field has been set.
func (o *CranUpstream) GetAuthSecret() string
GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetAuthSecret(v string)
SetAuthSecret sets AuthSecret field to given value.
func (o *CranUpstream) HasAuthSecret() bool
HasAuthSecret returns a boolean if a field has been set.
func (o *CranUpstream) SetAuthSecretNil(b bool)
SetAuthSecretNil sets the value for AuthSecret to be an explicit nil
func (o *CranUpstream) UnsetAuthSecret()
UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil
func (o *CranUpstream) GetAuthUsername() string
GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetAuthUsername(v string)
SetAuthUsername sets AuthUsername field to given value.
func (o *CranUpstream) HasAuthUsername() bool
HasAuthUsername returns a boolean if a field has been set.
func (o *CranUpstream) SetAuthUsernameNil(b bool)
SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil
func (o *CranUpstream) UnsetAuthUsername()
UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil
func (o *CranUpstream) GetCreatedAt() time.Time
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetCreatedAt(v time.Time)
SetCreatedAt sets CreatedAt field to given value.
func (o *CranUpstream) HasCreatedAt() bool
HasCreatedAt returns a boolean if a field has been set.
func (o *CranUpstream) GetDisableReason() string
GetDisableReason returns the DisableReason field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetDisableReason(v string)
SetDisableReason sets DisableReason field to given value.
func (o *CranUpstream) HasDisableReason() bool
HasDisableReason returns a boolean if a field has been set.
func (o *CranUpstream) GetExtraHeader1() string
GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetExtraHeader1(v string)
SetExtraHeader1 sets ExtraHeader1 field to given value.
func (o *CranUpstream) HasExtraHeader1() bool
HasExtraHeader1 returns a boolean if a field has been set.
func (o *CranUpstream) SetExtraHeader1Nil(b bool)
SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil
func (o *CranUpstream) UnsetExtraHeader1()
UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil
func (o *CranUpstream) GetExtraHeader2() string
GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetExtraHeader2(v string)
SetExtraHeader2 sets ExtraHeader2 field to given value.
func (o *CranUpstream) HasExtraHeader2() bool
HasExtraHeader2 returns a boolean if a field has been set.
func (o *CranUpstream) SetExtraHeader2Nil(b bool)
SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil
func (o *CranUpstream) UnsetExtraHeader2()
UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil
func (o *CranUpstream) GetExtraValue1() string
GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetExtraValue1(v string)
SetExtraValue1 sets ExtraValue1 field to given value.
func (o *CranUpstream) HasExtraValue1() bool
HasExtraValue1 returns a boolean if a field has been set.
func (o *CranUpstream) SetExtraValue1Nil(b bool)
SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil
func (o *CranUpstream) UnsetExtraValue1()
UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil
func (o *CranUpstream) GetExtraValue2() string
GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetExtraValue2(v string)
SetExtraValue2 sets ExtraValue2 field to given value.
func (o *CranUpstream) HasExtraValue2() bool
HasExtraValue2 returns a boolean if a field has been set.
func (o *CranUpstream) SetExtraValue2Nil(b bool)
SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil
func (o *CranUpstream) UnsetExtraValue2()
UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil
func (o *CranUpstream) GetIsActive() bool
GetIsActive returns the IsActive field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetIsActive(v bool)
SetIsActive sets IsActive field to given value.
func (o *CranUpstream) HasIsActive() bool
HasIsActive returns a boolean if a field has been set.
func (o *CranUpstream) GetMode() string
GetMode returns the Mode field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetMode(v string)
SetMode sets Mode field to given value.
func (o *CranUpstream) HasMode() bool
HasMode returns a boolean if a field has been set.
func (o *CranUpstream) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetName(v string)
SetName sets Name field to given value.
func (o *CranUpstream) GetPendingValidation() bool
GetPendingValidation returns the PendingValidation field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetPendingValidation(v bool)
SetPendingValidation sets PendingValidation field to given value.
func (o *CranUpstream) HasPendingValidation() bool
HasPendingValidation returns a boolean if a field has been set.
func (o *CranUpstream) GetPriority() int64
GetPriority returns the Priority field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetPriority(v int64)
SetPriority sets Priority field to given value.
func (o *CranUpstream) HasPriority() bool
HasPriority returns a boolean if a field has been set.
func (o *CranUpstream) GetSlugPerm() string
GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetSlugPerm(v string)
SetSlugPerm sets SlugPerm field to given value.
func (o *CranUpstream) HasSlugPerm() bool
HasSlugPerm returns a boolean if a field has been set.
func (o *CranUpstream) GetUpdatedAt() time.Time
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetUpdatedAt(v time.Time)
SetUpdatedAt sets UpdatedAt field to given value.
func (o *CranUpstream) HasUpdatedAt() bool
HasUpdatedAt returns a boolean if a field has been set.
func (o *CranUpstream) GetUpstreamUrl() string
GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetUpstreamUrl(v string)
SetUpstreamUrl sets UpstreamUrl field to given value.
func (o *CranUpstream) GetVerifySsl() bool
GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise.
func (o *CranUpstream) 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 *CranUpstream) SetVerifySsl(v bool)
SetVerifySsl sets VerifySsl field to given value.
func (o *CranUpstream) HasVerifySsl() bool
HasVerifySsl returns a boolean if a field has been set.