All URIs are relative to https://api.mach.cloud
| Method | HTTP request | Description |
|---|---|---|
| OrganizationCreate | Post /organizations | Create new organization |
| OrganizationDelete | Delete /organizations/{organization} | Delete an organization |
| OrganizationGet | Get /organizations/{organization} | Get organization details |
| OrganizationPatch | Patch /organizations/{organization} | Update an organization |
| OrganizationQuery | Get /organizations | List all organizations |
| OrganizationUpdate | Put /organizations/{organization} | Update an organization |
| OrganizationUserInvite | Post /organizations/{organization}/users/invite | Invite a user to the organization |
| OrganizationUserInviteDelete | Delete /organizations/{organization}/users/invite/{id} | Cancel an invite |
| OrganizationUserInvitePatch | Patch /organizations/{organization}/users/invite/{id} | Accept or reject an invite |
| OrganizationUserInviteUpdate | Put /organizations/{organization}/users/invite/{id} | Accept or reject an invite |
| OrganizationUserInviteView | Get /organizations/{organization}/users/invite/{id} | View invite information |
| OrganizationUserQuery | Get /organizations/{organization}/users/invite | List all users in an organization |
| ProjectCreate | Post /organizations/{organization}/projects | Create new project in an organization |
| ProjectDelete | Delete /organizations/{organization}/projects/{project} | Delete a project |
| ProjectGet | Get /organizations/{organization}/projects/{project} | Get project details |
| ProjectPatch | Patch /organizations/{organization}/projects/{project} | Update a project |
| ProjectQuery | Get /organizations/{organization}/projects | List all projects in an organization |
| ProjectUpdate | Put /organizations/{organization}/projects/{project} | Update a project |
Organization OrganizationCreate(ctx).OrganizationDraft(organizationDraft).Execute()
Create new organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organizationDraft := *openapiclient.NewOrganizationDraft("Key_example", "Name_example") // OrganizationDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationCreate(context.Background()).OrganizationDraft(organizationDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationCreate`: Organization
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationCreate`: %v\n", resp)
}Other parameters are passed through a pointer to a apiOrganizationCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationDraft | OrganizationDraft |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationDelete(ctx, organization).Execute()
Delete an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.OrganizationManagementApi.OrganizationDelete(context.Background(), organization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization OrganizationGet(ctx, organization).Execute()
Get organization details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationGet(context.Background(), organization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationGet`: Organization
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization OrganizationPatch(ctx, organization).PatchedOrganizationDraft(patchedOrganizationDraft).Execute()
Update an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
patchedOrganizationDraft := *openapiclient.NewPatchedOrganizationDraft() // PatchedOrganizationDraft | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationPatch(context.Background(), organization).PatchedOrganizationDraft(patchedOrganizationDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationPatch`: Organization
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationPatch`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationPatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
patchedOrganizationDraft | PatchedOrganizationDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationPaginator OrganizationQuery(ctx).Limit(limit).Offset(offset).Execute()
List all organizations
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
limit := int32(56) // int32 | Number of results to return per page. (optional)
offset := int32(56) // int32 | The initial index from which to return the results. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationQuery(context.Background()).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationQuery`: OrganizationPaginator
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationQuery`: %v\n", resp)
}Other parameters are passed through a pointer to a apiOrganizationQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int32 | Number of results to return per page. | |
| offset | int32 | The initial index from which to return the results. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization OrganizationUpdate(ctx, organization).OrganizationDraft(organizationDraft).Execute()
Update an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
organizationDraft := *openapiclient.NewOrganizationDraft("Key_example", "Name_example") // OrganizationDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUpdate(context.Background(), organization).OrganizationDraft(organizationDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUpdate`: Organization
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
organizationDraft | OrganizationDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUser OrganizationUserInvite(ctx, organization).UserInviteDraft(userInviteDraft).Execute()
Invite a user to the organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
userInviteDraft := *openapiclient.NewUserInviteDraft("CreatedBy_example", "Email_example", "Organization_example", "Role_example") // UserInviteDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUserInvite(context.Background(), organization).UserInviteDraft(userInviteDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserInvite``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUserInvite`: OrganizationUser
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUserInvite`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationUserInviteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
userInviteDraft | UserInviteDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUserInviteDelete(ctx, organization, id).Execute()
Cancel an invite
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.OrganizationManagementApi.OrganizationUserInviteDelete(context.Background(), organization, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserInviteDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| id | string |
Other parameters are passed through a pointer to a apiOrganizationUserInviteDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUser OrganizationUserInvitePatch(ctx, organization, id).PatchedUserInviteDraft(patchedUserInviteDraft).Execute()
Accept or reject an invite
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
id := "id_example" // string |
patchedUserInviteDraft := *openapiclient.NewPatchedUserInviteDraft() // PatchedUserInviteDraft | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUserInvitePatch(context.Background(), organization, id).PatchedUserInviteDraft(patchedUserInviteDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserInvitePatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUserInvitePatch`: OrganizationUser
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUserInvitePatch`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| id | string |
Other parameters are passed through a pointer to a apiOrganizationUserInvitePatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
patchedUserInviteDraft | PatchedUserInviteDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUser OrganizationUserInviteUpdate(ctx, organization, id).UserInviteDraft(userInviteDraft).Execute()
Accept or reject an invite
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
id := "id_example" // string |
userInviteDraft := *openapiclient.NewUserInviteDraft("CreatedBy_example", "Email_example", "Organization_example", "Role_example") // UserInviteDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUserInviteUpdate(context.Background(), organization, id).UserInviteDraft(userInviteDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserInviteUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUserInviteUpdate`: OrganizationUser
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUserInviteUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| id | string |
Other parameters are passed through a pointer to a apiOrganizationUserInviteUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
userInviteDraft | UserInviteDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUser OrganizationUserInviteView(ctx, organization, id).Execute()
View invite information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
id := "id_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUserInviteView(context.Background(), organization, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserInviteView``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUserInviteView`: OrganizationUser
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUserInviteView`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| id | string |
Other parameters are passed through a pointer to a apiOrganizationUserInviteViewRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationUserPaginator OrganizationUserQuery(ctx, organization).Limit(limit).Offset(offset).Execute()
List all users in an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
limit := int32(56) // int32 | Number of results to return per page. (optional)
offset := int32(56) // int32 | The initial index from which to return the results. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.OrganizationUserQuery(context.Background(), organization).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.OrganizationUserQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationUserQuery`: OrganizationUserPaginator
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.OrganizationUserQuery`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiOrganizationUserQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | Number of results to return per page. | offset | int32 | The initial index from which to return the results. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project ProjectCreate(ctx, organization).ProjectDraft(projectDraft).Execute()
Create new project in an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
projectDraft := *openapiclient.NewProjectDraft("Key_example", "Name_example") // ProjectDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.ProjectCreate(context.Background(), organization).ProjectDraft(projectDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectCreate`: Project
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.ProjectCreate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiProjectCreateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
projectDraft | ProjectDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectDelete(ctx, organization, project).Execute()
Delete a project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
project := "project_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.OrganizationManagementApi.ProjectDelete(context.Background(), organization, project).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| project | string |
Other parameters are passed through a pointer to a apiProjectDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project ProjectGet(ctx, organization, project).Execute()
Get project details
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
project := "project_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.ProjectGet(context.Background(), organization, project).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectGet`: Project
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.ProjectGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| project | string |
Other parameters are passed through a pointer to a apiProjectGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project ProjectPatch(ctx, organization, project).PatchedProjectDraft(patchedProjectDraft).Execute()
Update a project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
project := "project_example" // string |
patchedProjectDraft := *openapiclient.NewPatchedProjectDraft() // PatchedProjectDraft | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.ProjectPatch(context.Background(), organization, project).PatchedProjectDraft(patchedProjectDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectPatch`: Project
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.ProjectPatch`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| project | string |
Other parameters are passed through a pointer to a apiProjectPatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
patchedProjectDraft | PatchedProjectDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectPaginator ProjectQuery(ctx, organization).Limit(limit).Offset(offset).Execute()
List all projects in an organization
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
limit := int32(56) // int32 | Number of results to return per page. (optional)
offset := int32(56) // int32 | The initial index from which to return the results. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.ProjectQuery(context.Background(), organization).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectQuery``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectQuery`: ProjectPaginator
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.ProjectQuery`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string |
Other parameters are passed through a pointer to a apiProjectQueryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
limit | int32 | Number of results to return per page. | offset | int32 | The initial index from which to return the results. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project ProjectUpdate(ctx, organization, project).ProjectDraft(projectDraft).Execute()
Update a project
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
organization := "organization_example" // string |
project := "project_example" // string |
projectDraft := *openapiclient.NewProjectDraft("Key_example", "Name_example") // ProjectDraft |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationManagementApi.ProjectUpdate(context.Background(), organization, project).ProjectDraft(projectDraft).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationManagementApi.ProjectUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ProjectUpdate`: Project
fmt.Fprintf(os.Stdout, "Response from `OrganizationManagementApi.ProjectUpdate`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| project | string |
Other parameters are passed through a pointer to a apiProjectUpdateRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
projectDraft | ProjectDraft | |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]