juju: github.com/juju/juju/provider/azure/internal/ad Index | Files

package ad

import "github.com/juju/juju/provider/azure/internal/ad"

Index

Package Files

client.go models.go serviceprincipals.go users.go

Constants

const (
    // APIVersion is the version of the Active Directory API
    APIVersion = "1.6"
)

func WithOdataErrorUnlessStatusCode Uses

func WithOdataErrorUnlessStatusCode(codes ...int) autorest.RespondDecorator

WithOdataErrorUnlessStatusCode returns a RespondDecorator that emits an azure.RequestError by reading the response body unless the response HTTP status code is among the set passed.

If there is a chance service may return responses other than the Azure error format and the response cannot be parsed into an error, a decoding error will be returned containing the response body. In any case, the Responder will return an error if the status code is not satisfied.

If this Responder returns an error, the response body will be replaced with an in-memory reader, which needs no further closing.

NOTE(axw) this function is based on go-autorest/autorest/azure.WithErrorUnlessStatusCode. The only difference is that we extract "odata.error", instead of "error", from the response body; and we do not extract the message, which is in a different format for odata.error, and irrelevant to us.

type AADObject Uses

type AADObject struct {
    autorest.Response     `json:"-"`
    ObjectID              string   `json:"objectId"`
    ObjectType            string   `json:"objectType"`
    DisplayName           string   `json:"displayName"`
    UserPrincipalName     string   `json:"userPrincipalName"`
    Mail                  string   `json:"mail"`
    MailEnabled           bool     `json:"mailEnabled"`
    SecurityEnabled       bool     `json:"securityEnabled"`
    SignInName            string   `json:"signInName"`
    ServicePrincipalNames []string `json:"servicePrincipalNames"`
    UserType              string   `json:"userType"`
}

type ManagementClient Uses

type ManagementClient struct {
    autorest.Client
    BaseURI    string
    APIVersion string
}

func NewManagementClient Uses

func NewManagementClient(baseURI string) ManagementClient

type PasswordCredential Uses

type PasswordCredential struct {
    CustomKeyIdentifier []byte    `json:"customKeyIdentifier,omitempty"`
    KeyId               string    `json:"keyId,omitempty"`
    Value               string    `json:"value,omitempty"`
    StartDate           time.Time `json:"startDate,omitempty"`
    EndDate             time.Time `json:"endDate,omitempty"`
}

type PasswordCredentialsListResult Uses

type PasswordCredentialsListResult struct {
    autorest.Response `json:"-"`
    Value             []PasswordCredential `json:"value,omitempty"`
}

type PasswordCredentialsUpdateParameters Uses

type PasswordCredentialsUpdateParameters struct {
    Value []PasswordCredential `json:"value,omitempty"`
}

type ServicePrincipal Uses

type ServicePrincipal struct {
    autorest.Response `json:"-"`
    ApplicationID     string `json:"appId,omitempty"`
    ObjectID          string `json:"objectId,omitempty"`
    AccountEnabled    bool   `json:"accountEnabled,omitempty"`
}

type ServicePrincipalCreateParameters Uses

type ServicePrincipalCreateParameters struct {
    ApplicationID       string               `json:"appId,omitempty"`
    AccountEnabled      bool                 `json:"accountEnabled,omitempty"`
    PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"`
}

type ServicePrincipalListResult Uses

type ServicePrincipalListResult struct {
    autorest.Response `json:"-"`
    Value             []ServicePrincipal `json:"value,omitempty"`
}

type ServicePrincipalsClient Uses

type ServicePrincipalsClient struct {
    ManagementClient
}

func (ServicePrincipalsClient) Create Uses

func (client ServicePrincipalsClient) Create(parameters ServicePrincipalCreateParameters, cancel <-chan struct{}) (result ServicePrincipal, err error)

func (ServicePrincipalsClient) CreatePreparer Uses

func (client ServicePrincipalsClient) CreatePreparer(parameters ServicePrincipalCreateParameters, cancel <-chan struct{}) (*http.Request, error)

func (ServicePrincipalsClient) CreateResponder Uses

func (client ServicePrincipalsClient) CreateResponder(resp *http.Response) (result ServicePrincipal, err error)

func (ServicePrincipalsClient) CreateSender Uses

func (client ServicePrincipalsClient) CreateSender(req *http.Request) (*http.Response, error)

func (ServicePrincipalsClient) List Uses

func (client ServicePrincipalsClient) List(filter string) (result ServicePrincipalListResult, err error)

func (ServicePrincipalsClient) ListPasswordCredentials Uses

func (client ServicePrincipalsClient) ListPasswordCredentials(objectId string) (result PasswordCredentialsListResult, err error)

func (ServicePrincipalsClient) ListPasswordCredentialsPreparer Uses

func (client ServicePrincipalsClient) ListPasswordCredentialsPreparer(objectId string) (*http.Request, error)

func (ServicePrincipalsClient) ListPasswordCredentialsResponder Uses

func (client ServicePrincipalsClient) ListPasswordCredentialsResponder(resp *http.Response) (result PasswordCredentialsListResult, err error)

func (ServicePrincipalsClient) ListPasswordCredentialsSender Uses

func (client ServicePrincipalsClient) ListPasswordCredentialsSender(req *http.Request) (*http.Response, error)

func (ServicePrincipalsClient) ListPreparer Uses

func (client ServicePrincipalsClient) ListPreparer(filter string) (*http.Request, error)

func (ServicePrincipalsClient) ListResponder Uses

func (client ServicePrincipalsClient) ListResponder(resp *http.Response) (result ServicePrincipalListResult, err error)

func (ServicePrincipalsClient) ListSender Uses

func (client ServicePrincipalsClient) ListSender(req *http.Request) (*http.Response, error)

func (ServicePrincipalsClient) UpdatePasswordCredentials Uses

func (client ServicePrincipalsClient) UpdatePasswordCredentials(objectId string, parameters PasswordCredentialsUpdateParameters) (result autorest.Response, err error)

func (ServicePrincipalsClient) UpdatePasswordCredentialsPreparer Uses

func (client ServicePrincipalsClient) UpdatePasswordCredentialsPreparer(objectId string, parameters PasswordCredentialsUpdateParameters) (*http.Request, error)

func (ServicePrincipalsClient) UpdatePasswordCredentialsResponder Uses

func (client ServicePrincipalsClient) UpdatePasswordCredentialsResponder(resp *http.Response) (result autorest.Response, err error)

func (ServicePrincipalsClient) UpdatePasswordCredentialsSender Uses

func (client ServicePrincipalsClient) UpdatePasswordCredentialsSender(req *http.Request) (*http.Response, error)

type UsersClient Uses

type UsersClient struct {
    ManagementClient
}

func (UsersClient) GetCurrentUser Uses

func (client UsersClient) GetCurrentUser() (result AADObject, err error)

func (UsersClient) GetCurrentUserPreparer Uses

func (client UsersClient) GetCurrentUserPreparer() (*http.Request, error)

func (UsersClient) GetCurrentUserResponder Uses

func (client UsersClient) GetCurrentUserResponder(resp *http.Response) (result AADObject, err error)

func (UsersClient) GetCurrentUserSender Uses

func (client UsersClient) GetCurrentUserSender(req *http.Request) (*http.Response, error)

Package ad imports 9 packages (graph) and is imported by 1 packages. Updated 2017-10-22. Refresh now. Tools for package owners.