recommendationimpactedresource

package
v0.20241118.1115603 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/directory/beta/recommendationimpactedresource Documentation

The recommendationimpactedresource SDK allows for interaction with Microsoft Graph directory (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/directory/beta/recommendationimpactedresource"

Client Initialization

client := recommendationimpactedresource.NewRecommendationImpactedResourceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: RecommendationImpactedResourceClient.CreateRecommendationImpactedResource

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationID("recommendationId")

payload := recommendationimpactedresource.ImpactedResource{
	// ...
}


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

Example Usage: RecommendationImpactedResourceClient.CreateRecommendationImpactedResourceComplete

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

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

Example Usage: RecommendationImpactedResourceClient.CreateRecommendationImpactedResourcePostpone

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

payload := recommendationimpactedresource.CreateRecommendationImpactedResourcePostponeRequest{
	// ...
}


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

Example Usage: RecommendationImpactedResourceClient.CreateRecommendationImpactedResourceReactivate

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

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

Example Usage: RecommendationImpactedResourceClient.DeleteRecommendationImpactedResource

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

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

Example Usage: RecommendationImpactedResourceClient.DismissRecommendationImpactedResource

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

payload := recommendationimpactedresource.DismissRecommendationImpactedResourceRequest{
	// ...
}


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

Example Usage: RecommendationImpactedResourceClient.GetRecommendationImpactedResource

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

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

Example Usage: RecommendationImpactedResourceClient.GetRecommendationImpactedResourcesCount

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationID("recommendationId")

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

Example Usage: RecommendationImpactedResourceClient.ListRecommendationImpactedResources

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationID("recommendationId")

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

Example Usage: RecommendationImpactedResourceClient.UpdateRecommendationImpactedResource

ctx := context.TODO()
id := recommendationimpactedresource.NewDirectoryRecommendationIdImpactedResourceID("recommendationId", "impactedResourceId")

payload := recommendationimpactedresource.ImpactedResource{
	// ...
}


read, err := client.UpdateRecommendationImpactedResource(ctx, id, payload, recommendationimpactedresource.DefaultUpdateRecommendationImpactedResourceOperationOptions())
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 CreateRecommendationImpactedResourceCompleteOperationOptions

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

func (CreateRecommendationImpactedResourceCompleteOperationOptions) ToHeaders

func (CreateRecommendationImpactedResourceCompleteOperationOptions) ToOData

func (CreateRecommendationImpactedResourceCompleteOperationOptions) ToQuery

type CreateRecommendationImpactedResourceCompleteOperationResponse

type CreateRecommendationImpactedResourceCompleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type CreateRecommendationImpactedResourceOperationOptions

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

func DefaultCreateRecommendationImpactedResourceOperationOptions

func DefaultCreateRecommendationImpactedResourceOperationOptions() CreateRecommendationImpactedResourceOperationOptions

func (CreateRecommendationImpactedResourceOperationOptions) ToHeaders

func (CreateRecommendationImpactedResourceOperationOptions) ToOData

func (CreateRecommendationImpactedResourceOperationOptions) ToQuery

type CreateRecommendationImpactedResourceOperationResponse

type CreateRecommendationImpactedResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type CreateRecommendationImpactedResourcePostponeOperationOptions

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

func (CreateRecommendationImpactedResourcePostponeOperationOptions) ToHeaders

func (CreateRecommendationImpactedResourcePostponeOperationOptions) ToOData

func (CreateRecommendationImpactedResourcePostponeOperationOptions) ToQuery

type CreateRecommendationImpactedResourcePostponeOperationResponse

type CreateRecommendationImpactedResourcePostponeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type CreateRecommendationImpactedResourcePostponeRequest

type CreateRecommendationImpactedResourcePostponeRequest struct {
	PostponeUntilDateTime *string `json:"postponeUntilDateTime,omitempty"`
}

type CreateRecommendationImpactedResourceReactivateOperationOptions

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

func (CreateRecommendationImpactedResourceReactivateOperationOptions) ToHeaders

func (CreateRecommendationImpactedResourceReactivateOperationOptions) ToOData

func (CreateRecommendationImpactedResourceReactivateOperationOptions) ToQuery

type CreateRecommendationImpactedResourceReactivateOperationResponse

type CreateRecommendationImpactedResourceReactivateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type DeleteRecommendationImpactedResourceOperationOptions

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

func DefaultDeleteRecommendationImpactedResourceOperationOptions

func DefaultDeleteRecommendationImpactedResourceOperationOptions() DeleteRecommendationImpactedResourceOperationOptions

func (DeleteRecommendationImpactedResourceOperationOptions) ToHeaders

func (DeleteRecommendationImpactedResourceOperationOptions) ToOData

func (DeleteRecommendationImpactedResourceOperationOptions) ToQuery

type DeleteRecommendationImpactedResourceOperationResponse

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

type DismissRecommendationImpactedResourceOperationOptions

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

func DefaultDismissRecommendationImpactedResourceOperationOptions

func DefaultDismissRecommendationImpactedResourceOperationOptions() DismissRecommendationImpactedResourceOperationOptions

func (DismissRecommendationImpactedResourceOperationOptions) ToHeaders

func (DismissRecommendationImpactedResourceOperationOptions) ToOData

func (DismissRecommendationImpactedResourceOperationOptions) ToQuery

type DismissRecommendationImpactedResourceOperationResponse

type DismissRecommendationImpactedResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type DismissRecommendationImpactedResourceRequest

type DismissRecommendationImpactedResourceRequest struct {
	DismissReason nullable.Type[string] `json:"dismissReason,omitempty"`
}

type GetRecommendationImpactedResourceOperationOptions

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

func DefaultGetRecommendationImpactedResourceOperationOptions

func DefaultGetRecommendationImpactedResourceOperationOptions() GetRecommendationImpactedResourceOperationOptions

func (GetRecommendationImpactedResourceOperationOptions) ToHeaders

func (GetRecommendationImpactedResourceOperationOptions) ToOData

func (GetRecommendationImpactedResourceOperationOptions) ToQuery

type GetRecommendationImpactedResourceOperationResponse

type GetRecommendationImpactedResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ImpactedResource
}

type GetRecommendationImpactedResourcesCountOperationOptions

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

func (GetRecommendationImpactedResourcesCountOperationOptions) ToHeaders

func (GetRecommendationImpactedResourcesCountOperationOptions) ToOData

func (GetRecommendationImpactedResourcesCountOperationOptions) ToQuery

type GetRecommendationImpactedResourcesCountOperationResponse

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

type ImpactedResourceOperationPredicate

type ImpactedResourceOperationPredicate struct {
}

func (ImpactedResourceOperationPredicate) Matches

type ListRecommendationImpactedResourcesCompleteResult

type ListRecommendationImpactedResourcesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ImpactedResource
}

type ListRecommendationImpactedResourcesCustomPager

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

type ListRecommendationImpactedResourcesOperationOptions

type ListRecommendationImpactedResourcesOperationOptions 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 DefaultListRecommendationImpactedResourcesOperationOptions

func DefaultListRecommendationImpactedResourcesOperationOptions() ListRecommendationImpactedResourcesOperationOptions

func (ListRecommendationImpactedResourcesOperationOptions) ToHeaders

func (ListRecommendationImpactedResourcesOperationOptions) ToOData

func (ListRecommendationImpactedResourcesOperationOptions) ToQuery

type ListRecommendationImpactedResourcesOperationResponse

type ListRecommendationImpactedResourcesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ImpactedResource
}

type RecommendationImpactedResourceClient

type RecommendationImpactedResourceClient struct {
	Client *msgraph.Client
}

func NewRecommendationImpactedResourceClientWithBaseURI

func NewRecommendationImpactedResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*RecommendationImpactedResourceClient, error)

func (RecommendationImpactedResourceClient) CreateRecommendationImpactedResource

CreateRecommendationImpactedResource - Create new navigation property to impactedResources for directory

func (RecommendationImpactedResourceClient) CreateRecommendationImpactedResourceComplete

CreateRecommendationImpactedResourceComplete - Invoke action complete. Complete an impactedResource object and update its status to completedByUser.

func (RecommendationImpactedResourceClient) CreateRecommendationImpactedResourcePostpone

CreateRecommendationImpactedResourcePostpone - Invoke action postpone. Postpone action on an impactedResource object to a specified future date and time by marking its status as postponed. On the specified date and time, Microsoft Entra ID will automatically mark the status of the impactedResource object to active.

func (RecommendationImpactedResourceClient) CreateRecommendationImpactedResourceReactivate

CreateRecommendationImpactedResourceReactivate - Invoke action reactivate. Reactivate an accidentally dismissed, completed, or postponed impactedResource object. This action updates the status of the resource to active. This method is relevant only if the status of the impactedResource object is dismissed, postponed, or completedByUser.

func (RecommendationImpactedResourceClient) DeleteRecommendationImpactedResource

DeleteRecommendationImpactedResource - Delete navigation property impactedResources for directory

func (RecommendationImpactedResourceClient) DismissRecommendationImpactedResource

DismissRecommendationImpactedResource - Invoke action dismiss. Dismiss an impactedResources object and update its status to dismissed.

func (RecommendationImpactedResourceClient) GetRecommendationImpactedResource

GetRecommendationImpactedResource - Get impactedResource. Read the properties and relationships of an impactedResource object.

func (RecommendationImpactedResourceClient) GetRecommendationImpactedResourcesCount

GetRecommendationImpactedResourcesCount - Get the number of the resource

func (RecommendationImpactedResourceClient) ListRecommendationImpactedResources

ListRecommendationImpactedResources - List impactedResources. Get the impactedResource objects for a recommendation.

func (RecommendationImpactedResourceClient) ListRecommendationImpactedResourcesComplete

ListRecommendationImpactedResourcesComplete retrieves all the results into a single object

func (RecommendationImpactedResourceClient) ListRecommendationImpactedResourcesCompleteMatchingPredicate

ListRecommendationImpactedResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RecommendationImpactedResourceClient) UpdateRecommendationImpactedResource

UpdateRecommendationImpactedResource - Update the navigation property impactedResources in directory

type UpdateRecommendationImpactedResourceOperationOptions

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

func DefaultUpdateRecommendationImpactedResourceOperationOptions

func DefaultUpdateRecommendationImpactedResourceOperationOptions() UpdateRecommendationImpactedResourceOperationOptions

func (UpdateRecommendationImpactedResourceOperationOptions) ToHeaders

func (UpdateRecommendationImpactedResourceOperationOptions) ToOData

func (UpdateRecommendationImpactedResourceOperationOptions) ToQuery

type UpdateRecommendationImpactedResourceOperationResponse

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