Skip to content

Latest commit

 

History

History
1450 lines (929 loc) · 40.6 KB

IamProjectRoleApi.md

File metadata and controls

1450 lines (929 loc) · 40.6 KB

\IamProjectRoleApi

All URIs are relative to https://api.hyperone.com/v2

Method HTTP request Description
IamProjectRoleCreate Post /iam/project/{projectId}/role Create iam/role
IamProjectRoleDelete Delete /iam/project/{projectId}/role/{roleId} Delete iam/role
IamProjectRoleEventGet Get /iam/project/{projectId}/role/{roleId}/event/{eventId} Get iam/role.event
IamProjectRoleEventList Get /iam/project/{projectId}/role/{roleId}/event List iam/role.event
IamProjectRoleGet Get /iam/project/{projectId}/role/{roleId} Get iam/role
IamProjectRoleList Get /iam/project/{projectId}/role List iam/role
IamProjectRolePermissionCreate Post /iam/project/{projectId}/role/{roleId}/permission Create iam/role.permission
IamProjectRolePermissionDelete Delete /iam/project/{projectId}/role/{roleId}/permission/{permissionId} Delete iam/role.permission
IamProjectRolePermissionGet Get /iam/project/{projectId}/role/{roleId}/permission/{permissionId} Get iam/role.permission
IamProjectRolePermissionList Get /iam/project/{projectId}/role/{roleId}/permission List iam/role.permission
IamProjectRolePermissionPut Put /iam/project/{projectId}/role/{roleId}/permission Replace iam/role.permission
IamProjectRoleServiceGet Get /iam/project/{projectId}/role/{roleId}/service/{serviceId} Get iam/role.service
IamProjectRoleServiceList Get /iam/project/{projectId}/role/{roleId}/service List iam/role.service
IamProjectRoleTagCreate Post /iam/project/{projectId}/role/{roleId}/tag Create iam/role.tag
IamProjectRoleTagDelete Delete /iam/project/{projectId}/role/{roleId}/tag/{tagId} Delete iam/role.tag
IamProjectRoleTagGet Get /iam/project/{projectId}/role/{roleId}/tag/{tagId} Get iam/role.tag
IamProjectRoleTagList Get /iam/project/{projectId}/role/{roleId}/tag List iam/role.tag
IamProjectRoleTagPut Put /iam/project/{projectId}/role/{roleId}/tag Replace iam/role.tag
IamProjectRoleUpdate Patch /iam/project/{projectId}/role/{roleId} Update iam/role

IamProjectRoleCreate

Role IamProjectRoleCreate(ctx, projectId).IamProjectRoleCreate(iamProjectRoleCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()

Create iam/role

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    iamProjectRoleCreate := *openapiclient.NewIamProjectRoleCreate("Name_example") // IamProjectRoleCreate | 
    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.IamProjectRoleApi.IamProjectRoleCreate(context.Background(), projectId).IamProjectRoleCreate(iamProjectRoleCreate).XIdempotencyKey(xIdempotencyKey).XDryRun(xDryRun).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleCreate`: Role
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleCreateRequest struct via the builder pattern

Name Type Description Notes

iamProjectRoleCreate | IamProjectRoleCreate | | xIdempotencyKey | string | Idempotency key | xDryRun | string | Dry run |

Return type

Role

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleDelete

Role IamProjectRoleDelete(ctx, projectId, roleId).Execute()

Delete iam/role

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleDelete(context.Background(), projectId, roleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleDelete`: Role
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleDelete`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

Role

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleEventGet

Event IamProjectRoleEventGet(ctx, projectId, roleId, eventId).Execute()

Get iam/role.event

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    eventId := "eventId_example" // string | eventId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleEventGet(context.Background(), projectId, roleId, eventId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleEventGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleEventGet`: Event
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleEventGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
eventId string eventId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleEventGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Event

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleEventList

[]Event IamProjectRoleEventList(ctx, projectId, roleId).Limit(limit).Skip(skip).Execute()

List iam/role.event

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role 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.IamProjectRoleApi.IamProjectRoleEventList(context.Background(), projectId, roleId).Limit(limit).Skip(skip).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleEventList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleEventList`: []Event
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleEventList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleEventListRequest struct via the builder pattern

Name Type Description Notes

limit | float32 | $limit | [default to 100] skip | float32 | $skip |

Return type

[]Event

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleGet

Role IamProjectRoleGet(ctx, projectId, roleId).Execute()

Get iam/role

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleGet(context.Background(), projectId, roleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleGet`: Role
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Role

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleList

[]Role IamProjectRoleList(ctx, projectId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()

List iam/role

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    name := "name_example" // string | Filter by name (optional)
    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.IamProjectRoleApi.IamProjectRoleList(context.Background(), projectId).Name(name).TagValue(tagValue).TagKey(tagKey).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleList`: []Role
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleListRequest struct via the builder pattern

Name Type Description Notes

name | string | Filter by name | tagValue | string | Filter by tag.value | tagKey | string | Filter by tag.key |

Return type

[]Role

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRolePermissionCreate

IamPermission IamProjectRolePermissionCreate(ctx, projectId, roleId).IamPermission(iamPermission).Execute()

Create iam/role.permission

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    iamPermission := *openapiclient.NewIamPermission("Value_example") // IamPermission | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRolePermissionCreate(context.Background(), projectId, roleId).IamPermission(iamPermission).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRolePermissionCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRolePermissionCreate`: IamPermission
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRolePermissionCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRolePermissionCreateRequest struct via the builder pattern

Name Type Description Notes

iamPermission | IamPermission | |

Return type

IamPermission

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRolePermissionDelete

IamPermission IamProjectRolePermissionDelete(ctx, projectId, roleId, permissionId).Execute()

Delete iam/role.permission

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    permissionId := "permissionId_example" // string | permissionId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRolePermissionDelete(context.Background(), projectId, roleId, permissionId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRolePermissionDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRolePermissionDelete`: IamPermission
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRolePermissionDelete`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
permissionId string permissionId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRolePermissionDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

IamPermission

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRolePermissionGet

IamPermission IamProjectRolePermissionGet(ctx, projectId, roleId, permissionId).Execute()

Get iam/role.permission

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    permissionId := "permissionId_example" // string | permissionId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRolePermissionGet(context.Background(), projectId, roleId, permissionId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRolePermissionGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRolePermissionGet`: IamPermission
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRolePermissionGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
permissionId string permissionId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRolePermissionGetRequest struct via the builder pattern

Name Type Description Notes

Return type

IamPermission

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRolePermissionList

[]IamPermission IamProjectRolePermissionList(ctx, projectId, roleId).Execute()

List iam/role.permission

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRolePermissionList(context.Background(), projectId, roleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRolePermissionList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRolePermissionList`: []IamPermission
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRolePermissionList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRolePermissionListRequest struct via the builder pattern

Name Type Description Notes

Return type

[]IamPermission

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRolePermissionPut

[]IamPermission IamProjectRolePermissionPut(ctx, projectId, roleId).IamPermission(iamPermission).Execute()

Replace iam/role.permission

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    iamPermission := []openapiclient.IamPermission{*openapiclient.NewIamPermission("Value_example")} // []IamPermission | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRolePermissionPut(context.Background(), projectId, roleId).IamPermission(iamPermission).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRolePermissionPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRolePermissionPut`: []IamPermission
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRolePermissionPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRolePermissionPutRequest struct via the builder pattern

Name Type Description Notes

iamPermission | []IamPermission | |

Return type

[]IamPermission

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleServiceGet

ResourceService IamProjectRoleServiceGet(ctx, projectId, roleId, serviceId).Execute()

Get iam/role.service

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    serviceId := "serviceId_example" // string | serviceId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleServiceGet(context.Background(), projectId, roleId, serviceId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleServiceGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleServiceGet`: ResourceService
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleServiceGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
serviceId string serviceId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleServiceGetRequest struct via the builder pattern

Name Type Description Notes

Return type

ResourceService

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleServiceList

[]ResourceService IamProjectRoleServiceList(ctx, projectId, roleId).Execute()

List iam/role.service

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleServiceList(context.Background(), projectId, roleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleServiceList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleServiceList`: []ResourceService
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleServiceList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleServiceListRequest struct via the builder pattern

Name Type Description Notes

Return type

[]ResourceService

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleTagCreate

Tag IamProjectRoleTagCreate(ctx, projectId, roleId).Tag(tag).Execute()

Create iam/role.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    tag := *openapiclient.NewTag("Id_example", "Key_example", "Value_example") // Tag | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleTagCreate(context.Background(), projectId, roleId).Tag(tag).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleTagCreate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleTagCreate`: Tag
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleTagCreate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleTagCreateRequest struct via the builder pattern

Name Type Description Notes

tag | Tag | |

Return type

Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleTagDelete

IamProjectRoleTagDelete(ctx, projectId, roleId, tagId).Execute()

Delete iam/role.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    tagId := "tagId_example" // string | tagId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleTagDelete(context.Background(), projectId, roleId, tagId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleTagDelete``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
tagId string tagId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleTagDeleteRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleTagGet

Tag IamProjectRoleTagGet(ctx, projectId, roleId, tagId).Execute()

Get iam/role.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    tagId := "tagId_example" // string | tagId

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleTagGet(context.Background(), projectId, roleId, tagId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleTagGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleTagGet`: Tag
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleTagGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id
tagId string tagId

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleTagGetRequest struct via the builder pattern

Name Type Description Notes

Return type

Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleTagList

[]Tag IamProjectRoleTagList(ctx, projectId, roleId).Execute()

List iam/role.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleTagList(context.Background(), projectId, roleId).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleTagList``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleTagList`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleTagList`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleTagListRequest struct via the builder pattern

Name Type Description Notes

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleTagPut

[]Tag IamProjectRoleTagPut(ctx, projectId, roleId).Tag(tag).Execute()

Replace iam/role.tag

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    tag := []openapiclient.Tag{*openapiclient.NewTag("Id_example", "Key_example", "Value_example")} // []Tag | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleTagPut(context.Background(), projectId, roleId).Tag(tag).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleTagPut``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleTagPut`: []Tag
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleTagPut`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleTagPutRequest struct via the builder pattern

Name Type Description Notes

tag | []Tag | |

Return type

[]Tag

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

IamProjectRoleUpdate

Role IamProjectRoleUpdate(ctx, projectId, roleId).IamProjectRoleUpdate(iamProjectRoleUpdate).Execute()

Update iam/role

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    projectId := "projectId_example" // string | Project Id
    roleId := "roleId_example" // string | Role Id
    iamProjectRoleUpdate := *openapiclient.NewIamProjectRoleUpdate() // IamProjectRoleUpdate | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.IamProjectRoleApi.IamProjectRoleUpdate(context.Background(), projectId, roleId).IamProjectRoleUpdate(iamProjectRoleUpdate).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `IamProjectRoleApi.IamProjectRoleUpdate``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `IamProjectRoleUpdate`: Role
    fmt.Fprintf(os.Stdout, "Response from `IamProjectRoleApi.IamProjectRoleUpdate`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project Id
roleId string Role Id

Other Parameters

Other parameters are passed through a pointer to a apiIamProjectRoleUpdateRequest struct via the builder pattern

Name Type Description Notes

iamProjectRoleUpdate | IamProjectRoleUpdate | |

Return type

Role

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]