Skip to content

Latest commit

 

History

History
219 lines (141 loc) · 6.92 KB

KafkaRbacResourceApi.md

File metadata and controls

219 lines (141 loc) · 6.92 KB

\KafkaRbacResourceApi

All URIs are relative to http://localhost:9080

Method HTTP request Description
ApisKafkaRbacV1KafkarolebindingsGet Get /apis/kafka.rbac/v1/kafkarolebindings
ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet Get /apis/kafka.rbac/v1/namespaces/{namespace}/kafkarolebindings
ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost Post /apis/kafka.rbac/v1/namespaces/{namespace}/kafkarolebindings

ApisKafkaRbacV1KafkarolebindingsGet

KafkaRbacSummaryList ApisKafkaRbacV1KafkarolebindingsGet(ctx).Role(role).User(user).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/shnplr/kssapi"
)

func main() {
    role := "role_example" // string |  (optional)
    user := "user_example" // string |  (optional)

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

Path Parameters

Other Parameters

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

Name Type Description Notes
role string
user string

Return type

KafkaRbacSummaryList

Authorization

SecurityScheme

HTTP request headers

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

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

ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet

KafkaRbacSummaryList ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet(ctx, namespace).Role(role).User(user).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/shnplr/kssapi"
)

func main() {
    namespace := "namespace_example" // string | 
    role := "role_example" // string |  (optional)
    user := "user_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet(context.Background(), namespace).Role(role).User(user).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet`: KafkaRbacSummaryList
    fmt.Fprintf(os.Stdout, "Response from `KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsGet`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

role | string | | user | string | |

Return type

KafkaRbacSummaryList

Authorization

SecurityScheme

HTTP request headers

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

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

ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost

KafkaRole ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost(ctx, namespace).KafkaRoleBindingRequest(kafkaRoleBindingRequest).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/shnplr/kssapi"
)

func main() {
    namespace := "namespace_example" // string | 
    kafkaRoleBindingRequest := *openapiclient.NewKafkaRoleBindingRequest("User_example") // KafkaRoleBindingRequest |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost(context.Background(), namespace).KafkaRoleBindingRequest(kafkaRoleBindingRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost`: KafkaRole
    fmt.Fprintf(os.Stdout, "Response from `KafkaRbacResourceApi.ApisKafkaRbacV1NamespacesNamespaceKafkarolebindingsPost`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

kafkaRoleBindingRequest | KafkaRoleBindingRequest | |

Return type

KafkaRole

Authorization

SecurityScheme

HTTP request headers

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

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