Documentation ¶
Index ¶
- Constants
- func FromPolicy(from v1beta1.AppPolicy) (apis.Policy, error)
- type ApplyOncePolicy
- func (a *ApplyOncePolicy) Build() v1beta1.AppPolicy
- func (a *ApplyOncePolicy) DefType() string
- func (a *ApplyOncePolicy) FromPolicy(from v1beta1.AppPolicy) (*ApplyOncePolicy, error)
- func (o *ApplyOncePolicy) GetEnable() bool
- func (o *ApplyOncePolicy) GetEnableOk() (*bool, bool)
- func (o *ApplyOncePolicy) GetRules() []ApplyOncePolicyRule
- func (o *ApplyOncePolicy) GetRulesOk() ([]ApplyOncePolicyRule, bool)
- func (o *ApplyOncePolicy) HasRules() bool
- func (a *ApplyOncePolicy) PolicyName() string
- func (o *ApplyOncePolicy) SetEnable(v bool) *ApplyOncePolicy
- func (o *ApplyOncePolicy) SetRules(v []ApplyOncePolicyRule) *ApplyOncePolicy
- func (o *ApplyOncePolicy) Validate() error
- type ApplyOncePolicyRule
- func NewApplyOncePolicyRule() *ApplyOncePolicyRule
- func NewApplyOncePolicyRuleEmpty() *ApplyOncePolicyRule
- func NewApplyOncePolicyRuleList(ps ...*ApplyOncePolicyRule) []ApplyOncePolicyRule
- func NewApplyOncePolicyRuleWith(strategy ApplyOnceStrategy) *ApplyOncePolicyRule
- func NewApplyOncePolicyRuleWithDefault() *ApplyOncePolicyRule
- func (o *ApplyOncePolicyRule) GetSelector() ResourcePolicyRuleSelector
- func (o *ApplyOncePolicyRule) GetSelectorOk() (*ResourcePolicyRuleSelector, bool)
- func (o *ApplyOncePolicyRule) GetStrategy() ApplyOnceStrategy
- func (o *ApplyOncePolicyRule) GetStrategyOk() (*ApplyOnceStrategy, bool)
- func (o *ApplyOncePolicyRule) HasSelector() bool
- func (o ApplyOncePolicyRule) MarshalJSON() ([]byte, error)
- func (o *ApplyOncePolicyRule) SetSelector(v ResourcePolicyRuleSelector) *ApplyOncePolicyRule
- func (o *ApplyOncePolicyRule) SetStrategy(v ApplyOnceStrategy) *ApplyOncePolicyRule
- func (o ApplyOncePolicyRule) ToMap() (map[string]interface{}, error)
- func (o *ApplyOncePolicyRule) Validate() error
- type ApplyOnceSpec
- type ApplyOnceStrategy
- func (o *ApplyOnceStrategy) GetAffect() string
- func (o *ApplyOnceStrategy) GetAffectOk() (*string, bool)
- func (o *ApplyOnceStrategy) GetPath() []string
- func (o *ApplyOnceStrategy) GetPathOk() ([]string, bool)
- func (o *ApplyOnceStrategy) HasAffect() bool
- func (o ApplyOnceStrategy) MarshalJSON() ([]byte, error)
- func (o *ApplyOnceStrategy) SetAffect(v string) *ApplyOnceStrategy
- func (o *ApplyOnceStrategy) SetPath(v []string) *ApplyOnceStrategy
- func (o ApplyOnceStrategy) ToMap() (map[string]interface{}, error)
- func (o *ApplyOnceStrategy) Validate() error
- type NullableApplyOncePolicyRule
- func (v *NullableApplyOncePolicyRule) Get() *ApplyOncePolicyRule
- func (v *NullableApplyOncePolicyRule) IsSet() bool
- func (v NullableApplyOncePolicyRule) MarshalJSON() ([]byte, error)
- func (v *NullableApplyOncePolicyRule) Set(val *ApplyOncePolicyRule)
- func (v *NullableApplyOncePolicyRule) UnmarshalJSON(src []byte) error
- func (v *NullableApplyOncePolicyRule) Unset()
- type NullableApplyOnceSpec
- func (v *NullableApplyOnceSpec) Get() *ApplyOnceSpec
- func (v *NullableApplyOnceSpec) IsSet() bool
- func (v NullableApplyOnceSpec) MarshalJSON() ([]byte, error)
- func (v *NullableApplyOnceSpec) Set(val *ApplyOnceSpec)
- func (v *NullableApplyOnceSpec) UnmarshalJSON(src []byte) error
- func (v *NullableApplyOnceSpec) Unset()
- type NullableApplyOnceStrategy
- func (v *NullableApplyOnceStrategy) Get() *ApplyOnceStrategy
- func (v *NullableApplyOnceStrategy) IsSet() bool
- func (v NullableApplyOnceStrategy) MarshalJSON() ([]byte, error)
- func (v *NullableApplyOnceStrategy) Set(val *ApplyOnceStrategy)
- func (v *NullableApplyOnceStrategy) UnmarshalJSON(src []byte) error
- func (v *NullableApplyOnceStrategy) Unset()
- type NullableResourcePolicyRuleSelector
- func (v *NullableResourcePolicyRuleSelector) Get() *ResourcePolicyRuleSelector
- func (v *NullableResourcePolicyRuleSelector) IsSet() bool
- func (v NullableResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
- func (v *NullableResourcePolicyRuleSelector) Set(val *ResourcePolicyRuleSelector)
- func (v *NullableResourcePolicyRuleSelector) UnmarshalJSON(src []byte) error
- func (v *NullableResourcePolicyRuleSelector) Unset()
- type ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelector() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorEmpty() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorList(ps ...*ResourcePolicyRuleSelector) []ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorWith() *ResourcePolicyRuleSelector
- func NewResourcePolicyRuleSelectorWithDefault() *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) GetComponentNames() []string
- func (o *ResourcePolicyRuleSelector) GetComponentNamesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetComponentTypes() []string
- func (o *ResourcePolicyRuleSelector) GetComponentTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetOamTypes() []string
- func (o *ResourcePolicyRuleSelector) GetOamTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetResourceNames() []string
- func (o *ResourcePolicyRuleSelector) GetResourceNamesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetResourceTypes() []string
- func (o *ResourcePolicyRuleSelector) GetResourceTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) GetTraitTypes() []string
- func (o *ResourcePolicyRuleSelector) GetTraitTypesOk() ([]string, bool)
- func (o *ResourcePolicyRuleSelector) HasComponentNames() bool
- func (o *ResourcePolicyRuleSelector) HasComponentTypes() bool
- func (o *ResourcePolicyRuleSelector) HasOamTypes() bool
- func (o *ResourcePolicyRuleSelector) HasResourceNames() bool
- func (o *ResourcePolicyRuleSelector) HasResourceTypes() bool
- func (o *ResourcePolicyRuleSelector) HasTraitTypes() bool
- func (o ResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
- func (o *ResourcePolicyRuleSelector) SetComponentNames(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetComponentTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetOamTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetResourceNames(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetResourceTypes(v []string) *ResourcePolicyRuleSelector
- func (o *ResourcePolicyRuleSelector) SetTraitTypes(v []string) *ResourcePolicyRuleSelector
- func (o ResourcePolicyRuleSelector) ToMap() (map[string]interface{}, error)
- func (o *ResourcePolicyRuleSelector) Validate() error
Constants ¶
const ApplyOnceType = "apply-once"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplyOncePolicy ¶
type ApplyOncePolicy struct { Base apis.PolicyBase Properties ApplyOnceSpec }
func ApplyOnce ¶
func ApplyOnce(name string) *ApplyOncePolicy
func (*ApplyOncePolicy) Build ¶
func (a *ApplyOncePolicy) Build() v1beta1.AppPolicy
func (*ApplyOncePolicy) DefType ¶
func (a *ApplyOncePolicy) DefType() string
func (*ApplyOncePolicy) FromPolicy ¶
func (a *ApplyOncePolicy) FromPolicy(from v1beta1.AppPolicy) (*ApplyOncePolicy, error)
func (*ApplyOncePolicy) GetEnable ¶
func (o *ApplyOncePolicy) GetEnable() bool
GetEnable returns the Enable field value
func (*ApplyOncePolicy) GetEnableOk ¶
func (o *ApplyOncePolicy) GetEnableOk() (*bool, bool)
GetEnableOk returns a tuple with the Enable field value and a boolean to check if the value has been set.
func (*ApplyOncePolicy) GetRules ¶
func (o *ApplyOncePolicy) GetRules() []ApplyOncePolicyRule
GetRules returns the Rules field value if set, zero value otherwise.
func (*ApplyOncePolicy) GetRulesOk ¶
func (o *ApplyOncePolicy) GetRulesOk() ([]ApplyOncePolicyRule, bool)
GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ApplyOncePolicy) HasRules ¶
func (o *ApplyOncePolicy) HasRules() bool
HasRules returns a boolean if a field has been set.
func (*ApplyOncePolicy) PolicyName ¶
func (a *ApplyOncePolicy) PolicyName() string
func (*ApplyOncePolicy) SetEnable ¶
func (o *ApplyOncePolicy) SetEnable(v bool) *ApplyOncePolicy
SetEnable sets field value
func (*ApplyOncePolicy) SetRules ¶
func (o *ApplyOncePolicy) SetRules(v []ApplyOncePolicyRule) *ApplyOncePolicy
SetRules gets a reference to the given []ApplyOncePolicyRule and assigns it to the rules field. Rules: Specify the rules for configuring apply-once policy in resource level
func (*ApplyOncePolicy) Validate ¶
func (o *ApplyOncePolicy) Validate() error
Validate validates this ApplyOnceSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type ApplyOncePolicyRule ¶
type ApplyOncePolicyRule struct { Selector *ResourcePolicyRuleSelector `json:"selector,omitempty"` Strategy *ApplyOnceStrategy `json:"strategy"` }
ApplyOncePolicyRule struct for ApplyOncePolicyRule
func NewApplyOncePolicyRule ¶
func NewApplyOncePolicyRule() *ApplyOncePolicyRule
NewApplyOncePolicyRule is short for NewApplyOncePolicyRuleWithDefault which instantiates a new ApplyOncePolicyRule 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 NewApplyOncePolicyRuleEmpty ¶
func NewApplyOncePolicyRuleEmpty() *ApplyOncePolicyRule
NewApplyOncePolicyRuleEmpty instantiates a new ApplyOncePolicyRule object with no properties set. This constructor will not assign any default values to properties.
func NewApplyOncePolicyRuleList ¶
func NewApplyOncePolicyRuleList(ps ...*ApplyOncePolicyRule) []ApplyOncePolicyRule
NewApplyOncePolicyRules converts a list ApplyOncePolicyRule pointers to objects. This is helpful when the SetApplyOncePolicyRule requires a list of objects
func NewApplyOncePolicyRuleWith ¶
func NewApplyOncePolicyRuleWith(strategy ApplyOnceStrategy) *ApplyOncePolicyRule
NewApplyOncePolicyRuleWith instantiates a new ApplyOncePolicyRule object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewApplyOncePolicyRuleWithDefault ¶
func NewApplyOncePolicyRuleWithDefault() *ApplyOncePolicyRule
NewApplyOncePolicyRuleWithDefault instantiates a new ApplyOncePolicyRule 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 (*ApplyOncePolicyRule) GetSelector ¶
func (o *ApplyOncePolicyRule) GetSelector() ResourcePolicyRuleSelector
GetSelector returns the Selector field value if set, zero value otherwise.
func (*ApplyOncePolicyRule) GetSelectorOk ¶
func (o *ApplyOncePolicyRule) GetSelectorOk() (*ResourcePolicyRuleSelector, bool)
GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ApplyOncePolicyRule) GetStrategy ¶
func (o *ApplyOncePolicyRule) GetStrategy() ApplyOnceStrategy
GetStrategy returns the Strategy field value
func (*ApplyOncePolicyRule) GetStrategyOk ¶
func (o *ApplyOncePolicyRule) GetStrategyOk() (*ApplyOnceStrategy, bool)
GetStrategyOk returns a tuple with the Strategy field value and a boolean to check if the value has been set.
func (*ApplyOncePolicyRule) HasSelector ¶
func (o *ApplyOncePolicyRule) HasSelector() bool
HasSelector returns a boolean if a field has been set.
func (ApplyOncePolicyRule) MarshalJSON ¶
func (o ApplyOncePolicyRule) MarshalJSON() ([]byte, error)
func (*ApplyOncePolicyRule) SetSelector ¶
func (o *ApplyOncePolicyRule) SetSelector(v ResourcePolicyRuleSelector) *ApplyOncePolicyRule
SetSelector gets a reference to the given ResourcePolicyRuleSelector and assigns it to the selector field. Selector:
func (*ApplyOncePolicyRule) SetStrategy ¶
func (o *ApplyOncePolicyRule) SetStrategy(v ApplyOnceStrategy) *ApplyOncePolicyRule
SetStrategy sets field value
func (ApplyOncePolicyRule) ToMap ¶
func (o ApplyOncePolicyRule) ToMap() (map[string]interface{}, error)
func (*ApplyOncePolicyRule) Validate ¶
func (o *ApplyOncePolicyRule) Validate() error
Validate validates this ApplyOncePolicyRule 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type ApplyOnceSpec ¶
type ApplyOnceSpec struct { // Whether to enable apply-once for the whole application Enable *bool `json:"enable"` // Specify the rules for configuring apply-once policy in resource level Rules []ApplyOncePolicyRule `json:"rules,omitempty"` }
ApplyOnceSpec struct for ApplyOnceSpec
func NewApplyOnceSpec ¶
func NewApplyOnceSpec() *ApplyOnceSpec
NewApplyOnceSpec is short for NewApplyOnceSpecWithDefault which instantiates a new ApplyOnceSpec 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 NewApplyOnceSpecEmpty ¶
func NewApplyOnceSpecEmpty() *ApplyOnceSpec
NewApplyOnceSpecEmpty instantiates a new ApplyOnceSpec object with no properties set. This constructor will not assign any default values to properties.
func NewApplyOnceSpecList ¶
func NewApplyOnceSpecList(ps ...*ApplyOnceSpec) []ApplyOnceSpec
NewApplyOnceSpecs converts a list ApplyOnceSpec pointers to objects. This is helpful when the SetApplyOnceSpec requires a list of objects
func NewApplyOnceSpecWith ¶
func NewApplyOnceSpecWith(enable bool) *ApplyOnceSpec
NewApplyOnceSpecWith instantiates a new ApplyOnceSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewApplyOnceSpecWithDefault ¶
func NewApplyOnceSpecWithDefault() *ApplyOnceSpec
NewApplyOnceSpecWithDefault instantiates a new ApplyOnceSpec 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 (ApplyOnceSpec) MarshalJSON ¶
func (o ApplyOnceSpec) MarshalJSON() ([]byte, error)
func (ApplyOnceSpec) ToMap ¶
func (o ApplyOnceSpec) ToMap() (map[string]interface{}, error)
type ApplyOnceStrategy ¶
type ApplyOnceStrategy struct { // When the strategy takes effect,e.g. onUpdate、onStateKeep Affect *string `json:"affect,omitempty"` // Specify the path of the resource that allow configuration drift Path []string `json:"path"` }
ApplyOnceStrategy struct for ApplyOnceStrategy
func NewApplyOnceStrategy ¶
func NewApplyOnceStrategy() *ApplyOnceStrategy
NewApplyOnceStrategy is short for NewApplyOnceStrategyWithDefault which instantiates a new ApplyOnceStrategy 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 NewApplyOnceStrategyEmpty ¶
func NewApplyOnceStrategyEmpty() *ApplyOnceStrategy
NewApplyOnceStrategyEmpty instantiates a new ApplyOnceStrategy object with no properties set. This constructor will not assign any default values to properties.
func NewApplyOnceStrategyList ¶
func NewApplyOnceStrategyList(ps ...*ApplyOnceStrategy) []ApplyOnceStrategy
NewApplyOnceStrategys converts a list ApplyOnceStrategy pointers to objects. This is helpful when the SetApplyOnceStrategy requires a list of objects
func NewApplyOnceStrategyWith ¶
func NewApplyOnceStrategyWith(path []string) *ApplyOnceStrategy
NewApplyOnceStrategyWith instantiates a new ApplyOnceStrategy object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewApplyOnceStrategyWithDefault ¶
func NewApplyOnceStrategyWithDefault() *ApplyOnceStrategy
NewApplyOnceStrategyWithDefault instantiates a new ApplyOnceStrategy 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 (*ApplyOnceStrategy) GetAffect ¶
func (o *ApplyOnceStrategy) GetAffect() string
GetAffect returns the Affect field value if set, zero value otherwise.
func (*ApplyOnceStrategy) GetAffectOk ¶
func (o *ApplyOnceStrategy) GetAffectOk() (*string, bool)
GetAffectOk returns a tuple with the Affect field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ApplyOnceStrategy) GetPath ¶
func (o *ApplyOnceStrategy) GetPath() []string
GetPath returns the Path field value
func (*ApplyOnceStrategy) GetPathOk ¶
func (o *ApplyOnceStrategy) GetPathOk() ([]string, bool)
GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.
func (*ApplyOnceStrategy) HasAffect ¶
func (o *ApplyOnceStrategy) HasAffect() bool
HasAffect returns a boolean if a field has been set.
func (ApplyOnceStrategy) MarshalJSON ¶
func (o ApplyOnceStrategy) MarshalJSON() ([]byte, error)
func (*ApplyOnceStrategy) SetAffect ¶
func (o *ApplyOnceStrategy) SetAffect(v string) *ApplyOnceStrategy
SetAffect gets a reference to the given string and assigns it to the affect field. Affect: When the strategy takes effect,e.g. onUpdate、onStateKeep
func (*ApplyOnceStrategy) SetPath ¶
func (o *ApplyOnceStrategy) SetPath(v []string) *ApplyOnceStrategy
SetPath sets field value
func (ApplyOnceStrategy) ToMap ¶
func (o ApplyOnceStrategy) ToMap() (map[string]interface{}, error)
func (*ApplyOnceStrategy) Validate ¶
func (o *ApplyOnceStrategy) Validate() error
Validate validates this ApplyOnceStrategy 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type NullableApplyOncePolicyRule ¶
type NullableApplyOncePolicyRule struct {
// contains filtered or unexported fields
}
func NewNullableApplyOncePolicyRule ¶
func NewNullableApplyOncePolicyRule(val *ApplyOncePolicyRule) *NullableApplyOncePolicyRule
func (*NullableApplyOncePolicyRule) Get ¶
func (v *NullableApplyOncePolicyRule) Get() *ApplyOncePolicyRule
func (*NullableApplyOncePolicyRule) IsSet ¶
func (v *NullableApplyOncePolicyRule) IsSet() bool
func (NullableApplyOncePolicyRule) MarshalJSON ¶
func (v NullableApplyOncePolicyRule) MarshalJSON() ([]byte, error)
func (*NullableApplyOncePolicyRule) Set ¶
func (v *NullableApplyOncePolicyRule) Set(val *ApplyOncePolicyRule)
func (*NullableApplyOncePolicyRule) UnmarshalJSON ¶
func (v *NullableApplyOncePolicyRule) UnmarshalJSON(src []byte) error
func (*NullableApplyOncePolicyRule) Unset ¶
func (v *NullableApplyOncePolicyRule) Unset()
type NullableApplyOnceSpec ¶
type NullableApplyOnceSpec struct {
// contains filtered or unexported fields
}
func NewNullableApplyOnceSpec ¶
func NewNullableApplyOnceSpec(val *ApplyOnceSpec) *NullableApplyOnceSpec
func (*NullableApplyOnceSpec) Get ¶
func (v *NullableApplyOnceSpec) Get() *ApplyOnceSpec
func (*NullableApplyOnceSpec) IsSet ¶
func (v *NullableApplyOnceSpec) IsSet() bool
func (NullableApplyOnceSpec) MarshalJSON ¶
func (v NullableApplyOnceSpec) MarshalJSON() ([]byte, error)
func (*NullableApplyOnceSpec) Set ¶
func (v *NullableApplyOnceSpec) Set(val *ApplyOnceSpec)
func (*NullableApplyOnceSpec) UnmarshalJSON ¶
func (v *NullableApplyOnceSpec) UnmarshalJSON(src []byte) error
func (*NullableApplyOnceSpec) Unset ¶
func (v *NullableApplyOnceSpec) Unset()
type NullableApplyOnceStrategy ¶
type NullableApplyOnceStrategy struct {
// contains filtered or unexported fields
}
func NewNullableApplyOnceStrategy ¶
func NewNullableApplyOnceStrategy(val *ApplyOnceStrategy) *NullableApplyOnceStrategy
func (*NullableApplyOnceStrategy) Get ¶
func (v *NullableApplyOnceStrategy) Get() *ApplyOnceStrategy
func (*NullableApplyOnceStrategy) IsSet ¶
func (v *NullableApplyOnceStrategy) IsSet() bool
func (NullableApplyOnceStrategy) MarshalJSON ¶
func (v NullableApplyOnceStrategy) MarshalJSON() ([]byte, error)
func (*NullableApplyOnceStrategy) Set ¶
func (v *NullableApplyOnceStrategy) Set(val *ApplyOnceStrategy)
func (*NullableApplyOnceStrategy) UnmarshalJSON ¶
func (v *NullableApplyOnceStrategy) UnmarshalJSON(src []byte) error
func (*NullableApplyOnceStrategy) Unset ¶
func (v *NullableApplyOnceStrategy) Unset()
type NullableResourcePolicyRuleSelector ¶
type NullableResourcePolicyRuleSelector struct {
// contains filtered or unexported fields
}
func NewNullableResourcePolicyRuleSelector ¶
func NewNullableResourcePolicyRuleSelector(val *ResourcePolicyRuleSelector) *NullableResourcePolicyRuleSelector
func (*NullableResourcePolicyRuleSelector) Get ¶
func (v *NullableResourcePolicyRuleSelector) Get() *ResourcePolicyRuleSelector
func (*NullableResourcePolicyRuleSelector) IsSet ¶
func (v *NullableResourcePolicyRuleSelector) IsSet() bool
func (NullableResourcePolicyRuleSelector) MarshalJSON ¶
func (v NullableResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
func (*NullableResourcePolicyRuleSelector) Set ¶
func (v *NullableResourcePolicyRuleSelector) Set(val *ResourcePolicyRuleSelector)
func (*NullableResourcePolicyRuleSelector) UnmarshalJSON ¶
func (v *NullableResourcePolicyRuleSelector) UnmarshalJSON(src []byte) error
func (*NullableResourcePolicyRuleSelector) Unset ¶
func (v *NullableResourcePolicyRuleSelector) Unset()
type ResourcePolicyRuleSelector ¶
type ResourcePolicyRuleSelector struct { // Select resources by component names ComponentNames []string `json:"componentNames,omitempty"` // Select resources by component types ComponentTypes []string `json:"componentTypes,omitempty"` // Select resources by oamTypes (COMPONENT or TRAIT) OamTypes []string `json:"oamTypes,omitempty"` // Select resources by their names ResourceNames []string `json:"resourceNames,omitempty"` // Select resources by resource types (like Deployment) ResourceTypes []string `json:"resourceTypes,omitempty"` // Select resources by trait types TraitTypes []string `json:"traitTypes,omitempty"` }
ResourcePolicyRuleSelector struct for ResourcePolicyRuleSelector
func NewResourcePolicyRuleSelector ¶
func NewResourcePolicyRuleSelector() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelector is short for NewResourcePolicyRuleSelectorWithDefault which instantiates a new ResourcePolicyRuleSelector 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 NewResourcePolicyRuleSelectorEmpty ¶
func NewResourcePolicyRuleSelectorEmpty() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorEmpty instantiates a new ResourcePolicyRuleSelector object with no properties set. This constructor will not assign any default values to properties.
func NewResourcePolicyRuleSelectorList ¶
func NewResourcePolicyRuleSelectorList(ps ...*ResourcePolicyRuleSelector) []ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectors converts a list ResourcePolicyRuleSelector pointers to objects. This is helpful when the SetResourcePolicyRuleSelector requires a list of objects
func NewResourcePolicyRuleSelectorWith ¶
func NewResourcePolicyRuleSelectorWith() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorWith instantiates a new ResourcePolicyRuleSelector object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewResourcePolicyRuleSelectorWithDefault ¶
func NewResourcePolicyRuleSelectorWithDefault() *ResourcePolicyRuleSelector
NewResourcePolicyRuleSelectorWithDefault instantiates a new ResourcePolicyRuleSelector 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 (*ResourcePolicyRuleSelector) GetComponentNames ¶
func (o *ResourcePolicyRuleSelector) GetComponentNames() []string
GetComponentNames returns the ComponentNames field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetComponentNamesOk ¶
func (o *ResourcePolicyRuleSelector) GetComponentNamesOk() ([]string, bool)
GetComponentNamesOk returns a tuple with the ComponentNames field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetComponentTypes ¶
func (o *ResourcePolicyRuleSelector) GetComponentTypes() []string
GetComponentTypes returns the ComponentTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetComponentTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetComponentTypesOk() ([]string, bool)
GetComponentTypesOk returns a tuple with the ComponentTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetOamTypes ¶
func (o *ResourcePolicyRuleSelector) GetOamTypes() []string
GetOamTypes returns the OamTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetOamTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetOamTypesOk() ([]string, bool)
GetOamTypesOk returns a tuple with the OamTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetResourceNames ¶
func (o *ResourcePolicyRuleSelector) GetResourceNames() []string
GetResourceNames returns the ResourceNames field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetResourceNamesOk ¶
func (o *ResourcePolicyRuleSelector) GetResourceNamesOk() ([]string, bool)
GetResourceNamesOk returns a tuple with the ResourceNames field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetResourceTypes ¶
func (o *ResourcePolicyRuleSelector) GetResourceTypes() []string
GetResourceTypes returns the ResourceTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetResourceTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetResourceTypesOk() ([]string, bool)
GetResourceTypesOk returns a tuple with the ResourceTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) GetTraitTypes ¶
func (o *ResourcePolicyRuleSelector) GetTraitTypes() []string
GetTraitTypes returns the TraitTypes field value if set, zero value otherwise.
func (*ResourcePolicyRuleSelector) GetTraitTypesOk ¶
func (o *ResourcePolicyRuleSelector) GetTraitTypesOk() ([]string, bool)
GetTraitTypesOk returns a tuple with the TraitTypes field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ResourcePolicyRuleSelector) HasComponentNames ¶
func (o *ResourcePolicyRuleSelector) HasComponentNames() bool
HasComponentNames returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasComponentTypes ¶
func (o *ResourcePolicyRuleSelector) HasComponentTypes() bool
HasComponentTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasOamTypes ¶
func (o *ResourcePolicyRuleSelector) HasOamTypes() bool
HasOamTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasResourceNames ¶
func (o *ResourcePolicyRuleSelector) HasResourceNames() bool
HasResourceNames returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasResourceTypes ¶
func (o *ResourcePolicyRuleSelector) HasResourceTypes() bool
HasResourceTypes returns a boolean if a field has been set.
func (*ResourcePolicyRuleSelector) HasTraitTypes ¶
func (o *ResourcePolicyRuleSelector) HasTraitTypes() bool
HasTraitTypes returns a boolean if a field has been set.
func (ResourcePolicyRuleSelector) MarshalJSON ¶
func (o ResourcePolicyRuleSelector) MarshalJSON() ([]byte, error)
func (*ResourcePolicyRuleSelector) SetComponentNames ¶
func (o *ResourcePolicyRuleSelector) SetComponentNames(v []string) *ResourcePolicyRuleSelector
SetComponentNames gets a reference to the given []string and assigns it to the componentNames field. ComponentNames: Select resources by component names
func (*ResourcePolicyRuleSelector) SetComponentTypes ¶
func (o *ResourcePolicyRuleSelector) SetComponentTypes(v []string) *ResourcePolicyRuleSelector
SetComponentTypes gets a reference to the given []string and assigns it to the componentTypes field. ComponentTypes: Select resources by component types
func (*ResourcePolicyRuleSelector) SetOamTypes ¶
func (o *ResourcePolicyRuleSelector) SetOamTypes(v []string) *ResourcePolicyRuleSelector
SetOamTypes gets a reference to the given []string and assigns it to the oamTypes field. OamTypes: Select resources by oamTypes (COMPONENT or TRAIT)
func (*ResourcePolicyRuleSelector) SetResourceNames ¶
func (o *ResourcePolicyRuleSelector) SetResourceNames(v []string) *ResourcePolicyRuleSelector
SetResourceNames gets a reference to the given []string and assigns it to the resourceNames field. ResourceNames: Select resources by their names
func (*ResourcePolicyRuleSelector) SetResourceTypes ¶
func (o *ResourcePolicyRuleSelector) SetResourceTypes(v []string) *ResourcePolicyRuleSelector
SetResourceTypes gets a reference to the given []string and assigns it to the resourceTypes field. ResourceTypes: Select resources by resource types (like Deployment)
func (*ResourcePolicyRuleSelector) SetTraitTypes ¶
func (o *ResourcePolicyRuleSelector) SetTraitTypes(v []string) *ResourcePolicyRuleSelector
SetTraitTypes gets a reference to the given []string and assigns it to the traitTypes field. TraitTypes: Select resources by trait types
func (ResourcePolicyRuleSelector) ToMap ¶
func (o ResourcePolicyRuleSelector) ToMap() (map[string]interface{}, error)
func (*ResourcePolicyRuleSelector) Validate ¶
func (o *ResourcePolicyRuleSelector) Validate() error
Validate validates this ResourcePolicyRuleSelector 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set