synchronization

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/beta/synchronization Documentation

The synchronization SDK allows for interaction with Microsoft Graph applications (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/applications/beta/synchronization"

Client Initialization

client := synchronization.NewSynchronizationClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SynchronizationClient.AcquireSynchronizationAccessToken

ctx := context.TODO()
id := synchronization.NewApplicationID("applicationId")

payload := synchronization.AcquireSynchronizationAccessTokenRequest{
	// ...
}


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

Example Usage: SynchronizationClient.DeleteSynchronization

ctx := context.TODO()
id := synchronization.NewApplicationID("applicationId")

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

Example Usage: SynchronizationClient.GetSynchronization

ctx := context.TODO()
id := synchronization.NewApplicationID("applicationId")

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

Example Usage: SynchronizationClient.SetSynchronization

ctx := context.TODO()
id := synchronization.NewApplicationID("applicationId")

payload := synchronization.Synchronization{
	// ...
}


read, err := client.SetSynchronization(ctx, id, payload, synchronization.DefaultSetSynchronizationOperationOptions())
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 AcquireSynchronizationAccessTokenOperationOptions

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

func DefaultAcquireSynchronizationAccessTokenOperationOptions

func DefaultAcquireSynchronizationAccessTokenOperationOptions() AcquireSynchronizationAccessTokenOperationOptions

func (AcquireSynchronizationAccessTokenOperationOptions) ToHeaders

func (AcquireSynchronizationAccessTokenOperationOptions) ToOData

func (AcquireSynchronizationAccessTokenOperationOptions) ToQuery

type AcquireSynchronizationAccessTokenOperationResponse

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

type AcquireSynchronizationAccessTokenRequest

type AcquireSynchronizationAccessTokenRequest struct {
	Credentials *[]beta.SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"`
}

type DeleteSynchronizationOperationOptions

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

func DefaultDeleteSynchronizationOperationOptions

func DefaultDeleteSynchronizationOperationOptions() DeleteSynchronizationOperationOptions

func (DeleteSynchronizationOperationOptions) ToHeaders

func (DeleteSynchronizationOperationOptions) ToOData

func (DeleteSynchronizationOperationOptions) ToQuery

type DeleteSynchronizationOperationResponse

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

type GetSynchronizationOperationOptions

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

func DefaultGetSynchronizationOperationOptions

func DefaultGetSynchronizationOperationOptions() GetSynchronizationOperationOptions

func (GetSynchronizationOperationOptions) ToHeaders

func (GetSynchronizationOperationOptions) ToOData

func (GetSynchronizationOperationOptions) ToQuery

type GetSynchronizationOperationResponse

type GetSynchronizationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Synchronization
}

type SetSynchronizationOperationOptions

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

func DefaultSetSynchronizationOperationOptions

func DefaultSetSynchronizationOperationOptions() SetSynchronizationOperationOptions

func (SetSynchronizationOperationOptions) ToHeaders

func (SetSynchronizationOperationOptions) ToOData

func (SetSynchronizationOperationOptions) ToQuery

type SetSynchronizationOperationResponse

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

type SynchronizationClient

type SynchronizationClient struct {
	Client *msgraph.Client
}

func NewSynchronizationClientWithBaseURI

func NewSynchronizationClientWithBaseURI(sdkApi sdkEnv.Api) (*SynchronizationClient, error)

func (SynchronizationClient) AcquireSynchronizationAccessToken

AcquireSynchronizationAccessToken - Invoke action acquireAccessToken. Acquire an OAuth Access token to authorize the Microsoft Entra provisioning service to provision users into an application.

func (SynchronizationClient) DeleteSynchronization

DeleteSynchronization - Delete navigation property synchronization for applications

func (SynchronizationClient) GetSynchronization

GetSynchronization - Get synchronization from applications. Represents the capability for Microsoft Entra identity synchronization through the Microsoft Graph API.

func (SynchronizationClient) SetSynchronization

SetSynchronization - Update the navigation property synchronization in applications

Jump to

Keyboard shortcuts

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