Skip to content

Latest commit

 

History

History
428 lines (235 loc) · 13.4 KB

CranUpstreamRequestPatch.md

File metadata and controls

428 lines (235 loc) · 13.4 KB

CranUpstreamRequestPatch

Properties

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]
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 Pointer to 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. [optional]
Priority Pointer to int64 Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date. [optional]
UpstreamUrl Pointer to 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. [optional]
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]

Methods

NewCranUpstreamRequestPatch

func NewCranUpstreamRequestPatch() *CranUpstreamRequestPatch

NewCranUpstreamRequestPatch instantiates a new CranUpstreamRequestPatch 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

NewCranUpstreamRequestPatchWithDefaults

func NewCranUpstreamRequestPatchWithDefaults() *CranUpstreamRequestPatch

NewCranUpstreamRequestPatchWithDefaults instantiates a new CranUpstreamRequestPatch 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

GetAuthMode

func (o *CranUpstreamRequestPatch) GetAuthMode() string

GetAuthMode returns the AuthMode field if non-nil, zero value otherwise.

GetAuthModeOk

func (o *CranUpstreamRequestPatch) 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.

SetAuthMode

func (o *CranUpstreamRequestPatch) SetAuthMode(v string)

SetAuthMode sets AuthMode field to given value.

HasAuthMode

func (o *CranUpstreamRequestPatch) HasAuthMode() bool

HasAuthMode returns a boolean if a field has been set.

GetAuthSecret

func (o *CranUpstreamRequestPatch) GetAuthSecret() string

GetAuthSecret returns the AuthSecret field if non-nil, zero value otherwise.

GetAuthSecretOk

func (o *CranUpstreamRequestPatch) 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.

SetAuthSecret

func (o *CranUpstreamRequestPatch) SetAuthSecret(v string)

SetAuthSecret sets AuthSecret field to given value.

HasAuthSecret

func (o *CranUpstreamRequestPatch) HasAuthSecret() bool

HasAuthSecret returns a boolean if a field has been set.

SetAuthSecretNil

func (o *CranUpstreamRequestPatch) SetAuthSecretNil(b bool)

SetAuthSecretNil sets the value for AuthSecret to be an explicit nil

UnsetAuthSecret

func (o *CranUpstreamRequestPatch) UnsetAuthSecret()

UnsetAuthSecret ensures that no value is present for AuthSecret, not even an explicit nil

GetAuthUsername

func (o *CranUpstreamRequestPatch) GetAuthUsername() string

GetAuthUsername returns the AuthUsername field if non-nil, zero value otherwise.

GetAuthUsernameOk

func (o *CranUpstreamRequestPatch) 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.

SetAuthUsername

func (o *CranUpstreamRequestPatch) SetAuthUsername(v string)

SetAuthUsername sets AuthUsername field to given value.

HasAuthUsername

func (o *CranUpstreamRequestPatch) HasAuthUsername() bool

HasAuthUsername returns a boolean if a field has been set.

SetAuthUsernameNil

func (o *CranUpstreamRequestPatch) SetAuthUsernameNil(b bool)

SetAuthUsernameNil sets the value for AuthUsername to be an explicit nil

UnsetAuthUsername

func (o *CranUpstreamRequestPatch) UnsetAuthUsername()

UnsetAuthUsername ensures that no value is present for AuthUsername, not even an explicit nil

GetExtraHeader1

func (o *CranUpstreamRequestPatch) GetExtraHeader1() string

GetExtraHeader1 returns the ExtraHeader1 field if non-nil, zero value otherwise.

GetExtraHeader1Ok

func (o *CranUpstreamRequestPatch) 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.

SetExtraHeader1

func (o *CranUpstreamRequestPatch) SetExtraHeader1(v string)

SetExtraHeader1 sets ExtraHeader1 field to given value.

HasExtraHeader1

func (o *CranUpstreamRequestPatch) HasExtraHeader1() bool

HasExtraHeader1 returns a boolean if a field has been set.

SetExtraHeader1Nil

func (o *CranUpstreamRequestPatch) SetExtraHeader1Nil(b bool)

SetExtraHeader1Nil sets the value for ExtraHeader1 to be an explicit nil

UnsetExtraHeader1

func (o *CranUpstreamRequestPatch) UnsetExtraHeader1()

UnsetExtraHeader1 ensures that no value is present for ExtraHeader1, not even an explicit nil

GetExtraHeader2

func (o *CranUpstreamRequestPatch) GetExtraHeader2() string

GetExtraHeader2 returns the ExtraHeader2 field if non-nil, zero value otherwise.

GetExtraHeader2Ok

func (o *CranUpstreamRequestPatch) 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.

SetExtraHeader2

func (o *CranUpstreamRequestPatch) SetExtraHeader2(v string)

SetExtraHeader2 sets ExtraHeader2 field to given value.

HasExtraHeader2

func (o *CranUpstreamRequestPatch) HasExtraHeader2() bool

HasExtraHeader2 returns a boolean if a field has been set.

SetExtraHeader2Nil

func (o *CranUpstreamRequestPatch) SetExtraHeader2Nil(b bool)

SetExtraHeader2Nil sets the value for ExtraHeader2 to be an explicit nil

UnsetExtraHeader2

func (o *CranUpstreamRequestPatch) UnsetExtraHeader2()

UnsetExtraHeader2 ensures that no value is present for ExtraHeader2, not even an explicit nil

GetExtraValue1

func (o *CranUpstreamRequestPatch) GetExtraValue1() string

GetExtraValue1 returns the ExtraValue1 field if non-nil, zero value otherwise.

GetExtraValue1Ok

func (o *CranUpstreamRequestPatch) 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.

SetExtraValue1

func (o *CranUpstreamRequestPatch) SetExtraValue1(v string)

SetExtraValue1 sets ExtraValue1 field to given value.

HasExtraValue1

func (o *CranUpstreamRequestPatch) HasExtraValue1() bool

HasExtraValue1 returns a boolean if a field has been set.

SetExtraValue1Nil

func (o *CranUpstreamRequestPatch) SetExtraValue1Nil(b bool)

SetExtraValue1Nil sets the value for ExtraValue1 to be an explicit nil

UnsetExtraValue1

func (o *CranUpstreamRequestPatch) UnsetExtraValue1()

UnsetExtraValue1 ensures that no value is present for ExtraValue1, not even an explicit nil

GetExtraValue2

func (o *CranUpstreamRequestPatch) GetExtraValue2() string

GetExtraValue2 returns the ExtraValue2 field if non-nil, zero value otherwise.

GetExtraValue2Ok

func (o *CranUpstreamRequestPatch) 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.

SetExtraValue2

func (o *CranUpstreamRequestPatch) SetExtraValue2(v string)

SetExtraValue2 sets ExtraValue2 field to given value.

HasExtraValue2

func (o *CranUpstreamRequestPatch) HasExtraValue2() bool

HasExtraValue2 returns a boolean if a field has been set.

SetExtraValue2Nil

func (o *CranUpstreamRequestPatch) SetExtraValue2Nil(b bool)

SetExtraValue2Nil sets the value for ExtraValue2 to be an explicit nil

UnsetExtraValue2

func (o *CranUpstreamRequestPatch) UnsetExtraValue2()

UnsetExtraValue2 ensures that no value is present for ExtraValue2, not even an explicit nil

GetIsActive

func (o *CranUpstreamRequestPatch) GetIsActive() bool

GetIsActive returns the IsActive field if non-nil, zero value otherwise.

GetIsActiveOk

func (o *CranUpstreamRequestPatch) 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.

SetIsActive

func (o *CranUpstreamRequestPatch) SetIsActive(v bool)

SetIsActive sets IsActive field to given value.

HasIsActive

func (o *CranUpstreamRequestPatch) HasIsActive() bool

HasIsActive returns a boolean if a field has been set.

GetMode

func (o *CranUpstreamRequestPatch) GetMode() string

GetMode returns the Mode field if non-nil, zero value otherwise.

GetModeOk

func (o *CranUpstreamRequestPatch) 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.

SetMode

func (o *CranUpstreamRequestPatch) SetMode(v string)

SetMode sets Mode field to given value.

HasMode

func (o *CranUpstreamRequestPatch) HasMode() bool

HasMode returns a boolean if a field has been set.

GetName

func (o *CranUpstreamRequestPatch) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *CranUpstreamRequestPatch) 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.

SetName

func (o *CranUpstreamRequestPatch) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *CranUpstreamRequestPatch) HasName() bool

HasName returns a boolean if a field has been set.

GetPriority

func (o *CranUpstreamRequestPatch) GetPriority() int64

GetPriority returns the Priority field if non-nil, zero value otherwise.

GetPriorityOk

func (o *CranUpstreamRequestPatch) 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.

SetPriority

func (o *CranUpstreamRequestPatch) SetPriority(v int64)

SetPriority sets Priority field to given value.

HasPriority

func (o *CranUpstreamRequestPatch) HasPriority() bool

HasPriority returns a boolean if a field has been set.

GetUpstreamUrl

func (o *CranUpstreamRequestPatch) GetUpstreamUrl() string

GetUpstreamUrl returns the UpstreamUrl field if non-nil, zero value otherwise.

GetUpstreamUrlOk

func (o *CranUpstreamRequestPatch) 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.

SetUpstreamUrl

func (o *CranUpstreamRequestPatch) SetUpstreamUrl(v string)

SetUpstreamUrl sets UpstreamUrl field to given value.

HasUpstreamUrl

func (o *CranUpstreamRequestPatch) HasUpstreamUrl() bool

HasUpstreamUrl returns a boolean if a field has been set.

GetVerifySsl

func (o *CranUpstreamRequestPatch) GetVerifySsl() bool

GetVerifySsl returns the VerifySsl field if non-nil, zero value otherwise.

GetVerifySslOk

func (o *CranUpstreamRequestPatch) 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.

SetVerifySsl

func (o *CranUpstreamRequestPatch) SetVerifySsl(v bool)

SetVerifySsl sets VerifySsl field to given value.

HasVerifySsl

func (o *CranUpstreamRequestPatch) HasVerifySsl() bool

HasVerifySsl returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]