Documentation ¶
Index ¶
- func PossibleValuesForContentLevel() []string
- func PossibleValuesForRaiPolicyContentSource() []string
- func PossibleValuesForRaiPolicyMode() []string
- func PossibleValuesForRaiPolicyType() []string
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRaiPolicyID(input interface{}, key string) (warnings []string, errors []error)
- type AccountId
- type ContentLevel
- type CreateOrUpdateOperationResponse
- type CustomBlocklistConfig
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type RaiPoliciesClient
- func (c RaiPoliciesClient) CreateOrUpdate(ctx context.Context, id RaiPolicyId, input RaiPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c RaiPoliciesClient) Delete(ctx context.Context, id RaiPolicyId) (result DeleteOperationResponse, err error)
- func (c RaiPoliciesClient) DeleteThenPoll(ctx context.Context, id RaiPolicyId) error
- func (c RaiPoliciesClient) Get(ctx context.Context, id RaiPolicyId) (result GetOperationResponse, err error)
- func (c RaiPoliciesClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error)
- func (c RaiPoliciesClient) ListComplete(ctx context.Context, id AccountId) (ListCompleteResult, error)
- func (c RaiPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate RaiPolicyOperationPredicate) (result ListCompleteResult, err error)
- type RaiPolicy
- type RaiPolicyContentFilter
- type RaiPolicyContentSource
- type RaiPolicyId
- type RaiPolicyMode
- type RaiPolicyOperationPredicate
- type RaiPolicyProperties
- type RaiPolicyType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForContentLevel ¶
func PossibleValuesForContentLevel() []string
func PossibleValuesForRaiPolicyContentSource ¶
func PossibleValuesForRaiPolicyContentSource() []string
func PossibleValuesForRaiPolicyMode ¶
func PossibleValuesForRaiPolicyMode() []string
func PossibleValuesForRaiPolicyType ¶
func PossibleValuesForRaiPolicyType() []string
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidateRaiPolicyID ¶
ValidateRaiPolicyID checks that 'input' can be parsed as a Rai Policy ID
Types ¶
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (*AccountId) FromParseResult ¶
func (id *AccountId) FromParseResult(input resourceids.ParseResult) error
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
type ContentLevel ¶
type ContentLevel string
const ( ContentLevelHigh ContentLevel = "High" ContentLevelLow ContentLevel = "Low" ContentLevelMedium ContentLevel = "Medium" )
func (*ContentLevel) UnmarshalJSON ¶
func (s *ContentLevel) UnmarshalJSON(bytes []byte) error
type CustomBlocklistConfig ¶
type CustomBlocklistConfig struct { Blocking *bool `json:"blocking,omitempty"` BlocklistName *string `json:"blocklistName,omitempty"` Source *RaiPolicyContentSource `json:"source,omitempty"` }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type RaiPoliciesClient ¶
type RaiPoliciesClient struct {
Client *resourcemanager.Client
}
func NewRaiPoliciesClientWithBaseURI ¶
func NewRaiPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*RaiPoliciesClient, error)
func (RaiPoliciesClient) CreateOrUpdate ¶
func (c RaiPoliciesClient) CreateOrUpdate(ctx context.Context, id RaiPolicyId, input RaiPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (RaiPoliciesClient) Delete ¶
func (c RaiPoliciesClient) Delete(ctx context.Context, id RaiPolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (RaiPoliciesClient) DeleteThenPoll ¶
func (c RaiPoliciesClient) DeleteThenPoll(ctx context.Context, id RaiPolicyId) error
DeleteThenPoll performs Delete then polls until it's completed
func (RaiPoliciesClient) Get ¶
func (c RaiPoliciesClient) Get(ctx context.Context, id RaiPolicyId) (result GetOperationResponse, err error)
Get ...
func (RaiPoliciesClient) List ¶
func (c RaiPoliciesClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error)
List ...
func (RaiPoliciesClient) ListComplete ¶
func (c RaiPoliciesClient) ListComplete(ctx context.Context, id AccountId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RaiPoliciesClient) ListCompleteMatchingPredicate ¶
func (c RaiPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate RaiPolicyOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type RaiPolicy ¶
type RaiPolicy struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RaiPolicyProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type RaiPolicyContentFilter ¶
type RaiPolicyContentFilter struct { Blocking *bool `json:"blocking,omitempty"` Enabled *bool `json:"enabled,omitempty"` Name *string `json:"name,omitempty"` SeverityThreshold *ContentLevel `json:"severityThreshold,omitempty"` Source *RaiPolicyContentSource `json:"source,omitempty"` }
type RaiPolicyContentSource ¶
type RaiPolicyContentSource string
const ( RaiPolicyContentSourceCompletion RaiPolicyContentSource = "Completion" RaiPolicyContentSourcePrompt RaiPolicyContentSource = "Prompt" )
func (*RaiPolicyContentSource) UnmarshalJSON ¶
func (s *RaiPolicyContentSource) UnmarshalJSON(bytes []byte) error
type RaiPolicyId ¶
type RaiPolicyId struct { SubscriptionId string ResourceGroupName string AccountName string RaiPolicyName string }
RaiPolicyId is a struct representing the Resource ID for a Rai Policy
func NewRaiPolicyID ¶
func NewRaiPolicyID(subscriptionId string, resourceGroupName string, accountName string, raiPolicyName string) RaiPolicyId
NewRaiPolicyID returns a new RaiPolicyId struct
func ParseRaiPolicyID ¶
func ParseRaiPolicyID(input string) (*RaiPolicyId, error)
ParseRaiPolicyID parses 'input' into a RaiPolicyId
func ParseRaiPolicyIDInsensitively ¶
func ParseRaiPolicyIDInsensitively(input string) (*RaiPolicyId, error)
ParseRaiPolicyIDInsensitively parses 'input' case-insensitively into a RaiPolicyId note: this method should only be used for API response data and not user input
func (*RaiPolicyId) FromParseResult ¶
func (id *RaiPolicyId) FromParseResult(input resourceids.ParseResult) error
func (RaiPolicyId) Segments ¶
func (id RaiPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Rai Policy ID
func (RaiPolicyId) String ¶
func (id RaiPolicyId) String() string
String returns a human-readable description of this Rai Policy ID
type RaiPolicyMode ¶
type RaiPolicyMode string
const ( RaiPolicyModeAsynchronousFilter RaiPolicyMode = "Asynchronous_filter" RaiPolicyModeBlocking RaiPolicyMode = "Blocking" RaiPolicyModeDefault RaiPolicyMode = "Default" RaiPolicyModeDeferred RaiPolicyMode = "Deferred" )
func (*RaiPolicyMode) UnmarshalJSON ¶
func (s *RaiPolicyMode) UnmarshalJSON(bytes []byte) error
type RaiPolicyOperationPredicate ¶
func (RaiPolicyOperationPredicate) Matches ¶
func (p RaiPolicyOperationPredicate) Matches(input RaiPolicy) bool
type RaiPolicyProperties ¶
type RaiPolicyProperties struct { BasePolicyName *string `json:"basePolicyName,omitempty"` ContentFilters *[]RaiPolicyContentFilter `json:"contentFilters,omitempty"` CustomBlocklists *[]CustomBlocklistConfig `json:"customBlocklists,omitempty"` Mode *RaiPolicyMode `json:"mode,omitempty"` Type *RaiPolicyType `json:"type,omitempty"` }
type RaiPolicyType ¶
type RaiPolicyType string
const ( RaiPolicyTypeSystemManaged RaiPolicyType = "SystemManaged" RaiPolicyTypeUserManaged RaiPolicyType = "UserManaged" )
func (*RaiPolicyType) UnmarshalJSON ¶
func (s *RaiPolicyType) UnmarshalJSON(bytes []byte) error