pipelinepermissions

package
v7.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceAreaId, _ = uuid.Parse("a81a0441-de52-4000-aa15-ff0e07bfbbaa")

Functions

This section is empty.

Types

type Client

type Client interface {
	// [Preview API] Given a ResourceType and ResourceId, returns authorized definitions for that resource.
	GetPipelinePermissionsForResource(context.Context, GetPipelinePermissionsForResourceArgs) (*ResourcePipelinePermissions, error)
	// [Preview API] Authorizes/Unauthorizes a list of definitions for a given resource.
	UpdatePipelinePermisionsForResource(context.Context, UpdatePipelinePermisionsForResourceArgs) (*ResourcePipelinePermissions, error)
	// [Preview API] Batch API to authorize/unauthorize a list of definitions for a multiple resources.
	UpdatePipelinePermisionsForResources(context.Context, UpdatePipelinePermisionsForResourcesArgs) (*[]ResourcePipelinePermissions, error)
}

func NewClient

func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error)

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) GetPipelinePermissionsForResource

func (client *ClientImpl) GetPipelinePermissionsForResource(ctx context.Context, args GetPipelinePermissionsForResourceArgs) (*ResourcePipelinePermissions, error)

[Preview API] Given a ResourceType and ResourceId, returns authorized definitions for that resource.

func (*ClientImpl) UpdatePipelinePermisionsForResource

func (client *ClientImpl) UpdatePipelinePermisionsForResource(ctx context.Context, args UpdatePipelinePermisionsForResourceArgs) (*ResourcePipelinePermissions, error)

[Preview API] Authorizes/Unauthorizes a list of definitions for a given resource.

func (*ClientImpl) UpdatePipelinePermisionsForResources

func (client *ClientImpl) UpdatePipelinePermisionsForResources(ctx context.Context, args UpdatePipelinePermisionsForResourcesArgs) (*[]ResourcePipelinePermissions, error)

[Preview API] Batch API to authorize/unauthorize a list of definitions for a multiple resources.

type GetPipelinePermissionsForResourceArgs

type GetPipelinePermissionsForResourceArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required)
	ResourceType *string
	// (required)
	ResourceId *string
}

Arguments for the GetPipelinePermissionsForResource function

type Permission

type Permission struct {
	Authorized   *bool               `json:"authorized,omitempty"`
	AuthorizedBy *webapi.IdentityRef `json:"authorizedBy,omitempty"`
	AuthorizedOn *azuredevops.Time   `json:"authorizedOn,omitempty"`
}

type PipelinePermission

type PipelinePermission struct {
	Authorized   *bool               `json:"authorized,omitempty"`
	AuthorizedBy *webapi.IdentityRef `json:"authorizedBy,omitempty"`
	AuthorizedOn *azuredevops.Time   `json:"authorizedOn,omitempty"`
	Id           *int                `json:"id,omitempty"`
}

type PipelineProcessResources

type PipelineProcessResources struct {
	Resources *[]PipelineResourceReference `json:"resources,omitempty"`
}

type PipelineResourceReference

type PipelineResourceReference struct {
	Authorized   *bool             `json:"authorized,omitempty"`
	AuthorizedBy *uuid.UUID        `json:"authorizedBy,omitempty"`
	AuthorizedOn *azuredevops.Time `json:"authorizedOn,omitempty"`
	DefinitionId *int              `json:"definitionId,omitempty"`
	Id           *string           `json:"id,omitempty"`
	Type         *string           `json:"type,omitempty"`
}

type ResourcePipelinePermissions

type ResourcePipelinePermissions struct {
	AllPipelines *Permission               `json:"allPipelines,omitempty"`
	Pipelines    *[]PipelinePermission     `json:"pipelines,omitempty"`
	Resource     *pipelineschecks.Resource `json:"resource,omitempty"`
}

type UpdatePipelinePermisionsForResourceArgs

type UpdatePipelinePermisionsForResourceArgs struct {
	// (required)
	ResourceAuthorization *ResourcePipelinePermissions
	// (required) Project ID or project name
	Project *string
	// (required)
	ResourceType *string
	// (required)
	ResourceId *string
}

Arguments for the UpdatePipelinePermisionsForResource function

type UpdatePipelinePermisionsForResourcesArgs

type UpdatePipelinePermisionsForResourcesArgs struct {
	// (required)
	ResourceAuthorizations *[]ResourcePipelinePermissions
	// (required) Project ID or project name
	Project *string
}

Arguments for the UpdatePipelinePermisionsForResources function

Jump to

Keyboard shortcuts

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