grouppolicymigrationreport

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

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

Client Initialization

client := grouppolicymigrationreport.NewGroupPolicyMigrationReportClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: GroupPolicyMigrationReportClient.CreateGroupPolicyMigrationReport

ctx := context.TODO()

payload := grouppolicymigrationreport.GroupPolicyMigrationReport{
	// ...
}


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

Example Usage: GroupPolicyMigrationReportClient.CreateGroupPolicyMigrationReportsMigrationReport

ctx := context.TODO()

payload := grouppolicymigrationreport.CreateGroupPolicyMigrationReportsMigrationReportRequest{
	// ...
}


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

Example Usage: GroupPolicyMigrationReportClient.DeleteGroupPolicyMigrationReport

ctx := context.TODO()
id := grouppolicymigrationreport.NewDeviceManagementGroupPolicyMigrationReportID("groupPolicyMigrationReportId")

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

Example Usage: GroupPolicyMigrationReportClient.GetGroupPolicyMigrationReport

ctx := context.TODO()
id := grouppolicymigrationreport.NewDeviceManagementGroupPolicyMigrationReportID("groupPolicyMigrationReportId")

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

Example Usage: GroupPolicyMigrationReportClient.GetGroupPolicyMigrationReportsCount

ctx := context.TODO()


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

Example Usage: GroupPolicyMigrationReportClient.ListGroupPolicyMigrationReports

ctx := context.TODO()


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

Example Usage: GroupPolicyMigrationReportClient.UpdateGroupPolicyMigrationReport

ctx := context.TODO()
id := grouppolicymigrationreport.NewDeviceManagementGroupPolicyMigrationReportID("groupPolicyMigrationReportId")

payload := grouppolicymigrationreport.GroupPolicyMigrationReport{
	// ...
}


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

Example Usage: GroupPolicyMigrationReportClient.UpdateGroupPolicyMigrationReportScopeTags

ctx := context.TODO()
id := grouppolicymigrationreport.NewDeviceManagementGroupPolicyMigrationReportID("groupPolicyMigrationReportId")

payload := grouppolicymigrationreport.UpdateGroupPolicyMigrationReportScopeTagsRequest{
	// ...
}


read, err := client.UpdateGroupPolicyMigrationReportScopeTags(ctx, id, payload, grouppolicymigrationreport.DefaultUpdateGroupPolicyMigrationReportScopeTagsOperationOptions())
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 CreateGroupPolicyMigrationReportOperationOptions

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

func DefaultCreateGroupPolicyMigrationReportOperationOptions

func DefaultCreateGroupPolicyMigrationReportOperationOptions() CreateGroupPolicyMigrationReportOperationOptions

func (CreateGroupPolicyMigrationReportOperationOptions) ToHeaders

func (CreateGroupPolicyMigrationReportOperationOptions) ToOData

func (CreateGroupPolicyMigrationReportOperationOptions) ToQuery

type CreateGroupPolicyMigrationReportOperationResponse

type CreateGroupPolicyMigrationReportOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyMigrationReport
}

type CreateGroupPolicyMigrationReportsMigrationReportOperationOptions

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

func (CreateGroupPolicyMigrationReportsMigrationReportOperationOptions) ToHeaders

func (CreateGroupPolicyMigrationReportsMigrationReportOperationOptions) ToOData

func (CreateGroupPolicyMigrationReportsMigrationReportOperationOptions) ToQuery

type CreateGroupPolicyMigrationReportsMigrationReportOperationResponse

type CreateGroupPolicyMigrationReportsMigrationReportOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CreateGroupPolicyMigrationReportsMigrationReportResult
}

type CreateGroupPolicyMigrationReportsMigrationReportRequest

type CreateGroupPolicyMigrationReportsMigrationReportRequest struct {
	GroupPolicyObjectFile *beta.GroupPolicyObjectFile `json:"groupPolicyObjectFile,omitempty"`
}

type CreateGroupPolicyMigrationReportsMigrationReportResult

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

type DeleteGroupPolicyMigrationReportOperationOptions

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

func DefaultDeleteGroupPolicyMigrationReportOperationOptions

func DefaultDeleteGroupPolicyMigrationReportOperationOptions() DeleteGroupPolicyMigrationReportOperationOptions

func (DeleteGroupPolicyMigrationReportOperationOptions) ToHeaders

func (DeleteGroupPolicyMigrationReportOperationOptions) ToOData

func (DeleteGroupPolicyMigrationReportOperationOptions) ToQuery

type DeleteGroupPolicyMigrationReportOperationResponse

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

type GetGroupPolicyMigrationReportOperationOptions

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

func DefaultGetGroupPolicyMigrationReportOperationOptions

func DefaultGetGroupPolicyMigrationReportOperationOptions() GetGroupPolicyMigrationReportOperationOptions

func (GetGroupPolicyMigrationReportOperationOptions) ToHeaders

func (GetGroupPolicyMigrationReportOperationOptions) ToOData

func (GetGroupPolicyMigrationReportOperationOptions) ToQuery

type GetGroupPolicyMigrationReportOperationResponse

type GetGroupPolicyMigrationReportOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupPolicyMigrationReport
}

type GetGroupPolicyMigrationReportsCountOperationOptions

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

func DefaultGetGroupPolicyMigrationReportsCountOperationOptions

func DefaultGetGroupPolicyMigrationReportsCountOperationOptions() GetGroupPolicyMigrationReportsCountOperationOptions

func (GetGroupPolicyMigrationReportsCountOperationOptions) ToHeaders

func (GetGroupPolicyMigrationReportsCountOperationOptions) ToOData

func (GetGroupPolicyMigrationReportsCountOperationOptions) ToQuery

type GetGroupPolicyMigrationReportsCountOperationResponse

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

type GroupPolicyMigrationReportClient

type GroupPolicyMigrationReportClient struct {
	Client *msgraph.Client
}

func NewGroupPolicyMigrationReportClientWithBaseURI

func NewGroupPolicyMigrationReportClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupPolicyMigrationReportClient, error)

func (GroupPolicyMigrationReportClient) CreateGroupPolicyMigrationReport

CreateGroupPolicyMigrationReport - Create new navigation property to groupPolicyMigrationReports for deviceManagement

func (GroupPolicyMigrationReportClient) CreateGroupPolicyMigrationReportsMigrationReport

CreateGroupPolicyMigrationReportsMigrationReport - Invoke action createMigrationReport

func (GroupPolicyMigrationReportClient) DeleteGroupPolicyMigrationReport

DeleteGroupPolicyMigrationReport - Delete navigation property groupPolicyMigrationReports for deviceManagement

func (GroupPolicyMigrationReportClient) GetGroupPolicyMigrationReport

GetGroupPolicyMigrationReport - Get groupPolicyMigrationReports from deviceManagement. A list of Group Policy migration reports.

func (GroupPolicyMigrationReportClient) GetGroupPolicyMigrationReportsCount

GetGroupPolicyMigrationReportsCount - Get the number of the resource

func (GroupPolicyMigrationReportClient) ListGroupPolicyMigrationReports

ListGroupPolicyMigrationReports - Get groupPolicyMigrationReports from deviceManagement. A list of Group Policy migration reports.

func (GroupPolicyMigrationReportClient) ListGroupPolicyMigrationReportsComplete

ListGroupPolicyMigrationReportsComplete retrieves all the results into a single object

func (GroupPolicyMigrationReportClient) ListGroupPolicyMigrationReportsCompleteMatchingPredicate

ListGroupPolicyMigrationReportsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (GroupPolicyMigrationReportClient) UpdateGroupPolicyMigrationReport

UpdateGroupPolicyMigrationReport - Update the navigation property groupPolicyMigrationReports in deviceManagement

func (GroupPolicyMigrationReportClient) UpdateGroupPolicyMigrationReportScopeTags

UpdateGroupPolicyMigrationReportScopeTags - Invoke action updateScopeTags

type GroupPolicyMigrationReportOperationPredicate

type GroupPolicyMigrationReportOperationPredicate struct {
}

func (GroupPolicyMigrationReportOperationPredicate) Matches

type ListGroupPolicyMigrationReportsCompleteResult

type ListGroupPolicyMigrationReportsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.GroupPolicyMigrationReport
}

type ListGroupPolicyMigrationReportsCustomPager

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

type ListGroupPolicyMigrationReportsOperationOptions

type ListGroupPolicyMigrationReportsOperationOptions 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 DefaultListGroupPolicyMigrationReportsOperationOptions

func DefaultListGroupPolicyMigrationReportsOperationOptions() ListGroupPolicyMigrationReportsOperationOptions

func (ListGroupPolicyMigrationReportsOperationOptions) ToHeaders

func (ListGroupPolicyMigrationReportsOperationOptions) ToOData

func (ListGroupPolicyMigrationReportsOperationOptions) ToQuery

type ListGroupPolicyMigrationReportsOperationResponse

type ListGroupPolicyMigrationReportsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.GroupPolicyMigrationReport
}

type UpdateGroupPolicyMigrationReportOperationOptions

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

func DefaultUpdateGroupPolicyMigrationReportOperationOptions

func DefaultUpdateGroupPolicyMigrationReportOperationOptions() UpdateGroupPolicyMigrationReportOperationOptions

func (UpdateGroupPolicyMigrationReportOperationOptions) ToHeaders

func (UpdateGroupPolicyMigrationReportOperationOptions) ToOData

func (UpdateGroupPolicyMigrationReportOperationOptions) ToQuery

type UpdateGroupPolicyMigrationReportOperationResponse

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

type UpdateGroupPolicyMigrationReportScopeTagsOperationOptions

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

func (UpdateGroupPolicyMigrationReportScopeTagsOperationOptions) ToHeaders

func (UpdateGroupPolicyMigrationReportScopeTagsOperationOptions) ToOData

func (UpdateGroupPolicyMigrationReportScopeTagsOperationOptions) ToQuery

type UpdateGroupPolicyMigrationReportScopeTagsOperationResponse

type UpdateGroupPolicyMigrationReportScopeTagsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *UpdateGroupPolicyMigrationReportScopeTagsResult
}

type UpdateGroupPolicyMigrationReportScopeTagsRequest

type UpdateGroupPolicyMigrationReportScopeTagsRequest struct {
	RoleScopeTagIds *[]string `json:"roleScopeTagIds,omitempty"`
}

type UpdateGroupPolicyMigrationReportScopeTagsResult

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

Jump to

Keyboard shortcuts

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