conditionalaccessauthenticationstrengthpolicy

package
v0.20241017.1093842 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/identity/stable/conditionalaccessauthenticationstrengthpolicy Documentation

The conditionalaccessauthenticationstrengthpolicy SDK allows for interaction with Microsoft Graph identity (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/identity/stable/conditionalaccessauthenticationstrengthpolicy"

Client Initialization

client := conditionalaccessauthenticationstrengthpolicy.NewConditionalAccessAuthenticationStrengthPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.CreateConditionalAccessAuthenticationStrengthPolicy

ctx := context.TODO()

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


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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.DeleteConditionalAccessAuthenticationStrengthPolicy

ctx := context.TODO()
id := conditionalaccessauthenticationstrengthpolicy.NewIdentityConditionalAccessAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.GetConditionalAccessAuthenticationStrengthPoliciesCount

ctx := context.TODO()


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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.GetConditionalAccessAuthenticationStrengthPolicy

ctx := context.TODO()
id := conditionalaccessauthenticationstrengthpolicy.NewIdentityConditionalAccessAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.ListConditionalAccessAuthenticationStrengthPolicies

ctx := context.TODO()


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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.UpdateConditionalAccessAuthenticationStrengthPolicy

ctx := context.TODO()
id := conditionalaccessauthenticationstrengthpolicy.NewIdentityConditionalAccessAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

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


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

Example Usage: ConditionalAccessAuthenticationStrengthPolicyClient.UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinations

ctx := context.TODO()
id := conditionalaccessauthenticationstrengthpolicy.NewIdentityConditionalAccessAuthenticationStrengthPolicyID("authenticationStrengthPolicyId")

payload := conditionalaccessauthenticationstrengthpolicy.UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsRequest{
	// ...
}


read, err := client.UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinations(ctx, id, payload, conditionalaccessauthenticationstrengthpolicy.DefaultUpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationOptions())
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 AuthenticationStrengthPolicyOperationPredicate

type AuthenticationStrengthPolicyOperationPredicate struct {
}

func (AuthenticationStrengthPolicyOperationPredicate) Matches

type ConditionalAccessAuthenticationStrengthPolicyClient

type ConditionalAccessAuthenticationStrengthPolicyClient struct {
	Client *msgraph.Client
}

func NewConditionalAccessAuthenticationStrengthPolicyClientWithBaseURI

func NewConditionalAccessAuthenticationStrengthPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ConditionalAccessAuthenticationStrengthPolicyClient, error)

func (ConditionalAccessAuthenticationStrengthPolicyClient) CreateConditionalAccessAuthenticationStrengthPolicy

CreateConditionalAccessAuthenticationStrengthPolicy - Create new navigation property to policies for identity

func (ConditionalAccessAuthenticationStrengthPolicyClient) DeleteConditionalAccessAuthenticationStrengthPolicy

DeleteConditionalAccessAuthenticationStrengthPolicy - Delete navigation property policies for identity

func (ConditionalAccessAuthenticationStrengthPolicyClient) GetConditionalAccessAuthenticationStrengthPoliciesCount

GetConditionalAccessAuthenticationStrengthPoliciesCount - Get the number of the resource

func (ConditionalAccessAuthenticationStrengthPolicyClient) GetConditionalAccessAuthenticationStrengthPolicy

GetConditionalAccessAuthenticationStrengthPolicy - Get policies from identity. A collection of authentication strength policies that exist for this tenant, including both built-in and custom policies.

func (ConditionalAccessAuthenticationStrengthPolicyClient) ListConditionalAccessAuthenticationStrengthPolicies

ListConditionalAccessAuthenticationStrengthPolicies - Get policies from identity. A collection of authentication strength policies that exist for this tenant, including both built-in and custom policies.

func (ConditionalAccessAuthenticationStrengthPolicyClient) ListConditionalAccessAuthenticationStrengthPoliciesComplete

ListConditionalAccessAuthenticationStrengthPoliciesComplete retrieves all the results into a single object

func (ConditionalAccessAuthenticationStrengthPolicyClient) ListConditionalAccessAuthenticationStrengthPoliciesCompleteMatchingPredicate

ListConditionalAccessAuthenticationStrengthPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ConditionalAccessAuthenticationStrengthPolicyClient) UpdateConditionalAccessAuthenticationStrengthPolicy

UpdateConditionalAccessAuthenticationStrengthPolicy - Update the navigation property policies in identity

func (ConditionalAccessAuthenticationStrengthPolicyClient) UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinations

UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinations - 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 CreateConditionalAccessAuthenticationStrengthPolicyOperationOptions

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

func (CreateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (CreateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToOData

func (CreateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToQuery

type CreateConditionalAccessAuthenticationStrengthPolicyOperationResponse

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

type DeleteConditionalAccessAuthenticationStrengthPolicyOperationOptions

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

func (DeleteConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (DeleteConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToOData

func (DeleteConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToQuery

type DeleteConditionalAccessAuthenticationStrengthPolicyOperationResponse

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

type GetConditionalAccessAuthenticationStrengthPoliciesCountOperationOptions

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

func (GetConditionalAccessAuthenticationStrengthPoliciesCountOperationOptions) ToHeaders

func (GetConditionalAccessAuthenticationStrengthPoliciesCountOperationOptions) ToOData

func (GetConditionalAccessAuthenticationStrengthPoliciesCountOperationOptions) ToQuery

type GetConditionalAccessAuthenticationStrengthPoliciesCountOperationResponse

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

type GetConditionalAccessAuthenticationStrengthPolicyOperationOptions

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

func (GetConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (GetConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToOData

func (GetConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToQuery

type GetConditionalAccessAuthenticationStrengthPolicyOperationResponse

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

type ListConditionalAccessAuthenticationStrengthPoliciesCompleteResult

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

type ListConditionalAccessAuthenticationStrengthPoliciesCustomPager

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

type ListConditionalAccessAuthenticationStrengthPoliciesOperationOptions

type ListConditionalAccessAuthenticationStrengthPoliciesOperationOptions 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 (ListConditionalAccessAuthenticationStrengthPoliciesOperationOptions) ToHeaders

func (ListConditionalAccessAuthenticationStrengthPoliciesOperationOptions) ToOData

func (ListConditionalAccessAuthenticationStrengthPoliciesOperationOptions) ToQuery

type ListConditionalAccessAuthenticationStrengthPoliciesOperationResponse

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

type UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationOptions

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

func (UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToHeaders

func (UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToOData

func (UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationOptions) ToQuery

type UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsOperationResponse

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

type UpdateConditionalAccessAuthenticationStrengthPolicyAllowedCombinationsRequest

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

type UpdateConditionalAccessAuthenticationStrengthPolicyOperationOptions

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

func (UpdateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToHeaders

func (UpdateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToOData

func (UpdateConditionalAccessAuthenticationStrengthPolicyOperationOptions) ToQuery

type UpdateConditionalAccessAuthenticationStrengthPolicyOperationResponse

type UpdateConditionalAccessAuthenticationStrengthPolicyOperationResponse 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