authenticationmethod

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/authenticationmethod Documentation

The authenticationmethod SDK allows for interaction with Microsoft Graph me (API Version beta).

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/me/beta/authenticationmethod"

Client Initialization

client := authenticationmethod.NewAuthenticationMethodClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AuthenticationMethodClient.CreateAuthenticationMethod

ctx := context.TODO()

payload := authenticationmethod.AuthenticationMethod{
	// ...
}


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

Example Usage: AuthenticationMethodClient.DisableAuthenticationMethodSmsSignIn

ctx := context.TODO()
id := authenticationmethod.NewMeAuthenticationMethodID("authenticationMethodId")

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

Example Usage: AuthenticationMethodClient.EnableAuthenticationMethodSmsSignIn

ctx := context.TODO()
id := authenticationmethod.NewMeAuthenticationMethodID("authenticationMethodId")

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

Example Usage: AuthenticationMethodClient.GetAuthenticationMethod

ctx := context.TODO()
id := authenticationmethod.NewMeAuthenticationMethodID("authenticationMethodId")

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

Example Usage: AuthenticationMethodClient.GetAuthenticationMethodsCount

ctx := context.TODO()


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

Example Usage: AuthenticationMethodClient.ListAuthenticationMethods

ctx := context.TODO()


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

Example Usage: AuthenticationMethodClient.ResetAuthenticationMethodPassword

ctx := context.TODO()
id := authenticationmethod.NewMeAuthenticationMethodID("authenticationMethodId")

payload := authenticationmethod.ResetAuthenticationMethodPasswordRequest{
	// ...
}


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

Example Usage: AuthenticationMethodClient.UpdateAuthenticationMethod

ctx := context.TODO()
id := authenticationmethod.NewMeAuthenticationMethodID("authenticationMethodId")

payload := authenticationmethod.AuthenticationMethod{
	// ...
}


read, err := client.UpdateAuthenticationMethod(ctx, id, payload, authenticationmethod.DefaultUpdateAuthenticationMethodOperationOptions())
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 AuthenticationMethodClient

type AuthenticationMethodClient struct {
	Client *msgraph.Client
}

func NewAuthenticationMethodClientWithBaseURI

func NewAuthenticationMethodClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthenticationMethodClient, error)

func (AuthenticationMethodClient) CreateAuthenticationMethod

CreateAuthenticationMethod - Create new navigation property to methods for me

func (AuthenticationMethodClient) DisableAuthenticationMethodSmsSignIn

DisableAuthenticationMethodSmsSignIn - Invoke action disableSmsSignIn

func (AuthenticationMethodClient) EnableAuthenticationMethodSmsSignIn

EnableAuthenticationMethodSmsSignIn - Invoke action enableSmsSignIn

func (AuthenticationMethodClient) GetAuthenticationMethod

GetAuthenticationMethod - Get authenticationMethod. Retrieve the properties and relationships of an authenticationMethod object.

func (AuthenticationMethodClient) GetAuthenticationMethodsCount

GetAuthenticationMethodsCount - Get the number of the resource

func (AuthenticationMethodClient) ListAuthenticationMethods

ListAuthenticationMethods - List methods. Retrieve a list of authentication methods registered to a user. The authentication methods are defined by the types derived from the authenticationMethod resource type, and only the methods supported on this API version. See Microsoft Entra authentication methods API overview for a list of currently supported methods. We don't recommend using the authentication methods APIs for scenarios where you need to iterate over your entire user population for auditing or security check purposes. For these types of scenarios, we recommend using the authentication method registration and usage reporting APIs.

func (AuthenticationMethodClient) ListAuthenticationMethodsComplete

ListAuthenticationMethodsComplete retrieves all the results into a single object

func (AuthenticationMethodClient) ListAuthenticationMethodsCompleteMatchingPredicate

ListAuthenticationMethodsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AuthenticationMethodClient) ResetAuthenticationMethodPassword

ResetAuthenticationMethodPassword - Invoke action resetPassword. Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation.

func (AuthenticationMethodClient) UpdateAuthenticationMethod

UpdateAuthenticationMethod - Update the navigation property methods in me

type AuthenticationMethodOperationPredicate

type AuthenticationMethodOperationPredicate struct {
}

func (AuthenticationMethodOperationPredicate) Matches

type CreateAuthenticationMethodOperationOptions

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

func DefaultCreateAuthenticationMethodOperationOptions

func DefaultCreateAuthenticationMethodOperationOptions() CreateAuthenticationMethodOperationOptions

func (CreateAuthenticationMethodOperationOptions) ToHeaders

func (CreateAuthenticationMethodOperationOptions) ToOData

func (CreateAuthenticationMethodOperationOptions) ToQuery

type CreateAuthenticationMethodOperationResponse

type CreateAuthenticationMethodOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.AuthenticationMethod
}

type DisableAuthenticationMethodSmsSignInOperationOptions

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

func DefaultDisableAuthenticationMethodSmsSignInOperationOptions

func DefaultDisableAuthenticationMethodSmsSignInOperationOptions() DisableAuthenticationMethodSmsSignInOperationOptions

func (DisableAuthenticationMethodSmsSignInOperationOptions) ToHeaders

func (DisableAuthenticationMethodSmsSignInOperationOptions) ToOData

func (DisableAuthenticationMethodSmsSignInOperationOptions) ToQuery

type DisableAuthenticationMethodSmsSignInOperationResponse

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

type EnableAuthenticationMethodSmsSignInOperationOptions

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

func DefaultEnableAuthenticationMethodSmsSignInOperationOptions

func DefaultEnableAuthenticationMethodSmsSignInOperationOptions() EnableAuthenticationMethodSmsSignInOperationOptions

func (EnableAuthenticationMethodSmsSignInOperationOptions) ToHeaders

func (EnableAuthenticationMethodSmsSignInOperationOptions) ToOData

func (EnableAuthenticationMethodSmsSignInOperationOptions) ToQuery

type EnableAuthenticationMethodSmsSignInOperationResponse

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

type GetAuthenticationMethodOperationOptions

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

func DefaultGetAuthenticationMethodOperationOptions

func DefaultGetAuthenticationMethodOperationOptions() GetAuthenticationMethodOperationOptions

func (GetAuthenticationMethodOperationOptions) ToHeaders

func (GetAuthenticationMethodOperationOptions) ToOData

func (GetAuthenticationMethodOperationOptions) ToQuery

type GetAuthenticationMethodOperationResponse

type GetAuthenticationMethodOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.AuthenticationMethod
}

type GetAuthenticationMethodsCountOperationOptions

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

func DefaultGetAuthenticationMethodsCountOperationOptions

func DefaultGetAuthenticationMethodsCountOperationOptions() GetAuthenticationMethodsCountOperationOptions

func (GetAuthenticationMethodsCountOperationOptions) ToHeaders

func (GetAuthenticationMethodsCountOperationOptions) ToOData

func (GetAuthenticationMethodsCountOperationOptions) ToQuery

type GetAuthenticationMethodsCountOperationResponse

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

type ListAuthenticationMethodsCompleteResult

type ListAuthenticationMethodsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AuthenticationMethod
}

type ListAuthenticationMethodsCustomPager

type ListAuthenticationMethodsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListAuthenticationMethodsCustomPager) NextPageLink() *odata.Link

type ListAuthenticationMethodsOperationOptions

type ListAuthenticationMethodsOperationOptions 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 DefaultListAuthenticationMethodsOperationOptions

func DefaultListAuthenticationMethodsOperationOptions() ListAuthenticationMethodsOperationOptions

func (ListAuthenticationMethodsOperationOptions) ToHeaders

func (ListAuthenticationMethodsOperationOptions) ToOData

func (ListAuthenticationMethodsOperationOptions) ToQuery

type ListAuthenticationMethodsOperationResponse

type ListAuthenticationMethodsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AuthenticationMethod
}

type ResetAuthenticationMethodPasswordOperationOptions

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

func DefaultResetAuthenticationMethodPasswordOperationOptions

func DefaultResetAuthenticationMethodPasswordOperationOptions() ResetAuthenticationMethodPasswordOperationOptions

func (ResetAuthenticationMethodPasswordOperationOptions) ToHeaders

func (ResetAuthenticationMethodPasswordOperationOptions) ToOData

func (ResetAuthenticationMethodPasswordOperationOptions) ToQuery

type ResetAuthenticationMethodPasswordOperationResponse

type ResetAuthenticationMethodPasswordOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PasswordResetResponse
}

type ResetAuthenticationMethodPasswordRequest

type ResetAuthenticationMethodPasswordRequest struct {
	NewPassword nullable.Type[string] `json:"newPassword,omitempty"`
}

type UpdateAuthenticationMethodOperationOptions

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

func DefaultUpdateAuthenticationMethodOperationOptions

func DefaultUpdateAuthenticationMethodOperationOptions() UpdateAuthenticationMethodOperationOptions

func (UpdateAuthenticationMethodOperationOptions) ToHeaders

func (UpdateAuthenticationMethodOperationOptions) ToOData

func (UpdateAuthenticationMethodOperationOptions) ToQuery

type UpdateAuthenticationMethodOperationResponse

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