README
¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/manageddevicelogcollectionrequest
Documentation
The manageddevicelogcollectionrequest
SDK allows for interaction with Microsoft Graph users
(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/users/beta/manageddevicelogcollectionrequest"
Client Initialization
client := manageddevicelogcollectionrequest.NewManagedDeviceLogCollectionRequestClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: ManagedDeviceLogCollectionRequestClient.CreateManagedDeviceLogCollectionRequest
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceID("userId", "managedDeviceId")
payload := manageddevicelogcollectionrequest.DeviceLogCollectionResponse{
// ...
}
read, err := client.CreateManagedDeviceLogCollectionRequest(ctx, id, payload, manageddevicelogcollectionrequest.DefaultCreateManagedDeviceLogCollectionRequestOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedDeviceLogCollectionRequestClient.CreateManagedDeviceLogCollectionRequestDownloadUrl
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceIdLogCollectionRequestID("userId", "managedDeviceId", "deviceLogCollectionResponseId")
read, err := client.CreateManagedDeviceLogCollectionRequestDownloadUrl(ctx, id, manageddevicelogcollectionrequest.DefaultCreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedDeviceLogCollectionRequestClient.DeleteManagedDeviceLogCollectionRequest
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceIdLogCollectionRequestID("userId", "managedDeviceId", "deviceLogCollectionResponseId")
read, err := client.DeleteManagedDeviceLogCollectionRequest(ctx, id, manageddevicelogcollectionrequest.DefaultDeleteManagedDeviceLogCollectionRequestOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedDeviceLogCollectionRequestClient.GetManagedDeviceLogCollectionRequest
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceIdLogCollectionRequestID("userId", "managedDeviceId", "deviceLogCollectionResponseId")
read, err := client.GetManagedDeviceLogCollectionRequest(ctx, id, manageddevicelogcollectionrequest.DefaultGetManagedDeviceLogCollectionRequestOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedDeviceLogCollectionRequestClient.GetManagedDeviceLogCollectionRequestsCount
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceID("userId", "managedDeviceId")
read, err := client.GetManagedDeviceLogCollectionRequestsCount(ctx, id, manageddevicelogcollectionrequest.DefaultGetManagedDeviceLogCollectionRequestsCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ManagedDeviceLogCollectionRequestClient.ListManagedDeviceLogCollectionRequests
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceID("userId", "managedDeviceId")
// alternatively `client.ListManagedDeviceLogCollectionRequests(ctx, id, manageddevicelogcollectionrequest.DefaultListManagedDeviceLogCollectionRequestsOperationOptions())` can be used to do batched pagination
items, err := client.ListManagedDeviceLogCollectionRequestsComplete(ctx, id, manageddevicelogcollectionrequest.DefaultListManagedDeviceLogCollectionRequestsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ManagedDeviceLogCollectionRequestClient.UpdateManagedDeviceLogCollectionRequest
ctx := context.TODO()
id := manageddevicelogcollectionrequest.NewUserIdManagedDeviceIdLogCollectionRequestID("userId", "managedDeviceId", "deviceLogCollectionResponseId")
payload := manageddevicelogcollectionrequest.DeviceLogCollectionResponse{
// ...
}
read, err := client.UpdateManagedDeviceLogCollectionRequest(ctx, id, payload, manageddevicelogcollectionrequest.DefaultUpdateManagedDeviceLogCollectionRequestOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation
¶
Index ¶
- type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions
- func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToHeaders() *client.Headers
- func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToOData() *odata.Query
- func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToQuery() *client.QueryParams
- type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationResponse
- type CreateManagedDeviceLogCollectionRequestDownloadUrlResult
- type CreateManagedDeviceLogCollectionRequestOperationOptions
- type CreateManagedDeviceLogCollectionRequestOperationResponse
- type DeleteManagedDeviceLogCollectionRequestOperationOptions
- type DeleteManagedDeviceLogCollectionRequestOperationResponse
- type DeviceLogCollectionResponseOperationPredicate
- type GetManagedDeviceLogCollectionRequestOperationOptions
- type GetManagedDeviceLogCollectionRequestOperationResponse
- type GetManagedDeviceLogCollectionRequestsCountOperationOptions
- type GetManagedDeviceLogCollectionRequestsCountOperationResponse
- type ListManagedDeviceLogCollectionRequestsCompleteResult
- type ListManagedDeviceLogCollectionRequestsCustomPager
- type ListManagedDeviceLogCollectionRequestsOperationOptions
- type ListManagedDeviceLogCollectionRequestsOperationResponse
- type ManagedDeviceLogCollectionRequestClient
- func (c ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceId, ...) (result CreateManagedDeviceLogCollectionRequestOperationResponse, err error)
- func (c ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequestDownloadUrl(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, ...) (result CreateManagedDeviceLogCollectionRequestDownloadUrlOperationResponse, ...)
- func (c ManagedDeviceLogCollectionRequestClient) DeleteManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, ...) (result DeleteManagedDeviceLogCollectionRequestOperationResponse, err error)
- func (c ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, ...) (result GetManagedDeviceLogCollectionRequestOperationResponse, err error)
- func (c ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequestsCount(ctx context.Context, id beta.UserIdManagedDeviceId, ...) (result GetManagedDeviceLogCollectionRequestsCountOperationResponse, err error)
- func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequests(ctx context.Context, id beta.UserIdManagedDeviceId, ...) (result ListManagedDeviceLogCollectionRequestsOperationResponse, err error)
- func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsComplete(ctx context.Context, id beta.UserIdManagedDeviceId, ...) (ListManagedDeviceLogCollectionRequestsCompleteResult, error)
- func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdManagedDeviceId, ...) (result ListManagedDeviceLogCollectionRequestsCompleteResult, err error)
- func (c ManagedDeviceLogCollectionRequestClient) UpdateManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, ...) (result UpdateManagedDeviceLogCollectionRequestOperationResponse, err error)
- type UpdateManagedDeviceLogCollectionRequestOperationOptions
- type UpdateManagedDeviceLogCollectionRequestOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions ¶
type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions ¶
func DefaultCreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions() CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions
func (CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToHeaders ¶
func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToHeaders() *client.Headers
func (CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToOData ¶
func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToOData() *odata.Query
func (CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToQuery ¶
func (o CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) ToQuery() *client.QueryParams
type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationResponse ¶
type CreateManagedDeviceLogCollectionRequestDownloadUrlOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CreateManagedDeviceLogCollectionRequestDownloadUrlResult }
type CreateManagedDeviceLogCollectionRequestOperationOptions ¶
type CreateManagedDeviceLogCollectionRequestOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateManagedDeviceLogCollectionRequestOperationOptions ¶
func DefaultCreateManagedDeviceLogCollectionRequestOperationOptions() CreateManagedDeviceLogCollectionRequestOperationOptions
func (CreateManagedDeviceLogCollectionRequestOperationOptions) ToHeaders ¶
func (o CreateManagedDeviceLogCollectionRequestOperationOptions) ToHeaders() *client.Headers
func (CreateManagedDeviceLogCollectionRequestOperationOptions) ToOData ¶
func (o CreateManagedDeviceLogCollectionRequestOperationOptions) ToOData() *odata.Query
func (CreateManagedDeviceLogCollectionRequestOperationOptions) ToQuery ¶
func (o CreateManagedDeviceLogCollectionRequestOperationOptions) ToQuery() *client.QueryParams
type DeleteManagedDeviceLogCollectionRequestOperationOptions ¶
type DeleteManagedDeviceLogCollectionRequestOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteManagedDeviceLogCollectionRequestOperationOptions ¶
func DefaultDeleteManagedDeviceLogCollectionRequestOperationOptions() DeleteManagedDeviceLogCollectionRequestOperationOptions
func (DeleteManagedDeviceLogCollectionRequestOperationOptions) ToHeaders ¶
func (o DeleteManagedDeviceLogCollectionRequestOperationOptions) ToHeaders() *client.Headers
func (DeleteManagedDeviceLogCollectionRequestOperationOptions) ToOData ¶
func (o DeleteManagedDeviceLogCollectionRequestOperationOptions) ToOData() *odata.Query
func (DeleteManagedDeviceLogCollectionRequestOperationOptions) ToQuery ¶
func (o DeleteManagedDeviceLogCollectionRequestOperationOptions) ToQuery() *client.QueryParams
type DeviceLogCollectionResponseOperationPredicate ¶
type DeviceLogCollectionResponseOperationPredicate struct { }
func (DeviceLogCollectionResponseOperationPredicate) Matches ¶
func (p DeviceLogCollectionResponseOperationPredicate) Matches(input beta.DeviceLogCollectionResponse) bool
type GetManagedDeviceLogCollectionRequestOperationOptions ¶
type GetManagedDeviceLogCollectionRequestOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetManagedDeviceLogCollectionRequestOperationOptions ¶
func DefaultGetManagedDeviceLogCollectionRequestOperationOptions() GetManagedDeviceLogCollectionRequestOperationOptions
func (GetManagedDeviceLogCollectionRequestOperationOptions) ToHeaders ¶
func (o GetManagedDeviceLogCollectionRequestOperationOptions) ToHeaders() *client.Headers
func (GetManagedDeviceLogCollectionRequestOperationOptions) ToOData ¶
func (o GetManagedDeviceLogCollectionRequestOperationOptions) ToOData() *odata.Query
func (GetManagedDeviceLogCollectionRequestOperationOptions) ToQuery ¶
func (o GetManagedDeviceLogCollectionRequestOperationOptions) ToQuery() *client.QueryParams
type GetManagedDeviceLogCollectionRequestsCountOperationOptions ¶
type GetManagedDeviceLogCollectionRequestsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetManagedDeviceLogCollectionRequestsCountOperationOptions ¶
func DefaultGetManagedDeviceLogCollectionRequestsCountOperationOptions() GetManagedDeviceLogCollectionRequestsCountOperationOptions
func (GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToHeaders ¶
func (o GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToHeaders() *client.Headers
func (GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToOData ¶
func (o GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToOData() *odata.Query
func (GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToQuery ¶
func (o GetManagedDeviceLogCollectionRequestsCountOperationOptions) ToQuery() *client.QueryParams
type ListManagedDeviceLogCollectionRequestsCompleteResult ¶
type ListManagedDeviceLogCollectionRequestsCompleteResult struct { LatestHttpResponse *http.Response Items []beta.DeviceLogCollectionResponse }
type ListManagedDeviceLogCollectionRequestsCustomPager ¶
type ListManagedDeviceLogCollectionRequestsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListManagedDeviceLogCollectionRequestsCustomPager) NextPageLink ¶
func (p *ListManagedDeviceLogCollectionRequestsCustomPager) NextPageLink() *odata.Link
type ListManagedDeviceLogCollectionRequestsOperationOptions ¶
type ListManagedDeviceLogCollectionRequestsOperationOptions 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 DefaultListManagedDeviceLogCollectionRequestsOperationOptions ¶
func DefaultListManagedDeviceLogCollectionRequestsOperationOptions() ListManagedDeviceLogCollectionRequestsOperationOptions
func (ListManagedDeviceLogCollectionRequestsOperationOptions) ToHeaders ¶
func (o ListManagedDeviceLogCollectionRequestsOperationOptions) ToHeaders() *client.Headers
func (ListManagedDeviceLogCollectionRequestsOperationOptions) ToOData ¶
func (o ListManagedDeviceLogCollectionRequestsOperationOptions) ToOData() *odata.Query
func (ListManagedDeviceLogCollectionRequestsOperationOptions) ToQuery ¶
func (o ListManagedDeviceLogCollectionRequestsOperationOptions) ToQuery() *client.QueryParams
type ManagedDeviceLogCollectionRequestClient ¶
func NewManagedDeviceLogCollectionRequestClientWithBaseURI ¶
func NewManagedDeviceLogCollectionRequestClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedDeviceLogCollectionRequestClient, error)
func (ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequest ¶
func (c ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceId, input beta.DeviceLogCollectionResponse, options CreateManagedDeviceLogCollectionRequestOperationOptions) (result CreateManagedDeviceLogCollectionRequestOperationResponse, err error)
CreateManagedDeviceLogCollectionRequest - Create new navigation property to logCollectionRequests for users
func (ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequestDownloadUrl ¶
func (c ManagedDeviceLogCollectionRequestClient) CreateManagedDeviceLogCollectionRequestDownloadUrl(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, options CreateManagedDeviceLogCollectionRequestDownloadUrlOperationOptions) (result CreateManagedDeviceLogCollectionRequestDownloadUrlOperationResponse, err error)
CreateManagedDeviceLogCollectionRequestDownloadUrl - Invoke action createDownloadUrl
func (ManagedDeviceLogCollectionRequestClient) DeleteManagedDeviceLogCollectionRequest ¶
func (c ManagedDeviceLogCollectionRequestClient) DeleteManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, options DeleteManagedDeviceLogCollectionRequestOperationOptions) (result DeleteManagedDeviceLogCollectionRequestOperationResponse, err error)
DeleteManagedDeviceLogCollectionRequest - Delete navigation property logCollectionRequests for users
func (ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequest ¶
func (c ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, options GetManagedDeviceLogCollectionRequestOperationOptions) (result GetManagedDeviceLogCollectionRequestOperationResponse, err error)
GetManagedDeviceLogCollectionRequest - Get logCollectionRequests from users. List of log collection requests
func (ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequestsCount ¶
func (c ManagedDeviceLogCollectionRequestClient) GetManagedDeviceLogCollectionRequestsCount(ctx context.Context, id beta.UserIdManagedDeviceId, options GetManagedDeviceLogCollectionRequestsCountOperationOptions) (result GetManagedDeviceLogCollectionRequestsCountOperationResponse, err error)
GetManagedDeviceLogCollectionRequestsCount - Get the number of the resource
func (ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequests ¶
func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequests(ctx context.Context, id beta.UserIdManagedDeviceId, options ListManagedDeviceLogCollectionRequestsOperationOptions) (result ListManagedDeviceLogCollectionRequestsOperationResponse, err error)
ListManagedDeviceLogCollectionRequests - Get logCollectionRequests from users. List of log collection requests
func (ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsComplete ¶
func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsComplete(ctx context.Context, id beta.UserIdManagedDeviceId, options ListManagedDeviceLogCollectionRequestsOperationOptions) (ListManagedDeviceLogCollectionRequestsCompleteResult, error)
ListManagedDeviceLogCollectionRequestsComplete retrieves all the results into a single object
func (ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsCompleteMatchingPredicate ¶
func (c ManagedDeviceLogCollectionRequestClient) ListManagedDeviceLogCollectionRequestsCompleteMatchingPredicate(ctx context.Context, id beta.UserIdManagedDeviceId, options ListManagedDeviceLogCollectionRequestsOperationOptions, predicate DeviceLogCollectionResponseOperationPredicate) (result ListManagedDeviceLogCollectionRequestsCompleteResult, err error)
ListManagedDeviceLogCollectionRequestsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ManagedDeviceLogCollectionRequestClient) UpdateManagedDeviceLogCollectionRequest ¶
func (c ManagedDeviceLogCollectionRequestClient) UpdateManagedDeviceLogCollectionRequest(ctx context.Context, id beta.UserIdManagedDeviceIdLogCollectionRequestId, input beta.DeviceLogCollectionResponse, options UpdateManagedDeviceLogCollectionRequestOperationOptions) (result UpdateManagedDeviceLogCollectionRequestOperationResponse, err error)
UpdateManagedDeviceLogCollectionRequest - Update the navigation property logCollectionRequests in users
type UpdateManagedDeviceLogCollectionRequestOperationOptions ¶
type UpdateManagedDeviceLogCollectionRequestOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateManagedDeviceLogCollectionRequestOperationOptions ¶
func DefaultUpdateManagedDeviceLogCollectionRequestOperationOptions() UpdateManagedDeviceLogCollectionRequestOperationOptions
func (UpdateManagedDeviceLogCollectionRequestOperationOptions) ToHeaders ¶
func (o UpdateManagedDeviceLogCollectionRequestOperationOptions) ToHeaders() *client.Headers
func (UpdateManagedDeviceLogCollectionRequestOperationOptions) ToOData ¶
func (o UpdateManagedDeviceLogCollectionRequestOperationOptions) ToOData() *odata.Query
func (UpdateManagedDeviceLogCollectionRequestOperationOptions) ToQuery ¶
func (o UpdateManagedDeviceLogCollectionRequestOperationOptions) ToQuery() *client.QueryParams
Source Files
¶
- client.go
- method_createmanageddevicelogcollectionrequest.go
- method_createmanageddevicelogcollectionrequestdownloadurl.go
- method_deletemanageddevicelogcollectionrequest.go
- method_getmanageddevicelogcollectionrequest.go
- method_getmanageddevicelogcollectionrequestscount.go
- method_listmanageddevicelogcollectionrequests.go
- method_updatemanageddevicelogcollectionrequest.go
- model_createmanageddevicelogcollectionrequestdownloadurlresult.go
- predicates.go
- version.go