operationapprovalrequest

package
v0.20241128.1112539 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := operationapprovalrequest.NewOperationApprovalRequestClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OperationApprovalRequestClient.CancelOperationApprovalRequestApproval

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

payload := operationapprovalrequest.CancelOperationApprovalRequestApprovalRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.CancelOperationApprovalRequestsMyRequest

ctx := context.TODO()

payload := operationapprovalrequest.CancelOperationApprovalRequestsMyRequestRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.CreateOperationApprovalRequest

ctx := context.TODO()

payload := operationapprovalrequest.OperationApprovalRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.CreateOperationApprovalRequestApprove

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

payload := operationapprovalrequest.CreateOperationApprovalRequestApproveRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.CreateOperationApprovalRequestReject

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

payload := operationapprovalrequest.CreateOperationApprovalRequestRejectRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.CreateOperationApprovalRequestRetrieveRequestStatus

ctx := context.TODO()

payload := operationapprovalrequest.CreateOperationApprovalRequestRetrieveRequestStatusRequest{
	// ...
}


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

Example Usage: OperationApprovalRequestClient.DeleteOperationApprovalRequest

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

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

Example Usage: OperationApprovalRequestClient.GetOperationApprovalRequest

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

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

Example Usage: OperationApprovalRequestClient.GetOperationApprovalRequestsCount

ctx := context.TODO()


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

Example Usage: OperationApprovalRequestClient.ListOperationApprovalRequests

ctx := context.TODO()


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

Example Usage: OperationApprovalRequestClient.UpdateOperationApprovalRequest

ctx := context.TODO()
id := operationapprovalrequest.NewDeviceManagementOperationApprovalRequestID("operationApprovalRequestId")

payload := operationapprovalrequest.OperationApprovalRequest{
	// ...
}


read, err := client.UpdateOperationApprovalRequest(ctx, id, payload, operationapprovalrequest.DefaultUpdateOperationApprovalRequestOperationOptions())
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 CancelOperationApprovalRequestApprovalOperationOptions

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

func DefaultCancelOperationApprovalRequestApprovalOperationOptions

func DefaultCancelOperationApprovalRequestApprovalOperationOptions() CancelOperationApprovalRequestApprovalOperationOptions

func (CancelOperationApprovalRequestApprovalOperationOptions) ToHeaders

func (CancelOperationApprovalRequestApprovalOperationOptions) ToOData

func (CancelOperationApprovalRequestApprovalOperationOptions) ToQuery

type CancelOperationApprovalRequestApprovalOperationResponse

type CancelOperationApprovalRequestApprovalOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CancelOperationApprovalRequestApprovalResult
}

type CancelOperationApprovalRequestApprovalRequest

type CancelOperationApprovalRequestApprovalRequest struct {
	ApprovalSource *beta.OperationApprovalSource `json:"approvalSource,omitempty"`
	Justification  nullable.Type[string]         `json:"justification,omitempty"`
}

type CancelOperationApprovalRequestApprovalResult

type CancelOperationApprovalRequestApprovalResult struct {
	Value nullable.Type[string] `json:"value,omitempty"`
}

type CancelOperationApprovalRequestsMyRequestOperationOptions

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

func (CancelOperationApprovalRequestsMyRequestOperationOptions) ToHeaders

func (CancelOperationApprovalRequestsMyRequestOperationOptions) ToOData

func (CancelOperationApprovalRequestsMyRequestOperationOptions) ToQuery

type CancelOperationApprovalRequestsMyRequestOperationResponse

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

type CancelOperationApprovalRequestsMyRequestRequest

type CancelOperationApprovalRequestsMyRequestRequest struct {
	Id nullable.Type[string] `json:"id,omitempty"`
}

type CreateOperationApprovalRequestApproveOperationOptions

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

func DefaultCreateOperationApprovalRequestApproveOperationOptions

func DefaultCreateOperationApprovalRequestApproveOperationOptions() CreateOperationApprovalRequestApproveOperationOptions

func (CreateOperationApprovalRequestApproveOperationOptions) ToHeaders

func (CreateOperationApprovalRequestApproveOperationOptions) ToOData

func (CreateOperationApprovalRequestApproveOperationOptions) ToQuery

type CreateOperationApprovalRequestApproveOperationResponse

type CreateOperationApprovalRequestApproveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateOperationApprovalRequestApproveResult
}

type CreateOperationApprovalRequestApproveRequest

type CreateOperationApprovalRequestApproveRequest struct {
	ApprovalSource *beta.OperationApprovalSource `json:"approvalSource,omitempty"`
	Justification  nullable.Type[string]         `json:"justification,omitempty"`
}

type CreateOperationApprovalRequestApproveResult

type CreateOperationApprovalRequestApproveResult struct {
	Value nullable.Type[string] `json:"value,omitempty"`
}

type CreateOperationApprovalRequestOperationOptions

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

func DefaultCreateOperationApprovalRequestOperationOptions

func DefaultCreateOperationApprovalRequestOperationOptions() CreateOperationApprovalRequestOperationOptions

func (CreateOperationApprovalRequestOperationOptions) ToHeaders

func (CreateOperationApprovalRequestOperationOptions) ToOData

func (CreateOperationApprovalRequestOperationOptions) ToQuery

type CreateOperationApprovalRequestOperationResponse

type CreateOperationApprovalRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OperationApprovalRequest
}

type CreateOperationApprovalRequestRejectOperationOptions

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

func DefaultCreateOperationApprovalRequestRejectOperationOptions

func DefaultCreateOperationApprovalRequestRejectOperationOptions() CreateOperationApprovalRequestRejectOperationOptions

func (CreateOperationApprovalRequestRejectOperationOptions) ToHeaders

func (CreateOperationApprovalRequestRejectOperationOptions) ToOData

func (CreateOperationApprovalRequestRejectOperationOptions) ToQuery

type CreateOperationApprovalRequestRejectOperationResponse

type CreateOperationApprovalRequestRejectOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateOperationApprovalRequestRejectResult
}

type CreateOperationApprovalRequestRejectRequest

type CreateOperationApprovalRequestRejectRequest struct {
	ApprovalSource *beta.OperationApprovalSource `json:"approvalSource,omitempty"`
	Justification  nullable.Type[string]         `json:"justification,omitempty"`
}

type CreateOperationApprovalRequestRejectResult

type CreateOperationApprovalRequestRejectResult struct {
	Value nullable.Type[string] `json:"value,omitempty"`
}

type CreateOperationApprovalRequestRetrieveRequestStatusOperationOptions

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

func (CreateOperationApprovalRequestRetrieveRequestStatusOperationOptions) ToHeaders

func (CreateOperationApprovalRequestRetrieveRequestStatusOperationOptions) ToOData

func (CreateOperationApprovalRequestRetrieveRequestStatusOperationOptions) ToQuery

type CreateOperationApprovalRequestRetrieveRequestStatusOperationResponse

type CreateOperationApprovalRequestRetrieveRequestStatusOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OperationApprovalRequestEntityStatus
}

type CreateOperationApprovalRequestRetrieveRequestStatusRequest

type CreateOperationApprovalRequestRetrieveRequestStatusRequest struct {
	EntityId   nullable.Type[string] `json:"entityId,omitempty"`
	EntityType nullable.Type[string] `json:"entityType,omitempty"`
}

type DeleteOperationApprovalRequestOperationOptions

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

func DefaultDeleteOperationApprovalRequestOperationOptions

func DefaultDeleteOperationApprovalRequestOperationOptions() DeleteOperationApprovalRequestOperationOptions

func (DeleteOperationApprovalRequestOperationOptions) ToHeaders

func (DeleteOperationApprovalRequestOperationOptions) ToOData

func (DeleteOperationApprovalRequestOperationOptions) ToQuery

type DeleteOperationApprovalRequestOperationResponse

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

type GetOperationApprovalRequestOperationOptions

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

func DefaultGetOperationApprovalRequestOperationOptions

func DefaultGetOperationApprovalRequestOperationOptions() GetOperationApprovalRequestOperationOptions

func (GetOperationApprovalRequestOperationOptions) ToHeaders

func (GetOperationApprovalRequestOperationOptions) ToOData

func (GetOperationApprovalRequestOperationOptions) ToQuery

type GetOperationApprovalRequestOperationResponse

type GetOperationApprovalRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.OperationApprovalRequest
}

type GetOperationApprovalRequestsCountOperationOptions

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

func DefaultGetOperationApprovalRequestsCountOperationOptions

func DefaultGetOperationApprovalRequestsCountOperationOptions() GetOperationApprovalRequestsCountOperationOptions

func (GetOperationApprovalRequestsCountOperationOptions) ToHeaders

func (GetOperationApprovalRequestsCountOperationOptions) ToOData

func (GetOperationApprovalRequestsCountOperationOptions) ToQuery

type GetOperationApprovalRequestsCountOperationResponse

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

type ListOperationApprovalRequestsCompleteResult

type ListOperationApprovalRequestsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.OperationApprovalRequest
}

type ListOperationApprovalRequestsCustomPager

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

type ListOperationApprovalRequestsOperationOptions

type ListOperationApprovalRequestsOperationOptions 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 DefaultListOperationApprovalRequestsOperationOptions

func DefaultListOperationApprovalRequestsOperationOptions() ListOperationApprovalRequestsOperationOptions

func (ListOperationApprovalRequestsOperationOptions) ToHeaders

func (ListOperationApprovalRequestsOperationOptions) ToOData

func (ListOperationApprovalRequestsOperationOptions) ToQuery

type ListOperationApprovalRequestsOperationResponse

type ListOperationApprovalRequestsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.OperationApprovalRequest
}

type OperationApprovalRequestClient

type OperationApprovalRequestClient struct {
	Client *msgraph.Client
}

func NewOperationApprovalRequestClientWithBaseURI

func NewOperationApprovalRequestClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationApprovalRequestClient, error)

func (OperationApprovalRequestClient) CancelOperationApprovalRequestApproval

CancelOperationApprovalRequestApproval - Invoke action cancelApproval. Cancels an already approved instance of an operationApprovalRequest.

func (OperationApprovalRequestClient) CancelOperationApprovalRequestsMyRequest

CancelOperationApprovalRequestsMyRequest - Invoke action cancelMyRequest

func (OperationApprovalRequestClient) CreateOperationApprovalRequest

CreateOperationApprovalRequest - Create new navigation property to operationApprovalRequests for deviceManagement

func (OperationApprovalRequestClient) CreateOperationApprovalRequestApprove

CreateOperationApprovalRequestApprove - Invoke action approve. Approves the requested instance of an operationApprovalRequest.

func (OperationApprovalRequestClient) CreateOperationApprovalRequestReject

CreateOperationApprovalRequestReject - Invoke action reject. Rejects the requested instance of an operationApprovalRequest.

func (OperationApprovalRequestClient) CreateOperationApprovalRequestRetrieveRequestStatus

CreateOperationApprovalRequestRetrieveRequestStatus - Invoke action retrieveRequestStatus

func (OperationApprovalRequestClient) DeleteOperationApprovalRequest

DeleteOperationApprovalRequest - Delete navigation property operationApprovalRequests for deviceManagement

func (OperationApprovalRequestClient) GetOperationApprovalRequest

GetOperationApprovalRequest - Get operationApprovalRequests from deviceManagement. The Operation Approval Requests

func (OperationApprovalRequestClient) GetOperationApprovalRequestsCount

GetOperationApprovalRequestsCount - Get the number of the resource

func (OperationApprovalRequestClient) ListOperationApprovalRequests

ListOperationApprovalRequests - Get operationApprovalRequests from deviceManagement. The Operation Approval Requests

func (OperationApprovalRequestClient) ListOperationApprovalRequestsComplete

ListOperationApprovalRequestsComplete retrieves all the results into a single object

func (OperationApprovalRequestClient) ListOperationApprovalRequestsCompleteMatchingPredicate

ListOperationApprovalRequestsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (OperationApprovalRequestClient) UpdateOperationApprovalRequest

UpdateOperationApprovalRequest - Update the navigation property operationApprovalRequests in deviceManagement

type OperationApprovalRequestOperationPredicate

type OperationApprovalRequestOperationPredicate struct {
}

func (OperationApprovalRequestOperationPredicate) Matches

type UpdateOperationApprovalRequestOperationOptions

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

func DefaultUpdateOperationApprovalRequestOperationOptions

func DefaultUpdateOperationApprovalRequestOperationOptions() UpdateOperationApprovalRequestOperationOptions

func (UpdateOperationApprovalRequestOperationOptions) ToHeaders

func (UpdateOperationApprovalRequestOperationOptions) ToOData

func (UpdateOperationApprovalRequestOperationOptions) ToQuery

type UpdateOperationApprovalRequestOperationResponse

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