exchangeconnector

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/devicemanagement/beta/exchangeconnector Documentation

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

Client Initialization

client := exchangeconnector.NewExchangeConnectorClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ExchangeConnectorClient.CreateExchangeConnector

ctx := context.TODO()

payload := exchangeconnector.DeviceManagementExchangeConnector{
	// ...
}


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

Example Usage: ExchangeConnectorClient.DeleteExchangeConnector

ctx := context.TODO()
id := exchangeconnector.NewDeviceManagementExchangeConnectorID("deviceManagementExchangeConnectorId")

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

Example Usage: ExchangeConnectorClient.GetExchangeConnector

ctx := context.TODO()
id := exchangeconnector.NewDeviceManagementExchangeConnectorID("deviceManagementExchangeConnectorId")

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

Example Usage: ExchangeConnectorClient.GetExchangeConnectorsCount

ctx := context.TODO()


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

Example Usage: ExchangeConnectorClient.ListExchangeConnectors

ctx := context.TODO()


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

Example Usage: ExchangeConnectorClient.SyncExchangeConnector

ctx := context.TODO()
id := exchangeconnector.NewDeviceManagementExchangeConnectorID("deviceManagementExchangeConnectorId")

payload := exchangeconnector.SyncExchangeConnectorRequest{
	// ...
}


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

Example Usage: ExchangeConnectorClient.UpdateExchangeConnector

ctx := context.TODO()
id := exchangeconnector.NewDeviceManagementExchangeConnectorID("deviceManagementExchangeConnectorId")

payload := exchangeconnector.DeviceManagementExchangeConnector{
	// ...
}


read, err := client.UpdateExchangeConnector(ctx, id, payload, exchangeconnector.DefaultUpdateExchangeConnectorOperationOptions())
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 CreateExchangeConnectorOperationOptions

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

func DefaultCreateExchangeConnectorOperationOptions

func DefaultCreateExchangeConnectorOperationOptions() CreateExchangeConnectorOperationOptions

func (CreateExchangeConnectorOperationOptions) ToHeaders

func (CreateExchangeConnectorOperationOptions) ToOData

func (CreateExchangeConnectorOperationOptions) ToQuery

type CreateExchangeConnectorOperationResponse

type CreateExchangeConnectorOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementExchangeConnector
}

type DeleteExchangeConnectorOperationOptions

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

func DefaultDeleteExchangeConnectorOperationOptions

func DefaultDeleteExchangeConnectorOperationOptions() DeleteExchangeConnectorOperationOptions

func (DeleteExchangeConnectorOperationOptions) ToHeaders

func (DeleteExchangeConnectorOperationOptions) ToOData

func (DeleteExchangeConnectorOperationOptions) ToQuery

type DeleteExchangeConnectorOperationResponse

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

type DeviceManagementExchangeConnectorOperationPredicate

type DeviceManagementExchangeConnectorOperationPredicate struct {
}

func (DeviceManagementExchangeConnectorOperationPredicate) Matches

type ExchangeConnectorClient

type ExchangeConnectorClient struct {
	Client *msgraph.Client
}

func NewExchangeConnectorClientWithBaseURI

func NewExchangeConnectorClientWithBaseURI(sdkApi sdkEnv.Api) (*ExchangeConnectorClient, error)

func (ExchangeConnectorClient) CreateExchangeConnector

CreateExchangeConnector - Create new navigation property to exchangeConnectors for deviceManagement

func (ExchangeConnectorClient) DeleteExchangeConnector

DeleteExchangeConnector - Delete navigation property exchangeConnectors for deviceManagement

func (ExchangeConnectorClient) GetExchangeConnector

GetExchangeConnector - Get exchangeConnectors from deviceManagement. The list of Exchange Connectors configured by the tenant.

func (ExchangeConnectorClient) GetExchangeConnectorsCount

GetExchangeConnectorsCount - Get the number of the resource

func (ExchangeConnectorClient) ListExchangeConnectors

ListExchangeConnectors - Get exchangeConnectors from deviceManagement. The list of Exchange Connectors configured by the tenant.

func (ExchangeConnectorClient) ListExchangeConnectorsComplete

ListExchangeConnectorsComplete retrieves all the results into a single object

func (ExchangeConnectorClient) ListExchangeConnectorsCompleteMatchingPredicate

ListExchangeConnectorsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ExchangeConnectorClient) SyncExchangeConnector

SyncExchangeConnector - Invoke action sync

func (ExchangeConnectorClient) UpdateExchangeConnector

UpdateExchangeConnector - Update the navigation property exchangeConnectors in deviceManagement

type GetExchangeConnectorOperationOptions

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

func DefaultGetExchangeConnectorOperationOptions

func DefaultGetExchangeConnectorOperationOptions() GetExchangeConnectorOperationOptions

func (GetExchangeConnectorOperationOptions) ToHeaders

func (GetExchangeConnectorOperationOptions) ToOData

func (GetExchangeConnectorOperationOptions) ToQuery

type GetExchangeConnectorOperationResponse

type GetExchangeConnectorOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceManagementExchangeConnector
}

type GetExchangeConnectorsCountOperationOptions

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

func DefaultGetExchangeConnectorsCountOperationOptions

func DefaultGetExchangeConnectorsCountOperationOptions() GetExchangeConnectorsCountOperationOptions

func (GetExchangeConnectorsCountOperationOptions) ToHeaders

func (GetExchangeConnectorsCountOperationOptions) ToOData

func (GetExchangeConnectorsCountOperationOptions) ToQuery

type GetExchangeConnectorsCountOperationResponse

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

type ListExchangeConnectorsCompleteResult

type ListExchangeConnectorsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceManagementExchangeConnector
}

type ListExchangeConnectorsCustomPager

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

type ListExchangeConnectorsOperationOptions

type ListExchangeConnectorsOperationOptions 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 DefaultListExchangeConnectorsOperationOptions

func DefaultListExchangeConnectorsOperationOptions() ListExchangeConnectorsOperationOptions

func (ListExchangeConnectorsOperationOptions) ToHeaders

func (ListExchangeConnectorsOperationOptions) ToOData

func (ListExchangeConnectorsOperationOptions) ToQuery

type ListExchangeConnectorsOperationResponse

type ListExchangeConnectorsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceManagementExchangeConnector
}

type SyncExchangeConnectorOperationOptions

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

func DefaultSyncExchangeConnectorOperationOptions

func DefaultSyncExchangeConnectorOperationOptions() SyncExchangeConnectorOperationOptions

func (SyncExchangeConnectorOperationOptions) ToHeaders

func (SyncExchangeConnectorOperationOptions) ToOData

func (SyncExchangeConnectorOperationOptions) ToQuery

type SyncExchangeConnectorOperationResponse

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

type SyncExchangeConnectorRequest

type SyncExchangeConnectorRequest struct {
	// The type of Exchange Connector sync requested.
	SyncType *beta.DeviceManagementExchangeConnectorSyncType `json:"syncType,omitempty"`
}

type UpdateExchangeConnectorOperationOptions

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

func DefaultUpdateExchangeConnectorOperationOptions

func DefaultUpdateExchangeConnectorOperationOptions() UpdateExchangeConnectorOperationOptions

func (UpdateExchangeConnectorOperationOptions) ToHeaders

func (UpdateExchangeConnectorOperationOptions) ToOData

func (UpdateExchangeConnectorOperationOptions) ToQuery

type UpdateExchangeConnectorOperationResponse

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