apiconnector

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

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

The apiconnector 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/apiconnector"

Client Initialization

client := apiconnector.NewApiConnectorClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ApiConnectorClient.CreateApiConnector

ctx := context.TODO()

payload := apiconnector.IdentityApiConnector{
	// ...
}


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

Example Usage: ApiConnectorClient.CreateApiConnectorUploadClientCertificate

ctx := context.TODO()
id := apiconnector.NewIdentityApiConnectorID("identityApiConnectorId")

payload := apiconnector.CreateApiConnectorUploadClientCertificateRequest{
	// ...
}


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

Example Usage: ApiConnectorClient.DeleteApiConnector

ctx := context.TODO()
id := apiconnector.NewIdentityApiConnectorID("identityApiConnectorId")

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

Example Usage: ApiConnectorClient.GetApiConnector

ctx := context.TODO()
id := apiconnector.NewIdentityApiConnectorID("identityApiConnectorId")

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

Example Usage: ApiConnectorClient.GetApiConnectorsCount

ctx := context.TODO()


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

Example Usage: ApiConnectorClient.ListApiConnectors

ctx := context.TODO()


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

Example Usage: ApiConnectorClient.UpdateApiConnector

ctx := context.TODO()
id := apiconnector.NewIdentityApiConnectorID("identityApiConnectorId")

payload := apiconnector.IdentityApiConnector{
	// ...
}


read, err := client.UpdateApiConnector(ctx, id, payload, apiconnector.DefaultUpdateApiConnectorOperationOptions())
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 ApiConnectorClient

type ApiConnectorClient struct {
	Client *msgraph.Client
}

func NewApiConnectorClientWithBaseURI

func NewApiConnectorClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiConnectorClient, error)

func (ApiConnectorClient) CreateApiConnector

CreateApiConnector - Create identityApiConnector. Create a new identityApiConnector object.

func (ApiConnectorClient) CreateApiConnectorUploadClientCertificate

CreateApiConnectorUploadClientCertificate - Invoke action uploadClientCertificate. Upload a PKCS 12 format key (.pfx) to an API connector's authentication configuration. The input is a base-64 encoded value of the PKCS 12 certificate contents. This method returns an apiConnector.

func (ApiConnectorClient) DeleteApiConnector

DeleteApiConnector - Delete identityApiConnector. Delete an identityApiConnector object.

func (ApiConnectorClient) GetApiConnector

GetApiConnector - Get identityApiConnector. Read the properties of an identityApiConnector object.

func (ApiConnectorClient) GetApiConnectorsCount

GetApiConnectorsCount - Get the number of the resource

func (ApiConnectorClient) ListApiConnectors

ListApiConnectors - List identityApiConnectors. Read the properties of an identityApiConnector object.

func (ApiConnectorClient) ListApiConnectorsComplete

ListApiConnectorsComplete retrieves all the results into a single object

func (ApiConnectorClient) ListApiConnectorsCompleteMatchingPredicate

func (c ApiConnectorClient) ListApiConnectorsCompleteMatchingPredicate(ctx context.Context, options ListApiConnectorsOperationOptions, predicate IdentityApiConnectorOperationPredicate) (result ListApiConnectorsCompleteResult, err error)

ListApiConnectorsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ApiConnectorClient) UpdateApiConnector

UpdateApiConnector - Update identityApiConnector. Update the properties of an identityApiConnector object.

type CreateApiConnectorOperationOptions

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

func DefaultCreateApiConnectorOperationOptions

func DefaultCreateApiConnectorOperationOptions() CreateApiConnectorOperationOptions

func (CreateApiConnectorOperationOptions) ToHeaders

func (CreateApiConnectorOperationOptions) ToOData

func (CreateApiConnectorOperationOptions) ToQuery

type CreateApiConnectorOperationResponse

type CreateApiConnectorOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.IdentityApiConnector
}

type CreateApiConnectorUploadClientCertificateOperationOptions

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

func (CreateApiConnectorUploadClientCertificateOperationOptions) ToHeaders

func (CreateApiConnectorUploadClientCertificateOperationOptions) ToOData

func (CreateApiConnectorUploadClientCertificateOperationOptions) ToQuery

type CreateApiConnectorUploadClientCertificateOperationResponse

type CreateApiConnectorUploadClientCertificateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.IdentityApiConnector
}

type CreateApiConnectorUploadClientCertificateRequest

type CreateApiConnectorUploadClientCertificateRequest struct {
	Password    nullable.Type[string] `json:"password,omitempty"`
	Pkcs12Value nullable.Type[string] `json:"pkcs12Value,omitempty"`
}

type DeleteApiConnectorOperationOptions

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

func DefaultDeleteApiConnectorOperationOptions

func DefaultDeleteApiConnectorOperationOptions() DeleteApiConnectorOperationOptions

func (DeleteApiConnectorOperationOptions) ToHeaders

func (DeleteApiConnectorOperationOptions) ToOData

func (DeleteApiConnectorOperationOptions) ToQuery

type DeleteApiConnectorOperationResponse

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

type GetApiConnectorOperationOptions

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

func DefaultGetApiConnectorOperationOptions

func DefaultGetApiConnectorOperationOptions() GetApiConnectorOperationOptions

func (GetApiConnectorOperationOptions) ToHeaders

func (GetApiConnectorOperationOptions) ToOData

func (GetApiConnectorOperationOptions) ToQuery

type GetApiConnectorOperationResponse

type GetApiConnectorOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.IdentityApiConnector
}

type GetApiConnectorsCountOperationOptions

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

func DefaultGetApiConnectorsCountOperationOptions

func DefaultGetApiConnectorsCountOperationOptions() GetApiConnectorsCountOperationOptions

func (GetApiConnectorsCountOperationOptions) ToHeaders

func (GetApiConnectorsCountOperationOptions) ToOData

func (GetApiConnectorsCountOperationOptions) ToQuery

type GetApiConnectorsCountOperationResponse

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

type IdentityApiConnectorOperationPredicate

type IdentityApiConnectorOperationPredicate struct {
}

func (IdentityApiConnectorOperationPredicate) Matches

type ListApiConnectorsCompleteResult

type ListApiConnectorsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.IdentityApiConnector
}

type ListApiConnectorsCustomPager

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

type ListApiConnectorsOperationOptions

type ListApiConnectorsOperationOptions 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 DefaultListApiConnectorsOperationOptions

func DefaultListApiConnectorsOperationOptions() ListApiConnectorsOperationOptions

func (ListApiConnectorsOperationOptions) ToHeaders

func (ListApiConnectorsOperationOptions) ToOData

func (ListApiConnectorsOperationOptions) ToQuery

type ListApiConnectorsOperationResponse

type ListApiConnectorsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.IdentityApiConnector
}

type UpdateApiConnectorOperationOptions

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

func DefaultUpdateApiConnectorOperationOptions

func DefaultUpdateApiConnectorOperationOptions() UpdateApiConnectorOperationOptions

func (UpdateApiConnectorOperationOptions) ToHeaders

func (UpdateApiConnectorOperationOptions) ToOData

func (UpdateApiConnectorOperationOptions) ToQuery

type UpdateApiConnectorOperationResponse

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