Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
Regenerated library to pick up latest schema changes
Browse files Browse the repository at this point in the history
  • Loading branch information
petemoore committed May 25, 2016
1 parent 7f03e25 commit 8d0b9d8
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 102 deletions.
48 changes: 24 additions & 24 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
//
// The source code of this go package was auto-generated from the API definition at
// http://references.taskcluster.net/auth/v1/api.json together with the input and output schemas it references, downloaded on
// Tue, 24 May 2016 at 20:28:00 UTC. The code was generated
// Wed, 25 May 2016 at 08:09:00 UTC. The code was generated
// by https://github.com/taskcluster/taskcluster-client-go/blob/master/build.sh.
package auth

Expand Down Expand Up @@ -107,7 +107,7 @@ func New(credentials *tcclient.Credentials) *Auth {
// Get a list of all clients. With `prefix`, only clients for which
// it is a prefix of the clientId are returned.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#listClients
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#listClients
func (myAuth *Auth) ListClients(prefix string) (*ListClientResponse, *tcclient.CallSummary, error) {
v := url.Values{}
v.Add("prefix", prefix)
Expand All @@ -118,7 +118,7 @@ func (myAuth *Auth) ListClients(prefix string) (*ListClientResponse, *tcclient.C

// Get information about a single client.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#client
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#client
func (myAuth *Auth) Client(clientId string) (*GetClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/clients/"+url.QueryEscape(clientId), new(GetClientResponse), nil)
Expand All @@ -141,7 +141,7 @@ func (myAuth *Auth) Client(clientId string) (*GetClientResponse, *tcclient.CallS
// Required scopes:
// * auth:create-client:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#createClient
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#createClient
func (myAuth *Auth) CreateClient(clientId string, payload *CreateClientRequest) (*CreateClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "PUT", "/clients/"+url.QueryEscape(clientId), new(CreateClientResponse), nil)
Expand All @@ -158,7 +158,7 @@ func (myAuth *Auth) CreateClient(clientId string, payload *CreateClientRequest)
// Required scopes:
// * auth:reset-access-token:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#resetAccessToken
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#resetAccessToken
func (myAuth *Auth) ResetAccessToken(clientId string) (*CreateClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "POST", "/clients/"+url.QueryEscape(clientId)+"/reset", new(CreateClientResponse), nil)
Expand All @@ -174,7 +174,7 @@ func (myAuth *Auth) ResetAccessToken(clientId string) (*CreateClientResponse, *t
// Required scopes:
// * auth:update-client:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#updateClient
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#updateClient
func (myAuth *Auth) UpdateClient(clientId string, payload *CreateClientRequest) (*GetClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "POST", "/clients/"+url.QueryEscape(clientId), new(GetClientResponse), nil)
Expand All @@ -190,7 +190,7 @@ func (myAuth *Auth) UpdateClient(clientId string, payload *CreateClientRequest)
// Required scopes:
// * auth:enable-client:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#enableClient
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#enableClient
func (myAuth *Auth) EnableClient(clientId string) (*GetClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "POST", "/clients/"+url.QueryEscape(clientId)+"/enable", new(GetClientResponse), nil)
Expand All @@ -205,7 +205,7 @@ func (myAuth *Auth) EnableClient(clientId string) (*GetClientResponse, *tcclient
// Required scopes:
// * auth:disable-client:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#disableClient
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#disableClient
func (myAuth *Auth) DisableClient(clientId string) (*GetClientResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "POST", "/clients/"+url.QueryEscape(clientId)+"/disable", new(GetClientResponse), nil)
Expand All @@ -218,7 +218,7 @@ func (myAuth *Auth) DisableClient(clientId string) (*GetClientResponse, *tcclien
// Required scopes:
// * auth:delete-client:<clientId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#deleteClient
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#deleteClient
func (myAuth *Auth) DeleteClient(clientId string) (*tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
_, callSummary, err := (&cd).APICall(nil, "DELETE", "/clients/"+url.QueryEscape(clientId), nil, nil)
Expand All @@ -228,7 +228,7 @@ func (myAuth *Auth) DeleteClient(clientId string) (*tcclient.CallSummary, error)
// Get a list of all roles, each role object also includes the list of
// scopes it expands to.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#listRoles
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#listRoles
func (myAuth *Auth) ListRoles() (*ListRolesResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/roles/", new(ListRolesResponse), nil)
Expand All @@ -238,7 +238,7 @@ func (myAuth *Auth) ListRoles() (*ListRolesResponse, *tcclient.CallSummary, erro
// Get information about a single role, including the set of scopes that the
// role expands to.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#role
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#role
func (myAuth *Auth) Role(roleId string) (*GetRoleResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/roles/"+url.QueryEscape(roleId), new(GetRoleResponse), nil)
Expand All @@ -255,7 +255,7 @@ func (myAuth *Auth) Role(roleId string) (*GetRoleResponse, *tcclient.CallSummary
// Required scopes:
// * auth:create-role:<roleId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#createRole
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#createRole
func (myAuth *Auth) CreateRole(roleId string, payload *CreateRoleRequest) (*GetRoleResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "PUT", "/roles/"+url.QueryEscape(roleId), new(GetRoleResponse), nil)
Expand All @@ -270,7 +270,7 @@ func (myAuth *Auth) CreateRole(roleId string, payload *CreateRoleRequest) (*GetR
// Required scopes:
// * auth:update-role:<roleId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#updateRole
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#updateRole
func (myAuth *Auth) UpdateRole(roleId string, payload *CreateRoleRequest) (*GetRoleResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "POST", "/roles/"+url.QueryEscape(roleId), new(GetRoleResponse), nil)
Expand All @@ -283,7 +283,7 @@ func (myAuth *Auth) UpdateRole(roleId string, payload *CreateRoleRequest) (*GetR
// Required scopes:
// * auth:delete-role:<roleId>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#deleteRole
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#deleteRole
func (myAuth *Auth) DeleteRole(roleId string) (*tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
_, callSummary, err := (&cd).APICall(nil, "DELETE", "/roles/"+url.QueryEscape(roleId), nil, nil)
Expand All @@ -293,7 +293,7 @@ func (myAuth *Auth) DeleteRole(roleId string) (*tcclient.CallSummary, error) {
// Return an expanded copy of the given scopeset, with scopes implied by any
// roles included.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#expandScopes
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#expandScopes
func (myAuth *Auth) ExpandScopes(payload *SetOfScopes) (*SetOfScopes, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "GET", "/scopes/expand", new(SetOfScopes), nil)
Expand All @@ -304,7 +304,7 @@ func (myAuth *Auth) ExpandScopes(payload *SetOfScopes) (*SetOfScopes, *tcclient.
// of scopes and scope restrictions (temporary credentials, assumeScopes, client scopes,
// and roles).
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#currentScopes
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#currentScopes
func (myAuth *Auth) CurrentScopes() (*SetOfScopes, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/scopes/current", new(SetOfScopes), nil)
Expand Down Expand Up @@ -367,7 +367,7 @@ func (myAuth *Auth) CurrentScopes() (*SetOfScopes, *tcclient.CallSummary, error)
// Required scopes:
// * auth:aws-s3:<level>:<bucket>/<prefix>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#awsS3Credentials
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#awsS3Credentials
func (myAuth *Auth) AwsS3Credentials(level, bucket, prefix string) (*AWSS3CredentialsResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/aws/s3/"+url.QueryEscape(level)+"/"+url.QueryEscape(bucket)+"/"+url.QueryEscape(prefix), new(AWSS3CredentialsResponse), nil)
Expand All @@ -392,7 +392,7 @@ func (myAuth *Auth) AwsS3Credentials_SignedURL(level, bucket, prefix string, dur
// Required scopes:
// * auth:azure-table-access:<account>/<table>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#azureTableSAS
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#azureTableSAS
func (myAuth *Auth) AzureTableSAS(account, table string) (*AzureSharedAccessSignatureResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/azure/"+url.QueryEscape(account)+"/table/"+url.QueryEscape(table)+"/read-write", new(AzureSharedAccessSignatureResponse), nil)
Expand Down Expand Up @@ -421,7 +421,7 @@ func (myAuth *Auth) AzureTableSAS_SignedURL(account, table string, duration time
// Required scopes:
// * auth:sentry:<project>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#sentryDSN
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#sentryDSN
func (myAuth *Auth) SentryDSN(project string) (*SentryDSNResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/sentry/"+url.QueryEscape(project)+"/dsn", new(SentryDSNResponse), nil)
Expand All @@ -446,7 +446,7 @@ func (myAuth *Auth) SentryDSN_SignedURL(project string, duration time.Duration)
// Required scopes:
// * auth:statsum:<project>
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#statsumToken
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#statsumToken
func (myAuth *Auth) StatsumToken(project string) (*StatsumTokenResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/statsum/"+url.QueryEscape(project)+"/token", new(StatsumTokenResponse), nil)
Expand All @@ -471,7 +471,7 @@ func (myAuth *Auth) StatsumToken_SignedURL(project string, duration time.Duratio
// credentials for authentication. This way we can use Hawk without having
// the secret credentials leave this service.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#authenticateHawk
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#authenticateHawk
func (myAuth *Auth) AuthenticateHawk(payload *HawkSignatureAuthenticationRequest) (*HawkSignatureAuthenticationResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "POST", "/authenticate-hawk", new(HawkSignatureAuthenticationResponse), nil)
Expand All @@ -490,7 +490,7 @@ func (myAuth *Auth) AuthenticateHawk(payload *HawkSignatureAuthenticationRequest
// from the request body. On success, the response contains the clientId
// and scopes as seen by the API method.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#testAuthenticate
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#testAuthenticate
func (myAuth *Auth) TestAuthenticate(payload *TestAuthenticateRequest) (*TestAuthenticateResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(payload, "POST", "/test-authenticate", new(TestAuthenticateResponse), nil)
Expand All @@ -513,7 +513,7 @@ func (myAuth *Auth) TestAuthenticate(payload *TestAuthenticateRequest) (*TestAut
// This method may later be extended to allow specification of client and
// required scopes via query arguments.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#testAuthenticateGet
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#testAuthenticateGet
func (myAuth *Auth) TestAuthenticateGet() (*TestAuthenticateResponse, *tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
responseObject, callSummary, err := (&cd).APICall(nil, "GET", "/test-authenticate-get/", new(TestAuthenticateResponse), nil)
Expand All @@ -526,7 +526,7 @@ func (myAuth *Auth) TestAuthenticateGet() (*TestAuthenticateResponse, *tcclient.
//
// **Warning** this api end-point is **not stable**.
//
// See https://docs.taskcluster.net/reference/platform/auth/api-docs/#ping
// See https://docs.taskcluster.net/reference/platform/auth/api-docs#ping
func (myAuth *Auth) Ping() (*tcclient.CallSummary, error) {
cd := tcclient.ConnectionData(*myAuth)
_, callSummary, err := (&cd).APICall(nil, "GET", "/ping", nil, nil)
Expand Down

0 comments on commit 8d0b9d8

Please sign in to comment.