synchronizationsecret

package
v0.20241029.1112340 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/applications/stable/synchronizationsecret Documentation

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

Client Initialization

client := synchronizationsecret.NewSynchronizationSecretClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SynchronizationSecretClient.GetSynchronizationSecretsCount

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

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

Example Usage: SynchronizationSecretClient.ListSynchronizationSecrets

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

// alternatively `client.ListSynchronizationSecrets(ctx, id, synchronizationsecret.DefaultListSynchronizationSecretsOperationOptions())` can be used to do batched pagination
items, err := client.ListSynchronizationSecretsComplete(ctx, id, synchronizationsecret.DefaultListSynchronizationSecretsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: SynchronizationSecretClient.SetSynchronizationSecret

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

payload := synchronizationsecret.SetSynchronizationSecretRequest{
	// ...
}


read, err := client.SetSynchronizationSecret(ctx, id, payload, synchronizationsecret.DefaultSetSynchronizationSecretOperationOptions())
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 GetSynchronizationSecretsCountOperationOptions

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

func DefaultGetSynchronizationSecretsCountOperationOptions

func DefaultGetSynchronizationSecretsCountOperationOptions() GetSynchronizationSecretsCountOperationOptions

func (GetSynchronizationSecretsCountOperationOptions) ToHeaders

func (GetSynchronizationSecretsCountOperationOptions) ToOData

func (GetSynchronizationSecretsCountOperationOptions) ToQuery

type GetSynchronizationSecretsCountOperationResponse

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

type ListSynchronizationSecretsCompleteResult

type ListSynchronizationSecretsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.SynchronizationSecretKeyStringValuePair
}

type ListSynchronizationSecretsCustomPager

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

type ListSynchronizationSecretsOperationOptions

type ListSynchronizationSecretsOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultListSynchronizationSecretsOperationOptions

func DefaultListSynchronizationSecretsOperationOptions() ListSynchronizationSecretsOperationOptions

func (ListSynchronizationSecretsOperationOptions) ToHeaders

func (ListSynchronizationSecretsOperationOptions) ToOData

func (ListSynchronizationSecretsOperationOptions) ToQuery

type ListSynchronizationSecretsOperationResponse

type ListSynchronizationSecretsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.SynchronizationSecretKeyStringValuePair
}

type SetSynchronizationSecretOperationOptions

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

func DefaultSetSynchronizationSecretOperationOptions

func DefaultSetSynchronizationSecretOperationOptions() SetSynchronizationSecretOperationOptions

func (SetSynchronizationSecretOperationOptions) ToHeaders

func (SetSynchronizationSecretOperationOptions) ToOData

func (SetSynchronizationSecretOperationOptions) ToQuery

type SetSynchronizationSecretOperationResponse

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

type SetSynchronizationSecretRequest

type SetSynchronizationSecretRequest struct {
	Value *[]stable.SynchronizationSecretKeyStringValuePair `json:"value,omitempty"`
}

type SynchronizationSecretClient

type SynchronizationSecretClient struct {
	Client *msgraph.Client
}

func NewSynchronizationSecretClientWithBaseURI

func NewSynchronizationSecretClientWithBaseURI(sdkApi sdkEnv.Api) (*SynchronizationSecretClient, error)

func (SynchronizationSecretClient) GetSynchronizationSecretsCount

GetSynchronizationSecretsCount - Get the number of the resource

func (SynchronizationSecretClient) ListSynchronizationSecrets

ListSynchronizationSecrets - Retrieve synchronization secrets.

func (SynchronizationSecretClient) ListSynchronizationSecretsComplete

ListSynchronizationSecretsComplete retrieves all the results into a single object

func (SynchronizationSecretClient) ListSynchronizationSecretsCompleteMatchingPredicate

ListSynchronizationSecretsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SynchronizationSecretClient) SetSynchronizationSecret

SetSynchronizationSecret - Update property secrets value.

type SynchronizationSecretKeyStringValuePairOperationPredicate

type SynchronizationSecretKeyStringValuePairOperationPredicate struct {
}

func (SynchronizationSecretKeyStringValuePairOperationPredicate) Matches

Jump to

Keyboard shortcuts

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