comanageddevicelogcollectionrequest

package
v0.20241017.1093842 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := comanageddevicelogcollectionrequest.NewComanagedDeviceLogCollectionRequestClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ComanagedDeviceLogCollectionRequestClient.CreateComanagedDeviceLogCollectionRequest

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceID("managedDeviceId")

payload := comanageddevicelogcollectionrequest.DeviceLogCollectionResponse{
	// ...
}


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

Example Usage: ComanagedDeviceLogCollectionRequestClient.CreateComanagedDeviceLogCollectionRequestDownloadUrl

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceIdLogCollectionRequestID("managedDeviceId", "deviceLogCollectionResponseId")

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

Example Usage: ComanagedDeviceLogCollectionRequestClient.DeleteComanagedDeviceLogCollectionRequest

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceIdLogCollectionRequestID("managedDeviceId", "deviceLogCollectionResponseId")

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

Example Usage: ComanagedDeviceLogCollectionRequestClient.GetComanagedDeviceLogCollectionRequest

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceIdLogCollectionRequestID("managedDeviceId", "deviceLogCollectionResponseId")

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

Example Usage: ComanagedDeviceLogCollectionRequestClient.GetComanagedDeviceLogCollectionRequestsCount

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceID("managedDeviceId")

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

Example Usage: ComanagedDeviceLogCollectionRequestClient.ListComanagedDeviceLogCollectionRequests

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceID("managedDeviceId")

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

Example Usage: ComanagedDeviceLogCollectionRequestClient.UpdateComanagedDeviceLogCollectionRequest

ctx := context.TODO()
id := comanageddevicelogcollectionrequest.NewDeviceManagementComanagedDeviceIdLogCollectionRequestID("managedDeviceId", "deviceLogCollectionResponseId")

payload := comanageddevicelogcollectionrequest.DeviceLogCollectionResponse{
	// ...
}


read, err := client.UpdateComanagedDeviceLogCollectionRequest(ctx, id, payload, comanageddevicelogcollectionrequest.DefaultUpdateComanagedDeviceLogCollectionRequestOperationOptions())
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 ComanagedDeviceLogCollectionRequestClient

type ComanagedDeviceLogCollectionRequestClient struct {
	Client *msgraph.Client
}

func NewComanagedDeviceLogCollectionRequestClientWithBaseURI

func NewComanagedDeviceLogCollectionRequestClientWithBaseURI(sdkApi sdkEnv.Api) (*ComanagedDeviceLogCollectionRequestClient, error)

func (ComanagedDeviceLogCollectionRequestClient) CreateComanagedDeviceLogCollectionRequest

CreateComanagedDeviceLogCollectionRequest - Create new navigation property to logCollectionRequests for deviceManagement

func (ComanagedDeviceLogCollectionRequestClient) CreateComanagedDeviceLogCollectionRequestDownloadUrl

CreateComanagedDeviceLogCollectionRequestDownloadUrl - Invoke action createDownloadUrl

func (ComanagedDeviceLogCollectionRequestClient) DeleteComanagedDeviceLogCollectionRequest

DeleteComanagedDeviceLogCollectionRequest - Delete navigation property logCollectionRequests for deviceManagement

func (ComanagedDeviceLogCollectionRequestClient) GetComanagedDeviceLogCollectionRequest

GetComanagedDeviceLogCollectionRequest - Get logCollectionRequests from deviceManagement. List of log collection requests

func (ComanagedDeviceLogCollectionRequestClient) GetComanagedDeviceLogCollectionRequestsCount

GetComanagedDeviceLogCollectionRequestsCount - Get the number of the resource

func (ComanagedDeviceLogCollectionRequestClient) ListComanagedDeviceLogCollectionRequests

ListComanagedDeviceLogCollectionRequests - Get logCollectionRequests from deviceManagement. List of log collection requests

func (ComanagedDeviceLogCollectionRequestClient) ListComanagedDeviceLogCollectionRequestsComplete

ListComanagedDeviceLogCollectionRequestsComplete retrieves all the results into a single object

func (ComanagedDeviceLogCollectionRequestClient) ListComanagedDeviceLogCollectionRequestsCompleteMatchingPredicate

ListComanagedDeviceLogCollectionRequestsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ComanagedDeviceLogCollectionRequestClient) UpdateComanagedDeviceLogCollectionRequest

UpdateComanagedDeviceLogCollectionRequest - Update the navigation property logCollectionRequests in deviceManagement

type CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationOptions

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

func (CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToHeaders

func (CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToOData

func (CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToQuery

type CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationResponse

type CreateComanagedDeviceLogCollectionRequestDownloadUrlOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateComanagedDeviceLogCollectionRequestDownloadUrlResult
}

type CreateComanagedDeviceLogCollectionRequestDownloadUrlResult

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

type CreateComanagedDeviceLogCollectionRequestOperationOptions

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

func (CreateComanagedDeviceLogCollectionRequestOperationOptions) ToHeaders

func (CreateComanagedDeviceLogCollectionRequestOperationOptions) ToOData

func (CreateComanagedDeviceLogCollectionRequestOperationOptions) ToQuery

type CreateComanagedDeviceLogCollectionRequestOperationResponse

type CreateComanagedDeviceLogCollectionRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceLogCollectionResponse
}

type DeleteComanagedDeviceLogCollectionRequestOperationOptions

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

func (DeleteComanagedDeviceLogCollectionRequestOperationOptions) ToHeaders

func (DeleteComanagedDeviceLogCollectionRequestOperationOptions) ToOData

func (DeleteComanagedDeviceLogCollectionRequestOperationOptions) ToQuery

type DeleteComanagedDeviceLogCollectionRequestOperationResponse

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

type DeviceLogCollectionResponseOperationPredicate

type DeviceLogCollectionResponseOperationPredicate struct {
}

func (DeviceLogCollectionResponseOperationPredicate) Matches

type GetComanagedDeviceLogCollectionRequestOperationOptions

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

func DefaultGetComanagedDeviceLogCollectionRequestOperationOptions

func DefaultGetComanagedDeviceLogCollectionRequestOperationOptions() GetComanagedDeviceLogCollectionRequestOperationOptions

func (GetComanagedDeviceLogCollectionRequestOperationOptions) ToHeaders

func (GetComanagedDeviceLogCollectionRequestOperationOptions) ToOData

func (GetComanagedDeviceLogCollectionRequestOperationOptions) ToQuery

type GetComanagedDeviceLogCollectionRequestOperationResponse

type GetComanagedDeviceLogCollectionRequestOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DeviceLogCollectionResponse
}

type GetComanagedDeviceLogCollectionRequestsCountOperationOptions

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

func (GetComanagedDeviceLogCollectionRequestsCountOperationOptions) ToHeaders

func (GetComanagedDeviceLogCollectionRequestsCountOperationOptions) ToOData

func (GetComanagedDeviceLogCollectionRequestsCountOperationOptions) ToQuery

type GetComanagedDeviceLogCollectionRequestsCountOperationResponse

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

type ListComanagedDeviceLogCollectionRequestsCompleteResult

type ListComanagedDeviceLogCollectionRequestsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DeviceLogCollectionResponse
}

type ListComanagedDeviceLogCollectionRequestsCustomPager

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

type ListComanagedDeviceLogCollectionRequestsOperationOptions

type ListComanagedDeviceLogCollectionRequestsOperationOptions 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 (ListComanagedDeviceLogCollectionRequestsOperationOptions) ToHeaders

func (ListComanagedDeviceLogCollectionRequestsOperationOptions) ToOData

func (ListComanagedDeviceLogCollectionRequestsOperationOptions) ToQuery

type ListComanagedDeviceLogCollectionRequestsOperationResponse

type ListComanagedDeviceLogCollectionRequestsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DeviceLogCollectionResponse
}

type UpdateComanagedDeviceLogCollectionRequestOperationOptions

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

func (UpdateComanagedDeviceLogCollectionRequestOperationOptions) ToHeaders

func (UpdateComanagedDeviceLogCollectionRequestOperationOptions) ToOData

func (UpdateComanagedDeviceLogCollectionRequestOperationOptions) ToQuery

type UpdateComanagedDeviceLogCollectionRequestOperationResponse

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