assignmentfilter

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/assignmentfilter Documentation

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

Client Initialization

client := assignmentfilter.NewAssignmentFilterClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AssignmentFilterClient.CreateAssignmentFilter

ctx := context.TODO()

payload := assignmentfilter.DeviceAndAppManagementAssignmentFilter{
	// ...
}


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

Example Usage: AssignmentFilterClient.DeleteAssignmentFilter

ctx := context.TODO()
id := assignmentfilter.NewDeviceManagementAssignmentFilterID("deviceAndAppManagementAssignmentFilterId")

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

Example Usage: AssignmentFilterClient.EnableAssignmentFilters

ctx := context.TODO()

payload := assignmentfilter.EnableAssignmentFiltersRequest{
	// ...
}


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

Example Usage: AssignmentFilterClient.GetAssignmentFilter

ctx := context.TODO()
id := assignmentfilter.NewDeviceManagementAssignmentFilterID("deviceAndAppManagementAssignmentFilterId")

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

Example Usage: AssignmentFilterClient.GetAssignmentFiltersCount

ctx := context.TODO()


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

Example Usage: AssignmentFilterClient.ListAssignmentFilters

ctx := context.TODO()


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

Example Usage: AssignmentFilterClient.UpdateAssignmentFilter

ctx := context.TODO()
id := assignmentfilter.NewDeviceManagementAssignmentFilterID("deviceAndAppManagementAssignmentFilterId")

payload := assignmentfilter.DeviceAndAppManagementAssignmentFilter{
	// ...
}


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

Example Usage: AssignmentFilterClient.ValidateAssignmentFiltersFilter

ctx := context.TODO()

payload := assignmentfilter.ValidateAssignmentFiltersFilterRequest{
	// ...
}


read, err := client.ValidateAssignmentFiltersFilter(ctx, payload, assignmentfilter.DefaultValidateAssignmentFiltersFilterOperationOptions())
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 AssignmentFilterClient

type AssignmentFilterClient struct {
	Client *msgraph.Client
}

func NewAssignmentFilterClientWithBaseURI

func NewAssignmentFilterClientWithBaseURI(sdkApi sdkEnv.Api) (*AssignmentFilterClient, error)

func (AssignmentFilterClient) CreateAssignmentFilter

CreateAssignmentFilter - Create new navigation property to assignmentFilters for deviceManagement

func (AssignmentFilterClient) DeleteAssignmentFilter

DeleteAssignmentFilter - Delete navigation property assignmentFilters for deviceManagement

func (AssignmentFilterClient) EnableAssignmentFilters

EnableAssignmentFilters - Invoke action enable

func (AssignmentFilterClient) GetAssignmentFilter

GetAssignmentFilter - Get assignmentFilters from deviceManagement. The list of assignment filters

func (AssignmentFilterClient) GetAssignmentFiltersCount

GetAssignmentFiltersCount - Get the number of the resource

func (AssignmentFilterClient) ListAssignmentFilters

ListAssignmentFilters - Get assignmentFilters from deviceManagement. The list of assignment filters

func (AssignmentFilterClient) ListAssignmentFiltersComplete

ListAssignmentFiltersComplete retrieves all the results into a single object

func (AssignmentFilterClient) ListAssignmentFiltersCompleteMatchingPredicate

ListAssignmentFiltersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AssignmentFilterClient) UpdateAssignmentFilter

UpdateAssignmentFilter - Update the navigation property assignmentFilters in deviceManagement

func (AssignmentFilterClient) ValidateAssignmentFiltersFilter

ValidateAssignmentFiltersFilter - Invoke action validateFilter

type CreateAssignmentFilterOperationOptions

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

func DefaultCreateAssignmentFilterOperationOptions

func DefaultCreateAssignmentFilterOperationOptions() CreateAssignmentFilterOperationOptions

func (CreateAssignmentFilterOperationOptions) ToHeaders

func (CreateAssignmentFilterOperationOptions) ToOData

func (CreateAssignmentFilterOperationOptions) ToQuery

type CreateAssignmentFilterOperationResponse

type CreateAssignmentFilterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceAndAppManagementAssignmentFilter
}

type DeleteAssignmentFilterOperationOptions

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

func DefaultDeleteAssignmentFilterOperationOptions

func DefaultDeleteAssignmentFilterOperationOptions() DeleteAssignmentFilterOperationOptions

func (DeleteAssignmentFilterOperationOptions) ToHeaders

func (DeleteAssignmentFilterOperationOptions) ToOData

func (DeleteAssignmentFilterOperationOptions) ToQuery

type DeleteAssignmentFilterOperationResponse

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

type DeviceAndAppManagementAssignmentFilterOperationPredicate

type DeviceAndAppManagementAssignmentFilterOperationPredicate struct {
}

func (DeviceAndAppManagementAssignmentFilterOperationPredicate) Matches

type EnableAssignmentFiltersOperationOptions

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

func DefaultEnableAssignmentFiltersOperationOptions

func DefaultEnableAssignmentFiltersOperationOptions() EnableAssignmentFiltersOperationOptions

func (EnableAssignmentFiltersOperationOptions) ToHeaders

func (EnableAssignmentFiltersOperationOptions) ToOData

func (EnableAssignmentFiltersOperationOptions) ToQuery

type EnableAssignmentFiltersOperationResponse

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

type EnableAssignmentFiltersRequest

type EnableAssignmentFiltersRequest struct {
	Enable *bool `json:"enable,omitempty"`
}

type GetAssignmentFilterOperationOptions

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

func DefaultGetAssignmentFilterOperationOptions

func DefaultGetAssignmentFilterOperationOptions() GetAssignmentFilterOperationOptions

func (GetAssignmentFilterOperationOptions) ToHeaders

func (GetAssignmentFilterOperationOptions) ToOData

func (GetAssignmentFilterOperationOptions) ToQuery

type GetAssignmentFilterOperationResponse

type GetAssignmentFilterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.DeviceAndAppManagementAssignmentFilter
}

type GetAssignmentFiltersCountOperationOptions

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

func DefaultGetAssignmentFiltersCountOperationOptions

func DefaultGetAssignmentFiltersCountOperationOptions() GetAssignmentFiltersCountOperationOptions

func (GetAssignmentFiltersCountOperationOptions) ToHeaders

func (GetAssignmentFiltersCountOperationOptions) ToOData

func (GetAssignmentFiltersCountOperationOptions) ToQuery

type GetAssignmentFiltersCountOperationResponse

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

type ListAssignmentFiltersCompleteResult

type ListAssignmentFiltersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceAndAppManagementAssignmentFilter
}

type ListAssignmentFiltersCustomPager

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

type ListAssignmentFiltersOperationOptions

type ListAssignmentFiltersOperationOptions 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 DefaultListAssignmentFiltersOperationOptions

func DefaultListAssignmentFiltersOperationOptions() ListAssignmentFiltersOperationOptions

func (ListAssignmentFiltersOperationOptions) ToHeaders

func (ListAssignmentFiltersOperationOptions) ToOData

func (ListAssignmentFiltersOperationOptions) ToQuery

type ListAssignmentFiltersOperationResponse

type ListAssignmentFiltersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceAndAppManagementAssignmentFilter
}

type UpdateAssignmentFilterOperationOptions

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

func DefaultUpdateAssignmentFilterOperationOptions

func DefaultUpdateAssignmentFilterOperationOptions() UpdateAssignmentFilterOperationOptions

func (UpdateAssignmentFilterOperationOptions) ToHeaders

func (UpdateAssignmentFilterOperationOptions) ToOData

func (UpdateAssignmentFilterOperationOptions) ToQuery

type UpdateAssignmentFilterOperationResponse

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

type ValidateAssignmentFiltersFilterOperationOptions

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

func DefaultValidateAssignmentFiltersFilterOperationOptions

func DefaultValidateAssignmentFiltersFilterOperationOptions() ValidateAssignmentFiltersFilterOperationOptions

func (ValidateAssignmentFiltersFilterOperationOptions) ToHeaders

func (ValidateAssignmentFiltersFilterOperationOptions) ToOData

func (ValidateAssignmentFiltersFilterOperationOptions) ToQuery

type ValidateAssignmentFiltersFilterOperationResponse

type ValidateAssignmentFiltersFilterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AssignmentFilterValidationResult
}

type ValidateAssignmentFiltersFilterRequest

type ValidateAssignmentFiltersFilterRequest struct {
	DeviceAndAppManagementAssignmentFilter *beta.DeviceAndAppManagementAssignmentFilter `json:"deviceAndAppManagementAssignmentFilter,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL