All URIs are relative to https://api.hyperone.com/v2
Method | HTTP request | Description |
---|---|---|
IamProjectBillingList | Get /iam/project/{projectId}/billing | List iam/project.billing |
IamProjectCostGet | Get /iam/project/{projectId}/cost/{costId} | Get iam/project.cost |
IamProjectCostList | Get /iam/project/{projectId}/cost | List iam/project.cost |
IamProjectCostSeriesList | Get /iam/project/{projectId}/cost/{costId}/series | List iam/project.series |
IamProjectCreate | Post /iam/project | Create iam/project |
IamProjectCredentialStoreCreate | Post /iam/project/{projectId}/credentialStore | Create iam/project.credentialStore |
IamProjectCredentialStoreDelete | Delete /iam/project/{projectId}/credentialStore/{credentialStoreId} | Delete iam/project.credentialStore |
IamProjectCredentialStoreGet | Get /iam/project/{projectId}/credentialStore/{credentialStoreId} | Get iam/project.credentialStore |
IamProjectCredentialStoreList | Get /iam/project/{projectId}/credentialStore | List iam/project.credentialStore |
IamProjectCredentialStorePatch | Patch /iam/project/{projectId}/credentialStore/{credentialStoreId} | Update iam/project.credentialStore |
IamProjectDelete | Delete /iam/project/{projectId} | Delete iam/project |
IamProjectEventGet | Get /iam/project/{projectId}/event/{eventId} | Get iam/project.event |
IamProjectEventList | Get /iam/project/{projectId}/event | List iam/project.event |
IamProjectGet | Get /iam/project/{projectId} | Get iam/project |
IamProjectInvitationAccept | Post /iam/project/{projectId}/invitation/{invitationId}/actions/accept | Accept iam/project.invitation |
IamProjectInvitationDelete | Delete /iam/project/{projectId}/invitation/{invitationId} | Delete iam/project.invitation |
IamProjectInvitationGet | Get /iam/project/{projectId}/invitation/{invitationId} | Get iam/project.invitation |
IamProjectInvitationList | Get /iam/project/{projectId}/invitation | List iam/project.invitation |
IamProjectInvoiceList | Get /iam/project/{projectId}/invoice | List iam/project.invoice |
IamProjectList | Get /iam/project | List iam/project |
IamProjectOwnershipCreate | Post /iam/project/{projectId}/ownership | Create iam/project.ownership |
IamProjectOwnershipDelete | Delete /iam/project/{projectId}/ownership/{ownershipId} | Delete iam/project.ownership |
IamProjectOwnershipGet | Get /iam/project/{projectId}/ownership/{ownershipId} | Get iam/project.ownership |
IamProjectOwnershipList | Get /iam/project/{projectId}/ownership | List iam/project.ownership |
IamProjectPaymentList | Get /iam/project/{projectId}/payment | List iam/project.payment |
IamProjectProformaList | Get /iam/project/{projectId}/proforma | List iam/project.proforma |
IamProjectQuotaGet | Get /iam/project/{projectId}/quota/{quotaId} | Get iam/project.quota |
IamProjectQuotaLimitPatch | Patch /iam/project/{projectId}/quota/{quotaId}/limit | Update iam/project.limit |
IamProjectQuotaList | Get /iam/project/{projectId}/quota | List iam/project.quota |
IamProjectServiceGet | Get /iam/project/{projectId}/service/{serviceId} | Get iam/project.service |
IamProjectServiceList | Get /iam/project/{projectId}/service | List iam/project.service |
IamProjectTagCreate | Post /iam/project/{projectId}/tag | Create iam/project.tag |
IamProjectTagDelete | Delete /iam/project/{projectId}/tag/{tagId} | Delete iam/project.tag |
IamProjectTagGet | Get /iam/project/{projectId}/tag/{tagId} | Get iam/project.tag |
IamProjectTagList | Get /iam/project/{projectId}/tag | List iam/project.tag |
IamProjectTagPut | Put /iam/project/{projectId}/tag | Replace iam/project.tag |
IamProjectThresholdCreate | Post /iam/project/{projectId}/threshold | Create iam/project.threshold |
IamProjectThresholdDelete | Delete /iam/project/{projectId}/threshold/{thresholdId} | Delete iam/project.threshold |
IamProjectThresholdGet | Get /iam/project/{projectId}/threshold/{thresholdId} | Get iam/project.threshold |
IamProjectThresholdList | Get /iam/project/{projectId}/threshold | List iam/project.threshold |
IamProjectTransfer | Post /iam/project/{projectId}/actions/transfer | Transfer iam/project |
IamProjectUpdate | Patch /iam/project/{projectId} | Update iam/project |
IamProjectUsageGet | Get /iam/project/{projectId}/usage/{usageId} | Get iam/project.usage |
IamProjectUsageList | Get /iam/project/{projectId}/usage | List iam/project.usage |
IamProjectUsageSeriesList | Get /iam/project/{projectId}/usage/{usageId}/series | List iam/project.series |
[]Billing IamProjectBillingList(ctx, projectId).Start(start).End(end).ResourceType(resourceType).Execute()
List iam/project.billing
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
start := time.Now() // time.Time | start (optional)
end := time.Now() // time.Time | end (optional)
resourceType := "resourceType_example" // string | resource.type (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectBillingList(context.Background(), projectId).Start(start).End(end).ResourceType(resourceType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectBillingList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectBillingList`: []Billing
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectBillingList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectBillingListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
start | time.Time | start | end | time.Time | end | resourceType | string | resource.type |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Metric IamProjectCostGet(ctx, projectId, costId).Execute()
Get iam/project.cost
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
costId := "costId_example" // string | costId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCostGet(context.Background(), projectId, costId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCostGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCostGet`: Metric
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCostGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
costId | string | costId |
Other parameters are passed through a pointer to a apiIamProjectCostGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Metric IamProjectCostList(ctx, projectId).Execute()
List iam/project.cost
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCostList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCostList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCostList`: []Metric
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCostList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectCostListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Point IamProjectCostSeriesList(ctx, projectId, costId).Timespan(timespan).Execute()
List iam/project.series
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
costId := "costId_example" // string | costId
timespan := "timespan_example" // string | timespan (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCostSeriesList(context.Background(), projectId, costId).Timespan(timespan).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCostSeriesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCostSeriesList`: []Point
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCostSeriesList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
costId | string | costId |
Other parameters are passed through a pointer to a apiIamProjectCostSeriesListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
timespan | string | timespan |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectCreate(ctx).IamProjectCreate(iamProjectCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Create iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
iamProjectCreate := *openapiclient.NewIamProjectCreate("Name_example", "Organisation_example") // IamProjectCreate |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCreate(context.Background()).IamProjectCreate(iamProjectCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCreate`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCreate`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiIamProjectCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
iamProjectCreate | IamProjectCreate | ||
xIdempotencyKey | string | Idempotency key | |
xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectCredential IamProjectCredentialStoreCreate(ctx, projectId).ProjectCredential(projectCredential).Execute()
Create iam/project.credentialStore
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
projectCredential := *openapiclient.NewProjectCredential("Name_example", "Type_example", "Value_example") // ProjectCredential |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCredentialStoreCreate(context.Background(), projectId).ProjectCredential(projectCredential).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCredentialStoreCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCredentialStoreCreate`: ProjectCredential
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCredentialStoreCreate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectCredentialStoreCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
projectCredential | ProjectCredential | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectCredentialStoreDelete(ctx, projectId, credentialStoreId).Execute()
Delete iam/project.credentialStore
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
credentialStoreId := "credentialStoreId_example" // string | credentialStoreId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCredentialStoreDelete(context.Background(), projectId, credentialStoreId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCredentialStoreDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCredentialStoreDelete`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCredentialStoreDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
credentialStoreId | string | credentialStoreId |
Other parameters are passed through a pointer to a apiIamProjectCredentialStoreDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectCredential IamProjectCredentialStoreGet(ctx, projectId, credentialStoreId).Execute()
Get iam/project.credentialStore
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
credentialStoreId := "credentialStoreId_example" // string | credentialStoreId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCredentialStoreGet(context.Background(), projectId, credentialStoreId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCredentialStoreGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCredentialStoreGet`: ProjectCredential
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCredentialStoreGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
credentialStoreId | string | credentialStoreId |
Other parameters are passed through a pointer to a apiIamProjectCredentialStoreGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ProjectCredential IamProjectCredentialStoreList(ctx, projectId).Execute()
List iam/project.credentialStore
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCredentialStoreList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCredentialStoreList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCredentialStoreList`: []ProjectCredential
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCredentialStoreList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectCredentialStoreListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectCredential IamProjectCredentialStorePatch(ctx, projectId, credentialStoreId).IamProjectCredentialStorePatch(iamProjectCredentialStorePatch).Execute()
Update iam/project.credentialStore
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
credentialStoreId := "credentialStoreId_example" // string | credentialStoreId
iamProjectCredentialStorePatch := *openapiclient.NewIamProjectCredentialStorePatch("Name_example") // IamProjectCredentialStorePatch |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectCredentialStorePatch(context.Background(), projectId, credentialStoreId).IamProjectCredentialStorePatch(iamProjectCredentialStorePatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectCredentialStorePatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectCredentialStorePatch`: ProjectCredential
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectCredentialStorePatch`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
credentialStoreId | string | credentialStoreId |
Other parameters are passed through a pointer to a apiIamProjectCredentialStorePatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectCredentialStorePatch | IamProjectCredentialStorePatch | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectDelete(ctx, projectId).Execute()
Delete iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectDelete(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectDelete`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Event IamProjectEventGet(ctx, projectId, eventId).Execute()
Get iam/project.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
eventId := "eventId_example" // string | eventId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectEventGet(context.Background(), projectId, eventId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectEventGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectEventGet`: Event
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectEventGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
eventId | string | eventId |
Other parameters are passed through a pointer to a apiIamProjectEventGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Event IamProjectEventList(ctx, projectId).Limit(limit).Skip(skip).Execute()
List iam/project.event
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
limit := float32(8.14) // float32 | $limit (optional) (default to 100)
skip := float32(8.14) // float32 | $skip (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectEventList(context.Background(), projectId).Limit(limit).Skip(skip).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectEventList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectEventList`: []Event
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectEventList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectEventListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
limit | float32 | $limit | [default to 100] skip | float32 | $skip |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectGet(ctx, projectId).Execute()
Get iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectGet(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectGet`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Invitation IamProjectInvitationAccept(ctx, projectId, invitationId).IamProjectInvitationAccept(iamProjectInvitationAccept).Execute()
Accept iam/project.invitation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
invitationId := "invitationId_example" // string | invitationId
iamProjectInvitationAccept := *openapiclient.NewIamProjectInvitationAccept("Token_example") // IamProjectInvitationAccept |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectInvitationAccept(context.Background(), projectId, invitationId).IamProjectInvitationAccept(iamProjectInvitationAccept).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectInvitationAccept``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectInvitationAccept`: Invitation
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectInvitationAccept`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
invitationId | string | invitationId |
Other parameters are passed through a pointer to a apiIamProjectInvitationAcceptRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectInvitationAccept | IamProjectInvitationAccept | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamProjectInvitationDelete(ctx, projectId, invitationId).Execute()
Delete iam/project.invitation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
invitationId := "invitationId_example" // string | invitationId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectInvitationDelete(context.Background(), projectId, invitationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectInvitationDelete``: %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. | |
projectId | string | Project Id | |
invitationId | string | invitationId |
Other parameters are passed through a pointer to a apiIamProjectInvitationDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Invitation IamProjectInvitationGet(ctx, projectId, invitationId).Execute()
Get iam/project.invitation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
invitationId := "invitationId_example" // string | invitationId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectInvitationGet(context.Background(), projectId, invitationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectInvitationGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectInvitationGet`: Invitation
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectInvitationGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
invitationId | string | invitationId |
Other parameters are passed through a pointer to a apiIamProjectInvitationGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Invitation IamProjectInvitationList(ctx, projectId).Resource(resource).Execute()
List iam/project.invitation
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
resource := "resource_example" // string | resource (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectInvitationList(context.Background(), projectId).Resource(resource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectInvitationList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectInvitationList`: []Invitation
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectInvitationList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectInvitationListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
resource | string | resource |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Invoice IamProjectInvoiceList(ctx, projectId).Execute()
List iam/project.invoice
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectInvoiceList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectInvoiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectInvoiceList`: []Invoice
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectInvoiceList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectInvoiceListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Project IamProjectList(ctx).Name(name).Limit(limit).Active(active).Organisation(organisation).Lean(lean).TagValue(tagValue).TagKey(tagKey).Execute()
List iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
name := "name_example" // string | Filter by name (optional)
limit := float32(8.14) // float32 | Filter by $limit (optional)
active := true // bool | Filter by active (optional) (default to false)
organisation := "organisation_example" // string | Filter by organisation (optional)
lean := true // bool | return a lightweight version of the resource (optional) (default to false)
tagValue := "tagValue_example" // string | Filter by tag.value (optional)
tagKey := "tagKey_example" // string | Filter by tag.key (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectList(context.Background()).Name(name).Limit(limit).Active(active).Organisation(organisation).Lean(lean).TagValue(tagValue).TagKey(tagKey).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectList`: []Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiIamProjectListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
name | string | Filter by name | |
limit | float32 | Filter by $limit | |
active | bool | Filter by active | [default to false] |
organisation | string | Filter by organisation | |
lean | bool | return a lightweight version of the resource | [default to false] |
tagValue | string | Filter by tag.value | |
tagKey | string | Filter by tag.key |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectOwnershipCreate(ctx, projectId).IamProjectOwnershipCreate(iamProjectOwnershipCreate).Execute()
Create iam/project.ownership
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
iamProjectOwnershipCreate := *openapiclient.NewIamProjectOwnershipCreate("Email_example") // IamProjectOwnershipCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectOwnershipCreate(context.Background(), projectId).IamProjectOwnershipCreate(iamProjectOwnershipCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectOwnershipCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectOwnershipCreate`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectOwnershipCreate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectOwnershipCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectOwnershipCreate | IamProjectOwnershipCreate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamProjectOwnershipDelete(ctx, projectId, ownershipId).Execute()
Delete iam/project.ownership
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
ownershipId := "ownershipId_example" // string | ownershipId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectOwnershipDelete(context.Background(), projectId, ownershipId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectOwnershipDelete``: %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. | |
projectId | string | Project Id | |
ownershipId | string | ownershipId |
Other parameters are passed through a pointer to a apiIamProjectOwnershipDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Ownership IamProjectOwnershipGet(ctx, projectId, ownershipId).Execute()
Get iam/project.ownership
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
ownershipId := "ownershipId_example" // string | ownershipId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectOwnershipGet(context.Background(), projectId, ownershipId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectOwnershipGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectOwnershipGet`: Ownership
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectOwnershipGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
ownershipId | string | ownershipId |
Other parameters are passed through a pointer to a apiIamProjectOwnershipGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Ownership IamProjectOwnershipList(ctx, projectId).Execute()
List iam/project.ownership
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectOwnershipList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectOwnershipList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectOwnershipList`: []Ownership
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectOwnershipList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectOwnershipListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Payment IamProjectPaymentList(ctx, projectId).Execute()
List iam/project.payment
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectPaymentList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectPaymentList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectPaymentList`: []Payment
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectPaymentList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectPaymentListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Proforma IamProjectProformaList(ctx, projectId).Execute()
List iam/project.proforma
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectProformaList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectProformaList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectProformaList`: []Proforma
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectProformaList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectProformaListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Quota IamProjectQuotaGet(ctx, projectId, quotaId).Execute()
Get iam/project.quota
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
quotaId := "quotaId_example" // string | quotaId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectQuotaGet(context.Background(), projectId, quotaId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectQuotaGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectQuotaGet`: Quota
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectQuotaGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
quotaId | string | quotaId |
Other parameters are passed through a pointer to a apiIamProjectQuotaGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
QuotaLimit IamProjectQuotaLimitPatch(ctx, projectId, quotaId).IamProjectQuotaLimitPatch(iamProjectQuotaLimitPatch).Execute()
Update iam/project.limit
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
quotaId := "quotaId_example" // string | quotaId
iamProjectQuotaLimitPatch := *openapiclient.NewIamProjectQuotaLimitPatch() // IamProjectQuotaLimitPatch |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectQuotaLimitPatch(context.Background(), projectId, quotaId).IamProjectQuotaLimitPatch(iamProjectQuotaLimitPatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectQuotaLimitPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectQuotaLimitPatch`: QuotaLimit
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectQuotaLimitPatch`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
quotaId | string | quotaId |
Other parameters are passed through a pointer to a apiIamProjectQuotaLimitPatchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectQuotaLimitPatch | IamProjectQuotaLimitPatch | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Quota IamProjectQuotaList(ctx, projectId).Execute()
List iam/project.quota
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectQuotaList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectQuotaList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectQuotaList`: []Quota
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectQuotaList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectQuotaListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourceService IamProjectServiceGet(ctx, projectId, serviceId).Execute()
Get iam/project.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
serviceId := "serviceId_example" // string | serviceId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectServiceGet(context.Background(), projectId, serviceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectServiceGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectServiceGet`: ResourceService
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectServiceGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
serviceId | string | serviceId |
Other parameters are passed through a pointer to a apiIamProjectServiceGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ResourceService IamProjectServiceList(ctx, projectId).Execute()
List iam/project.service
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectServiceList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectServiceList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectServiceList`: []ResourceService
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectServiceList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectServiceListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag IamProjectTagCreate(ctx, projectId).Tag(tag).Execute()
Create iam/project.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTagCreate(context.Background(), projectId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTagCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectTagCreate`: Tag
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectTagCreate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectTagCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
tag | Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamProjectTagDelete(ctx, projectId, tagId).Execute()
Delete iam/project.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTagDelete(context.Background(), projectId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTagDelete``: %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. | |
projectId | string | Project Id | |
tagId | string | tagId |
Other parameters are passed through a pointer to a apiIamProjectTagDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tag IamProjectTagGet(ctx, projectId, tagId).Execute()
Get iam/project.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
tagId := "tagId_example" // string | tagId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTagGet(context.Background(), projectId, tagId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTagGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectTagGet`: Tag
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectTagGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
tagId | string | tagId |
Other parameters are passed through a pointer to a apiIamProjectTagGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag IamProjectTagList(ctx, projectId).Execute()
List iam/project.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTagList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTagList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectTagList`: []Tag
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectTagList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectTagListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Tag IamProjectTagPut(ctx, projectId).Tag(tag).Execute()
Replace iam/project.tag
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTagPut(context.Background(), projectId).Tag(tag).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTagPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectTagPut`: []Tag
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectTagPut`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectTagPutRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
tag | []Tag | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectThreshold IamProjectThresholdCreate(ctx, projectId).IamProjectThresholdCreate(iamProjectThresholdCreate).Execute()
Create iam/project.threshold
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
iamProjectThresholdCreate := *openapiclient.NewIamProjectThresholdCreate() // IamProjectThresholdCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectThresholdCreate(context.Background(), projectId).IamProjectThresholdCreate(iamProjectThresholdCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectThresholdCreate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectThresholdCreate`: ProjectThreshold
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectThresholdCreate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectThresholdCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectThresholdCreate | IamProjectThresholdCreate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamProjectThresholdDelete(ctx, projectId, thresholdId).Execute()
Delete iam/project.threshold
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
thresholdId := "thresholdId_example" // string | thresholdId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectThresholdDelete(context.Background(), projectId, thresholdId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectThresholdDelete``: %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. | |
projectId | string | Project Id | |
thresholdId | string | thresholdId |
Other parameters are passed through a pointer to a apiIamProjectThresholdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectThreshold IamProjectThresholdGet(ctx, projectId, thresholdId).Execute()
Get iam/project.threshold
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
thresholdId := "thresholdId_example" // string | thresholdId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectThresholdGet(context.Background(), projectId, thresholdId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectThresholdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectThresholdGet`: ProjectThreshold
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectThresholdGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
thresholdId | string | thresholdId |
Other parameters are passed through a pointer to a apiIamProjectThresholdGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ProjectThreshold IamProjectThresholdList(ctx, projectId).Execute()
List iam/project.threshold
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectThresholdList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectThresholdList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectThresholdList`: []ProjectThreshold
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectThresholdList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectThresholdListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectTransfer(ctx, projectId).IamProjectTransfer(iamProjectTransfer).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
Transfer iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
iamProjectTransfer := *openapiclient.NewIamProjectTransfer("Organisation_example") // IamProjectTransfer |
xIdempotencyKey := "xIdempotencyKey_example" // string | Idempotency key (optional)
xDryRun := "xDryRun_example" // string | Dry run (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectTransfer(context.Background(), projectId).IamProjectTransfer(iamProjectTransfer).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectTransfer``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectTransfer`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectTransfer`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectTransferRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectTransfer | IamProjectTransfer | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Project IamProjectUpdate(ctx, projectId).IamProjectUpdate(iamProjectUpdate).Execute()
Update iam/project
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
iamProjectUpdate := *openapiclient.NewIamProjectUpdate() // IamProjectUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectUpdate(context.Background(), projectId).IamProjectUpdate(iamProjectUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectUpdate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectUpdate`: Project
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectUpdate`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
iamProjectUpdate | IamProjectUpdate | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Metric IamProjectUsageGet(ctx, projectId, usageId).Execute()
Get iam/project.usage
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
usageId := "usageId_example" // string | usageId
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectUsageGet(context.Background(), projectId, usageId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectUsageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectUsageGet`: Metric
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectUsageGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
usageId | string | usageId |
Other parameters are passed through a pointer to a apiIamProjectUsageGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Metric IamProjectUsageList(ctx, projectId).Execute()
List iam/project.usage
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectUsageList(context.Background(), projectId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectUsageList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectUsageList`: []Metric
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectUsageList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id |
Other parameters are passed through a pointer to a apiIamProjectUsageListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Point IamProjectUsageSeriesList(ctx, projectId, usageId).Timespan(timespan).Color(color).Execute()
List iam/project.series
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
projectId := "projectId_example" // string | Project Id
usageId := "usageId_example" // string | usageId
timespan := "timespan_example" // string | timespan (optional)
color := "color_example" // string | color (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IamProjectApi.IamProjectUsageSeriesList(context.Background(), projectId, usageId).Timespan(timespan).Color(color).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IamProjectApi.IamProjectUsageSeriesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IamProjectUsageSeriesList`: []Point
fmt.Fprintf(os.Stdout, "Response from `IamProjectApi.IamProjectUsageSeriesList`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
projectId | string | Project Id | |
usageId | string | usageId |
Other parameters are passed through a pointer to a apiIamProjectUsageSeriesListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
timespan | string | timespan | color | string | color |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]