authenticationstrengthpolicy

package
v0.20241126.2320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy Documentation

The authenticationstrengthpolicy SDK allows for interaction with Microsoft Graph policies (API Version stable).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/policies/stable/authenticationstrengthpolicy"

Client Initialization

client := authenticationstrengthpolicy.NewAuthenticationStrengthPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AuthenticationStrengthPolicyClient.CreateAuthenticationStrengthPolicy

ctx := context.TODO()

payload := authenticationstrengthpolicy.AuthenticationStrengthPolicy{
	// ...
}


read, err := client.CreateAuthenticationStrengthPolicy(ctx, payload, authenticationstrengthpolicy.DefaultCreateAuthenticationStrengthPolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AuthenticationStrengthPolicyClient.DeleteAuthenticationStrengthPolicy

ctx := context.TODO()
id := authenticationstrengthpolicy.NewPolicyAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

read, err := client.DeleteAuthenticationStrengthPolicy(ctx, id, authenticationstrengthpolicy.DefaultDeleteAuthenticationStrengthPolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AuthenticationStrengthPolicyClient.GetAuthenticationStrengthPoliciesCount

ctx := context.TODO()


read, err := client.GetAuthenticationStrengthPoliciesCount(ctx, authenticationstrengthpolicy.DefaultGetAuthenticationStrengthPoliciesCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AuthenticationStrengthPolicyClient.GetAuthenticationStrengthPolicy

ctx := context.TODO()
id := authenticationstrengthpolicy.NewPolicyAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

read, err := client.GetAuthenticationStrengthPolicy(ctx, id, authenticationstrengthpolicy.DefaultGetAuthenticationStrengthPolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AuthenticationStrengthPolicyClient.ListAuthenticationStrengthPolicies

ctx := context.TODO()


// alternatively `client.ListAuthenticationStrengthPolicies(ctx, authenticationstrengthpolicy.DefaultListAuthenticationStrengthPoliciesOperationOptions())` can be used to do batched pagination
items, err := client.ListAuthenticationStrengthPoliciesComplete(ctx, authenticationstrengthpolicy.DefaultListAuthenticationStrengthPoliciesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AuthenticationStrengthPolicyClient.UpdateAuthenticationStrengthPolicy

ctx := context.TODO()
id := authenticationstrengthpolicy.NewPolicyAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

payload := authenticationstrengthpolicy.AuthenticationStrengthPolicy{
	// ...
}


read, err := client.UpdateAuthenticationStrengthPolicy(ctx, id, payload, authenticationstrengthpolicy.DefaultUpdateAuthenticationStrengthPolicyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AuthenticationStrengthPolicyClient.UpdateAuthenticationStrengthPolicyAllowedCombinations

ctx := context.TODO()
id := authenticationstrengthpolicy.NewPolicyAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

payload := authenticationstrengthpolicy.UpdateAuthenticationStrengthPolicyAllowedCombinationsRequest{
	// ...
}


read, err := client.UpdateAuthenticationStrengthPolicyAllowedCombinations(ctx, id, payload, authenticationstrengthpolicy.DefaultUpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationStrengthPolicyClient

type AuthenticationStrengthPolicyClient struct {
	Client *msgraph.Client
}

func NewAuthenticationStrengthPolicyClientWithBaseURI

func NewAuthenticationStrengthPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthenticationStrengthPolicyClient, error)

func (AuthenticationStrengthPolicyClient) CreateAuthenticationStrengthPolicy

CreateAuthenticationStrengthPolicy - Create authenticationStrengthPolicy. Create a new custom authenticationStrengthPolicy object.

func (AuthenticationStrengthPolicyClient) DeleteAuthenticationStrengthPolicy

DeleteAuthenticationStrengthPolicy - Delete authenticationStrengthPolicy. Delete a custom authenticationStrengthPolicy object.

func (AuthenticationStrengthPolicyClient) GetAuthenticationStrengthPoliciesCount

GetAuthenticationStrengthPoliciesCount - Get the number of the resource

func (AuthenticationStrengthPolicyClient) GetAuthenticationStrengthPolicy

GetAuthenticationStrengthPolicy - Get authenticationStrengthPolicy. Read the properties and relationships of an authenticationStrengthPolicy object.

func (AuthenticationStrengthPolicyClient) ListAuthenticationStrengthPolicies

ListAuthenticationStrengthPolicies - List authenticationStrengthPolicies. Get a list of the authenticationStrengthPolicy objects and their properties. This API returns both built-in and custom policies.

func (AuthenticationStrengthPolicyClient) ListAuthenticationStrengthPoliciesComplete

ListAuthenticationStrengthPoliciesComplete retrieves all the results into a single object

func (AuthenticationStrengthPolicyClient) ListAuthenticationStrengthPoliciesCompleteMatchingPredicate

ListAuthenticationStrengthPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AuthenticationStrengthPolicyClient) UpdateAuthenticationStrengthPolicy

UpdateAuthenticationStrengthPolicy - Update authenticationStrengthPolicy. Update the properties of an authenticationStrengthPolicy object. You cannot update the allowed auth method combinations using this request. To do so, use the Update allowed combinations action.

func (AuthenticationStrengthPolicyClient) UpdateAuthenticationStrengthPolicyAllowedCombinations

UpdateAuthenticationStrengthPolicyAllowedCombinations - Invoke action updateAllowedCombinations. Update the allowedCombinations property of an authenticationStrengthPolicy object. To update other properties of an authenticationStrengthPolicy object, use the Update authenticationStrengthPolicy method.

type AuthenticationStrengthPolicyOperationPredicate

type AuthenticationStrengthPolicyOperationPredicate struct {
}

func (AuthenticationStrengthPolicyOperationPredicate) Matches

type CreateAuthenticationStrengthPolicyOperationOptions

type CreateAuthenticationStrengthPolicyOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateAuthenticationStrengthPolicyOperationOptions

func DefaultCreateAuthenticationStrengthPolicyOperationOptions() CreateAuthenticationStrengthPolicyOperationOptions

func (CreateAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (CreateAuthenticationStrengthPolicyOperationOptions) ToOData

func (CreateAuthenticationStrengthPolicyOperationOptions) ToQuery

type CreateAuthenticationStrengthPolicyOperationResponse

type CreateAuthenticationStrengthPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.AuthenticationStrengthPolicy
}

type DeleteAuthenticationStrengthPolicyOperationOptions

type DeleteAuthenticationStrengthPolicyOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteAuthenticationStrengthPolicyOperationOptions

func DefaultDeleteAuthenticationStrengthPolicyOperationOptions() DeleteAuthenticationStrengthPolicyOperationOptions

func (DeleteAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (DeleteAuthenticationStrengthPolicyOperationOptions) ToOData

func (DeleteAuthenticationStrengthPolicyOperationOptions) ToQuery

type DeleteAuthenticationStrengthPolicyOperationResponse

type DeleteAuthenticationStrengthPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetAuthenticationStrengthPoliciesCountOperationOptions

type GetAuthenticationStrengthPoliciesCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetAuthenticationStrengthPoliciesCountOperationOptions

func DefaultGetAuthenticationStrengthPoliciesCountOperationOptions() GetAuthenticationStrengthPoliciesCountOperationOptions

func (GetAuthenticationStrengthPoliciesCountOperationOptions) ToHeaders

func (GetAuthenticationStrengthPoliciesCountOperationOptions) ToOData

func (GetAuthenticationStrengthPoliciesCountOperationOptions) ToQuery

type GetAuthenticationStrengthPoliciesCountOperationResponse

type GetAuthenticationStrengthPoliciesCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type GetAuthenticationStrengthPolicyOperationOptions

type GetAuthenticationStrengthPolicyOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetAuthenticationStrengthPolicyOperationOptions

func DefaultGetAuthenticationStrengthPolicyOperationOptions() GetAuthenticationStrengthPolicyOperationOptions

func (GetAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (GetAuthenticationStrengthPolicyOperationOptions) ToOData

func (GetAuthenticationStrengthPolicyOperationOptions) ToQuery

type GetAuthenticationStrengthPolicyOperationResponse

type GetAuthenticationStrengthPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.AuthenticationStrengthPolicy
}

type ListAuthenticationStrengthPoliciesCompleteResult

type ListAuthenticationStrengthPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.AuthenticationStrengthPolicy
}

type ListAuthenticationStrengthPoliciesCustomPager

type ListAuthenticationStrengthPoliciesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListAuthenticationStrengthPoliciesOperationOptions

type ListAuthenticationStrengthPoliciesOperationOptions struct {
	Count     *bool
	Expand    *odata.Expand
	Filter    *string
	Metadata  *odata.Metadata
	OrderBy   *odata.OrderBy
	RetryFunc client.RequestRetryFunc
	Search    *string
	Select    *[]string
	Skip      *int64
	Top       *int64
}

func DefaultListAuthenticationStrengthPoliciesOperationOptions

func DefaultListAuthenticationStrengthPoliciesOperationOptions() ListAuthenticationStrengthPoliciesOperationOptions

func (ListAuthenticationStrengthPoliciesOperationOptions) ToHeaders

func (ListAuthenticationStrengthPoliciesOperationOptions) ToOData

func (ListAuthenticationStrengthPoliciesOperationOptions) ToQuery

type ListAuthenticationStrengthPoliciesOperationResponse

type ListAuthenticationStrengthPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.AuthenticationStrengthPolicy
}

type UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions

type UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToHeaders

func (UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToOData

func (UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToQuery

type UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationResponse

type UpdateAuthenticationStrengthPolicyAllowedCombinationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.UpdateAllowedCombinationsResult
}

type UpdateAuthenticationStrengthPolicyAllowedCombinationsRequest

type UpdateAuthenticationStrengthPolicyAllowedCombinationsRequest struct {
	AllowedCombinations *[]stable.AuthenticationMethodModes `json:"allowedCombinations,omitempty"`
}

type UpdateAuthenticationStrengthPolicyOperationOptions

type UpdateAuthenticationStrengthPolicyOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateAuthenticationStrengthPolicyOperationOptions

func DefaultUpdateAuthenticationStrengthPolicyOperationOptions() UpdateAuthenticationStrengthPolicyOperationOptions

func (UpdateAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (UpdateAuthenticationStrengthPolicyOperationOptions) ToOData

func (UpdateAuthenticationStrengthPolicyOperationOptions) ToQuery

type UpdateAuthenticationStrengthPolicyOperationResponse

type UpdateAuthenticationStrengthPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL