elevationrequest

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/devicemanagement/beta/elevationrequest Documentation

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

Client Initialization

client := elevationrequest.NewElevationRequestClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ElevationRequestClient.CreateElevationRequest

ctx := context.TODO()

payload := elevationrequest.PrivilegeManagementElevationRequest{
	// ...
}


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

Example Usage: ElevationRequestClient.CreateElevationRequestApprove

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

payload := elevationrequest.CreateElevationRequestApproveRequest{
	// ...
}


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

Example Usage: ElevationRequestClient.CreateElevationRequestDeny

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

payload := elevationrequest.CreateElevationRequestDenyRequest{
	// ...
}


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

Example Usage: ElevationRequestClient.DeleteElevationRequest

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

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

Example Usage: ElevationRequestClient.GetElevationRequest

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

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

Example Usage: ElevationRequestClient.GetElevationRequestAllElevationRequests

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

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

Example Usage: ElevationRequestClient.GetElevationRequestsCount

ctx := context.TODO()


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

Example Usage: ElevationRequestClient.ListElevationRequests

ctx := context.TODO()


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

Example Usage: ElevationRequestClient.RevokeElevationRequest

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

payload := elevationrequest.RevokeElevationRequestRequest{
	// ...
}


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

Example Usage: ElevationRequestClient.UpdateElevationRequest

ctx := context.TODO()
id := elevationrequest.NewDeviceManagementElevationRequestID("privilegeManagementElevationRequestId")

payload := elevationrequest.PrivilegeManagementElevationRequest{
	// ...
}


read, err := client.UpdateElevationRequest(ctx, id, payload, elevationrequest.DefaultUpdateElevationRequestOperationOptions())
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 CreateElevationRequestApproveOperationOptions

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

func DefaultCreateElevationRequestApproveOperationOptions

func DefaultCreateElevationRequestApproveOperationOptions() CreateElevationRequestApproveOperationOptions

func (CreateElevationRequestApproveOperationOptions) ToHeaders

func (CreateElevationRequestApproveOperationOptions) ToOData

func (CreateElevationRequestApproveOperationOptions) ToQuery

type CreateElevationRequestApproveOperationResponse

type CreateElevationRequestApproveOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PrivilegeManagementElevationRequest
}

type CreateElevationRequestApproveRequest

type CreateElevationRequestApproveRequest struct {
	ReviewerJustification nullable.Type[string] `json:"reviewerJustification,omitempty"`
}

type CreateElevationRequestDenyOperationOptions

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

func DefaultCreateElevationRequestDenyOperationOptions

func DefaultCreateElevationRequestDenyOperationOptions() CreateElevationRequestDenyOperationOptions

func (CreateElevationRequestDenyOperationOptions) ToHeaders

func (CreateElevationRequestDenyOperationOptions) ToOData

func (CreateElevationRequestDenyOperationOptions) ToQuery

type CreateElevationRequestDenyOperationResponse

type CreateElevationRequestDenyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PrivilegeManagementElevationRequest
}

type CreateElevationRequestDenyRequest

type CreateElevationRequestDenyRequest struct {
	ReviewerJustification nullable.Type[string] `json:"reviewerJustification,omitempty"`
}

type CreateElevationRequestOperationOptions

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

func DefaultCreateElevationRequestOperationOptions

func DefaultCreateElevationRequestOperationOptions() CreateElevationRequestOperationOptions

func (CreateElevationRequestOperationOptions) ToHeaders

func (CreateElevationRequestOperationOptions) ToOData

func (CreateElevationRequestOperationOptions) ToQuery

type CreateElevationRequestOperationResponse

type CreateElevationRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PrivilegeManagementElevationRequest
}

type DeleteElevationRequestOperationOptions

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

func DefaultDeleteElevationRequestOperationOptions

func DefaultDeleteElevationRequestOperationOptions() DeleteElevationRequestOperationOptions

func (DeleteElevationRequestOperationOptions) ToHeaders

func (DeleteElevationRequestOperationOptions) ToOData

func (DeleteElevationRequestOperationOptions) ToQuery

type DeleteElevationRequestOperationResponse

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

type ElevationRequestClient

type ElevationRequestClient struct {
	Client *msgraph.Client
}

func NewElevationRequestClientWithBaseURI

func NewElevationRequestClientWithBaseURI(sdkApi sdkEnv.Api) (*ElevationRequestClient, error)

func (ElevationRequestClient) CreateElevationRequest

CreateElevationRequest - Create new navigation property to elevationRequests for deviceManagement

func (ElevationRequestClient) CreateElevationRequestApprove

CreateElevationRequestApprove - Invoke action approve

func (ElevationRequestClient) CreateElevationRequestDeny

CreateElevationRequestDeny - Invoke action deny

func (ElevationRequestClient) DeleteElevationRequest

DeleteElevationRequest - Delete navigation property elevationRequests for deviceManagement

func (ElevationRequestClient) GetElevationRequest

GetElevationRequest - Get elevationRequests from deviceManagement. List of elevation requests

func (ElevationRequestClient) GetElevationRequestAllElevationRequests

GetElevationRequestAllElevationRequests - Invoke action getAllElevationRequests

func (ElevationRequestClient) GetElevationRequestAllElevationRequestsComplete

GetElevationRequestAllElevationRequestsComplete retrieves all the results into a single object

func (ElevationRequestClient) GetElevationRequestAllElevationRequestsCompleteMatchingPredicate

GetElevationRequestAllElevationRequestsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ElevationRequestClient) GetElevationRequestsCount

GetElevationRequestsCount - Get the number of the resource

func (ElevationRequestClient) ListElevationRequests

ListElevationRequests - Get elevationRequests from deviceManagement. List of elevation requests

func (ElevationRequestClient) ListElevationRequestsComplete

ListElevationRequestsComplete retrieves all the results into a single object

func (ElevationRequestClient) ListElevationRequestsCompleteMatchingPredicate

ListElevationRequestsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ElevationRequestClient) RevokeElevationRequest

RevokeElevationRequest - Invoke action revoke

func (ElevationRequestClient) UpdateElevationRequest

UpdateElevationRequest - Update the navigation property elevationRequests in deviceManagement

type GetElevationRequestAllElevationRequestsCompleteResult

type GetElevationRequestAllElevationRequestsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.PrivilegeManagementElevationRequest
}

type GetElevationRequestAllElevationRequestsCustomPager

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

type GetElevationRequestAllElevationRequestsOperationOptions

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

func (GetElevationRequestAllElevationRequestsOperationOptions) ToHeaders

func (GetElevationRequestAllElevationRequestsOperationOptions) ToOData

func (GetElevationRequestAllElevationRequestsOperationOptions) ToQuery

type GetElevationRequestAllElevationRequestsOperationResponse

type GetElevationRequestAllElevationRequestsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.PrivilegeManagementElevationRequest
}

type GetElevationRequestOperationOptions

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

func DefaultGetElevationRequestOperationOptions

func DefaultGetElevationRequestOperationOptions() GetElevationRequestOperationOptions

func (GetElevationRequestOperationOptions) ToHeaders

func (GetElevationRequestOperationOptions) ToOData

func (GetElevationRequestOperationOptions) ToQuery

type GetElevationRequestOperationResponse

type GetElevationRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PrivilegeManagementElevationRequest
}

type GetElevationRequestsCountOperationOptions

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

func DefaultGetElevationRequestsCountOperationOptions

func DefaultGetElevationRequestsCountOperationOptions() GetElevationRequestsCountOperationOptions

func (GetElevationRequestsCountOperationOptions) ToHeaders

func (GetElevationRequestsCountOperationOptions) ToOData

func (GetElevationRequestsCountOperationOptions) ToQuery

type GetElevationRequestsCountOperationResponse

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

type ListElevationRequestsCompleteResult

type ListElevationRequestsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.PrivilegeManagementElevationRequest
}

type ListElevationRequestsCustomPager

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

type ListElevationRequestsOperationOptions

type ListElevationRequestsOperationOptions 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 DefaultListElevationRequestsOperationOptions

func DefaultListElevationRequestsOperationOptions() ListElevationRequestsOperationOptions

func (ListElevationRequestsOperationOptions) ToHeaders

func (ListElevationRequestsOperationOptions) ToOData

func (ListElevationRequestsOperationOptions) ToQuery

type ListElevationRequestsOperationResponse

type ListElevationRequestsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.PrivilegeManagementElevationRequest
}

type PrivilegeManagementElevationRequestOperationPredicate

type PrivilegeManagementElevationRequestOperationPredicate struct {
}

func (PrivilegeManagementElevationRequestOperationPredicate) Matches

type RevokeElevationRequestOperationOptions

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

func DefaultRevokeElevationRequestOperationOptions

func DefaultRevokeElevationRequestOperationOptions() RevokeElevationRequestOperationOptions

func (RevokeElevationRequestOperationOptions) ToHeaders

func (RevokeElevationRequestOperationOptions) ToOData

func (RevokeElevationRequestOperationOptions) ToQuery

type RevokeElevationRequestOperationResponse

type RevokeElevationRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.PrivilegeManagementElevationRequest
}

type RevokeElevationRequestRequest

type RevokeElevationRequestRequest struct {
	ReviewerJustification nullable.Type[string] `json:"reviewerJustification,omitempty"`
}

type UpdateElevationRequestOperationOptions

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

func DefaultUpdateElevationRequestOperationOptions

func DefaultUpdateElevationRequestOperationOptions() UpdateElevationRequestOperationOptions

func (UpdateElevationRequestOperationOptions) ToHeaders

func (UpdateElevationRequestOperationOptions) ToOData

func (UpdateElevationRequestOperationOptions) ToQuery

type UpdateElevationRequestOperationResponse

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