Documentation ¶
Index ¶
- func ValidateScopedSuppressionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type ScopedSuppressionId
- type SuppressionContract
- type SuppressionContractOperationPredicate
- type SuppressionProperties
- type SuppressionsClient
- func (c SuppressionsClient) Create(ctx context.Context, id ScopedSuppressionId, input SuppressionContract) (result CreateOperationResponse, err error)
- func (c SuppressionsClient) Delete(ctx context.Context, id ScopedSuppressionId) (result DeleteOperationResponse, err error)
- func (c SuppressionsClient) Get(ctx context.Context, id ScopedSuppressionId) (result GetOperationResponse, err error)
- func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c SuppressionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c SuppressionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScopedSuppressionID ¶
ValidateScopedSuppressionID checks that 'input' can be parsed as a Scoped Suppression ID
Types ¶
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SuppressionContract }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SuppressionContract }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []SuppressionContract }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
type ListOperationOptions struct {
Top *int64
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SuppressionContract }
type ScopedSuppressionId ¶
type ScopedSuppressionId struct { ResourceUri string RecommendationId string SuppressionName string }
ScopedSuppressionId is a struct representing the Resource ID for a Scoped Suppression
func NewScopedSuppressionID ¶
func NewScopedSuppressionID(resourceUri string, recommendationId string, suppressionName string) ScopedSuppressionId
NewScopedSuppressionID returns a new ScopedSuppressionId struct
func ParseScopedSuppressionID ¶
func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error)
ParseScopedSuppressionID parses 'input' into a ScopedSuppressionId
func ParseScopedSuppressionIDInsensitively ¶
func ParseScopedSuppressionIDInsensitively(input string) (*ScopedSuppressionId, error)
ParseScopedSuppressionIDInsensitively parses 'input' case-insensitively into a ScopedSuppressionId note: this method should only be used for API response data and not user input
func (*ScopedSuppressionId) FromParseResult ¶
func (id *ScopedSuppressionId) FromParseResult(input resourceids.ParseResult) error
func (ScopedSuppressionId) ID ¶
func (id ScopedSuppressionId) ID() string
ID returns the formatted Scoped Suppression ID
func (ScopedSuppressionId) Segments ¶
func (id ScopedSuppressionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Suppression ID
func (ScopedSuppressionId) String ¶
func (id ScopedSuppressionId) String() string
String returns a human-readable description of this Scoped Suppression ID
type SuppressionContract ¶
type SuppressionContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SuppressionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SuppressionContractOperationPredicate ¶
func (SuppressionContractOperationPredicate) Matches ¶
func (p SuppressionContractOperationPredicate) Matches(input SuppressionContract) bool
type SuppressionProperties ¶
type SuppressionProperties struct { ExpirationTimeStamp *string `json:"expirationTimeStamp,omitempty"` SuppressionId *string `json:"suppressionId,omitempty"` Ttl *string `json:"ttl,omitempty"` }
func (*SuppressionProperties) GetExpirationTimeStampAsTime ¶
func (o *SuppressionProperties) GetExpirationTimeStampAsTime() (*time.Time, error)
func (*SuppressionProperties) SetExpirationTimeStampAsTime ¶
func (o *SuppressionProperties) SetExpirationTimeStampAsTime(input time.Time)
type SuppressionsClient ¶
type SuppressionsClient struct {
Client *resourcemanager.Client
}
func NewSuppressionsClientWithBaseURI ¶
func NewSuppressionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SuppressionsClient, error)
func (SuppressionsClient) Create ¶
func (c SuppressionsClient) Create(ctx context.Context, id ScopedSuppressionId, input SuppressionContract) (result CreateOperationResponse, err error)
Create ...
func (SuppressionsClient) Delete ¶
func (c SuppressionsClient) Delete(ctx context.Context, id ScopedSuppressionId) (result DeleteOperationResponse, err error)
Delete ...
func (SuppressionsClient) Get ¶
func (c SuppressionsClient) Get(ctx context.Context, id ScopedSuppressionId) (result GetOperationResponse, err error)
Get ...
func (SuppressionsClient) List ¶
func (c SuppressionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (SuppressionsClient) ListComplete ¶
func (c SuppressionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SuppressionsClient) ListCompleteMatchingPredicate ¶
func (c SuppressionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate SuppressionContractOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate