Documentation ¶
Index ¶
- func PossibleValuesForAllowedContentLevel() []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 AllowedContentLevel
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type RaiBlocklistConfig
- 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 PossibleValuesForAllowedContentLevel ¶
func PossibleValuesForAllowedContentLevel() []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 AllowedContentLevel ¶
type AllowedContentLevel string
const ( AllowedContentLevelHigh AllowedContentLevel = "High" AllowedContentLevelLow AllowedContentLevel = "Low" AllowedContentLevelMedium AllowedContentLevel = "Medium" )
func (*AllowedContentLevel) UnmarshalJSON ¶
func (s *AllowedContentLevel) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type RaiBlocklistConfig ¶
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 { AllowedContentLevel *AllowedContentLevel `json:"allowedContentLevel,omitempty"` Blocking *bool `json:"blocking,omitempty"` Enabled *bool `json:"enabled,omitempty"` Name *string `json:"name,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 ( 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"` CompletionBlocklists *[]RaiBlocklistConfig `json:"completionBlocklists,omitempty"` ContentFilters *[]RaiPolicyContentFilter `json:"contentFilters,omitempty"` Mode *RaiPolicyMode `json:"mode,omitempty"` PolicyType *RaiPolicyType `json:"policyType,omitempty"` PromptBlocklists *[]RaiBlocklistConfig `json:"promptBlocklists,omitempty"` }
type RaiPolicyType ¶
type RaiPolicyType string
const ( RaiPolicyTypeSystemManaged RaiPolicyType = "SystemManaged" RaiPolicyTypeUserManaged RaiPolicyType = "UserManaged" )
func (*RaiPolicyType) UnmarshalJSON ¶
func (s *RaiPolicyType) UnmarshalJSON(bytes []byte) error