lifecycleworkflowworkflow

package
v0.20241118.1115603 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/lifecycleworkflowworkflow Documentation

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

Client Initialization

client := lifecycleworkflowworkflow.NewLifecycleWorkflowWorkflowClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: LifecycleWorkflowWorkflowClient.CreateLifecycleWorkflowIdentityGovernanceActivate

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

payload := lifecycleworkflowworkflow.CreateLifecycleWorkflowIdentityGovernanceActivateRequest{
	// ...
}


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

Example Usage: LifecycleWorkflowWorkflowClient.CreateLifecycleWorkflowIdentityGovernanceCreateNewVersion

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

payload := lifecycleworkflowworkflow.CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionRequest{
	// ...
}


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

Example Usage: LifecycleWorkflowWorkflowClient.CreateLifecycleWorkflowIdentityGovernanceRestore

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

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

Example Usage: LifecycleWorkflowWorkflowClient.CreateLifecycleWorkflowWorkflow

ctx := context.TODO()

payload := lifecycleworkflowworkflow.IdentityGovernanceWorkflow{
	// ...
}


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

Example Usage: LifecycleWorkflowWorkflowClient.DeleteLifecycleWorkflowWorkflow

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

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

Example Usage: LifecycleWorkflowWorkflowClient.GetLifecycleWorkflowCount

ctx := context.TODO()


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

Example Usage: LifecycleWorkflowWorkflowClient.GetLifecycleWorkflowWorkflow

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

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

Example Usage: LifecycleWorkflowWorkflowClient.ListLifecycleWorkflowWorkflows

ctx := context.TODO()


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

Example Usage: LifecycleWorkflowWorkflowClient.UpdateLifecycleWorkflowWorkflow

ctx := context.TODO()
id := lifecycleworkflowworkflow.NewIdentityGovernanceLifecycleWorkflowWorkflowID("workflowId")

payload := lifecycleworkflowworkflow.IdentityGovernanceWorkflow{
	// ...
}


read, err := client.UpdateLifecycleWorkflowWorkflow(ctx, id, payload, lifecycleworkflowworkflow.DefaultUpdateLifecycleWorkflowWorkflowOperationOptions())
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 CreateLifecycleWorkflowIdentityGovernanceActivateOperationOptions

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

func (CreateLifecycleWorkflowIdentityGovernanceActivateOperationOptions) ToHeaders

func (CreateLifecycleWorkflowIdentityGovernanceActivateOperationOptions) ToOData

func (CreateLifecycleWorkflowIdentityGovernanceActivateOperationOptions) ToQuery

type CreateLifecycleWorkflowIdentityGovernanceActivateOperationResponse

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

type CreateLifecycleWorkflowIdentityGovernanceActivateRequest

type CreateLifecycleWorkflowIdentityGovernanceActivateRequest struct {
	Subjects *[]beta.User `json:"subjects,omitempty"`
}

type CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationOptions

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

func (CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationOptions) ToHeaders

func (CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationOptions) ToOData

func (CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationOptions) ToQuery

type CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationResponse

type CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.IdentityGovernanceWorkflow
}

type CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionRequest

type CreateLifecycleWorkflowIdentityGovernanceCreateNewVersionRequest struct {
	Workflow *beta.IdentityGovernanceWorkflow `json:"workflow,omitempty"`
}

type CreateLifecycleWorkflowIdentityGovernanceRestoreOperationOptions

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

func (CreateLifecycleWorkflowIdentityGovernanceRestoreOperationOptions) ToHeaders

func (CreateLifecycleWorkflowIdentityGovernanceRestoreOperationOptions) ToOData

func (CreateLifecycleWorkflowIdentityGovernanceRestoreOperationOptions) ToQuery

type CreateLifecycleWorkflowIdentityGovernanceRestoreOperationResponse

type CreateLifecycleWorkflowIdentityGovernanceRestoreOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.IdentityGovernanceWorkflow
}

type CreateLifecycleWorkflowWorkflowOperationOptions

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

func DefaultCreateLifecycleWorkflowWorkflowOperationOptions

func DefaultCreateLifecycleWorkflowWorkflowOperationOptions() CreateLifecycleWorkflowWorkflowOperationOptions

func (CreateLifecycleWorkflowWorkflowOperationOptions) ToHeaders

func (CreateLifecycleWorkflowWorkflowOperationOptions) ToOData

func (CreateLifecycleWorkflowWorkflowOperationOptions) ToQuery

type CreateLifecycleWorkflowWorkflowOperationResponse

type CreateLifecycleWorkflowWorkflowOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.IdentityGovernanceWorkflow
}

type DeleteLifecycleWorkflowWorkflowOperationOptions

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

func DefaultDeleteLifecycleWorkflowWorkflowOperationOptions

func DefaultDeleteLifecycleWorkflowWorkflowOperationOptions() DeleteLifecycleWorkflowWorkflowOperationOptions

func (DeleteLifecycleWorkflowWorkflowOperationOptions) ToHeaders

func (DeleteLifecycleWorkflowWorkflowOperationOptions) ToOData

func (DeleteLifecycleWorkflowWorkflowOperationOptions) ToQuery

type DeleteLifecycleWorkflowWorkflowOperationResponse

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

type GetLifecycleWorkflowCountOperationOptions

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

func DefaultGetLifecycleWorkflowCountOperationOptions

func DefaultGetLifecycleWorkflowCountOperationOptions() GetLifecycleWorkflowCountOperationOptions

func (GetLifecycleWorkflowCountOperationOptions) ToHeaders

func (GetLifecycleWorkflowCountOperationOptions) ToOData

func (GetLifecycleWorkflowCountOperationOptions) ToQuery

type GetLifecycleWorkflowCountOperationResponse

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

type GetLifecycleWorkflowWorkflowOperationOptions

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

func DefaultGetLifecycleWorkflowWorkflowOperationOptions

func DefaultGetLifecycleWorkflowWorkflowOperationOptions() GetLifecycleWorkflowWorkflowOperationOptions

func (GetLifecycleWorkflowWorkflowOperationOptions) ToHeaders

func (GetLifecycleWorkflowWorkflowOperationOptions) ToOData

func (GetLifecycleWorkflowWorkflowOperationOptions) ToQuery

type GetLifecycleWorkflowWorkflowOperationResponse

type GetLifecycleWorkflowWorkflowOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.IdentityGovernanceWorkflow
}

type IdentityGovernanceWorkflowOperationPredicate

type IdentityGovernanceWorkflowOperationPredicate struct {
}

func (IdentityGovernanceWorkflowOperationPredicate) Matches

type LifecycleWorkflowWorkflowClient

type LifecycleWorkflowWorkflowClient struct {
	Client *msgraph.Client
}

func NewLifecycleWorkflowWorkflowClientWithBaseURI

func NewLifecycleWorkflowWorkflowClientWithBaseURI(sdkApi sdkEnv.Api) (*LifecycleWorkflowWorkflowClient, error)

func (LifecycleWorkflowWorkflowClient) CreateLifecycleWorkflowIdentityGovernanceActivate

CreateLifecycleWorkflowIdentityGovernanceActivate - Invoke action activate. Run a workflow object on-demand. You can run any workflow on-demand, including scheduled workflows. Workflows created from the 'Real-time employee termination' template are run on-demand only. When you run a workflow on demand, the tasks are executed regardless of whether the user state matches the scope and trigger execution conditions.

func (LifecycleWorkflowWorkflowClient) CreateLifecycleWorkflowIdentityGovernanceCreateNewVersion

CreateLifecycleWorkflowIdentityGovernanceCreateNewVersion - Invoke action createNewVersion. Create a new version of the workflow object.

func (LifecycleWorkflowWorkflowClient) CreateLifecycleWorkflowIdentityGovernanceRestore

CreateLifecycleWorkflowIdentityGovernanceRestore - Invoke action restore. Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Microsoft Entra ID automatically permanently deletes it.

func (LifecycleWorkflowWorkflowClient) CreateLifecycleWorkflowWorkflow

CreateLifecycleWorkflowWorkflow - Create workflow. Create a new workflow object. You can create up to 100 workflows in a tenant.

func (LifecycleWorkflowWorkflowClient) DeleteLifecycleWorkflowWorkflow

DeleteLifecycleWorkflowWorkflow - Delete workflow. Delete a workflow object and its associated tasks, taskProcessingResults and versions. You can restore a deleted workflow and its associated objects within 30 days of deletion.

func (LifecycleWorkflowWorkflowClient) GetLifecycleWorkflowCount

GetLifecycleWorkflowCount - Get the number of the resource

func (LifecycleWorkflowWorkflowClient) GetLifecycleWorkflowWorkflow

GetLifecycleWorkflowWorkflow - Get workflow. Read the properties and relationships of a workflow object.

func (LifecycleWorkflowWorkflowClient) ListLifecycleWorkflowWorkflows

ListLifecycleWorkflowWorkflows - List workflows. Get a list of workflow resources that are associated with lifecycle workflows.

func (LifecycleWorkflowWorkflowClient) ListLifecycleWorkflowWorkflowsComplete

ListLifecycleWorkflowWorkflowsComplete retrieves all the results into a single object

func (LifecycleWorkflowWorkflowClient) ListLifecycleWorkflowWorkflowsCompleteMatchingPredicate

ListLifecycleWorkflowWorkflowsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (LifecycleWorkflowWorkflowClient) UpdateLifecycleWorkflowWorkflow

UpdateLifecycleWorkflowWorkflow - Update workflow. Update the properties of a workflow object. Only the properties listed in the request body table can be updated. To update any other workflow properties, see workflow: createNewVersion.

type ListLifecycleWorkflowWorkflowsCompleteResult

type ListLifecycleWorkflowWorkflowsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.IdentityGovernanceWorkflow
}

type ListLifecycleWorkflowWorkflowsCustomPager

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

type ListLifecycleWorkflowWorkflowsOperationOptions

type ListLifecycleWorkflowWorkflowsOperationOptions 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 DefaultListLifecycleWorkflowWorkflowsOperationOptions

func DefaultListLifecycleWorkflowWorkflowsOperationOptions() ListLifecycleWorkflowWorkflowsOperationOptions

func (ListLifecycleWorkflowWorkflowsOperationOptions) ToHeaders

func (ListLifecycleWorkflowWorkflowsOperationOptions) ToOData

func (ListLifecycleWorkflowWorkflowsOperationOptions) ToQuery

type ListLifecycleWorkflowWorkflowsOperationResponse

type ListLifecycleWorkflowWorkflowsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.IdentityGovernanceWorkflow
}

type UpdateLifecycleWorkflowWorkflowOperationOptions

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

func DefaultUpdateLifecycleWorkflowWorkflowOperationOptions

func DefaultUpdateLifecycleWorkflowWorkflowOperationOptions() UpdateLifecycleWorkflowWorkflowOperationOptions

func (UpdateLifecycleWorkflowWorkflowOperationOptions) ToHeaders

func (UpdateLifecycleWorkflowWorkflowOperationOptions) ToOData

func (UpdateLifecycleWorkflowWorkflowOperationOptions) ToQuery

type UpdateLifecycleWorkflowWorkflowOperationResponse

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