accounts

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountStatusValues = accountStatusValuesType{
	None: "none",

	Enabled: "enabled",

	Disabled: "disabled",

	Deleted: "deleted",

	Moved: "moved",
}
View Source
var AccountTypeValues = accountTypeValuesType{
	Personal:     "personal",
	Organization: "organization",
}
View Source
var AccountUserStatusValues = accountUserStatusValuesType{
	None: "none",

	Active: "active",

	Disabled: "disabled",

	Deleted: "deleted",

	Pending: "pending",

	Expired: "expired",

	PendingDisabled: "pendingDisabled",
}
View Source
var ResourceAreaId, _ = uuid.Parse("0d55247a-1c47-4462-9b1f-5e2125590ee6")

Functions

This section is empty.

Types

type Account

type Account struct {
	// Identifier for an Account
	AccountId *uuid.UUID `json:"accountId,omitempty"`
	// Name for an account
	AccountName *string `json:"accountName,omitempty"`
	// Owner of account
	AccountOwner *uuid.UUID `json:"accountOwner,omitempty"`
	// Current account status
	AccountStatus *AccountStatus `json:"accountStatus,omitempty"`
	// Type of account: Personal, Organization
	AccountType *AccountType `json:"accountType,omitempty"`
	// Uri for an account
	AccountUri *string `json:"accountUri,omitempty"`
	// Who created the account
	CreatedBy *uuid.UUID `json:"createdBy,omitempty"`
	// Date account was created
	CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
	HasMoved    *bool             `json:"hasMoved,omitempty"`
	// Identity of last person to update the account
	LastUpdatedBy *uuid.UUID `json:"lastUpdatedBy,omitempty"`
	// Date account was last updated
	LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
	// Namespace for an account
	NamespaceId     *uuid.UUID `json:"namespaceId,omitempty"`
	NewCollectionId *uuid.UUID `json:"newCollectionId,omitempty"`
	// Organization that created the account
	OrganizationName *string `json:"organizationName,omitempty"`
	// Extended properties
	Properties interface{} `json:"properties,omitempty"`
	// Reason for current status
	StatusReason *string `json:"statusReason,omitempty"`
}

type AccountCreateInfoInternal

type AccountCreateInfoInternal struct {
	AccountName        *string                     `json:"accountName,omitempty"`
	Creator            *uuid.UUID                  `json:"creator,omitempty"`
	Organization       *string                     `json:"organization,omitempty"`
	Preferences        *AccountPreferencesInternal `json:"preferences,omitempty"`
	Properties         interface{}                 `json:"properties,omitempty"`
	ServiceDefinitions *[]azuredevops.KeyValuePair `json:"serviceDefinitions,omitempty"`
}

type AccountPreferencesInternal

type AccountPreferencesInternal struct {
	Culture  interface{} `json:"culture,omitempty"`
	Language interface{} `json:"language,omitempty"`
	TimeZone interface{} `json:"timeZone,omitempty"`
}

type AccountStatus

type AccountStatus string

type AccountType

type AccountType string

type AccountUserStatus

type AccountUserStatus string

type Client

type Client interface {
	// Get a list of accounts for a specific owner or a specific member. One of the following parameters is required: ownerId, memberId.
	GetAccounts(context.Context, GetAccountsArgs) (*[]Account, error)
}

func NewClient

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

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) GetAccounts

func (client *ClientImpl) GetAccounts(ctx context.Context, args GetAccountsArgs) (*[]Account, error)

Get a list of accounts for a specific owner or a specific member. One of the following parameters is required: ownerId, memberId.

type GetAccountsArgs

type GetAccountsArgs struct {
	// (optional) ID for the owner of the accounts.
	OwnerId *uuid.UUID
	// (optional) ID for a member of the accounts.
	MemberId *uuid.UUID
	// (optional)
	Properties *string
}

Arguments for the GetAccounts function

Jump to

Keyboard shortcuts

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