embeddedsimactivationcodepool

package
v0.20241126.1723 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: 8 Imported by: 0

README

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

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

Client Initialization

client := embeddedsimactivationcodepool.NewEmbeddedSIMActivationCodePoolClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: EmbeddedSIMActivationCodePoolClient.AssignEmbeddedSIMActivationCodePools

ctx := context.TODO()
id := embeddedsimactivationcodepool.NewDeviceManagementEmbeddedSIMActivationCodePoolID("embeddedSIMActivationCodePoolId")

payload := embeddedsimactivationcodepool.AssignEmbeddedSIMActivationCodePoolsRequest{
	// ...
}


// alternatively `client.AssignEmbeddedSIMActivationCodePools(ctx, id, payload, embeddedsimactivationcodepool.DefaultAssignEmbeddedSIMActivationCodePoolsOperationOptions())` can be used to do batched pagination
items, err := client.AssignEmbeddedSIMActivationCodePoolsComplete(ctx, id, payload, embeddedsimactivationcodepool.DefaultAssignEmbeddedSIMActivationCodePoolsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EmbeddedSIMActivationCodePoolClient.CreateEmbeddedSIMActivationCodePool

ctx := context.TODO()

payload := embeddedsimactivationcodepool.EmbeddedSIMActivationCodePool{
	// ...
}


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

Example Usage: EmbeddedSIMActivationCodePoolClient.DeleteEmbeddedSIMActivationCodePool

ctx := context.TODO()
id := embeddedsimactivationcodepool.NewDeviceManagementEmbeddedSIMActivationCodePoolID("embeddedSIMActivationCodePoolId")

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

Example Usage: EmbeddedSIMActivationCodePoolClient.GetEmbeddedSIMActivationCodePool

ctx := context.TODO()
id := embeddedsimactivationcodepool.NewDeviceManagementEmbeddedSIMActivationCodePoolID("embeddedSIMActivationCodePoolId")

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

Example Usage: EmbeddedSIMActivationCodePoolClient.GetEmbeddedSIMActivationCodePoolsCount

ctx := context.TODO()


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

Example Usage: EmbeddedSIMActivationCodePoolClient.ListEmbeddedSIMActivationCodePools

ctx := context.TODO()


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

Example Usage: EmbeddedSIMActivationCodePoolClient.UpdateEmbeddedSIMActivationCodePool

ctx := context.TODO()
id := embeddedsimactivationcodepool.NewDeviceManagementEmbeddedSIMActivationCodePoolID("embeddedSIMActivationCodePoolId")

payload := embeddedsimactivationcodepool.EmbeddedSIMActivationCodePool{
	// ...
}


read, err := client.UpdateEmbeddedSIMActivationCodePool(ctx, id, payload, embeddedsimactivationcodepool.DefaultUpdateEmbeddedSIMActivationCodePoolOperationOptions())
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 AssignEmbeddedSIMActivationCodePoolsCompleteResult

type AssignEmbeddedSIMActivationCodePoolsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.EmbeddedSIMActivationCodePoolAssignment
}

type AssignEmbeddedSIMActivationCodePoolsCustomPager

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

type AssignEmbeddedSIMActivationCodePoolsOperationOptions

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

func DefaultAssignEmbeddedSIMActivationCodePoolsOperationOptions

func DefaultAssignEmbeddedSIMActivationCodePoolsOperationOptions() AssignEmbeddedSIMActivationCodePoolsOperationOptions

func (AssignEmbeddedSIMActivationCodePoolsOperationOptions) ToHeaders

func (AssignEmbeddedSIMActivationCodePoolsOperationOptions) ToOData

func (AssignEmbeddedSIMActivationCodePoolsOperationOptions) ToQuery

type AssignEmbeddedSIMActivationCodePoolsOperationResponse

type AssignEmbeddedSIMActivationCodePoolsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.EmbeddedSIMActivationCodePoolAssignment
}

type AssignEmbeddedSIMActivationCodePoolsRequest

type AssignEmbeddedSIMActivationCodePoolsRequest struct {
	Assignments *[]beta.EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
}

type CreateEmbeddedSIMActivationCodePoolOperationOptions

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

func DefaultCreateEmbeddedSIMActivationCodePoolOperationOptions

func DefaultCreateEmbeddedSIMActivationCodePoolOperationOptions() CreateEmbeddedSIMActivationCodePoolOperationOptions

func (CreateEmbeddedSIMActivationCodePoolOperationOptions) ToHeaders

func (CreateEmbeddedSIMActivationCodePoolOperationOptions) ToOData

func (CreateEmbeddedSIMActivationCodePoolOperationOptions) ToQuery

type CreateEmbeddedSIMActivationCodePoolOperationResponse

type CreateEmbeddedSIMActivationCodePoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EmbeddedSIMActivationCodePool
}

type DeleteEmbeddedSIMActivationCodePoolOperationOptions

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

func DefaultDeleteEmbeddedSIMActivationCodePoolOperationOptions

func DefaultDeleteEmbeddedSIMActivationCodePoolOperationOptions() DeleteEmbeddedSIMActivationCodePoolOperationOptions

func (DeleteEmbeddedSIMActivationCodePoolOperationOptions) ToHeaders

func (DeleteEmbeddedSIMActivationCodePoolOperationOptions) ToOData

func (DeleteEmbeddedSIMActivationCodePoolOperationOptions) ToQuery

type DeleteEmbeddedSIMActivationCodePoolOperationResponse

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

type EmbeddedSIMActivationCodePoolAssignmentOperationPredicate

type EmbeddedSIMActivationCodePoolAssignmentOperationPredicate struct {
}

func (EmbeddedSIMActivationCodePoolAssignmentOperationPredicate) Matches

type EmbeddedSIMActivationCodePoolClient

type EmbeddedSIMActivationCodePoolClient struct {
	Client *msgraph.Client
}

func NewEmbeddedSIMActivationCodePoolClientWithBaseURI

func NewEmbeddedSIMActivationCodePoolClientWithBaseURI(sdkApi sdkEnv.Api) (*EmbeddedSIMActivationCodePoolClient, error)

func (EmbeddedSIMActivationCodePoolClient) AssignEmbeddedSIMActivationCodePools

AssignEmbeddedSIMActivationCodePools - Invoke action assign

func (EmbeddedSIMActivationCodePoolClient) AssignEmbeddedSIMActivationCodePoolsComplete

AssignEmbeddedSIMActivationCodePoolsComplete retrieves all the results into a single object

func (EmbeddedSIMActivationCodePoolClient) AssignEmbeddedSIMActivationCodePoolsCompleteMatchingPredicate

AssignEmbeddedSIMActivationCodePoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EmbeddedSIMActivationCodePoolClient) CreateEmbeddedSIMActivationCodePool

CreateEmbeddedSIMActivationCodePool - Create new navigation property to embeddedSIMActivationCodePools for deviceManagement

func (EmbeddedSIMActivationCodePoolClient) DeleteEmbeddedSIMActivationCodePool

DeleteEmbeddedSIMActivationCodePool - Delete navigation property embeddedSIMActivationCodePools for deviceManagement

func (EmbeddedSIMActivationCodePoolClient) GetEmbeddedSIMActivationCodePool

GetEmbeddedSIMActivationCodePool - Get embeddedSIMActivationCodePools from deviceManagement. The embedded SIM activation code pools created by this account.

func (EmbeddedSIMActivationCodePoolClient) GetEmbeddedSIMActivationCodePoolsCount

GetEmbeddedSIMActivationCodePoolsCount - Get the number of the resource

func (EmbeddedSIMActivationCodePoolClient) ListEmbeddedSIMActivationCodePools

ListEmbeddedSIMActivationCodePools - Get embeddedSIMActivationCodePools from deviceManagement. The embedded SIM activation code pools created by this account.

func (EmbeddedSIMActivationCodePoolClient) ListEmbeddedSIMActivationCodePoolsComplete

ListEmbeddedSIMActivationCodePoolsComplete retrieves all the results into a single object

func (EmbeddedSIMActivationCodePoolClient) ListEmbeddedSIMActivationCodePoolsCompleteMatchingPredicate

ListEmbeddedSIMActivationCodePoolsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EmbeddedSIMActivationCodePoolClient) UpdateEmbeddedSIMActivationCodePool

UpdateEmbeddedSIMActivationCodePool - Update the navigation property embeddedSIMActivationCodePools in deviceManagement

type EmbeddedSIMActivationCodePoolOperationPredicate

type EmbeddedSIMActivationCodePoolOperationPredicate struct {
}

func (EmbeddedSIMActivationCodePoolOperationPredicate) Matches

type GetEmbeddedSIMActivationCodePoolOperationOptions

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

func DefaultGetEmbeddedSIMActivationCodePoolOperationOptions

func DefaultGetEmbeddedSIMActivationCodePoolOperationOptions() GetEmbeddedSIMActivationCodePoolOperationOptions

func (GetEmbeddedSIMActivationCodePoolOperationOptions) ToHeaders

func (GetEmbeddedSIMActivationCodePoolOperationOptions) ToOData

func (GetEmbeddedSIMActivationCodePoolOperationOptions) ToQuery

type GetEmbeddedSIMActivationCodePoolOperationResponse

type GetEmbeddedSIMActivationCodePoolOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EmbeddedSIMActivationCodePool
}

type GetEmbeddedSIMActivationCodePoolsCountOperationOptions

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

func DefaultGetEmbeddedSIMActivationCodePoolsCountOperationOptions

func DefaultGetEmbeddedSIMActivationCodePoolsCountOperationOptions() GetEmbeddedSIMActivationCodePoolsCountOperationOptions

func (GetEmbeddedSIMActivationCodePoolsCountOperationOptions) ToHeaders

func (GetEmbeddedSIMActivationCodePoolsCountOperationOptions) ToOData

func (GetEmbeddedSIMActivationCodePoolsCountOperationOptions) ToQuery

type GetEmbeddedSIMActivationCodePoolsCountOperationResponse

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

type ListEmbeddedSIMActivationCodePoolsCompleteResult

type ListEmbeddedSIMActivationCodePoolsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.EmbeddedSIMActivationCodePool
}

type ListEmbeddedSIMActivationCodePoolsCustomPager

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

type ListEmbeddedSIMActivationCodePoolsOperationOptions

type ListEmbeddedSIMActivationCodePoolsOperationOptions 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 DefaultListEmbeddedSIMActivationCodePoolsOperationOptions

func DefaultListEmbeddedSIMActivationCodePoolsOperationOptions() ListEmbeddedSIMActivationCodePoolsOperationOptions

func (ListEmbeddedSIMActivationCodePoolsOperationOptions) ToHeaders

func (ListEmbeddedSIMActivationCodePoolsOperationOptions) ToOData

func (ListEmbeddedSIMActivationCodePoolsOperationOptions) ToQuery

type ListEmbeddedSIMActivationCodePoolsOperationResponse

type ListEmbeddedSIMActivationCodePoolsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.EmbeddedSIMActivationCodePool
}

type UpdateEmbeddedSIMActivationCodePoolOperationOptions

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

func DefaultUpdateEmbeddedSIMActivationCodePoolOperationOptions

func DefaultUpdateEmbeddedSIMActivationCodePoolOperationOptions() UpdateEmbeddedSIMActivationCodePoolOperationOptions

func (UpdateEmbeddedSIMActivationCodePoolOperationOptions) ToHeaders

func (UpdateEmbeddedSIMActivationCodePoolOperationOptions) ToOData

func (UpdateEmbeddedSIMActivationCodePoolOperationOptions) ToQuery

type UpdateEmbeddedSIMActivationCodePoolOperationResponse

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