grouplifecyclepolicy

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/grouplifecyclepolicy Documentation

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

Client Initialization

client := grouplifecyclepolicy.NewGroupLifecyclePolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: GroupLifecyclePolicyClient.AddGroupLifecyclePolicyGroup

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupIdGroupLifecyclePolicyID("groupId", "groupLifecyclePolicyId")

payload := grouplifecyclepolicy.AddGroupLifecyclePolicyGroupRequest{
	// ...
}


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

Example Usage: GroupLifecyclePolicyClient.CreateGroupLifecyclePolicy

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupID("groupId")

payload := grouplifecyclepolicy.GroupLifecyclePolicy{
	// ...
}


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

Example Usage: GroupLifecyclePolicyClient.DeleteGroupLifecyclePolicy

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupIdGroupLifecyclePolicyID("groupId", "groupLifecyclePolicyId")

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

Example Usage: GroupLifecyclePolicyClient.GetGroupLifecyclePoliciesCount

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupID("groupId")

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

Example Usage: GroupLifecyclePolicyClient.GetGroupLifecyclePolicy

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupIdGroupLifecyclePolicyID("groupId", "groupLifecyclePolicyId")

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

Example Usage: GroupLifecyclePolicyClient.ListGroupLifecyclePolicies

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupID("groupId")

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

Example Usage: GroupLifecyclePolicyClient.RemoveGroupLifecyclePolicyGroup

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupIdGroupLifecyclePolicyID("groupId", "groupLifecyclePolicyId")

payload := grouplifecyclepolicy.RemoveGroupLifecyclePolicyGroupRequest{
	// ...
}


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

Example Usage: GroupLifecyclePolicyClient.RenewGroupLifecyclePoliciesGroup

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupID("groupId")

payload := grouplifecyclepolicy.RenewGroupLifecyclePoliciesGroupRequest{
	// ...
}


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

Example Usage: GroupLifecyclePolicyClient.UpdateGroupLifecyclePolicy

ctx := context.TODO()
id := grouplifecyclepolicy.NewGroupIdGroupLifecyclePolicyID("groupId", "groupLifecyclePolicyId")

payload := grouplifecyclepolicy.GroupLifecyclePolicy{
	// ...
}


read, err := client.UpdateGroupLifecyclePolicy(ctx, id, payload, grouplifecyclepolicy.DefaultUpdateGroupLifecyclePolicyOperationOptions())
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 AddGroupLifecyclePolicyGroupOperationOptions

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

func DefaultAddGroupLifecyclePolicyGroupOperationOptions

func DefaultAddGroupLifecyclePolicyGroupOperationOptions() AddGroupLifecyclePolicyGroupOperationOptions

func (AddGroupLifecyclePolicyGroupOperationOptions) ToHeaders

func (AddGroupLifecyclePolicyGroupOperationOptions) ToOData

func (AddGroupLifecyclePolicyGroupOperationOptions) ToQuery

type AddGroupLifecyclePolicyGroupOperationResponse

type AddGroupLifecyclePolicyGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AddGroupLifecyclePolicyGroupResult
}

type AddGroupLifecyclePolicyGroupRequest

type AddGroupLifecyclePolicyGroupRequest struct {
	GroupId *string `json:"groupId,omitempty"`
}

type AddGroupLifecyclePolicyGroupResult

type AddGroupLifecyclePolicyGroupResult struct {
	Value *bool `json:"value,omitempty"`
}

type CreateGroupLifecyclePolicyOperationOptions

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

func DefaultCreateGroupLifecyclePolicyOperationOptions

func DefaultCreateGroupLifecyclePolicyOperationOptions() CreateGroupLifecyclePolicyOperationOptions

func (CreateGroupLifecyclePolicyOperationOptions) ToHeaders

func (CreateGroupLifecyclePolicyOperationOptions) ToOData

func (CreateGroupLifecyclePolicyOperationOptions) ToQuery

type CreateGroupLifecyclePolicyOperationResponse

type CreateGroupLifecyclePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupLifecyclePolicy
}

type DeleteGroupLifecyclePolicyOperationOptions

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

func DefaultDeleteGroupLifecyclePolicyOperationOptions

func DefaultDeleteGroupLifecyclePolicyOperationOptions() DeleteGroupLifecyclePolicyOperationOptions

func (DeleteGroupLifecyclePolicyOperationOptions) ToHeaders

func (DeleteGroupLifecyclePolicyOperationOptions) ToOData

func (DeleteGroupLifecyclePolicyOperationOptions) ToQuery

type DeleteGroupLifecyclePolicyOperationResponse

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

type GetGroupLifecyclePoliciesCountOperationOptions

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

func DefaultGetGroupLifecyclePoliciesCountOperationOptions

func DefaultGetGroupLifecyclePoliciesCountOperationOptions() GetGroupLifecyclePoliciesCountOperationOptions

func (GetGroupLifecyclePoliciesCountOperationOptions) ToHeaders

func (GetGroupLifecyclePoliciesCountOperationOptions) ToOData

func (GetGroupLifecyclePoliciesCountOperationOptions) ToQuery

type GetGroupLifecyclePoliciesCountOperationResponse

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

type GetGroupLifecyclePolicyOperationOptions

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

func DefaultGetGroupLifecyclePolicyOperationOptions

func DefaultGetGroupLifecyclePolicyOperationOptions() GetGroupLifecyclePolicyOperationOptions

func (GetGroupLifecyclePolicyOperationOptions) ToHeaders

func (GetGroupLifecyclePolicyOperationOptions) ToOData

func (GetGroupLifecyclePolicyOperationOptions) ToQuery

type GetGroupLifecyclePolicyOperationResponse

type GetGroupLifecyclePolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.GroupLifecyclePolicy
}

type GroupLifecyclePolicyClient

type GroupLifecyclePolicyClient struct {
	Client *msgraph.Client
}

func NewGroupLifecyclePolicyClientWithBaseURI

func NewGroupLifecyclePolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupLifecyclePolicyClient, error)

func (GroupLifecyclePolicyClient) AddGroupLifecyclePolicyGroup

AddGroupLifecyclePolicyGroup - Invoke action addGroup

func (GroupLifecyclePolicyClient) CreateGroupLifecyclePolicy

CreateGroupLifecyclePolicy - Create new navigation property to groupLifecyclePolicies for groups

func (GroupLifecyclePolicyClient) DeleteGroupLifecyclePolicy

DeleteGroupLifecyclePolicy - Delete navigation property groupLifecyclePolicies for groups

func (GroupLifecyclePolicyClient) GetGroupLifecyclePoliciesCount

GetGroupLifecyclePoliciesCount - Get the number of the resource

func (GroupLifecyclePolicyClient) GetGroupLifecyclePolicy

GetGroupLifecyclePolicy - Get groupLifecyclePolicies from groups. The collection of lifecycle policies for this group. Read-only. Nullable.

func (GroupLifecyclePolicyClient) ListGroupLifecyclePolicies

ListGroupLifecyclePolicies - List groupLifecyclePolicies. Retrieves a list of groupLifecyclePolicy objects to which a group belongs.

func (GroupLifecyclePolicyClient) ListGroupLifecyclePoliciesComplete

ListGroupLifecyclePoliciesComplete retrieves all the results into a single object

func (GroupLifecyclePolicyClient) ListGroupLifecyclePoliciesCompleteMatchingPredicate

ListGroupLifecyclePoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (GroupLifecyclePolicyClient) RemoveGroupLifecyclePolicyGroup

RemoveGroupLifecyclePolicyGroup - Invoke action removeGroup

func (GroupLifecyclePolicyClient) RenewGroupLifecyclePoliciesGroup

RenewGroupLifecyclePoliciesGroup - Invoke action renewGroup. Renew a group's expiration. When a group is renewed, the group expiration is extended by the number of days defined in the policy.

func (GroupLifecyclePolicyClient) UpdateGroupLifecyclePolicy

UpdateGroupLifecyclePolicy - Update the navigation property groupLifecyclePolicies in groups

type GroupLifecyclePolicyOperationPredicate

type GroupLifecyclePolicyOperationPredicate struct {
}

func (GroupLifecyclePolicyOperationPredicate) Matches

type ListGroupLifecyclePoliciesCompleteResult

type ListGroupLifecyclePoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.GroupLifecyclePolicy
}

type ListGroupLifecyclePoliciesCustomPager

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

type ListGroupLifecyclePoliciesOperationOptions

type ListGroupLifecyclePoliciesOperationOptions 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 DefaultListGroupLifecyclePoliciesOperationOptions

func DefaultListGroupLifecyclePoliciesOperationOptions() ListGroupLifecyclePoliciesOperationOptions

func (ListGroupLifecyclePoliciesOperationOptions) ToHeaders

func (ListGroupLifecyclePoliciesOperationOptions) ToOData

func (ListGroupLifecyclePoliciesOperationOptions) ToQuery

type ListGroupLifecyclePoliciesOperationResponse

type ListGroupLifecyclePoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.GroupLifecyclePolicy
}

type RemoveGroupLifecyclePolicyGroupOperationOptions

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

func DefaultRemoveGroupLifecyclePolicyGroupOperationOptions

func DefaultRemoveGroupLifecyclePolicyGroupOperationOptions() RemoveGroupLifecyclePolicyGroupOperationOptions

func (RemoveGroupLifecyclePolicyGroupOperationOptions) ToHeaders

func (RemoveGroupLifecyclePolicyGroupOperationOptions) ToOData

func (RemoveGroupLifecyclePolicyGroupOperationOptions) ToQuery

type RemoveGroupLifecyclePolicyGroupOperationResponse

type RemoveGroupLifecyclePolicyGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RemoveGroupLifecyclePolicyGroupResult
}

type RemoveGroupLifecyclePolicyGroupRequest

type RemoveGroupLifecyclePolicyGroupRequest struct {
	GroupId *string `json:"groupId,omitempty"`
}

type RemoveGroupLifecyclePolicyGroupResult

type RemoveGroupLifecyclePolicyGroupResult struct {
	Value *bool `json:"value,omitempty"`
}

type RenewGroupLifecyclePoliciesGroupOperationOptions

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

func DefaultRenewGroupLifecyclePoliciesGroupOperationOptions

func DefaultRenewGroupLifecyclePoliciesGroupOperationOptions() RenewGroupLifecyclePoliciesGroupOperationOptions

func (RenewGroupLifecyclePoliciesGroupOperationOptions) ToHeaders

func (RenewGroupLifecyclePoliciesGroupOperationOptions) ToOData

func (RenewGroupLifecyclePoliciesGroupOperationOptions) ToQuery

type RenewGroupLifecyclePoliciesGroupOperationResponse

type RenewGroupLifecyclePoliciesGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RenewGroupLifecyclePoliciesGroupResult
}

type RenewGroupLifecyclePoliciesGroupRequest

type RenewGroupLifecyclePoliciesGroupRequest struct {
	GroupId *string `json:"groupId,omitempty"`
}

type RenewGroupLifecyclePoliciesGroupResult

type RenewGroupLifecyclePoliciesGroupResult struct {
	Value *bool `json:"value,omitempty"`
}

type UpdateGroupLifecyclePolicyOperationOptions

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

func DefaultUpdateGroupLifecyclePolicyOperationOptions

func DefaultUpdateGroupLifecyclePolicyOperationOptions() UpdateGroupLifecyclePolicyOperationOptions

func (UpdateGroupLifecyclePolicyOperationOptions) ToHeaders

func (UpdateGroupLifecyclePolicyOperationOptions) ToOData

func (UpdateGroupLifecyclePolicyOperationOptions) ToQuery

type UpdateGroupLifecyclePolicyOperationResponse

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