Name | Type | Description | Notes |
---|---|---|---|
RetentionCountLimit | Pointer to int64 | The maximum X number of packages to retain. | [optional] |
RetentionDaysLimit | Pointer to int64 | The X number of days of packages to retain. | [optional] |
RetentionEnabled | Pointer to bool | If checked, the retention lifecycle rules will be activated for the repository. Any packages that don't match will be deleted automatically, and the rest are retained. | [optional] |
RetentionGroupByFormat | Pointer to bool | If checked, retention will apply to packages by package formats rather than across all package formats.For example, when retaining by a limit of 1 and you upload PythonPkg 1.0 and RubyPkg 1.0, no packages are deleted because they are different formats. | [optional] |
RetentionGroupByName | Pointer to bool | If checked, retention will apply to groups of packages by name rather than all packages.<br>For example, when retaining by a limit of 1 and you upload PkgA 1.0, PkgB 1.0 and PkgB 1.1; only PkgB 1.0 is deleted because there are two (2) PkgBs and one (1) PkgA. | [optional] |
RetentionGroupByPackageType | Pointer to bool | If checked, retention will apply to packages by package type (e.g. by binary, by source, etc.), rather than across all package types for one or more formats. <br>For example, when retaining by a limit of 1 and you upload DebPackage 1.0 and DebSourcePackage 1.0, no packages are deleted because they are different package types, binary and source respectively. | [optional] |
RetentionSizeLimit | Pointer to int64 | The maximum X total size (in bytes) of packages to retain. | [optional] |
func NewRepositoryRetentionRulesRequestPatch() *RepositoryRetentionRulesRequestPatch
NewRepositoryRetentionRulesRequestPatch instantiates a new RepositoryRetentionRulesRequestPatch 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 NewRepositoryRetentionRulesRequestPatchWithDefaults() *RepositoryRetentionRulesRequestPatch
NewRepositoryRetentionRulesRequestPatchWithDefaults instantiates a new RepositoryRetentionRulesRequestPatch 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 *RepositoryRetentionRulesRequestPatch) GetRetentionCountLimit() int64
GetRetentionCountLimit returns the RetentionCountLimit field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionCountLimitOk() (*int64, bool)
GetRetentionCountLimitOk returns a tuple with the RetentionCountLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionCountLimit(v int64)
SetRetentionCountLimit sets RetentionCountLimit field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionCountLimit() bool
HasRetentionCountLimit returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionDaysLimit() int64
GetRetentionDaysLimit returns the RetentionDaysLimit field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionDaysLimitOk() (*int64, bool)
GetRetentionDaysLimitOk returns a tuple with the RetentionDaysLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionDaysLimit(v int64)
SetRetentionDaysLimit sets RetentionDaysLimit field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionDaysLimit() bool
HasRetentionDaysLimit returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionEnabled() bool
GetRetentionEnabled returns the RetentionEnabled field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionEnabledOk() (*bool, bool)
GetRetentionEnabledOk returns a tuple with the RetentionEnabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionEnabled(v bool)
SetRetentionEnabled sets RetentionEnabled field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionEnabled() bool
HasRetentionEnabled returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByFormat() bool
GetRetentionGroupByFormat returns the RetentionGroupByFormat field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByFormatOk() (*bool, bool)
GetRetentionGroupByFormatOk returns a tuple with the RetentionGroupByFormat field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionGroupByFormat(v bool)
SetRetentionGroupByFormat sets RetentionGroupByFormat field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionGroupByFormat() bool
HasRetentionGroupByFormat returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByName() bool
GetRetentionGroupByName returns the RetentionGroupByName field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByNameOk() (*bool, bool)
GetRetentionGroupByNameOk returns a tuple with the RetentionGroupByName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionGroupByName(v bool)
SetRetentionGroupByName sets RetentionGroupByName field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionGroupByName() bool
HasRetentionGroupByName returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByPackageType() bool
GetRetentionGroupByPackageType returns the RetentionGroupByPackageType field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionGroupByPackageTypeOk() (*bool, bool)
GetRetentionGroupByPackageTypeOk returns a tuple with the RetentionGroupByPackageType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionGroupByPackageType(v bool)
SetRetentionGroupByPackageType sets RetentionGroupByPackageType field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionGroupByPackageType() bool
HasRetentionGroupByPackageType returns a boolean if a field has been set.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionSizeLimit() int64
GetRetentionSizeLimit returns the RetentionSizeLimit field if non-nil, zero value otherwise.
func (o *RepositoryRetentionRulesRequestPatch) GetRetentionSizeLimitOk() (*int64, bool)
GetRetentionSizeLimitOk returns a tuple with the RetentionSizeLimit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *RepositoryRetentionRulesRequestPatch) SetRetentionSizeLimit(v int64)
SetRetentionSizeLimit sets RetentionSizeLimit field to given value.
func (o *RepositoryRetentionRulesRequestPatch) HasRetentionSizeLimit() bool
HasRetentionSizeLimit returns a boolean if a field has been set.