diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bdfd150..83a1817 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,6 @@ jobs: test: strategy: matrix: - go-version: [1.17.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: @@ -20,7 +19,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go-version }} + # Getting go version from the go.mod file + go-version-file: 'go.mod' - name: Format run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi diff --git a/Dockerfile b/Dockerfile index 5a6b49f..f131d69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17 as build +FROM golang:1.20 as build LABEL description="Build container" ENV CGO_ENABLED 0 diff --git a/Dockerfile.initialize b/Dockerfile.initialize index 6257d7c..bd861a3 100644 --- a/Dockerfile.initialize +++ b/Dockerfile.initialize @@ -1,4 +1,4 @@ -FROM golang:1.17 as build +FROM golang:1.20 as build LABEL description="Build container" ENV CGO_ENABLED 0 diff --git a/Dockerfile.synchronizer b/Dockerfile.synchronizer index c8c52e7..7b798ef 100644 --- a/Dockerfile.synchronizer +++ b/Dockerfile.synchronizer @@ -1,4 +1,4 @@ -FROM golang:1.17 as build +FROM golang:1.20 as build LABEL description="Build container" ENV CGO_ENABLED 0 diff --git a/api/def/clients/sentry/client/audit_information/audit_information_client.go b/api/def/clients/sentry/client/audit_information/audit_information_client.go index 1696a50..94b8f1f 100644 --- a/api/def/clients/sentry/client/audit_information/audit_information_client.go +++ b/api/def/clients/sentry/client/audit_information/audit_information_client.go @@ -36,7 +36,7 @@ type ClientService interface { } /* - AuditInformationLookupCluster audit information lookup cluster API +AuditInformationLookupCluster audit information lookup cluster API */ func (a *Client) AuditInformationLookupCluster(params *AuditInformationLookupClusterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditInformationLookupClusterOK, error) { // TODO: Validate the params before sending @@ -74,7 +74,7 @@ func (a *Client) AuditInformationLookupCluster(params *AuditInformationLookupClu } /* - AuditInformationLookupUser audit information lookup user API +AuditInformationLookupUser audit information lookup user API */ func (a *Client) AuditInformationLookupUser(params *AuditInformationLookupUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditInformationLookupUserOK, error) { // TODO: Validate the params before sending diff --git a/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_parameters.go b/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_parameters.go index 5aee924..3dd1c23 100644 --- a/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_parameters.go +++ b/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_parameters.go @@ -52,10 +52,12 @@ func NewAuditInformationLookupClusterParamsWithHTTPClient(client *http.Client) * } } -/* AuditInformationLookupClusterParams contains all the parameters to send to the API endpoint - for the audit information lookup cluster operation. +/* +AuditInformationLookupClusterParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the audit information lookup cluster operation. + + Typically these are written to a http.Request. */ type AuditInformationLookupClusterParams struct { diff --git a/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_responses.go b/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_responses.go index 4e6b56e..eca3b89 100644 --- a/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_responses.go +++ b/api/def/clients/sentry/client/audit_information/audit_information_lookup_cluster_responses.go @@ -58,7 +58,8 @@ func NewAuditInformationLookupClusterOK() *AuditInformationLookupClusterOK { return &AuditInformationLookupClusterOK{} } -/* AuditInformationLookupClusterOK describes a response with status code 200, with default header values. +/* + AuditInformationLookupClusterOK describes a response with status code 200, with default header values. A successful response. */ @@ -90,7 +91,8 @@ func NewAuditInformationLookupClusterForbidden() *AuditInformationLookupClusterF return &AuditInformationLookupClusterForbidden{} } -/* AuditInformationLookupClusterForbidden describes a response with status code 403, with default header values. +/* + AuditInformationLookupClusterForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -120,7 +122,8 @@ func NewAuditInformationLookupClusterNotFound() *AuditInformationLookupClusterNo return &AuditInformationLookupClusterNotFound{} } -/* AuditInformationLookupClusterNotFound describes a response with status code 404, with default header values. +/* + AuditInformationLookupClusterNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -152,7 +155,8 @@ func NewAuditInformationLookupClusterDefault(code int) *AuditInformationLookupCl } } -/* AuditInformationLookupClusterDefault describes a response with status code -1, with default header values. +/* + AuditInformationLookupClusterDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_parameters.go b/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_parameters.go index 83d4344..ed555e9 100644 --- a/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_parameters.go +++ b/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_parameters.go @@ -52,10 +52,12 @@ func NewAuditInformationLookupUserParamsWithHTTPClient(client *http.Client) *Aud } } -/* AuditInformationLookupUserParams contains all the parameters to send to the API endpoint - for the audit information lookup user operation. +/* +AuditInformationLookupUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the audit information lookup user operation. + + Typically these are written to a http.Request. */ type AuditInformationLookupUserParams struct { diff --git a/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_responses.go b/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_responses.go index 1bee808..91664d7 100644 --- a/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_responses.go +++ b/api/def/clients/sentry/client/audit_information/audit_information_lookup_user_responses.go @@ -58,7 +58,8 @@ func NewAuditInformationLookupUserOK() *AuditInformationLookupUserOK { return &AuditInformationLookupUserOK{} } -/* AuditInformationLookupUserOK describes a response with status code 200, with default header values. +/* + AuditInformationLookupUserOK describes a response with status code 200, with default header values. A successful response. */ @@ -90,7 +91,8 @@ func NewAuditInformationLookupUserForbidden() *AuditInformationLookupUserForbidd return &AuditInformationLookupUserForbidden{} } -/* AuditInformationLookupUserForbidden describes a response with status code 403, with default header values. +/* + AuditInformationLookupUserForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -120,7 +122,8 @@ func NewAuditInformationLookupUserNotFound() *AuditInformationLookupUserNotFound return &AuditInformationLookupUserNotFound{} } -/* AuditInformationLookupUserNotFound describes a response with status code 404, with default header values. +/* + AuditInformationLookupUserNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -152,7 +155,8 @@ func NewAuditInformationLookupUserDefault(code int) *AuditInformationLookupUserD } } -/* AuditInformationLookupUserDefault describes a response with status code -1, with default header values. +/* + AuditInformationLookupUserDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_client.go b/api/def/clients/sentry/client/bootstrap/bootstrap_client.go index ae9ff55..d77bdf1 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_client.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_client.go @@ -56,7 +56,7 @@ type ClientService interface { } /* - BootstrapCreateBootstrapAgent bootstrap create bootstrap agent API +BootstrapCreateBootstrapAgent bootstrap create bootstrap agent API */ func (a *Client) BootstrapCreateBootstrapAgent(params *BootstrapCreateBootstrapAgentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapCreateBootstrapAgentOK, error) { // TODO: Validate the params before sending @@ -94,7 +94,7 @@ func (a *Client) BootstrapCreateBootstrapAgent(params *BootstrapCreateBootstrapA } /* - BootstrapDeleteBootstrapAgent bootstrap delete bootstrap agent API +BootstrapDeleteBootstrapAgent bootstrap delete bootstrap agent API */ func (a *Client) BootstrapDeleteBootstrapAgent(params *BootstrapDeleteBootstrapAgentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapDeleteBootstrapAgentOK, error) { // TODO: Validate the params before sending @@ -132,7 +132,7 @@ func (a *Client) BootstrapDeleteBootstrapAgent(params *BootstrapDeleteBootstrapA } /* - BootstrapGetBootstrapAgent bootstrap get bootstrap agent API +BootstrapGetBootstrapAgent bootstrap get bootstrap agent API */ func (a *Client) BootstrapGetBootstrapAgent(params *BootstrapGetBootstrapAgentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapAgentOK, error) { // TODO: Validate the params before sending @@ -170,7 +170,7 @@ func (a *Client) BootstrapGetBootstrapAgent(params *BootstrapGetBootstrapAgentPa } /* - BootstrapGetBootstrapAgentConfig bootstrap get bootstrap agent config API +BootstrapGetBootstrapAgentConfig bootstrap get bootstrap agent config API */ func (a *Client) BootstrapGetBootstrapAgentConfig(params *BootstrapGetBootstrapAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapAgentConfigOK, error) { // TODO: Validate the params before sending @@ -208,7 +208,7 @@ func (a *Client) BootstrapGetBootstrapAgentConfig(params *BootstrapGetBootstrapA } /* - BootstrapGetBootstrapAgentTemplate bootstrap get bootstrap agent template API +BootstrapGetBootstrapAgentTemplate bootstrap get bootstrap agent template API */ func (a *Client) BootstrapGetBootstrapAgentTemplate(params *BootstrapGetBootstrapAgentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapAgentTemplateOK, error) { // TODO: Validate the params before sending @@ -246,7 +246,7 @@ func (a *Client) BootstrapGetBootstrapAgentTemplate(params *BootstrapGetBootstra } /* - BootstrapGetBootstrapAgentTemplates bootstrap get bootstrap agent templates API +BootstrapGetBootstrapAgentTemplates bootstrap get bootstrap agent templates API */ func (a *Client) BootstrapGetBootstrapAgentTemplates(params *BootstrapGetBootstrapAgentTemplatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapAgentTemplatesOK, error) { // TODO: Validate the params before sending @@ -284,7 +284,7 @@ func (a *Client) BootstrapGetBootstrapAgentTemplates(params *BootstrapGetBootstr } /* - BootstrapGetBootstrapAgents bootstrap get bootstrap agents API +BootstrapGetBootstrapAgents bootstrap get bootstrap agents API */ func (a *Client) BootstrapGetBootstrapAgents(params *BootstrapGetBootstrapAgentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapAgentsOK, error) { // TODO: Validate the params before sending @@ -322,7 +322,7 @@ func (a *Client) BootstrapGetBootstrapAgents(params *BootstrapGetBootstrapAgents } /* - BootstrapGetBootstrapInfra bootstrap get bootstrap infra API +BootstrapGetBootstrapInfra bootstrap get bootstrap infra API */ func (a *Client) BootstrapGetBootstrapInfra(params *BootstrapGetBootstrapInfraParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapGetBootstrapInfraOK, error) { // TODO: Validate the params before sending @@ -360,7 +360,7 @@ func (a *Client) BootstrapGetBootstrapInfra(params *BootstrapGetBootstrapInfraPa } /* - BootstrapPatchBootstrapAgentTemplate bootstrap patch bootstrap agent template API +BootstrapPatchBootstrapAgentTemplate bootstrap patch bootstrap agent template API */ func (a *Client) BootstrapPatchBootstrapAgentTemplate(params *BootstrapPatchBootstrapAgentTemplateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapPatchBootstrapAgentTemplateOK, error) { // TODO: Validate the params before sending @@ -398,7 +398,7 @@ func (a *Client) BootstrapPatchBootstrapAgentTemplate(params *BootstrapPatchBoot } /* - BootstrapPatchBootstrapInfra bootstrap patch bootstrap infra API +BootstrapPatchBootstrapInfra bootstrap patch bootstrap infra API */ func (a *Client) BootstrapPatchBootstrapInfra(params *BootstrapPatchBootstrapInfraParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapPatchBootstrapInfraOK, error) { // TODO: Validate the params before sending @@ -436,7 +436,7 @@ func (a *Client) BootstrapPatchBootstrapInfra(params *BootstrapPatchBootstrapInf } /* - BootstrapRegisterBootstrapAgent bootstrap register bootstrap agent API +BootstrapRegisterBootstrapAgent bootstrap register bootstrap agent API */ func (a *Client) BootstrapRegisterBootstrapAgent(params *BootstrapRegisterBootstrapAgentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapRegisterBootstrapAgentOK, error) { // TODO: Validate the params before sending @@ -474,7 +474,7 @@ func (a *Client) BootstrapRegisterBootstrapAgent(params *BootstrapRegisterBootst } /* - BootstrapUpdateBootstrapAgent bootstrap update bootstrap agent API +BootstrapUpdateBootstrapAgent bootstrap update bootstrap agent API */ func (a *Client) BootstrapUpdateBootstrapAgent(params *BootstrapUpdateBootstrapAgentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BootstrapUpdateBootstrapAgentOK, error) { // TODO: Validate the params before sending diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_parameters.go index ca96635..15d12ca 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_parameters.go @@ -54,10 +54,12 @@ func NewBootstrapCreateBootstrapAgentParamsWithHTTPClient(client *http.Client) * } } -/* BootstrapCreateBootstrapAgentParams contains all the parameters to send to the API endpoint - for the bootstrap create bootstrap agent operation. +/* +BootstrapCreateBootstrapAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap create bootstrap agent operation. + + Typically these are written to a http.Request. */ type BootstrapCreateBootstrapAgentParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_responses.go index aac055c..579169b 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_create_bootstrap_agent_responses.go @@ -64,7 +64,8 @@ func NewBootstrapCreateBootstrapAgentOK() *BootstrapCreateBootstrapAgentOK { return &BootstrapCreateBootstrapAgentOK{} } -/* BootstrapCreateBootstrapAgentOK describes a response with status code 200, with default header values. +/* + BootstrapCreateBootstrapAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapCreateBootstrapAgentForbidden() *BootstrapCreateBootstrapAgentF return &BootstrapCreateBootstrapAgentForbidden{} } -/* BootstrapCreateBootstrapAgentForbidden describes a response with status code 403, with default header values. +/* + BootstrapCreateBootstrapAgentForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapCreateBootstrapAgentNotFound() *BootstrapCreateBootstrapAgentNo return &BootstrapCreateBootstrapAgentNotFound{} } -/* BootstrapCreateBootstrapAgentNotFound describes a response with status code 404, with default header values. +/* + BootstrapCreateBootstrapAgentNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapCreateBootstrapAgentInternalServerError() *BootstrapCreateBoots return &BootstrapCreateBootstrapAgentInternalServerError{} } -/* BootstrapCreateBootstrapAgentInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapCreateBootstrapAgentInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapCreateBootstrapAgentDefault(code int) *BootstrapCreateBootstrap } } -/* BootstrapCreateBootstrapAgentDefault describes a response with status code -1, with default header values. +/* + BootstrapCreateBootstrapAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_parameters.go index cdc4e17..65bae9b 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_parameters.go @@ -52,10 +52,12 @@ func NewBootstrapDeleteBootstrapAgentParamsWithHTTPClient(client *http.Client) * } } -/* BootstrapDeleteBootstrapAgentParams contains all the parameters to send to the API endpoint - for the bootstrap delete bootstrap agent operation. +/* +BootstrapDeleteBootstrapAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap delete bootstrap agent operation. + + Typically these are written to a http.Request. */ type BootstrapDeleteBootstrapAgentParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_responses.go index a8482a4..abfb8de 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_delete_bootstrap_agent_responses.go @@ -64,7 +64,8 @@ func NewBootstrapDeleteBootstrapAgentOK() *BootstrapDeleteBootstrapAgentOK { return &BootstrapDeleteBootstrapAgentOK{} } -/* BootstrapDeleteBootstrapAgentOK describes a response with status code 200, with default header values. +/* + BootstrapDeleteBootstrapAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -94,7 +95,8 @@ func NewBootstrapDeleteBootstrapAgentForbidden() *BootstrapDeleteBootstrapAgentF return &BootstrapDeleteBootstrapAgentForbidden{} } -/* BootstrapDeleteBootstrapAgentForbidden describes a response with status code 403, with default header values. +/* + BootstrapDeleteBootstrapAgentForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -124,7 +126,8 @@ func NewBootstrapDeleteBootstrapAgentNotFound() *BootstrapDeleteBootstrapAgentNo return &BootstrapDeleteBootstrapAgentNotFound{} } -/* BootstrapDeleteBootstrapAgentNotFound describes a response with status code 404, with default header values. +/* + BootstrapDeleteBootstrapAgentNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -154,7 +157,8 @@ func NewBootstrapDeleteBootstrapAgentInternalServerError() *BootstrapDeleteBoots return &BootstrapDeleteBootstrapAgentInternalServerError{} } -/* BootstrapDeleteBootstrapAgentInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapDeleteBootstrapAgentInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -186,7 +190,8 @@ func NewBootstrapDeleteBootstrapAgentDefault(code int) *BootstrapDeleteBootstrap } } -/* BootstrapDeleteBootstrapAgentDefault describes a response with status code -1, with default header values. +/* + BootstrapDeleteBootstrapAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_parameters.go index b447e56..7c49aac 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_parameters.go @@ -52,10 +52,12 @@ func NewBootstrapGetBootstrapAgentConfigParamsWithHTTPClient(client *http.Client } } -/* BootstrapGetBootstrapAgentConfigParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap agent config operation. +/* +BootstrapGetBootstrapAgentConfigParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap agent config operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapAgentConfigParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_responses.go index 72fd490..e08f94d 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_config_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapAgentConfigOK() *BootstrapGetBootstrapAgentConfigOK return &BootstrapGetBootstrapAgentConfigOK{} } -/* BootstrapGetBootstrapAgentConfigOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapAgentConfigOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapAgentConfigForbidden() *BootstrapGetBootstrapAgentC return &BootstrapGetBootstrapAgentConfigForbidden{} } -/* BootstrapGetBootstrapAgentConfigForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapAgentConfigForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapAgentConfigNotFound() *BootstrapGetBootstrapAgentCo return &BootstrapGetBootstrapAgentConfigNotFound{} } -/* BootstrapGetBootstrapAgentConfigNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapAgentConfigNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapAgentConfigInternalServerError() *BootstrapGetBoots return &BootstrapGetBootstrapAgentConfigInternalServerError{} } -/* BootstrapGetBootstrapAgentConfigInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapAgentConfigInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapAgentConfigDefault(code int) *BootstrapGetBootstrap } } -/* BootstrapGetBootstrapAgentConfigDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapAgentConfigDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_parameters.go index bbd9746..e082356 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_parameters.go @@ -52,10 +52,12 @@ func NewBootstrapGetBootstrapAgentParamsWithHTTPClient(client *http.Client) *Boo } } -/* BootstrapGetBootstrapAgentParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap agent operation. +/* +BootstrapGetBootstrapAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap agent operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapAgentParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_responses.go index c94fa09..870d938 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapAgentOK() *BootstrapGetBootstrapAgentOK { return &BootstrapGetBootstrapAgentOK{} } -/* BootstrapGetBootstrapAgentOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapAgentForbidden() *BootstrapGetBootstrapAgentForbidd return &BootstrapGetBootstrapAgentForbidden{} } -/* BootstrapGetBootstrapAgentForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapAgentForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapAgentNotFound() *BootstrapGetBootstrapAgentNotFound return &BootstrapGetBootstrapAgentNotFound{} } -/* BootstrapGetBootstrapAgentNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapAgentNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapAgentInternalServerError() *BootstrapGetBootstrapAg return &BootstrapGetBootstrapAgentInternalServerError{} } -/* BootstrapGetBootstrapAgentInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapAgentInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapAgentDefault(code int) *BootstrapGetBootstrapAgentD } } -/* BootstrapGetBootstrapAgentDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_parameters.go index 2776967..3629ffe 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_parameters.go @@ -53,10 +53,12 @@ func NewBootstrapGetBootstrapAgentTemplateParamsWithHTTPClient(client *http.Clie } } -/* BootstrapGetBootstrapAgentTemplateParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap agent template operation. +/* +BootstrapGetBootstrapAgentTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap agent template operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapAgentTemplateParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_responses.go index 7428b69..c9b8883 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_template_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapAgentTemplateOK() *BootstrapGetBootstrapAgentTempla return &BootstrapGetBootstrapAgentTemplateOK{} } -/* BootstrapGetBootstrapAgentTemplateOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapAgentTemplateOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapAgentTemplateForbidden() *BootstrapGetBootstrapAgen return &BootstrapGetBootstrapAgentTemplateForbidden{} } -/* BootstrapGetBootstrapAgentTemplateForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapAgentTemplateForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapAgentTemplateNotFound() *BootstrapGetBootstrapAgent return &BootstrapGetBootstrapAgentTemplateNotFound{} } -/* BootstrapGetBootstrapAgentTemplateNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapAgentTemplateNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapAgentTemplateInternalServerError() *BootstrapGetBoo return &BootstrapGetBootstrapAgentTemplateInternalServerError{} } -/* BootstrapGetBootstrapAgentTemplateInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapAgentTemplateInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapAgentTemplateDefault(code int) *BootstrapGetBootstr } } -/* BootstrapGetBootstrapAgentTemplateDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapAgentTemplateDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_parameters.go index a014ad2..0fdbdd2 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_parameters.go @@ -53,10 +53,12 @@ func NewBootstrapGetBootstrapAgentTemplatesParamsWithHTTPClient(client *http.Cli } } -/* BootstrapGetBootstrapAgentTemplatesParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap agent templates operation. +/* +BootstrapGetBootstrapAgentTemplatesParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap agent templates operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapAgentTemplatesParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_responses.go index a284cc2..95ab8bc 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agent_templates_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapAgentTemplatesOK() *BootstrapGetBootstrapAgentTempl return &BootstrapGetBootstrapAgentTemplatesOK{} } -/* BootstrapGetBootstrapAgentTemplatesOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapAgentTemplatesOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapAgentTemplatesForbidden() *BootstrapGetBootstrapAge return &BootstrapGetBootstrapAgentTemplatesForbidden{} } -/* BootstrapGetBootstrapAgentTemplatesForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapAgentTemplatesForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapAgentTemplatesNotFound() *BootstrapGetBootstrapAgen return &BootstrapGetBootstrapAgentTemplatesNotFound{} } -/* BootstrapGetBootstrapAgentTemplatesNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapAgentTemplatesNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapAgentTemplatesInternalServerError() *BootstrapGetBo return &BootstrapGetBootstrapAgentTemplatesInternalServerError{} } -/* BootstrapGetBootstrapAgentTemplatesInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapAgentTemplatesInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapAgentTemplatesDefault(code int) *BootstrapGetBootst } } -/* BootstrapGetBootstrapAgentTemplatesDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapAgentTemplatesDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_parameters.go index a61f002..172b51c 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_parameters.go @@ -53,10 +53,12 @@ func NewBootstrapGetBootstrapAgentsParamsWithHTTPClient(client *http.Client) *Bo } } -/* BootstrapGetBootstrapAgentsParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap agents operation. +/* +BootstrapGetBootstrapAgentsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap agents operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapAgentsParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_responses.go index 5ffe018..3c339b5 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_agents_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapAgentsOK() *BootstrapGetBootstrapAgentsOK { return &BootstrapGetBootstrapAgentsOK{} } -/* BootstrapGetBootstrapAgentsOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapAgentsOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapAgentsForbidden() *BootstrapGetBootstrapAgentsForbi return &BootstrapGetBootstrapAgentsForbidden{} } -/* BootstrapGetBootstrapAgentsForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapAgentsForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapAgentsNotFound() *BootstrapGetBootstrapAgentsNotFou return &BootstrapGetBootstrapAgentsNotFound{} } -/* BootstrapGetBootstrapAgentsNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapAgentsNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapAgentsInternalServerError() *BootstrapGetBootstrapA return &BootstrapGetBootstrapAgentsInternalServerError{} } -/* BootstrapGetBootstrapAgentsInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapAgentsInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapAgentsDefault(code int) *BootstrapGetBootstrapAgent } } -/* BootstrapGetBootstrapAgentsDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapAgentsDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_parameters.go index 1bb2791..faaebe4 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_parameters.go @@ -52,10 +52,12 @@ func NewBootstrapGetBootstrapInfraParamsWithHTTPClient(client *http.Client) *Boo } } -/* BootstrapGetBootstrapInfraParams contains all the parameters to send to the API endpoint - for the bootstrap get bootstrap infra operation. +/* +BootstrapGetBootstrapInfraParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap get bootstrap infra operation. + + Typically these are written to a http.Request. */ type BootstrapGetBootstrapInfraParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_responses.go index 086f7fd..2210d27 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_get_bootstrap_infra_responses.go @@ -64,7 +64,8 @@ func NewBootstrapGetBootstrapInfraOK() *BootstrapGetBootstrapInfraOK { return &BootstrapGetBootstrapInfraOK{} } -/* BootstrapGetBootstrapInfraOK describes a response with status code 200, with default header values. +/* + BootstrapGetBootstrapInfraOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapGetBootstrapInfraForbidden() *BootstrapGetBootstrapInfraForbidd return &BootstrapGetBootstrapInfraForbidden{} } -/* BootstrapGetBootstrapInfraForbidden describes a response with status code 403, with default header values. +/* + BootstrapGetBootstrapInfraForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapGetBootstrapInfraNotFound() *BootstrapGetBootstrapInfraNotFound return &BootstrapGetBootstrapInfraNotFound{} } -/* BootstrapGetBootstrapInfraNotFound describes a response with status code 404, with default header values. +/* + BootstrapGetBootstrapInfraNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapGetBootstrapInfraInternalServerError() *BootstrapGetBootstrapIn return &BootstrapGetBootstrapInfraInternalServerError{} } -/* BootstrapGetBootstrapInfraInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapGetBootstrapInfraInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapGetBootstrapInfraDefault(code int) *BootstrapGetBootstrapInfraD } } -/* BootstrapGetBootstrapInfraDefault describes a response with status code -1, with default header values. +/* + BootstrapGetBootstrapInfraDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_parameters.go index e50b9ee..272e8a6 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_parameters.go @@ -54,10 +54,12 @@ func NewBootstrapPatchBootstrapAgentTemplateParamsWithHTTPClient(client *http.Cl } } -/* BootstrapPatchBootstrapAgentTemplateParams contains all the parameters to send to the API endpoint - for the bootstrap patch bootstrap agent template operation. +/* +BootstrapPatchBootstrapAgentTemplateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap patch bootstrap agent template operation. + + Typically these are written to a http.Request. */ type BootstrapPatchBootstrapAgentTemplateParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_responses.go index 1f1b024..1a19974 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_agent_template_responses.go @@ -64,7 +64,8 @@ func NewBootstrapPatchBootstrapAgentTemplateOK() *BootstrapPatchBootstrapAgentTe return &BootstrapPatchBootstrapAgentTemplateOK{} } -/* BootstrapPatchBootstrapAgentTemplateOK describes a response with status code 200, with default header values. +/* + BootstrapPatchBootstrapAgentTemplateOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapPatchBootstrapAgentTemplateForbidden() *BootstrapPatchBootstrap return &BootstrapPatchBootstrapAgentTemplateForbidden{} } -/* BootstrapPatchBootstrapAgentTemplateForbidden describes a response with status code 403, with default header values. +/* + BootstrapPatchBootstrapAgentTemplateForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapPatchBootstrapAgentTemplateNotFound() *BootstrapPatchBootstrapA return &BootstrapPatchBootstrapAgentTemplateNotFound{} } -/* BootstrapPatchBootstrapAgentTemplateNotFound describes a response with status code 404, with default header values. +/* + BootstrapPatchBootstrapAgentTemplateNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapPatchBootstrapAgentTemplateInternalServerError() *BootstrapPatc return &BootstrapPatchBootstrapAgentTemplateInternalServerError{} } -/* BootstrapPatchBootstrapAgentTemplateInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapPatchBootstrapAgentTemplateInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapPatchBootstrapAgentTemplateDefault(code int) *BootstrapPatchBoo } } -/* BootstrapPatchBootstrapAgentTemplateDefault describes a response with status code -1, with default header values. +/* + BootstrapPatchBootstrapAgentTemplateDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_parameters.go index c1a3684..9038131 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_parameters.go @@ -54,10 +54,12 @@ func NewBootstrapPatchBootstrapInfraParamsWithHTTPClient(client *http.Client) *B } } -/* BootstrapPatchBootstrapInfraParams contains all the parameters to send to the API endpoint - for the bootstrap patch bootstrap infra operation. +/* +BootstrapPatchBootstrapInfraParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap patch bootstrap infra operation. + + Typically these are written to a http.Request. */ type BootstrapPatchBootstrapInfraParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_responses.go index cc10274..6895f4c 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_patch_bootstrap_infra_responses.go @@ -64,7 +64,8 @@ func NewBootstrapPatchBootstrapInfraOK() *BootstrapPatchBootstrapInfraOK { return &BootstrapPatchBootstrapInfraOK{} } -/* BootstrapPatchBootstrapInfraOK describes a response with status code 200, with default header values. +/* + BootstrapPatchBootstrapInfraOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapPatchBootstrapInfraForbidden() *BootstrapPatchBootstrapInfraFor return &BootstrapPatchBootstrapInfraForbidden{} } -/* BootstrapPatchBootstrapInfraForbidden describes a response with status code 403, with default header values. +/* + BootstrapPatchBootstrapInfraForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapPatchBootstrapInfraNotFound() *BootstrapPatchBootstrapInfraNotF return &BootstrapPatchBootstrapInfraNotFound{} } -/* BootstrapPatchBootstrapInfraNotFound describes a response with status code 404, with default header values. +/* + BootstrapPatchBootstrapInfraNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapPatchBootstrapInfraInternalServerError() *BootstrapPatchBootstr return &BootstrapPatchBootstrapInfraInternalServerError{} } -/* BootstrapPatchBootstrapInfraInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapPatchBootstrapInfraInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapPatchBootstrapInfraDefault(code int) *BootstrapPatchBootstrapIn } } -/* BootstrapPatchBootstrapInfraDefault describes a response with status code -1, with default header values. +/* + BootstrapPatchBootstrapInfraDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_parameters.go index d4a5d15..1ba30a9 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_parameters.go @@ -52,10 +52,12 @@ func NewBootstrapRegisterBootstrapAgentParamsWithHTTPClient(client *http.Client) } } -/* BootstrapRegisterBootstrapAgentParams contains all the parameters to send to the API endpoint - for the bootstrap register bootstrap agent operation. +/* +BootstrapRegisterBootstrapAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap register bootstrap agent operation. + + Typically these are written to a http.Request. */ type BootstrapRegisterBootstrapAgentParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_responses.go index 25993b7..99aba02 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_register_bootstrap_agent_responses.go @@ -66,7 +66,8 @@ func NewBootstrapRegisterBootstrapAgentOK() *BootstrapRegisterBootstrapAgentOK { return &BootstrapRegisterBootstrapAgentOK{} } -/* BootstrapRegisterBootstrapAgentOK describes a response with status code 200, with default header values. +/* + BootstrapRegisterBootstrapAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -98,7 +99,8 @@ func NewBootstrapRegisterBootstrapAgentForbidden() *BootstrapRegisterBootstrapAg return &BootstrapRegisterBootstrapAgentForbidden{} } -/* BootstrapRegisterBootstrapAgentForbidden describes a response with status code 403, with default header values. +/* + BootstrapRegisterBootstrapAgentForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -128,7 +130,8 @@ func NewBootstrapRegisterBootstrapAgentNotFound() *BootstrapRegisterBootstrapAge return &BootstrapRegisterBootstrapAgentNotFound{} } -/* BootstrapRegisterBootstrapAgentNotFound describes a response with status code 404, with default header values. +/* + BootstrapRegisterBootstrapAgentNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -158,7 +161,8 @@ func NewBootstrapRegisterBootstrapAgentInternalServerError() *BootstrapRegisterB return &BootstrapRegisterBootstrapAgentInternalServerError{} } -/* BootstrapRegisterBootstrapAgentInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapRegisterBootstrapAgentInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -190,7 +194,8 @@ func NewBootstrapRegisterBootstrapAgentDefault(code int) *BootstrapRegisterBoots } } -/* BootstrapRegisterBootstrapAgentDefault describes a response with status code -1, with default header values. +/* + BootstrapRegisterBootstrapAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ @@ -224,7 +229,8 @@ func (o *BootstrapRegisterBootstrapAgentDefault) readResponse(response runtime.C return nil } -/*BootstrapRegisterBootstrapAgentBody bootstrap register bootstrap agent body +/* +BootstrapRegisterBootstrapAgentBody bootstrap register bootstrap agent body swagger:model BootstrapRegisterBootstrapAgentBody */ type BootstrapRegisterBootstrapAgentBody struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_parameters.go b/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_parameters.go index 897cd3f..d32858b 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_parameters.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_parameters.go @@ -54,10 +54,12 @@ func NewBootstrapUpdateBootstrapAgentParamsWithHTTPClient(client *http.Client) * } } -/* BootstrapUpdateBootstrapAgentParams contains all the parameters to send to the API endpoint - for the bootstrap update bootstrap agent operation. +/* +BootstrapUpdateBootstrapAgentParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the bootstrap update bootstrap agent operation. + + Typically these are written to a http.Request. */ type BootstrapUpdateBootstrapAgentParams struct { diff --git a/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_responses.go b/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_responses.go index 9c9b439..b16705a 100644 --- a/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_responses.go +++ b/api/def/clients/sentry/client/bootstrap/bootstrap_update_bootstrap_agent_responses.go @@ -64,7 +64,8 @@ func NewBootstrapUpdateBootstrapAgentOK() *BootstrapUpdateBootstrapAgentOK { return &BootstrapUpdateBootstrapAgentOK{} } -/* BootstrapUpdateBootstrapAgentOK describes a response with status code 200, with default header values. +/* + BootstrapUpdateBootstrapAgentOK describes a response with status code 200, with default header values. A successful response. */ @@ -96,7 +97,8 @@ func NewBootstrapUpdateBootstrapAgentForbidden() *BootstrapUpdateBootstrapAgentF return &BootstrapUpdateBootstrapAgentForbidden{} } -/* BootstrapUpdateBootstrapAgentForbidden describes a response with status code 403, with default header values. +/* + BootstrapUpdateBootstrapAgentForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -126,7 +128,8 @@ func NewBootstrapUpdateBootstrapAgentNotFound() *BootstrapUpdateBootstrapAgentNo return &BootstrapUpdateBootstrapAgentNotFound{} } -/* BootstrapUpdateBootstrapAgentNotFound describes a response with status code 404, with default header values. +/* + BootstrapUpdateBootstrapAgentNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -156,7 +159,8 @@ func NewBootstrapUpdateBootstrapAgentInternalServerError() *BootstrapUpdateBoots return &BootstrapUpdateBootstrapAgentInternalServerError{} } -/* BootstrapUpdateBootstrapAgentInternalServerError describes a response with status code 500, with default header values. +/* + BootstrapUpdateBootstrapAgentInternalServerError describes a response with status code 500, with default header values. Returned for internal server error */ @@ -188,7 +192,8 @@ func NewBootstrapUpdateBootstrapAgentDefault(code int) *BootstrapUpdateBootstrap } } -/* BootstrapUpdateBootstrapAgentDefault describes a response with status code -1, with default header values. +/* + BootstrapUpdateBootstrapAgentDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_client.go b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_client.go index 5f36dec..381fd96 100644 --- a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_client.go +++ b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_client.go @@ -34,7 +34,7 @@ type ClientService interface { } /* - ClusterAuthorizationGetUserAuthorization cluster authorization get user authorization API +ClusterAuthorizationGetUserAuthorization cluster authorization get user authorization API */ func (a *Client) ClusterAuthorizationGetUserAuthorization(params *ClusterAuthorizationGetUserAuthorizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClusterAuthorizationGetUserAuthorizationOK, error) { // TODO: Validate the params before sending diff --git a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_parameters.go b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_parameters.go index 93f761b..8938def 100644 --- a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_parameters.go +++ b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_parameters.go @@ -52,10 +52,12 @@ func NewClusterAuthorizationGetUserAuthorizationParamsWithHTTPClient(client *htt } } -/* ClusterAuthorizationGetUserAuthorizationParams contains all the parameters to send to the API endpoint - for the cluster authorization get user authorization operation. +/* +ClusterAuthorizationGetUserAuthorizationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the cluster authorization get user authorization operation. + + Typically these are written to a http.Request. */ type ClusterAuthorizationGetUserAuthorizationParams struct { diff --git a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_responses.go b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_responses.go index 30909ae..8ad64ff 100644 --- a/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_responses.go +++ b/api/def/clients/sentry/client/cluster_authorization/cluster_authorization_get_user_authorization_responses.go @@ -58,7 +58,8 @@ func NewClusterAuthorizationGetUserAuthorizationOK() *ClusterAuthorizationGetUse return &ClusterAuthorizationGetUserAuthorizationOK{} } -/* ClusterAuthorizationGetUserAuthorizationOK describes a response with status code 200, with default header values. +/* + ClusterAuthorizationGetUserAuthorizationOK describes a response with status code 200, with default header values. A successful response. */ @@ -90,7 +91,8 @@ func NewClusterAuthorizationGetUserAuthorizationForbidden() *ClusterAuthorizatio return &ClusterAuthorizationGetUserAuthorizationForbidden{} } -/* ClusterAuthorizationGetUserAuthorizationForbidden describes a response with status code 403, with default header values. +/* + ClusterAuthorizationGetUserAuthorizationForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -120,7 +122,8 @@ func NewClusterAuthorizationGetUserAuthorizationNotFound() *ClusterAuthorization return &ClusterAuthorizationGetUserAuthorizationNotFound{} } -/* ClusterAuthorizationGetUserAuthorizationNotFound describes a response with status code 404, with default header values. +/* + ClusterAuthorizationGetUserAuthorizationNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -152,7 +155,8 @@ func NewClusterAuthorizationGetUserAuthorizationDefault(code int) *ClusterAuthor } } -/* ClusterAuthorizationGetUserAuthorizationDefault describes a response with status code -1, with default header values. +/* + ClusterAuthorizationGetUserAuthorizationDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_client.go b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_client.go index 5bd6024..a276875 100644 --- a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_client.go +++ b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_client.go @@ -36,7 +36,7 @@ type ClientService interface { } /* - KubectlClusterSettingsGetKubectlClusterSettings kubectl cluster settings get kubectl cluster settings API +KubectlClusterSettingsGetKubectlClusterSettings kubectl cluster settings get kubectl cluster settings API */ func (a *Client) KubectlClusterSettingsGetKubectlClusterSettings(params *KubectlClusterSettingsGetKubectlClusterSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KubectlClusterSettingsGetKubectlClusterSettingsOK, error) { // TODO: Validate the params before sending @@ -74,7 +74,7 @@ func (a *Client) KubectlClusterSettingsGetKubectlClusterSettings(params *Kubectl } /* - KubectlClusterSettingsUpdateKubectlClusterSettings kubectl cluster settings update kubectl cluster settings API +KubectlClusterSettingsUpdateKubectlClusterSettings kubectl cluster settings update kubectl cluster settings API */ func (a *Client) KubectlClusterSettingsUpdateKubectlClusterSettings(params *KubectlClusterSettingsUpdateKubectlClusterSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*KubectlClusterSettingsUpdateKubectlClusterSettingsOK, error) { // TODO: Validate the params before sending diff --git a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_parameters.go b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_parameters.go index 72ea0f6..9cf3f18 100644 --- a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_parameters.go +++ b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_parameters.go @@ -53,10 +53,12 @@ func NewKubectlClusterSettingsGetKubectlClusterSettingsParamsWithHTTPClient(clie } } -/* KubectlClusterSettingsGetKubectlClusterSettingsParams contains all the parameters to send to the API endpoint - for the kubectl cluster settings get kubectl cluster settings operation. +/* +KubectlClusterSettingsGetKubectlClusterSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the kubectl cluster settings get kubectl cluster settings operation. + + Typically these are written to a http.Request. */ type KubectlClusterSettingsGetKubectlClusterSettingsParams struct { diff --git a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_responses.go b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_responses.go index 2096504..1cdbf06 100644 --- a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_responses.go +++ b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_get_kubectl_cluster_settings_responses.go @@ -58,7 +58,8 @@ func NewKubectlClusterSettingsGetKubectlClusterSettingsOK() *KubectlClusterSetti return &KubectlClusterSettingsGetKubectlClusterSettingsOK{} } -/* KubectlClusterSettingsGetKubectlClusterSettingsOK describes a response with status code 200, with default header values. +/* + KubectlClusterSettingsGetKubectlClusterSettingsOK describes a response with status code 200, with default header values. A successful response. */ @@ -90,7 +91,8 @@ func NewKubectlClusterSettingsGetKubectlClusterSettingsForbidden() *KubectlClust return &KubectlClusterSettingsGetKubectlClusterSettingsForbidden{} } -/* KubectlClusterSettingsGetKubectlClusterSettingsForbidden describes a response with status code 403, with default header values. +/* + KubectlClusterSettingsGetKubectlClusterSettingsForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -120,7 +122,8 @@ func NewKubectlClusterSettingsGetKubectlClusterSettingsNotFound() *KubectlCluste return &KubectlClusterSettingsGetKubectlClusterSettingsNotFound{} } -/* KubectlClusterSettingsGetKubectlClusterSettingsNotFound describes a response with status code 404, with default header values. +/* + KubectlClusterSettingsGetKubectlClusterSettingsNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -152,7 +155,8 @@ func NewKubectlClusterSettingsGetKubectlClusterSettingsDefault(code int) *Kubect } } -/* KubectlClusterSettingsGetKubectlClusterSettingsDefault describes a response with status code -1, with default header values. +/* + KubectlClusterSettingsGetKubectlClusterSettingsDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_parameters.go b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_parameters.go index e873a97..a222ffb 100644 --- a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_parameters.go +++ b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_parameters.go @@ -54,10 +54,12 @@ func NewKubectlClusterSettingsUpdateKubectlClusterSettingsParamsWithHTTPClient(c } } -/* KubectlClusterSettingsUpdateKubectlClusterSettingsParams contains all the parameters to send to the API endpoint - for the kubectl cluster settings update kubectl cluster settings operation. +/* +KubectlClusterSettingsUpdateKubectlClusterSettingsParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the kubectl cluster settings update kubectl cluster settings operation. + + Typically these are written to a http.Request. */ type KubectlClusterSettingsUpdateKubectlClusterSettingsParams struct { diff --git a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_responses.go b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_responses.go index a3ad0b5..0a88330 100644 --- a/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_responses.go +++ b/api/def/clients/sentry/client/kubectl_cluster_settings/kubectl_cluster_settings_update_kubectl_cluster_settings_responses.go @@ -58,7 +58,8 @@ func NewKubectlClusterSettingsUpdateKubectlClusterSettingsOK() *KubectlClusterSe return &KubectlClusterSettingsUpdateKubectlClusterSettingsOK{} } -/* KubectlClusterSettingsUpdateKubectlClusterSettingsOK describes a response with status code 200, with default header values. +/* + KubectlClusterSettingsUpdateKubectlClusterSettingsOK describes a response with status code 200, with default header values. A successful response. */ @@ -88,7 +89,8 @@ func NewKubectlClusterSettingsUpdateKubectlClusterSettingsForbidden() *KubectlCl return &KubectlClusterSettingsUpdateKubectlClusterSettingsForbidden{} } -/* KubectlClusterSettingsUpdateKubectlClusterSettingsForbidden describes a response with status code 403, with default header values. +/* + KubectlClusterSettingsUpdateKubectlClusterSettingsForbidden describes a response with status code 403, with default header values. Returned when the user does not have permission to access the resource. */ @@ -118,7 +120,8 @@ func NewKubectlClusterSettingsUpdateKubectlClusterSettingsNotFound() *KubectlClu return &KubectlClusterSettingsUpdateKubectlClusterSettingsNotFound{} } -/* KubectlClusterSettingsUpdateKubectlClusterSettingsNotFound describes a response with status code 404, with default header values. +/* + KubectlClusterSettingsUpdateKubectlClusterSettingsNotFound describes a response with status code 404, with default header values. Returned when the resource does not exist. */ @@ -150,7 +153,8 @@ func NewKubectlClusterSettingsUpdateKubectlClusterSettingsDefault(code int) *Kub } } -/* KubectlClusterSettingsUpdateKubectlClusterSettingsDefault describes a response with status code -1, with default header values. +/* + KubectlClusterSettingsUpdateKubectlClusterSettingsDefault describes a response with status code -1, with default header values. An unexpected error response. */ diff --git a/gen/openapi/pkg/gateway/testdata/test.swagger.json b/gen/openapi/pkg/gateway/testdata/test.swagger.json index 0bf0b4a..0535085 100644 --- a/gen/openapi/pkg/gateway/testdata/test.swagger.json +++ b/gen/openapi/pkg/gateway/testdata/test.swagger.json @@ -76,6 +76,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/rpc/audit/auditlog.swagger.json b/gen/openapi/proto/rpc/audit/auditlog.swagger.json index 2e89bdc..26fc716 100644 --- a/gen/openapi/proto/rpc/audit/auditlog.swagger.json +++ b/gen/openapi/proto/rpc/audit/auditlog.swagger.json @@ -74,6 +74,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -260,6 +274,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -398,6 +426,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/rpc/audit/relayaudit.swagger.json b/gen/openapi/proto/rpc/audit/relayaudit.swagger.json index af787b0..c105c38 100644 --- a/gen/openapi/proto/rpc/audit/relayaudit.swagger.json +++ b/gen/openapi/proto/rpc/audit/relayaudit.swagger.json @@ -75,196 +75,15 @@ "type": "string" }, { - "name": "metadata.project", - "description": "Project\n\nProject of the resource", - "in": "query", - "required": true, - "type": "string" - }, - { - "name": "metadata.organization", - "description": "Organization\n\nOrganization to which the resource belongs", + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { - "name": "metadata.partner", - "description": "Partner\n\nPartner to which the resource belongs", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.urlScope", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.createdAt", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "metadata.modifiedAt", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "filter.type", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.user", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.client", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.timefrom", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.portal", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.cluster", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.namespace", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.kind", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.method", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.projects", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "filter.queryString", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.dashboardData", - "in": "query", - "required": false, - "type": "boolean" - }, - { - "name": "filter.clusterNames", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "auditType", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "RelayAuditService" - ] - } - }, - "/event/v1/relayaudit": { - "get": { - "operationId": "RelayAuditService_GetRelayAPIAuditByProjects", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1RelayAuditResponse" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": {} - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "type": "string", - "format": "string" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "metadata.name", - "description": "Name\n\nname of the resource", - "in": "query", - "required": true, - "type": "string" - }, - { - "name": "metadata.displayName", - "description": "Display Name\n\ndisplay name of the resource", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.description", - "description": "Description\n\ndescription of the resource", + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" @@ -472,197 +291,15 @@ "type": "string" }, { - "name": "metadata.project", - "description": "Project\n\nProject of the resource", - "in": "query", - "required": true, - "type": "string" - }, - { - "name": "metadata.organization", - "description": "Organization\n\nOrganization to which the resource belongs", + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { - "name": "metadata.partner", - "description": "Partner\n\nPartner to which the resource belongs", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.createdAt", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "metadata.modifiedAt", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "filter.type", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.user", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.client", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.timefrom", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.portal", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.cluster", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.namespace", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.kind", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.method", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.projects", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "filter.queryString", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filter.dashboardData", - "in": "query", - "required": false, - "type": "boolean" - }, - { - "name": "filter.clusterNames", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "auditType", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "RelayAuditService" - ] - } - }, - "/event/v1/{metadata.urlScope}/relayaudit": { - "get": { - "operationId": "RelayAuditService_GetRelayAPIAudit", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1RelayAuditResponse" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": {} - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "type": "string", - "format": "string" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "metadata.urlScope", - "in": "path", - "required": true, - "type": "string", - "pattern": "project/[^/]+" - }, - { - "name": "metadata.name", - "description": "Name\n\nname of the resource", - "in": "query", - "required": true, - "type": "string" - }, - { - "name": "metadata.displayName", - "description": "Display Name\n\ndisplay name of the resource", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "metadata.description", - "description": "Description\n\ndescription of the resource", + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" @@ -821,6 +458,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1000,12 +638,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/role/role.swagger.json b/gen/openapi/proto/rpc/role/role.swagger.json index fd40ea3..1904cbb 100644 --- a/gen/openapi/proto/rpc/role/role.swagger.json +++ b/gen/openapi/proto/rpc/role/role.swagger.json @@ -104,6 +104,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -293,6 +307,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -636,6 +664,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -956,6 +998,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1143,6 +1186,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Role", "readOnly": true }, @@ -1202,12 +1246,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/role/rolepermission.swagger.json b/gen/openapi/proto/rpc/role/rolepermission.swagger.json index 34c2a57..78bc869 100644 --- a/gen/openapi/proto/rpc/role/rolepermission.swagger.json +++ b/gen/openapi/proto/rpc/role/rolepermission.swagger.json @@ -111,6 +111,20 @@ "required": false, "type": "string" }, + { + "name": "labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "count", "in": "query", @@ -296,6 +310,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -483,6 +498,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3RolePermission", "readOnly": true }, @@ -523,12 +539,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/scheduler/cluster.swagger.json b/gen/openapi/proto/rpc/scheduler/cluster.swagger.json index 1c5fad9..bf1fae3 100644 --- a/gen/openapi/proto/rpc/scheduler/cluster.swagger.json +++ b/gen/openapi/proto/rpc/scheduler/cluster.swagger.json @@ -257,6 +257,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.organization", "description": "Organization\n\nOrganization to which the resource belongs", @@ -704,6 +718,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.organization", "description": "Organization\n\nOrganization to which the resource belongs", @@ -1304,6 +1332,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.organization", "description": "Organization\n\nOrganization to which the resource belongs", @@ -1763,6 +1805,20 @@ "required": false, "type": "string" }, + { + "name": "labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "count", "in": "query", @@ -1948,6 +2004,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -2215,6 +2272,7 @@ "nodes": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ClusterNode" }, "description": "Override selector of the cluster", @@ -2223,6 +2281,7 @@ "projects": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ProjectCluster" }, "description": "Override selector of the cluster", @@ -2262,6 +2321,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Cluster", "readOnly": true }, @@ -2304,6 +2364,7 @@ "taints": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v1Taint" } } @@ -2327,6 +2388,7 @@ "conditions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v1NodeCondition" } }, @@ -2345,6 +2407,7 @@ "ips": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ClusterNodeIP" } } @@ -2407,6 +2470,7 @@ "conditions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ClusterCondition" }, "description": "Override selector of the cluster", @@ -2791,12 +2855,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/audit_info.swagger.json b/gen/openapi/proto/rpc/sentry/audit_info.swagger.json index 6a30339..553ae9c 100644 --- a/gen/openapi/proto/rpc/sentry/audit_info.swagger.json +++ b/gen/openapi/proto/rpc/sentry/audit_info.swagger.json @@ -121,6 +121,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -143,6 +144,9 @@ }, "displayName": { "type": "string" + }, + "project": { + "type": "string" } } }, @@ -186,12 +190,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/bootstrap.swagger.json b/gen/openapi/proto/rpc/sentry/bootstrap.swagger.json index 75c3225..ddf58d9 100644 --- a/gen/openapi/proto/rpc/sentry/bootstrap.swagger.json +++ b/gen/openapi/proto/rpc/sentry/bootstrap.swagger.json @@ -63,7 +63,7 @@ }, { "name": "apiVersion", - "description": "API Version. API Version of the resource", + "description": "API Version\n\nAPI Version of the resource", "in": "query", "required": false, "type": "string", @@ -71,7 +71,7 @@ }, { "name": "kind", - "description": "Kind. Kind of the resource", + "description": "Kind\n\nKind of the resource", "in": "query", "required": false, "type": "string", @@ -79,35 +79,49 @@ }, { "name": "metadata.displayName", - "description": "Display Name. display name of the resource", + "description": "Display Name\n\ndisplay name of the resource", "in": "query", "required": false, "type": "string" }, { "name": "metadata.description", - "description": "Description. description of the resource", + "description": "Description\n\ndescription of the resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { "name": "metadata.project", - "description": "Project. Project of the resource", + "description": "Project\n\nProject of the resource", "in": "query", - "required": false, + "required": true, "type": "string" }, { "name": "metadata.organization", - "description": "Organization. Organization to which the resource belongs", + "description": "Organization\n\nOrganization to which the resource belongs", "in": "query", "required": false, "type": "string" }, { "name": "metadata.partner", - "description": "Partner. Partner to which the resource belongs", + "description": "Partner\n\nPartner to which the resource belongs", "in": "query", "required": false, "type": "string" @@ -202,7 +216,102 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sentryBootstrapInfra" + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "default": "infra.k8smgmt.io/v3", + "description": "API Version of the resource", + "title": "API Version", + "readOnly": true + }, + "kind": { + "type": "string", + "default": "BootstrapInfra", + "description": "Kind of the resource", + "title": "Kind", + "readOnly": true + }, + "metadata": { + "type": "object", + "example": { + "name": "some-name", + "project": "defaultproject" + }, + "properties": { + "displayName": { + "type": "string", + "description": "display name of the resource", + "title": "Display Name" + }, + "description": { + "type": "string", + "description": "description of the resource", + "title": "Description" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "labels of the resource", + "title": "Labels" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "annotations of the resource", + "title": "Annotations" + }, + "project": { + "type": "string", + "description": "Project of the resource", + "title": "Project" + }, + "organization": { + "type": "string", + "description": "Organization to which the resource belongs", + "title": "Organization" + }, + "partner": { + "type": "string", + "description": "Partner to which the resource belongs", + "title": "Partner" + }, + "id": { + "type": "string", + "readOnly": true + }, + "urlScope": { + "type": "string", + "readOnly": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "modifiedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "description": "metadata of the resource", + "title": "Metadata" + }, + "spec": { + "$ref": "#/definitions/sentryBootstrapInfraSpec" + }, + "status": { + "$ref": "#/definitions/sentryBootstrapInfraStatus" + } + }, + "required": [ + "project" + ] } } ], @@ -243,21 +352,21 @@ "parameters": [ { "name": "q", - "description": "query for filtering.", + "description": "query for filtering", "in": "query", "required": false, "type": "string" }, { "name": "name", - "description": "name is unique ID of a resource along with (partnerID, organizationID,\nprojectID).", + "description": "name is unique ID of a resource along with (partnerID, organizationID,\nprojectID)", "in": "query", "required": false, "type": "string" }, { "name": "selector", - "description": "selector is used to filter the labels of a resource.", + "description": "selector is used to filter the labels of a resource", "in": "query", "required": false, "type": "string" @@ -294,7 +403,21 @@ }, { "name": "displayName", - "description": "displayName only used for update queries to set displayName (READONLY).", + "description": "displayName only used for update queries to set displayName (READONLY)", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" @@ -322,14 +445,14 @@ }, { "name": "ignoreScopeDefault", - "description": "ignoreScopeDefault ignores default values for partnerID, organizationID and\nprojectID.", + "description": "ignoreScopeDefault ignores default values for partnerID, organizationID and\nprojectID", "in": "query", "required": false, "type": "boolean" }, { "name": "globalScope", - "description": "globalScope sets partnerID,organizationID,projectID = 0.", + "description": "globalScope sets partnerID,organizationID,projectID = 0", "in": "query", "required": false, "type": "boolean" @@ -360,7 +483,7 @@ }, { "name": "urlScope", - "description": "urlScope is supposed to be passed in the URL as kind/HashID(value).", + "description": "urlScope is supposed to be passed in the URL as kind/HashID(value)", "in": "query", "required": false, "type": "string" @@ -419,7 +542,7 @@ }, { "name": "type", - "description": "generic way to specify a type of resource, mainly for use in users endpoint.", + "description": "generic way to specify a type of resource, mainly for use in users endpoint", "in": "query", "required": false, "type": "string" @@ -469,7 +592,7 @@ }, { "name": "apiVersion", - "description": "API Version. API Version of the resource", + "description": "API Version\n\nAPI Version of the resource", "in": "query", "required": false, "type": "string", @@ -477,7 +600,7 @@ }, { "name": "kind", - "description": "Kind. Kind of the resource", + "description": "Kind\n\nKind of the resource", "in": "query", "required": false, "type": "string", @@ -485,35 +608,49 @@ }, { "name": "metadata.displayName", - "description": "Display Name. display name of the resource", + "description": "Display Name\n\ndisplay name of the resource", "in": "query", "required": false, "type": "string" }, { "name": "metadata.description", - "description": "Description. description of the resource", + "description": "Description\n\ndescription of the resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { "name": "metadata.project", - "description": "Project. Project of the resource", + "description": "Project\n\nProject of the resource", "in": "query", - "required": false, + "required": true, "type": "string" }, { "name": "metadata.organization", - "description": "Organization. Organization to which the resource belongs", + "description": "Organization\n\nOrganization to which the resource belongs", "in": "query", "required": false, "type": "string" }, { "name": "metadata.partner", - "description": "Partner. Partner to which the resource belongs", + "description": "Partner\n\nPartner to which the resource belongs", "in": "query", "required": false, "type": "string" @@ -645,7 +782,102 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sentryBootstrapAgentTemplate" + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "default": "infra.k8smgmt.io/v3", + "description": "API Version of the resource", + "title": "API Version", + "readOnly": true + }, + "kind": { + "type": "string", + "default": "BootstrapAgentTemplate", + "description": "Kind of the resource", + "title": "Kind", + "readOnly": true + }, + "metadata": { + "type": "object", + "example": { + "name": "some-name", + "project": "defaultproject" + }, + "properties": { + "displayName": { + "type": "string", + "description": "display name of the resource", + "title": "Display Name" + }, + "description": { + "type": "string", + "description": "description of the resource", + "title": "Description" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "labels of the resource", + "title": "Labels" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "annotations of the resource", + "title": "Annotations" + }, + "project": { + "type": "string", + "description": "Project of the resource", + "title": "Project" + }, + "organization": { + "type": "string", + "description": "Organization to which the resource belongs", + "title": "Organization" + }, + "partner": { + "type": "string", + "description": "Partner to which the resource belongs", + "title": "Partner" + }, + "id": { + "type": "string", + "readOnly": true + }, + "urlScope": { + "type": "string", + "readOnly": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "modifiedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "description": "metadata of the resource", + "title": "Metadata" + }, + "spec": { + "$ref": "#/definitions/sentryBootstrapAgentTemplateSpec" + }, + "status": { + "$ref": "#/definitions/sentryBootstrapAgentTemplateStatus" + } + }, + "required": [ + "project" + ] } } ], @@ -696,7 +928,42 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sentryBootstrapAgent" + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "default": "infra.k8smgmt.io/v3", + "description": "API Version of the resource", + "title": "API Version", + "readOnly": true + }, + "kind": { + "type": "string", + "default": "BootstrapAgent", + "description": "Kind of the resource", + "title": "Kind", + "readOnly": true + }, + "metadata": { + "$ref": "#/definitions/v3Metadata", + "description": "Metadata of the resource", + "title": "Metadata" + }, + "spec": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "agentMode": { + "$ref": "#/definitions/sentryBootstrapAgentMode" + } + } + }, + "status": { + "$ref": "#/definitions/sentryBootStrapAgentStatus" + } + } } } ], @@ -751,7 +1018,7 @@ }, { "name": "apiVersion", - "description": "API Version. API Version of the resource", + "description": "API Version\n\nAPI Version of the resource", "in": "query", "required": false, "type": "string", @@ -759,7 +1026,7 @@ }, { "name": "kind", - "description": "Kind. Kind of the resource", + "description": "Kind\n\nKind of the resource", "in": "query", "required": false, "type": "string", @@ -767,35 +1034,49 @@ }, { "name": "metadata.displayName", - "description": "Display Name. display name of the resource", + "description": "Display Name\n\ndisplay name of the resource", "in": "query", "required": false, "type": "string" }, { "name": "metadata.description", - "description": "Description. description of the resource", + "description": "Description\n\ndescription of the resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { "name": "metadata.project", - "description": "Project. Project of the resource", + "description": "Project\n\nProject of the resource", "in": "query", - "required": false, + "required": true, "type": "string" }, { "name": "metadata.organization", - "description": "Organization. Organization to which the resource belongs", + "description": "Organization\n\nOrganization to which the resource belongs", "in": "query", "required": false, "type": "string" }, { "name": "metadata.partner", - "description": "Partner. Partner to which the resource belongs", + "description": "Partner\n\nPartner to which the resource belongs", "in": "query", "required": false, "type": "string" @@ -925,7 +1206,7 @@ }, { "name": "apiVersion", - "description": "API Version. API Version of the resource", + "description": "API Version\n\nAPI Version of the resource", "in": "query", "required": false, "type": "string", @@ -933,7 +1214,7 @@ }, { "name": "kind", - "description": "Kind. Kind of the resource", + "description": "Kind\n\nKind of the resource", "in": "query", "required": false, "type": "string", @@ -941,35 +1222,49 @@ }, { "name": "metadata.displayName", - "description": "Display Name. display name of the resource", + "description": "Display Name\n\ndisplay name of the resource", "in": "query", "required": false, "type": "string" }, { "name": "metadata.description", - "description": "Description. description of the resource", + "description": "Description\n\ndescription of the resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { "name": "metadata.project", - "description": "Project. Project of the resource", + "description": "Project\n\nProject of the resource", "in": "query", - "required": false, + "required": true, "type": "string" }, { "name": "metadata.organization", - "description": "Organization. Organization to which the resource belongs", + "description": "Organization\n\nOrganization to which the resource belongs", "in": "query", "required": false, "type": "string" }, { "name": "metadata.partner", - "description": "Partner. Partner to which the resource belongs", + "description": "Partner\n\nPartner to which the resource belongs", "in": "query", "required": false, "type": "string" @@ -1102,7 +1397,110 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sentryBootstrapAgent" + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "default": "infra.k8smgmt.io/v3", + "description": "API Version of the resource", + "title": "API Version", + "readOnly": true + }, + "kind": { + "type": "string", + "default": "BootstrapAgent", + "description": "Kind of the resource", + "title": "Kind", + "readOnly": true + }, + "metadata": { + "type": "object", + "example": { + "name": "some-name", + "project": "defaultproject" + }, + "properties": { + "displayName": { + "type": "string", + "description": "display name of the resource", + "title": "Display Name" + }, + "description": { + "type": "string", + "description": "description of the resource", + "title": "Description" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "labels of the resource", + "title": "Labels" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "annotations of the resource", + "title": "Annotations" + }, + "project": { + "type": "string", + "description": "Project of the resource", + "title": "Project" + }, + "organization": { + "type": "string", + "description": "Organization to which the resource belongs", + "title": "Organization" + }, + "partner": { + "type": "string", + "description": "Partner to which the resource belongs", + "title": "Partner" + }, + "id": { + "type": "string", + "readOnly": true + }, + "urlScope": { + "type": "string", + "readOnly": true + }, + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true + }, + "modifiedAt": { + "type": "string", + "format": "date-time", + "readOnly": true + } + }, + "description": "metadata of the resource", + "title": "Metadata" + }, + "spec": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "agentMode": { + "$ref": "#/definitions/sentryBootstrapAgentMode" + } + } + }, + "status": { + "$ref": "#/definitions/sentryBootStrapAgentStatus" + } + }, + "required": [ + "project" + ] } } ], @@ -1157,7 +1555,7 @@ }, { "name": "apiVersion", - "description": "API Version. API Version of the resource", + "description": "API Version\n\nAPI Version of the resource", "in": "query", "required": false, "type": "string", @@ -1165,7 +1563,7 @@ }, { "name": "kind", - "description": "Kind. Kind of the resource", + "description": "Kind\n\nKind of the resource", "in": "query", "required": false, "type": "string", @@ -1173,35 +1571,49 @@ }, { "name": "metadata.displayName", - "description": "Display Name. display name of the resource", + "description": "Display Name\n\ndisplay name of the resource", "in": "query", "required": false, "type": "string" }, { "name": "metadata.description", - "description": "Description. description of the resource", + "description": "Description\n\ndescription of the resource", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" }, { "name": "metadata.project", - "description": "Project. Project of the resource", + "description": "Project\n\nProject of the resource", "in": "query", - "required": false, + "required": true, "type": "string" }, { "name": "metadata.organization", - "description": "Organization. Organization to which the resource belongs", + "description": "Organization\n\nOrganization to which the resource belongs", "in": "query", "required": false, "type": "string" }, { "name": "metadata.partner", - "description": "Partner. Partner to which the resource belongs", + "description": "Partner\n\nPartner to which the resource belongs", "in": "query", "required": false, "type": "string" @@ -1326,21 +1738,21 @@ }, { "name": "opts.q", - "description": "query for filtering.", + "description": "query for filtering", "in": "query", "required": false, "type": "string" }, { "name": "opts.name", - "description": "name is unique ID of a resource along with (partnerID, organizationID,\nprojectID).", + "description": "name is unique ID of a resource along with (partnerID, organizationID,\nprojectID)", "in": "query", "required": false, "type": "string" }, { "name": "opts.selector", - "description": "selector is used to filter the labels of a resource.", + "description": "selector is used to filter the labels of a resource", "in": "query", "required": false, "type": "string" @@ -1377,7 +1789,21 @@ }, { "name": "opts.displayName", - "description": "displayName only used for update queries to set displayName (READONLY).", + "description": "displayName only used for update queries to set displayName (READONLY)", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", "in": "query", "required": false, "type": "string" @@ -1405,14 +1831,14 @@ }, { "name": "opts.ignoreScopeDefault", - "description": "ignoreScopeDefault ignores default values for partnerID, organizationID and\nprojectID.", + "description": "ignoreScopeDefault ignores default values for partnerID, organizationID and\nprojectID", "in": "query", "required": false, "type": "boolean" }, { "name": "opts.globalScope", - "description": "globalScope sets partnerID,organizationID,projectID = 0.", + "description": "globalScope sets partnerID,organizationID,projectID = 0", "in": "query", "required": false, "type": "boolean" @@ -1443,7 +1869,7 @@ }, { "name": "opts.urlScope", - "description": "urlScope is supposed to be passed in the URL as kind/HashID(value).", + "description": "urlScope is supposed to be passed in the URL as kind/HashID(value)", "in": "query", "required": false, "type": "string" @@ -1502,7 +1928,7 @@ }, { "name": "opts.type", - "description": "generic way to specify a type of resource, mainly for use in users endpoint.", + "description": "generic way to specify a type of resource, mainly for use in users endpoint", "in": "query", "required": false, "type": "string" @@ -1600,6 +2026,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1704,6 +2131,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/sentryBootstrapAgent" } } @@ -1798,6 +2226,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/sentryBootstrapAgentTemplate" } } @@ -1827,6 +2256,7 @@ "hosts": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/sentryBootstrapTemplateHost" } }, @@ -2165,12 +2595,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/cluster_authz.swagger.json b/gen/openapi/proto/rpc/sentry/cluster_authz.swagger.json index a75a3fc..f40f786 100644 --- a/gen/openapi/proto/rpc/sentry/cluster_authz.swagger.json +++ b/gen/openapi/proto/rpc/sentry/cluster_authz.swagger.json @@ -112,6 +112,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -152,42 +153,49 @@ "clusterRoles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "clusterRoleBindings": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "roles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "roleBindings": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "deleteClusterRoleBindings": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "deleteRoleBindings": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, "namespaces": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/controllerStepObject" } }, @@ -308,6 +316,7 @@ "ownerReferences": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v1OwnerReference" }, "title": "List of objects depended by this object. If ALL objects in the list have\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\nthen an entry in this list will point to this controller, with the controller field set to true.\nThere cannot be more than one managing controller.\n+optional\n+patchMergeKey=uid\n+patchStrategy=merge" @@ -326,6 +335,7 @@ "managedFields": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v1ManagedFieldsEntry" }, "description": "ManagedFields maps workflow-id and version to the set of fields\nthat are managed by that workflow. This is mostly for internal\nhousekeeping, and users typically shouldn't need to set or\nunderstand this field. A workflow can be the user's name, a\ncontroller's name, or the name of a specific apply path like\n\"ci-cd\". The set of fields is always in the version that the\nworkflow used when modifying the object.\n\n+optional" @@ -396,12 +406,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/kubeconfig.swagger.json b/gen/openapi/proto/rpc/sentry/kubeconfig.swagger.json index 37759b1..ab19c20 100644 --- a/gen/openapi/proto/rpc/sentry/kubeconfig.swagger.json +++ b/gen/openapi/proto/rpc/sentry/kubeconfig.swagger.json @@ -111,6 +111,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -341,6 +355,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -614,6 +642,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -846,6 +888,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -1253,6 +1309,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -1660,6 +1730,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -2052,6 +2136,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -2379,6 +2477,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -2585,12 +2684,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/kubectl_cluster.swagger.json b/gen/openapi/proto/rpc/sentry/kubectl_cluster.swagger.json index 8ebb261..ebc7670 100644 --- a/gen/openapi/proto/rpc/sentry/kubectl_cluster.swagger.json +++ b/gen/openapi/proto/rpc/sentry/kubectl_cluster.swagger.json @@ -119,6 +119,20 @@ "required": false, "type": "string" }, + { + "name": "opts.labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "opts.annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "opts.count", "in": "query", @@ -429,6 +443,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -592,12 +607,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/sentry/relaypeer.swagger.json b/gen/openapi/proto/rpc/sentry/relaypeer.swagger.json index 75d3e8c..f6702b3 100644 --- a/gen/openapi/proto/rpc/sentry/relaypeer.swagger.json +++ b/gen/openapi/proto/rpc/sentry/relaypeer.swagger.json @@ -30,6 +30,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -66,6 +67,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/rpcRelayClusterConnectionInfo" } } diff --git a/gen/openapi/proto/rpc/system/idp.swagger.json b/gen/openapi/proto/rpc/system/idp.swagger.json index 15bd2ac..7d454f3 100644 --- a/gen/openapi/proto/rpc/system/idp.swagger.json +++ b/gen/openapi/proto/rpc/system/idp.swagger.json @@ -169,6 +169,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -405,6 +419,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -778,6 +806,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -870,6 +899,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Idp", "readOnly": true }, @@ -1039,12 +1069,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/system/metro.swagger.json b/gen/openapi/proto/rpc/system/metro.swagger.json index 55bb5cf..d49a0df 100644 --- a/gen/openapi/proto/rpc/system/metro.swagger.json +++ b/gen/openapi/proto/rpc/system/metro.swagger.json @@ -97,6 +97,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -481,6 +495,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -708,6 +736,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -1070,6 +1112,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1182,6 +1225,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Metro", "readOnly": true }, @@ -1349,12 +1393,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/system/oidc_provider.swagger.json b/gen/openapi/proto/rpc/system/oidc_provider.swagger.json index 33870ab..2927bcf 100644 --- a/gen/openapi/proto/rpc/system/oidc_provider.swagger.json +++ b/gen/openapi/proto/rpc/system/oidc_provider.swagger.json @@ -169,6 +169,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -275,6 +289,13 @@ "required": false, "type": "string" }, + { + "name": "spec.requestedClaims", + "description": "JSON object", + "in": "query", + "required": false, + "type": "object" + }, { "name": "spec.predefined", "in": "query", @@ -398,6 +419,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -504,6 +539,13 @@ "required": false, "type": "string" }, + { + "name": "spec.requestedClaims", + "description": "JSON object", + "in": "query", + "required": false, + "type": "object" + }, { "name": "spec.predefined", "in": "query", @@ -764,6 +806,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -961,6 +1004,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3OIDCProvider", "readOnly": true }, @@ -1037,12 +1081,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/system/organization.swagger.json b/gen/openapi/proto/rpc/system/organization.swagger.json index 28caba5..4236913 100644 --- a/gen/openapi/proto/rpc/system/organization.swagger.json +++ b/gen/openapi/proto/rpc/system/organization.swagger.json @@ -258,6 +258,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -544,6 +558,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -984,6 +1012,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -1249,6 +1291,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1462,6 +1505,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Organization", "readOnly": true }, @@ -1583,12 +1627,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/system/partner.swagger.json b/gen/openapi/proto/rpc/system/partner.swagger.json index 9b7214e..bc1a5e1 100644 --- a/gen/openapi/proto/rpc/system/partner.swagger.json +++ b/gen/openapi/proto/rpc/system/partner.swagger.json @@ -169,6 +169,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -293,6 +307,13 @@ "required": false, "type": "boolean" }, + { + "name": "spec.settings", + "description": "Settings\n\nSettings of the partner", + "in": "query", + "required": false, + "type": "object" + }, { "name": "status.conditionType", "description": "Condition Type\n\ntype of the status condition", @@ -403,6 +424,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -527,6 +562,13 @@ "required": false, "type": "boolean" }, + { + "name": "spec.settings", + "description": "Settings\n\nSettings of the partner", + "in": "query", + "required": false, + "type": "object" + }, { "name": "status.conditionType", "description": "Condition Type\n\ntype of the status condition", @@ -777,6 +819,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1016,12 +1059,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/system/project.swagger.json b/gen/openapi/proto/rpc/system/project.swagger.json index 7c7eb7c..ded0464 100644 --- a/gen/openapi/proto/rpc/system/project.swagger.json +++ b/gen/openapi/proto/rpc/system/project.swagger.json @@ -267,6 +267,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -431,6 +445,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -751,6 +779,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -887,6 +929,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1078,6 +1121,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Project", "readOnly": true }, @@ -1126,6 +1170,7 @@ "projectNamespaceRoles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ProjectNamespaceRole" }, "description": "Project, namespace, role associations with groups", @@ -1134,6 +1179,7 @@ "userRoles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3UserRole" }, "description": "List of users with roles assigned to projects", @@ -1182,12 +1228,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/user/group.swagger.json b/gen/openapi/proto/rpc/user/group.swagger.json index fbef311..b4e3067 100644 --- a/gen/openapi/proto/rpc/user/group.swagger.json +++ b/gen/openapi/proto/rpc/user/group.swagger.json @@ -104,6 +104,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -279,6 +293,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -776,6 +804,20 @@ "required": false, "type": "string" }, + { + "name": "labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "count", "in": "query", @@ -961,6 +1003,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1051,6 +1094,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Group", "readOnly": true }, @@ -1068,6 +1112,7 @@ "projectNamespaceRoles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ProjectNamespaceRole" }, "description": "Project, namespace, role associations for group", @@ -1231,12 +1276,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/user/user.swagger.json b/gen/openapi/proto/rpc/user/user.swagger.json index 159acc3..b26c92b 100644 --- a/gen/openapi/proto/rpc/user/user.swagger.json +++ b/gen/openapi/proto/rpc/user/user.swagger.json @@ -209,6 +209,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -453,6 +467,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -982,6 +1010,20 @@ "required": false, "type": "string" }, + { + "name": "metadata.labels", + "description": "Labels\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "metadata.annotations", + "description": "Annotations\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "metadata.project", "description": "Project\n\nProject of the resource", @@ -1245,6 +1287,20 @@ "required": false, "type": "string" }, + { + "name": "labels", + "description": "labels only used for update queries to set labels (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "annotations", + "description": "annotations only used for update queries to set annotations (READONLY)\n\nThis is a request variable of the map type. The query format is \"map_name[key]=value\", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age[\"bob\"]=18", + "in": "query", + "required": false, + "type": "string" + }, { "name": "count", "in": "query", @@ -1476,6 +1532,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -1835,6 +1892,7 @@ "permissions": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3Permission" }, "description": "Permissions for the user", @@ -1887,6 +1945,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3User", "readOnly": true }, @@ -1904,6 +1963,7 @@ "items": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ApiKeyResponse" } } @@ -1964,6 +2024,7 @@ "projectNamespaceRoles": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ProjectNamespaceRole" }, "description": "Project, namespace, role associations for user", @@ -2019,12 +2080,10 @@ } }, "security": [ - { - "BasicAuth": [] - }, { "ApiKeyAuth": [], - "ApiTokenAuth": [] + "ApiTokenAuth": [], + "BasicAuth": [] } ] } diff --git a/gen/openapi/proto/rpc/v3/auth.swagger.json b/gen/openapi/proto/rpc/v3/auth.swagger.json index 86bcbfd..8ea3d11 100644 --- a/gen/openapi/proto/rpc/v3/auth.swagger.json +++ b/gen/openapi/proto/rpc/v3/auth.swagger.json @@ -39,6 +39,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } @@ -99,6 +100,7 @@ "list": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3ProjectRole" } } @@ -224,6 +226,7 @@ "namespaces": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/v3NamespaceData" } }, diff --git a/gen/openapi/proto/types/audit/audit.swagger.json b/gen/openapi/proto/types/audit/audit.swagger.json index ceecb89..c62fddd 100644 --- a/gen/openapi/proto/types/audit/audit.swagger.json +++ b/gen/openapi/proto/types/audit/audit.swagger.json @@ -34,6 +34,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/authz/authz.swagger.json b/gen/openapi/proto/types/authz/authz.swagger.json index 36c51d3..62652f2 100644 --- a/gen/openapi/proto/types/authz/authz.swagger.json +++ b/gen/openapi/proto/types/authz/authz.swagger.json @@ -34,6 +34,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/commonpb/v3/artifacts.swagger.json b/gen/openapi/proto/types/commonpb/v3/artifacts.swagger.json index 3d94cae..48f14d1 100644 --- a/gen/openapi/proto/types/commonpb/v3/artifacts.swagger.json +++ b/gen/openapi/proto/types/commonpb/v3/artifacts.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/commonpb/v3/auth.swagger.json b/gen/openapi/proto/types/commonpb/v3/auth.swagger.json index 301055f..e8f485a 100644 --- a/gen/openapi/proto/types/commonpb/v3/auth.swagger.json +++ b/gen/openapi/proto/types/commonpb/v3/auth.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/commonpb/v3/common.swagger.json b/gen/openapi/proto/types/commonpb/v3/common.swagger.json index 26d0a30..2b58b80 100644 --- a/gen/openapi/proto/types/commonpb/v3/common.swagger.json +++ b/gen/openapi/proto/types/commonpb/v3/common.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/controller/cluster_controller.swagger.json b/gen/openapi/proto/types/controller/cluster_controller.swagger.json index e565ac0..17ba4af 100644 --- a/gen/openapi/proto/types/controller/cluster_controller.swagger.json +++ b/gen/openapi/proto/types/controller/cluster_controller.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/infrapb/v3/cluster.swagger.json b/gen/openapi/proto/types/infrapb/v3/cluster.swagger.json index d70ee5b..013a5cf 100644 --- a/gen/openapi/proto/types/infrapb/v3/cluster.swagger.json +++ b/gen/openapi/proto/types/infrapb/v3/cluster.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/rolepb/v3/role.swagger.json b/gen/openapi/proto/types/rolepb/v3/role.swagger.json index fbbfb2d..df8aaea 100644 --- a/gen/openapi/proto/types/rolepb/v3/role.swagger.json +++ b/gen/openapi/proto/types/rolepb/v3/role.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/rolepb/v3/rolepermission.swagger.json b/gen/openapi/proto/types/rolepb/v3/rolepermission.swagger.json index e9bf49a..440de23 100644 --- a/gen/openapi/proto/types/rolepb/v3/rolepermission.swagger.json +++ b/gen/openapi/proto/types/rolepb/v3/rolepermission.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/scheduler/namespace.swagger.json b/gen/openapi/proto/types/scheduler/namespace.swagger.json index c7ba2d2..2865de4 100644 --- a/gen/openapi/proto/types/scheduler/namespace.swagger.json +++ b/gen/openapi/proto/types/scheduler/namespace.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/sentry/account_permission.swagger.json b/gen/openapi/proto/types/sentry/account_permission.swagger.json index 4e56769..8ec7d50 100644 --- a/gen/openapi/proto/types/sentry/account_permission.swagger.json +++ b/gen/openapi/proto/types/sentry/account_permission.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/sentry/group_permission.swagger.json b/gen/openapi/proto/types/sentry/group_permission.swagger.json index 6b86dbc..830409d 100644 --- a/gen/openapi/proto/types/sentry/group_permission.swagger.json +++ b/gen/openapi/proto/types/sentry/group_permission.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/sentry/kubeconfig_setting.swagger.json b/gen/openapi/proto/types/sentry/kubeconfig_setting.swagger.json index f2df784..edb9ef3 100644 --- a/gen/openapi/proto/types/sentry/kubeconfig_setting.swagger.json +++ b/gen/openapi/proto/types/sentry/kubeconfig_setting.swagger.json @@ -12,16 +12,7 @@ ], "paths": {}, "definitions": { - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string" - } - }, - "additionalProperties": {} - }, - "rpcStatus": { + "googlerpcStatus": { "type": "object", "properties": { "code": { @@ -34,10 +25,20 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} } } } diff --git a/gen/openapi/proto/types/sentry/kubectl_cluster_setting.swagger.json b/gen/openapi/proto/types/sentry/kubectl_cluster_setting.swagger.json index 7651be8..1dd70c5 100644 --- a/gen/openapi/proto/types/sentry/kubectl_cluster_setting.swagger.json +++ b/gen/openapi/proto/types/sentry/kubectl_cluster_setting.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/sentry/sentry.swagger.json b/gen/openapi/proto/types/sentry/sentry.swagger.json index 9a0388f..f712afa 100644 --- a/gen/openapi/proto/types/sentry/sentry.swagger.json +++ b/gen/openapi/proto/types/sentry/sentry.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/systempb/v3/idp.swagger.json b/gen/openapi/proto/types/systempb/v3/idp.swagger.json index ac5b143..cb88a0e 100644 --- a/gen/openapi/proto/types/systempb/v3/idp.swagger.json +++ b/gen/openapi/proto/types/systempb/v3/idp.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/systempb/v3/oidc_provider.swagger.json b/gen/openapi/proto/types/systempb/v3/oidc_provider.swagger.json index fb3f7b8..f22b5c3 100644 --- a/gen/openapi/proto/types/systempb/v3/oidc_provider.swagger.json +++ b/gen/openapi/proto/types/systempb/v3/oidc_provider.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/systempb/v3/organization.swagger.json b/gen/openapi/proto/types/systempb/v3/organization.swagger.json index 25946e0..311d532 100644 --- a/gen/openapi/proto/types/systempb/v3/organization.swagger.json +++ b/gen/openapi/proto/types/systempb/v3/organization.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/systempb/v3/partner.swagger.json b/gen/openapi/proto/types/systempb/v3/partner.swagger.json index 1c2b231..87251ca 100644 --- a/gen/openapi/proto/types/systempb/v3/partner.swagger.json +++ b/gen/openapi/proto/types/systempb/v3/partner.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/systempb/v3/project.swagger.json b/gen/openapi/proto/types/systempb/v3/project.swagger.json index 8a16155..c14370a 100644 --- a/gen/openapi/proto/types/systempb/v3/project.swagger.json +++ b/gen/openapi/proto/types/systempb/v3/project.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/userpb/v3/group.swagger.json b/gen/openapi/proto/types/userpb/v3/group.swagger.json index 721eeb3..1e93c3e 100644 --- a/gen/openapi/proto/types/userpb/v3/group.swagger.json +++ b/gen/openapi/proto/types/userpb/v3/group.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/gen/openapi/proto/types/userpb/v3/user.swagger.json b/gen/openapi/proto/types/userpb/v3/user.swagger.json index 57e48e6..3bc1e6b 100644 --- a/gen/openapi/proto/types/userpb/v3/user.swagger.json +++ b/gen/openapi/proto/types/userpb/v3/user.swagger.json @@ -25,6 +25,7 @@ "details": { "type": "array", "items": { + "type": "object", "$ref": "#/definitions/protobufAny" } } diff --git a/go.mod b/go.mod index 46c7db4..3735083 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/paralus/paralus -go 1.17 +go 1.20 require ( github.com/DATA-DOG/go-sqlmock v1.5.0 @@ -11,7 +11,6 @@ require ( github.com/dgraph-io/ristretto v0.1.0 github.com/elastic/go-elasticsearch v0.0.0 github.com/evanphx/json-patch v4.12.0+incompatible - github.com/fdaines/go-architect-lib v1.0.1 github.com/go-openapi/errors v0.20.2 github.com/go-openapi/runtime v0.23.1 github.com/go-openapi/strfmt v0.21.2 @@ -132,7 +131,6 @@ require ( go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.6.0 // indirect golang.org/x/crypto v0.3.0 // indirect - golang.org/x/mod v0.7.0 // indirect golang.org/x/net v0.7.0 // indirect golang.org/x/oauth2 v0.2.0 // indirect golang.org/x/sys v0.5.0 // indirect diff --git a/go.sum b/go.sum index a5db680..5b6481c 100644 --- a/go.sum +++ b/go.sum @@ -77,24 +77,20 @@ github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible h1 github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Microsoft/go-winio v0.5.2/go.mod h1:WpS1mjBmmwHBEWmogvA2mj8546UReBk4v8QkMxJ6pZY= github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/ProtonMail/go-crypto v0.0.0-20221026131551-cf6655e29de4/go.mod h1:UBYPn8k0D56RtnR8RFQMjmh4KrZzWJ5o7Z9SYjossQ8= github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/acomagu/bufpipe v1.0.3/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= @@ -102,7 +98,6 @@ github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmV github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= @@ -120,7 +115,6 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/casbin/casbin/v2 v2.37.4/go.mod h1:vByNa/Fchek0KZUgG5wEsl7iFsiviAYKRtgrQfcJqHg= github.com/casbin/casbin/v2 v2.40.6 h1:Fy8UmYaLst1zjyQ7Uw/Kq9Vxgyk91EtZO/cUUSm3kpQ= github.com/casbin/casbin/v2 v2.40.6/go.mod h1:sEL80qBYTbd+BPeL4iyvwYzFT3qwLaESq5aFKVLbLfA= @@ -143,7 +137,6 @@ github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/cfssl v0.0.0-20190726000631-633726f6bcb7 h1:Puu1hUwfps3+1CUzYdAZXijuvLuRMirgiXdf3zsM2Ig= github.com/cloudflare/cfssl v0.0.0-20190726000631-633726f6bcb7/go.mod h1:yMWuSON2oQp+43nFtAV/uvKQIFpSPerB57DCt9t8sSA= -github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= @@ -200,7 +193,6 @@ github.com/elazarl/goproxy v0.0.0-20191011121108-aa519ddbe484/go.mod h1:Ro8st/El github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -220,8 +212,6 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fdaines/go-architect-lib v1.0.1 h1:W7w1xk+PLQ2L/RKc24B3LkGkEYdgmPOZhL0XoZesnrc= -github.com/fdaines/go-architect-lib v1.0.1/go.mod h1:oNg1a4jL9VYeaP4sfpCBG00m3BhE1LCt9sg5aS3ljOQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= @@ -233,11 +223,6 @@ github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSy github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4= -github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= -github.com/go-git/go-billy/v5 v5.3.1/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= -github.com/go-git/go-git-fixtures/v4 v4.3.1/go.mod h1:8LHG1a3SRW71ettAD/jW13h8c6AqjVSeL11RAdgaqpo= -github.com/go-git/go-git/v5 v5.5.1/go.mod h1:uz5PQ3d0gz7mSgzZhSJToM6ALPaKCdSnl58/Xb5hzr8= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= @@ -536,9 +521,7 @@ github.com/jackc/pgx/v4 v4.13.0/go.mod h1:9P4X524sErlaxj0XSGZk7s+LD0eOyu1ZDUrrpz github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= -github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jinzhu/now v1.1.1/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= @@ -567,7 +550,6 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kevinburke/ssh_config v1.2.0/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= @@ -607,7 +589,6 @@ github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0 github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= -github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattermost/xml-roundtrip-validator v0.1.0 h1:RXbVD2UAl7A7nOTR4u7E3ILa4IbtvKBHw64LDsmu9hU= github.com/mattermost/xml-roundtrip-validator v0.1.0/go.mod h1:qccnGMcpgwcNaBnxqpJpWWUiPNr5H3O8eDgGV9gT5To= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -692,7 +673,6 @@ github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCko github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -764,7 +744,6 @@ github.com/segmentio/asm v1.1.3 h1:WM03sfUOENvvKexOLp+pCqgb/WDjsi7EK8gIsICtzhc= github.com/segmentio/asm v1.1.3/go.mod h1:Ld3L4ZXGNcSLRg4JBsZ3//1+f/TjYl0Mzen/DQy1EJg= github.com/segmentio/encoding v0.3.4 h1:WM4IBnxH8B9TakiM2QD5LyNl9JSndh88QbHqVC+Pauc= github.com/segmentio/encoding v0.3.4/go.mod h1:n0JeuIqEQrQoPDGsjo8UNd1iA0U8d8+oHAA4E3G3OxM= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= @@ -780,7 +759,6 @@ github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6Mwd github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/skeema/knownhosts v1.1.0/go.mod h1:sKFq3RD6/TKZkSWn8boUbDC7Qkgcv+8XXijpFO6roag= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -852,7 +830,6 @@ github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9 github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= -github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= @@ -952,9 +929,6 @@ golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220128200615-198e4374d7ed/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.0.0-20220826181053-bd7e27e6170d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -994,7 +968,6 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA= golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20170114055629-f2499483f923/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1054,7 +1027,6 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211209124913-491a49abca63/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220826154423-83b083e8dc8b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= @@ -1092,7 +1064,6 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20170830134202-bb24a47a89ea/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1186,10 +1157,7 @@ golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220825204002-c680a09ffe64/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= @@ -1198,7 +1166,6 @@ golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXR golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY= @@ -1481,7 +1448,6 @@ gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/internal/dao/auditlog.go b/internal/dao/auditlog.go index 9e80ac2..30e0050 100644 --- a/internal/dao/auditlog.go +++ b/internal/dao/auditlog.go @@ -28,11 +28,21 @@ func GetAuditLogAggregations(ctx context.Context, db *bun.DB, tag, field string, Where("tag = ?", tag).GroupExpr("data->>'un'") } case "project": - sq.ColumnExpr("data->>'project' as key"). - Where("tag = ?", tag).GroupExpr("data->>'project'") + if tag != audit.KUBECTL_API { + sq.ColumnExpr("data->>'project' as key"). + Where("tag = ?", tag).GroupExpr("data->>'project'") + } else { + sq.ColumnExpr("data->>'pr' as key"). + Where("tag = ?", tag).GroupExpr("data->>'pr'") + } case "cluster": - sq.ColumnExpr("data->>'cn' as key"). - Where("tag = ?", tag).GroupExpr("data->>'cn'") + if tag != audit.KUBECTL_API { + sq.ColumnExpr("data->'detail'->'meta'->>'cluster_name' as key"). + Where("tag = ?", tag).GroupExpr("data->'detail'->'meta'->>'cluster_name'") + } else { + sq.ColumnExpr("data->>'cn' as key"). + Where("tag = ?", tag).GroupExpr("data->>'cn'") + } case "namespace": sq.ColumnExpr("data->>'n' as key"). Where("tag = ?", tag).GroupExpr("data->>'n'") @@ -75,11 +85,9 @@ func buildRelayAuditQuery(query *bun.SelectQuery, filters query.QueryFilters) *b if filters.GetUser() != "" { query.Where("data->>'un' = ?", filters.GetUser()) } - if filters.GetKind() != "" { query.Where("data->>'k' = ?", filters.GetKind()) } - if filters.GetMethod() != "" { query.Where("data->>'m' = ?", filters.GetMethod()) } @@ -93,6 +101,11 @@ func buildRelayAuditQuery(query *bun.SelectQuery, filters query.QueryFilters) *b diff := strings.Split(filters.GetTimefrom(), "-")[1] query.Where("time between now() - interval ? and now()", diff) } + if len(filters.GetProjects()) > 0 { + for _, project := range filters.GetProjects() { + query.Where("data->>'pr' = ?", project) + } + } return query } @@ -111,6 +124,10 @@ func buildQuery(query *bun.SelectQuery, filters query.QueryFilters) *bun.SelectQ query.Where("data->'actor'->'account'->>'username' = ?", filters.GetUser()) } + if filters.GetCluster() != "" { + query.Where("data->'detail'->'meta'->>'cluster_name' = ?", filters.GetCluster()) + } + if filters.GetClient() != "" { query.Where("data->'client'->>'type' = ?", filters.GetClient()) } diff --git a/internal/dao/permission.go b/internal/dao/permission.go index 845e3b1..b751886 100644 --- a/internal/dao/permission.go +++ b/internal/dao/permission.go @@ -229,6 +229,32 @@ func IsOrgAdmin(ctx context.Context, db bun.IDB, accountID, partnerID uuid.UUID) return isOrgAdmin, nil } +func IsOrgReadOnly(ctx context.Context, db bun.IDB, accountID, organizationID uuid.UUID, partnerID uuid.UUID) (isOrgReadOnly bool, err error) { + var aps []models.AccountPermission + + isOrgReadOnly = false + + err = db.NewSelect().Model(&aps). + Where("account_id = ?", accountID). + Where("organization_id = ?", organizationID). + Where("partner_id = ?", partnerID). + Where("lower(role_name) = ?", "admin_read_only"). + Where("lower(scope) = ?", "organization"). + Scan(ctx) + if err != nil { + return isOrgReadOnly, err + } + + for _, ap := range aps { + if strings.ToLower(ap.RoleName) == "admin_read_only" && strings.ToLower(ap.Scope) == "organization" { + isOrgReadOnly = true + break + } + } + + return isOrgReadOnly, nil +} + func GetAccountBasics(ctx context.Context, db bun.IDB, accountID uuid.UUID) (*models.Account, error) { var acc models.Account diff --git a/internal/fixtures/load.go b/internal/fixtures/load.go index 56079de..67c8fef 100644 --- a/internal/fixtures/load.go +++ b/internal/fixtures/load.go @@ -33,10 +33,11 @@ var ( // Changes to the below code will affect the default template // and risks CA cert update. Once the template certs are // updated following situation will arise. -// - Existing relay connections will fail, need to restart -// agents to re-bootstrap. -// - Existing kubeconfig will fail, need to download new -// kubeconfig to continue +// - Existing relay connections will fail, need to restart +// agents to re-bootstrap. +// - Existing kubeconfig will fail, need to download new +// kubeconfig to continue +// // This can cause issues in the case of production clusters // Take extra caution while modifying the code to avoid // unintended side effects. diff --git a/internal/models/kratosidentities.go b/internal/models/kratosidentities.go index 5aee37e..44054ad 100644 --- a/internal/models/kratosidentities.go +++ b/internal/models/kratosidentities.go @@ -35,4 +35,5 @@ type KratosIdentities struct { StateChangedAt time.Time `bun:"state_changed_at,notnull,default:current_timestamp"` NId uuid.UUID `bun:"nid,type:uuid,pk"` IdentityCredential KratosIdentityCredentials `bun:"rel:has-one,join:id=identity_id"` + MetadataPublic map[string]interface{} `bun:"metadata_public,type:jsonb"` } diff --git a/internal/provider/kratos/kratos.go b/internal/provider/kratos/kratos.go index a6e9d7f..37b3e47 100644 --- a/internal/provider/kratos/kratos.go +++ b/internal/provider/kratos/kratos.go @@ -7,6 +7,7 @@ import ( "net/http" kclient "github.com/ory/kratos-client-go" + logv2 "github.com/paralus/paralus/pkg/log" ) // IdentityPublicMetadata is an extra information of the @@ -16,6 +17,9 @@ import ( type IdentityPublicMetadata struct { // Indicate identity is created with auto generated password. ForceReset bool + // Associated paralus partner and organization + Organization string + Partner string } type kratosAuthProvider struct { @@ -23,9 +27,9 @@ type kratosAuthProvider struct { } type AuthProvider interface { // create new user - Create(context.Context, string, map[string]interface{}, bool) (string, error) // returns id,error + Create(context.Context, string, map[string]interface{}, IdentityPublicMetadata) (string, error) // returns id,error // update user - Update(context.Context, string, map[string]interface{}, bool) error + Update(context.Context, string, map[string]interface{}, IdentityPublicMetadata) error // get recovery link for user GetRecoveryLink(context.Context, string) (string, error) // delete user @@ -34,11 +38,13 @@ type AuthProvider interface { GetPublicMetadata(context.Context, string) (*IdentityPublicMetadata, error) } +var _log = logv2.GetLogger() + func NewKratosAuthProvider(kc *kclient.APIClient) AuthProvider { return &kratosAuthProvider{kc: kc} } -func (k *kratosAuthProvider) Create(ctx context.Context, password string, traits map[string]interface{}, forceReset bool) (string, error) { +func (k *kratosAuthProvider) Create(ctx context.Context, password string, traits map[string]interface{}, metadata IdentityPublicMetadata) (string, error) { cib := kclient.NewCreateIdentityBody("default", traits) cib.Credentials = kclient.NewIdentityWithCredentials() @@ -47,28 +53,29 @@ func (k *kratosAuthProvider) Create(ctx context.Context, password string, traits Password: kclient.PtrString(password), }, }) - ipm := IdentityPublicMetadata{ - ForceReset: forceReset, - } - cib.SetMetadataPublic(ipm) + cib.SetMetadataPublic(metadata) ir, hr, err := k.kc.IdentityApi.CreateIdentity(ctx).CreateIdentityBody(*cib).Execute() if err != nil { - fmt.Println(hr) + _log.Error("failed to create identity ", hr) return "", err } return ir.Id, nil } -func (k *kratosAuthProvider) Update(ctx context.Context, id string, traits map[string]interface{}, forceReset bool) error { +func (k *kratosAuthProvider) Update(ctx context.Context, id string, traits map[string]interface{}, metadata IdentityPublicMetadata) error { uib := kclient.NewUpdateIdentityBody("default", "active", traits) - ipm := IdentityPublicMetadata{ - ForceReset: forceReset, + + ipm, err := k.GetPublicMetadata(ctx, id) + if err != nil { + _log.Error("failed to get identity public metadata ", err) + return err } + ipm.ForceReset = metadata.ForceReset uib.SetMetadataPublic(ipm) _, hr, err := k.kc.IdentityApi.UpdateIdentity(ctx, id).UpdateIdentityBody(*uib).Execute() if err != nil { - fmt.Println(hr) + _log.Error("failed to update identity ", hr) } return err } @@ -106,6 +113,12 @@ func (k *kratosAuthProvider) GetPublicMetadata(ctx context.Context, id string) ( if ok { ipm.ForceReset = fr } + if org, ok := m["Organization"].(string); ok { + ipm.Organization = org + } + if part, ok := m["Partner"].(string); ok { + ipm.Partner = part + } } } return ipm, nil diff --git a/main.go b/main.go index e0971c2..27b6cce 100644 --- a/main.go +++ b/main.go @@ -397,7 +397,7 @@ func setup() { } case audit.ELASTICSEARCH: // audit services - aus, err = service.NewAuditLogElasticSearchService(elasticSearchUrl, esIndexPrefix+"-*", "AuditLog API: ") + aus, err = service.NewAuditLogElasticSearchService(elasticSearchUrl, esIndexPrefix+"-*", "AuditLog API: ", db) if err != nil { if dev && strings.Contains(err.Error(), "connect: connection refused") { // This is primarily from ES not being available. ES being @@ -409,7 +409,7 @@ func setup() { _log.Fatalw("unable to create auditLog service", "error", err) } } - ras, err = service.NewRelayAuditElasticSearchService(elasticSearchUrl, relayAuditsESIndexPrefix+"-*", "RelayAudit API: ") + ras, err = service.NewRelayAuditElasticSearchService(elasticSearchUrl, relayAuditsESIndexPrefix+"-*", "RelayAudit API: ", db) if err != nil { if dev && strings.Contains(err.Error(), "connect: connection refused") { _log.Warn("unable to create relayAudit service: ", err) @@ -417,7 +417,7 @@ func setup() { _log.Fatalw("unable to create relayAudit service", "error", err) } } - rcs, err = service.NewAuditLogElasticSearchService(elasticSearchUrl, relayCommandsESIndexPrefix+"-*", "RelayCommand API: ") + rcs, err = service.NewAuditLogElasticSearchService(elasticSearchUrl, relayCommandsESIndexPrefix+"-*", "RelayCommand API: ", db) if err != nil { if dev && strings.Contains(err.Error(), "connect: connection refused") { _log.Warn("unable to create auditLog service:", err) @@ -555,7 +555,7 @@ func runRelayPeerRPC(wg *sync.WaitGroup, ctx context.Context) { _log.Fatalw("unable to get create relay peer service") } clusterAuthzServer := server.NewClusterAuthzServer(bs, aps, gps, krs, kcs, kss, ns) - auditInfoServer := server.NewAuditInfoServer(bs, aps) + auditInfoServer := server.NewAuditInfoServer(bs, aps, pps) s, err := grpc.NewSecureServerWithPEM(cert, key, ca) if err != nil { @@ -600,7 +600,7 @@ func runRPC(wg *sync.WaitGroup, ctx context.Context) { bootstrapServer := server.NewBootstrapServer(bs, kekFunc, cs) kubeConfigServer := server.NewKubeConfigServer(bs, aps, gps, kss, krs, kekFunc, ks, os, ps, auditLogger) - auditInfoServer := server.NewAuditInfoServer(bs, aps) + auditInfoServer := server.NewAuditInfoServer(bs, aps, pps) clusterAuthzServer := server.NewClusterAuthzServer(bs, aps, gps, krs, kcs, kss, ns) kubectlClusterSettingsServer := server.NewKubectlClusterSettingsServer(bs, kcs) crpc := server.NewClusterServer(cs, downloadData) diff --git a/pkg/auth/v3/core.go b/pkg/auth/v3/core.go index b268e85..e399592 100644 --- a/pkg/auth/v3/core.go +++ b/pkg/auth/v3/core.go @@ -74,6 +74,8 @@ func (ac *authContext) authenticate(ctx context.Context, req *commonv3.IsRequest res.Status = commonv3.RequestStatus_RequestAllowed res.SessionData.Username = resp.Name res.SessionData.Account = resp.AccountID.String() + res.SessionData.Organization = resp.OrganizationID.String() + res.SessionData.Partner = resp.PartnerID.String() } else { tsr := ac.kc.FrontendApi.ToSession(ctx).XSessionToken(req.GetXSessionToken()).Cookie(req.GetCookie()) @@ -91,6 +93,15 @@ func (ac *authContext) authenticate(ctx context.Context, req *commonv3.IsRequest if session.GetActive() { res.Status = commonv3.RequestStatus_RequestAllowed res.SessionData.Account = session.Identity.GetId() + if session.Identity.HasMetadataPublic() { + m := session.Identity.MetadataPublic.(map[string]interface{}) + if org, ok := m["Organization"].(string); ok { + res.SessionData.Organization = org + } + if part, ok := m["Partner"].(string); ok { + res.SessionData.Partner = part + } + } t := session.Identity.Traits.(map[string]interface{}) res.SessionData.Username = t["email"].(string) diff --git a/pkg/auth/v3/interceptor.go b/pkg/auth/v3/interceptor.go index 72e0ad1..73f9267 100644 --- a/pkg/auth/v3/interceptor.go +++ b/pkg/auth/v3/interceptor.go @@ -28,7 +28,7 @@ func (ac authContext) NewAuthUnaryInterceptor(opt Option) grpc.UnaryServerInterc } } - // We have to get the value of org, and project (namespace in + // We have to get the value of org and project (namespace in // future) as we will be using this inorder to authorize the // user's access to different resources var org string @@ -124,7 +124,6 @@ func (ac authContext) NewAuthUnaryInterceptor(opt Option) grpc.UnaryServerInterc sd.ClientIp = ip sd.ClientHost = host sd.ClientUa = ua - _log.Debug("session data ", sd) ctx := context.WithValue(ctx, common.SessionDataKey, sd) return handler(ctx, req) case commonv3.RequestStatus_RequestMethodOrURLNotAllowed: diff --git a/pkg/gateway/testdata/test.pb.go b/pkg/gateway/testdata/test.pb.go index eaffe94..16dc69f 100644 --- a/pkg/gateway/testdata/test.pb.go +++ b/pkg/gateway/testdata/test.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: pkg/gateway/testdata/test.proto diff --git a/pkg/gateway/testdata/test.pb.gw.go b/pkg/gateway/testdata/test.pb.gw.go index 04894dc..5dfc4e2 100644 --- a/pkg/gateway/testdata/test.pb.gw.go +++ b/pkg/gateway/testdata/test.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_TestService_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 3, 1, 0, 3, 0}, Check: []int{0, 1, 2, 3, 2, 5}} + filter_TestService_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 4, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 6, 3, 3}} ) func request_TestService_Get_0(ctx context.Context, marshaler runtime.Marshaler, client TestServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -158,7 +158,7 @@ func RegisterTestServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux // RegisterTestServiceHandlerFromEndpoint is same as RegisterTestServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterTestServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/pkg/gateway/testdata/test_grpc.pb.go b/pkg/gateway/testdata/test_grpc.pb.go index 0003818..1db4d26 100644 --- a/pkg/gateway/testdata/test_grpc.pb.go +++ b/pkg/gateway/testdata/test_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: pkg/gateway/testdata/test.proto @@ -18,6 +18,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + TestService_Get_FullMethodName = "/testdata.TestService/Get" +) + // TestServiceClient is the client API for TestService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -35,7 +39,7 @@ func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { func (c *testServiceClient) Get(ctx context.Context, in *TestObject, opts ...grpc.CallOption) (*TestObject, error) { out := new(TestObject) - err := c.cc.Invoke(ctx, "/testdata.TestService/Get", in, out, opts...) + err := c.cc.Invoke(ctx, TestService_Get_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -78,7 +82,7 @@ func _TestService_Get_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/testdata.TestService/Get", + FullMethod: TestService_Get_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestServiceServer).Get(ctx, req.(*TestObject)) diff --git a/pkg/hasher/hash.go b/pkg/hasher/hash.go index 4bafbbb..c05c6ea 100644 --- a/pkg/hasher/hash.go +++ b/pkg/hasher/hash.go @@ -47,7 +47,7 @@ func GetHash(o interface{}) (string, error) { } -//Add adds object hash to rutime object +// Add adds object hash to rutime object func Add(o metav1.Object) error { hash, err := GetHash(o) diff --git a/pkg/sentry/peering/peering.go b/pkg/sentry/peering/peering.go index 5251bb4..abad318 100644 --- a/pkg/sentry/peering/peering.go +++ b/pkg/sentry/peering/peering.go @@ -25,7 +25,7 @@ var ( _log = log.GetLogger() ) -//RelayClusterConnectionInfo relay conn info +// RelayClusterConnectionInfo relay conn info type RelayClusterConnectionInfo struct { Relayuuid string Relayip string @@ -106,7 +106,7 @@ helloRPCSendLoop: _log.Debugw("Exit: helloRPCSendLoop") } -//ClientHelloRPC will handle periodic heartbeat messages between relay and the core service. +// ClientHelloRPC will handle periodic heartbeat messages between relay and the core service. func ClientHelloRPC(ctx context.Context, stream sentryrpc.RelayPeerService_RelayPeerHelloRPCClient, interval time.Duration, relayUUID string, ip func() string) { go helloRPCSend(ctx, stream, interval, relayUUID, ip) @@ -127,7 +127,7 @@ func ClientHelloRPC(ctx context.Context, stream sentryrpc.RelayPeerService_Relay _log.Debugw("stopping helloRPC routine") } -//send loop of probe rpc. recvs clustersni from PeerProbeChanel and sends to core service +// send loop of probe rpc. recvs clustersni from PeerProbeChanel and sends to core service func probeRPCSend(ctx context.Context, stream sentryrpc.RelayPeerService_RelayPeerProbeRPCClient, relayUUID string, peerProbeChanel chan string) { probeRPCSendLoop: for { diff --git a/pkg/sentry/peering/util.go b/pkg/sentry/peering/util.go index 09ac74c..5e092ce 100644 --- a/pkg/sentry/peering/util.go +++ b/pkg/sentry/peering/util.go @@ -7,7 +7,7 @@ import ( "net" ) -//ClientTLSConfig sets tls config +// ClientTLSConfig sets tls config func ClientTLSConfig(tlsCrt string, tlsKey string, rootCA string, addr string) (*tls.Config, error) { cert, err := tls.LoadX509KeyPair(tlsCrt, tlsKey) diff --git a/pkg/service/account_permission.go b/pkg/service/account_permission.go index 821773d..b8a3d30 100644 --- a/pkg/service/account_permission.go +++ b/pkg/service/account_permission.go @@ -119,7 +119,7 @@ func (a *accountPermissionService) GetSSOAccount(ctx context.Context, accountID, } */ -//TODO: this needs to be revisited as sso users for oidc are stored in identities by kratos +// TODO: this needs to be revisited as sso users for oidc are stored in identities by kratos func (a *accountPermissionService) GetSSOUsersGroupProjectRole(ctx context.Context, orgID string) ([]sentry.SSOAccountGroupProjectRoleData, error) { ssos, err := dao.GetSSOUsersGroupProjectRole(ctx, a.db, uuid.MustParse(orgID)) if err != nil { diff --git a/pkg/service/audit_log.go b/pkg/service/audit_log.go index 8ede480..1d9b831 100644 --- a/pkg/service/audit_log.go +++ b/pkg/service/audit_log.go @@ -1,21 +1,34 @@ package service import ( + "context" + "errors" + "fmt" + + "github.com/google/uuid" + "github.com/paralus/paralus/internal/dao" v1 "github.com/paralus/paralus/proto/rpc/audit" "github.com/uptrace/bun" ) type AuditLogService interface { - GetAuditLog(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) - GetAuditLogByProjects(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) + GetAuditLog(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) + GetAuditLogByProjects(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) } -func NewAuditLogElasticSearchService(url string, auditPattern string, logPrefix string) (AuditLogService, error) { +// auditlogs permissions +const ( + OrgRelayAuditPermission = "org.relayAudit.read" + ProjectRelayAuditPermission = "project.relayAudit.read" + ProjectAuditLogPermission = "project.auditLog.read" +) + +func NewAuditLogElasticSearchService(url string, auditPattern string, logPrefix string, db *bun.DB) (AuditLogService, error) { auditQuery, err := NewElasticSearchQuery(url, auditPattern, logPrefix) if err != nil { return nil, err } - return &auditLogElasticSearchService{auditQuery: auditQuery}, nil + return &auditLogElasticSearchService{auditQuery: auditQuery, db: db}, nil } func NewAuditLogDatabaseService(db *bun.DB, tag string) (AuditLogService, error) { @@ -23,18 +36,77 @@ func NewAuditLogDatabaseService(db *bun.DB, tag string) (AuditLogService, error) } type RelayAuditService interface { - GetRelayAudit(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) - GetRelayAuditByProjects(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) + GetRelayAudit(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) + GetRelayAuditByProjects(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) } func NewRelayAuditDatabaseService(db *bun.DB, tag string) (RelayAuditService, error) { return &relayAuditDatabaseService{db: db, tag: tag}, nil } -func NewRelayAuditElasticSearchService(url string, auditPattern string, logPrefix string) (RelayAuditService, error) { +func NewRelayAuditElasticSearchService(url string, auditPattern string, logPrefix string, db *bun.DB) (RelayAuditService, error) { relayQuery, err := NewElasticSearchQuery(url, auditPattern, logPrefix) if err != nil { return nil, err } - return &relayAuditElasticSearchService{relayQuery: relayQuery}, nil + return &relayAuditElasticSearchService{relayQuery: relayQuery, db: db}, nil +} + +func ValidateUserAuditReadRequest(ctx context.Context, projects []string, db *bun.DB, isRelayAudit bool) error { + var prerr error + //validate user authz with incoming request + sd, ok := GetSessionDataFromContext(ctx) + if !ok { + return errors.New("failed to get session data") + } + _log.Infow("fetching auditlogs", "account", sd) + + // let's check if user has organization scoped roles associated + isOrgAdmin, err := dao.IsOrgAdmin(ctx, db, uuid.MustParse(sd.Account), uuid.MustParse(sd.Partner)) + if err != nil { + return err + } + if isOrgAdmin { + return prerr + } + + isOrgReadOnly, err := dao.IsOrgReadOnly(ctx, db, uuid.MustParse(sd.Account), uuid.MustParse(sd.Organization), uuid.MustParse(sd.Partner)) + if err != nil { + return err + } + + if isOrgReadOnly { + return prerr + } + + sap, err := dao.GetAccountPermissions(ctx, db, uuid.MustParse(sd.Account), uuid.MustParse(sd.Organization), uuid.MustParse(sd.Partner)) + if err != nil { + return err + } + for _, rproject := range projects { + rprojectid, err := dao.GetProjectId(ctx, db, rproject) + if err != nil { + return err + } + available := false + for _, ap := range sap { + if rprojectid == ap.ProjectId { + if isRelayAudit { + if ap.PermissionName == ProjectRelayAuditPermission { + available = true + break + } + } else { + if ap.PermissionName == ProjectAuditLogPermission { + available = true + break + } + } + } + } + if !available { + prerr = errors.Join(prerr, fmt.Errorf("not authorized for project %s", rproject)) + } + } + return prerr } diff --git a/pkg/service/audit_log_db.go b/pkg/service/audit_log_db.go index 44efbf7..46b1b93 100644 --- a/pkg/service/audit_log_db.go +++ b/pkg/service/audit_log_db.go @@ -17,13 +17,13 @@ type auditLogDatabaseService struct { tag string } -func (a *auditLogDatabaseService) GetAuditLog(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { +func (a *auditLogDatabaseService) GetAuditLog(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { project, err := getProjectFromUrlScope(req.GetMetadata().UrlScope) if err != nil { return nil, err } req.Filter.Projects = []string{project} - return a.GetAuditLogByProjects(req) + return a.GetAuditLogByProjects(ctx, req) } func buildAggregators(aggr []models.AggregatorData) []*auditv1.GroupByType { @@ -53,19 +53,26 @@ func buildDataSource(logs []models.AuditLog) (ds []*auditv1.DataSource) { return ds } -func (a *auditLogDatabaseService) GetAuditLogByProjects(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { +func (a *auditLogDatabaseService) GetAuditLogByProjects(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { err = validateQueryString(req.GetFilter().QueryString) if err != nil { return nil, err } - ctx := context.Background() + + //validate user authz with incoming request + if len(req.GetFilter().GetProjects()) > 0 { + if err := ValidateUserAuditReadRequest(ctx, req.GetFilter().GetProjects(), a.db, false); err != nil { + return nil, err + } + } + auditLogs, err := dao.GetAuditLogs(ctx, a.db, a.tag, req.Filter) if err != nil { return nil, err } // aggregations - _, err = dao.GetAuditLogAggregations(ctx, a.db, a.tag, "project", req.Filter) + projectAggr, err := dao.GetAuditLogAggregations(ctx, a.db, a.tag, "project", req.Filter) if err != nil { return nil, err } @@ -88,6 +95,9 @@ func (a *auditLogDatabaseService) GetAuditLogByProjects(req *v1.GetAuditLogSearc GroupByUsername: &auditv1.AggregatorGroup{ Buckets: buildAggregators(usernameAggr), }, + GroupByProject: &auditv1.AggregatorGroup{ + Buckets: buildAggregators(projectAggr), + }, }, Hits: &auditv1.Hits{Hits: buildDataSource(auditLogs)}, } diff --git a/pkg/service/audit_log_db_test.go b/pkg/service/audit_log_db_test.go index 7129e10..b5492fa 100644 --- a/pkg/service/audit_log_db_test.go +++ b/pkg/service/audit_log_db_test.go @@ -1,13 +1,16 @@ package service import ( + "context" "encoding/json" "regexp" "testing" "time" "github.com/DATA-DOG/go-sqlmock" + "github.com/google/uuid" "github.com/paralus/paralus/pkg/audit" + "github.com/paralus/paralus/pkg/common" eventv1 "github.com/paralus/paralus/proto/rpc/audit" auditv1 "github.com/paralus/paralus/proto/types/audit" commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3" @@ -70,6 +73,10 @@ func testGetAuditLogForLastHour(tag string) func(t *testing.T) { }, } + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "auditlog"."tag", "auditlog"."time", "auditlog"."data" FROM "audit_logs" AS "auditlog" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now())`)). WillReturnRows(sqlmock.NewRows([]string{"tag", "time", "data"}).AddRow("system", time.Now(), auditrecord)) @@ -82,7 +89,21 @@ func testGetAuditLogForLastHour(tag string) func(t *testing.T) { mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'type' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'type'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "type")) - res, err := as.GetAuditLogByProjects(req) + sd := commonv3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + Project: &commonv3.ProjectData{ + List: []*commonv3.ProjectRole{ + { + Project: project, + }, + }, + }, + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + res, err := as.GetAuditLogByProjects(ctx, req) if err != nil { t.Fatal("could not get audit logs:", err) } @@ -127,6 +148,10 @@ func testGetAuditLogForDay(tag string) func(t *testing.T) { }, } + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "auditlog"."tag", "auditlog"."time", "auditlog"."data" FROM "audit_logs" AS "auditlog" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now())`)). WillReturnRows(sqlmock.NewRows([]string{"tag", "time", "data"}).AddRow(tag, time.Now(), auditrecord).AddRow(tag, time.Now(), auditrecordtwo)) @@ -139,7 +164,21 @@ func testGetAuditLogForDay(tag string) func(t *testing.T) { mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'type' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'type'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "type")) - res, err := as.GetAuditLog(req) + sd := commonv3.SessionData{ + Organization: uuid, + Partner: uuid, + Account: uuid, + Username: "user", + Project: &commonv3.ProjectData{ + List: []*commonv3.ProjectRole{ + { + Project: project, + }, + }, + }, + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + res, err := as.GetAuditLog(ctx, req) if err != nil { t.Fatal("could not get audit logs:", err) } @@ -184,6 +223,10 @@ func testGetKubectlCommands(tag string) func(t *testing.T) { }, } + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "auditlog"."tag", "auditlog"."time", "auditlog"."data" FROM "audit_logs" AS "auditlog" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now())`)). WillReturnRows(sqlmock.NewRows([]string{"tag", "time", "data"}).AddRow(tag, time.Now(), auditrecord).AddRow(tag, time.Now(), auditrecordtwo)) @@ -196,7 +239,21 @@ func testGetKubectlCommands(tag string) func(t *testing.T) { mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'type' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'project' = '` + project + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'type'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "type")) - res, err := as.GetAuditLog(req) + sd := commonv3.SessionData{ + Organization: uuid, + Partner: uuid, + Account: uuid, + Username: "user", + Project: &commonv3.ProjectData{ + List: []*commonv3.ProjectRole{ + { + Project: project, + }, + }, + }, + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + res, err := as.GetAuditLog(ctx, req) if err != nil { t.Fatal("could not get audit logs:", err) } diff --git a/pkg/service/audit_log_es_query.go b/pkg/service/audit_log_es_query.go index 69672ca..b79445c 100644 --- a/pkg/service/audit_log_es_query.go +++ b/pkg/service/audit_log_es_query.go @@ -2,19 +2,22 @@ package service import ( "bytes" + "context" "encoding/json" "fmt" "strings" v1 "github.com/paralus/paralus/proto/rpc/audit" + "github.com/uptrace/bun" "google.golang.org/protobuf/types/known/structpb" ) type auditLogElasticSearchService struct { + db *bun.DB auditQuery ElasticSearchQuery } -func (a *auditLogElasticSearchService) GetAuditLog(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { +func (a *auditLogElasticSearchService) GetAuditLog(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { if err != nil { return nil, err } @@ -23,7 +26,7 @@ func (a *auditLogElasticSearchService) GetAuditLog(req *v1.GetAuditLogSearchRequ return nil, err } req.Filter.Projects = []string{project} - return a.GetAuditLogByProjects(req) + return a.GetAuditLogByProjects(ctx, req) } func validateQueryString(queryString string) error { @@ -45,11 +48,17 @@ func getProjectFromUrlScope(urlScope string) (string, error) { return s[1], nil } -func (a *auditLogElasticSearchService) GetAuditLogByProjects(req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { +func (a *auditLogElasticSearchService) GetAuditLogByProjects(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { err = validateQueryString(req.GetFilter().QueryString) if err != nil { return nil, err } + //validate user authz with incoming request + if len(req.GetFilter().GetProjects()) > 0 { + if err := ValidateUserAuditReadRequest(ctx, req.GetFilter().GetProjects(), a.db, false); err != nil { + return nil, err + } + } res = &v1.GetAuditLogSearchResponse{ Result: &structpb.Struct{}, } diff --git a/pkg/service/audit_log_es_query_test.go b/pkg/service/audit_log_es_query_test.go index 3d7fc2e..7584857 100644 --- a/pkg/service/audit_log_es_query_test.go +++ b/pkg/service/audit_log_es_query_test.go @@ -2,10 +2,15 @@ package service import ( "bytes" + "context" "encoding/json" + "regexp" "strings" "testing" + "github.com/DATA-DOG/go-sqlmock" + "github.com/google/uuid" + "github.com/paralus/paralus/pkg/common" v1 "github.com/paralus/paralus/proto/rpc/audit" v3 "github.com/paralus/paralus/proto/types/commonpb/v3" ) @@ -85,8 +90,12 @@ func (m *mockElasticSearchQuery) Handle(msg bytes.Buffer) (map[string]interface{ } func TestGetAuditLogByProjectsSimple(t *testing.T) { + + db, mock := getDB(t) + defer db.Close() + esq := &mockElasticSearchQuery{} - al := &auditLogElasticSearchService{auditQuery: esq} + al := &auditLogElasticSearchService{auditQuery: esq, db: db} req := v1.GetAuditLogSearchRequest{ Filter: &v1.AuditLogQueryFilter{ QueryString: "query-string", @@ -98,7 +107,19 @@ func TestGetAuditLogByProjectsSimple(t *testing.T) { DashboardData: true, }, } - _, err := al.GetAuditLogByProjects(&req) + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + + sd := v3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + + _, err := al.GetAuditLogByProjects(ctx, &req) if err != nil { t.Error("unable to get audit logs") } @@ -117,15 +138,29 @@ func TestGetAuditLogByProjectsSimple(t *testing.T) { } func TestGetAuditLogByProjectsNoProject(t *testing.T) { + db, mock := getDB(t) + defer db.Close() + esq := &mockElasticSearchQuery{} - al := &auditLogElasticSearchService{auditQuery: esq} + al := &auditLogElasticSearchService{auditQuery: esq, db: db} req := v1.GetAuditLogSearchRequest{ Metadata: &v3.Metadata{UrlScope: "url/project"}, Filter: &v1.AuditLogQueryFilter{ QueryString: "query-string", }, } - _, err := al.GetAuditLog(&req) + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + + sd := v3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + _, err := al.GetAuditLog(ctx, &req) if err != nil { t.Error("unable to get audit logs", err) } diff --git a/pkg/service/bootstrap.go b/pkg/service/bootstrap.go index 44275db..9293a77 100644 --- a/pkg/service/bootstrap.go +++ b/pkg/service/bootstrap.go @@ -298,6 +298,7 @@ func (s *bootstrapService) GetBootstrapAgent(ctx context.Context, templateRef st if err != nil { return nil, err } + return prepareAgentResponse(ba), nil } diff --git a/pkg/service/mocks.go b/pkg/service/mocks.go index afaa4e6..9f0d7db 100644 --- a/pkg/service/mocks.go +++ b/pkg/service/mocks.go @@ -4,7 +4,7 @@ import ( "context" "strings" - kr "github.com/paralus/paralus/internal/provider/kratos" + providers "github.com/paralus/paralus/internal/provider/kratos" types "github.com/paralus/paralus/proto/types/authz" ) @@ -19,11 +19,11 @@ type mockAuthProvider struct { d []string } -func (m *mockAuthProvider) Create(ctx context.Context, pass string, traits map[string]interface{}, fr bool) (string, error) { +func (m *mockAuthProvider) Create(ctx context.Context, pass string, traits map[string]interface{}, metadata providers.IdentityPublicMetadata) (string, error) { m.c = append(m.c, traits) return strings.Split(traits["email"].(string), "user-")[1], nil } -func (m *mockAuthProvider) Update(ctx context.Context, id string, traits map[string]interface{}, fr bool) error { +func (m *mockAuthProvider) Update(ctx context.Context, id string, traits map[string]interface{}, metadata providers.IdentityPublicMetadata) error { m.u = append(m.u, ApUpdate{id: id, traits: traits}) return nil } @@ -36,8 +36,8 @@ func (m *mockAuthProvider) Delete(ctx context.Context, id string) error { return nil } -func (m *mockAuthProvider) GetPublicMetadata(context.Context, string) (*kr.IdentityPublicMetadata, error) { - return &kr.IdentityPublicMetadata{}, nil +func (m *mockAuthProvider) GetPublicMetadata(context.Context, string) (*providers.IdentityPublicMetadata, error) { + return &providers.IdentityPublicMetadata{}, nil } type mockAuthzClient struct { diff --git a/pkg/service/relay_audit_db.go b/pkg/service/relay_audit_db.go index f22713e..9f1f4d3 100644 --- a/pkg/service/relay_audit_db.go +++ b/pkg/service/relay_audit_db.go @@ -14,9 +14,10 @@ import ( type relayAuditDatabaseService struct { db *bun.DB tag string + aps AccountPermissionService } -func (ra *relayAuditDatabaseService) GetRelayAudit(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { +func (ra *relayAuditDatabaseService) GetRelayAudit(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { if err != nil { return nil, err } @@ -25,22 +26,33 @@ func (ra *relayAuditDatabaseService) GetRelayAudit(req *v1.RelayAuditRequest) (r return nil, err } req.Filter.Projects = []string{project} - return ra.GetRelayAuditByProjects(req) + return ra.GetRelayAuditByProjects(ctx, req) } -func (ra *relayAuditDatabaseService) GetRelayAuditByProjects(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { +func (ra *relayAuditDatabaseService) GetRelayAuditByProjects(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { err = validateQueryString(req.GetFilter().QueryString) if err != nil { return &v1.RelayAuditResponse{}, err } - ctx := context.Background() + //validate user authz with incoming request + if len(req.GetFilter().GetProjects()) > 0 { + if err := ValidateUserAuditReadRequest(ctx, req.GetFilter().GetProjects(), ra.db, true); err != nil { + return nil, err + } + } + auditLogs, err := dao.GetAuditLogs(ctx, ra.db, ra.tag, req.Filter) if err != nil { return nil, err } // aggregations + projectAggr, err := dao.GetAuditLogAggregations(ctx, ra.db, ra.tag, "project", req.Filter) + if err != nil { + return nil, err + } + clusterAggr, err := dao.GetAuditLogAggregations(ctx, ra.db, ra.tag, "cluster", req.Filter) if err != nil { return nil, err @@ -68,6 +80,9 @@ func (ra *relayAuditDatabaseService) GetRelayAuditByProjects(req *v1.RelayAuditR response := &auditv1.AuditResponse{ Aggregations: &auditv1.Aggregations{ + GroupByProject: &auditv1.AggregatorGroup{ + Buckets: buildAggregators(projectAggr), + }, GroupByCluster: &auditv1.AggregatorGroup{ Buckets: buildAggregators(clusterAggr), }, diff --git a/pkg/service/relay_audit_db_test.go b/pkg/service/relay_audit_db_test.go index 09f217c..f7c5c64 100644 --- a/pkg/service/relay_audit_db_test.go +++ b/pkg/service/relay_audit_db_test.go @@ -1,13 +1,16 @@ package service import ( + "context" "encoding/json" "regexp" "testing" "time" "github.com/DATA-DOG/go-sqlmock" + "github.com/google/uuid" "github.com/paralus/paralus/pkg/audit" + "github.com/paralus/paralus/pkg/common" eventv1 "github.com/paralus/paralus/proto/rpc/audit" auditv1 "github.com/paralus/paralus/proto/types/audit" commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3" @@ -64,25 +67,39 @@ func testGetRelayAuditLogForCluster(tag string) func(t *testing.T) { }, } + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "auditlog"."tag", "auditlog"."time", "auditlog"."data" FROM "audit_logs" AS "auditlog" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now())`)). WillReturnRows(sqlmock.NewRows([]string{"tag", "time", "data"}).AddRow(tag, time.Now(), auditrecord)) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'cn' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'cn'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'pr' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'pr'`)). + WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "project")) + + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'cn' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'cn'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "cluster")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'un' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'un'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'un' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'un'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "username")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'n' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'n'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'n' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'n'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "namespace")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'k' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'k'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'k' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'k'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "kind")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'m' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'m'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'m' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'cn' = '` + req.Filter.Cluster + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'m'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "method")) - res, err := ras.GetRelayAudit(req) + sd := commonv3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + res, err := ras.GetRelayAudit(ctx, req) if err != nil { t.Fatal("could not get audit logs:", err) } @@ -128,25 +145,39 @@ func testGetRelayAuditLogForKind(tag string) func(t *testing.T) { }, } + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "auditlog"."tag", "auditlog"."time", "auditlog"."data" FROM "audit_logs" AS "auditlog" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now())`)). WillReturnRows(sqlmock.NewRows([]string{"tag", "time", "data"}).AddRow(tag, time.Now(), auditrecord).AddRow(tag, time.Now(), auditrecordtwo)) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'cn' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'cn'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'pr' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'pr'`)). + WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "project")) + + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'cn' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'cn'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "cluster")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'un' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'un'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'un' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'un'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "username")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'n' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'n'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'n' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'n'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "namespace")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'k' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'k'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'k' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'k'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "kind")) - mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'m' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) GROUP BY data->>'m'`)). + mock.ExpectQuery(regexp.QuoteMeta(`SELECT count(1) as count, data->>'m' as key FROM "audit_logs" WHERE (tag = '` + tag + `') AND (data->>'k' = '` + req.Filter.Kind + `') AND (time between now() - interval '` + timefrom + `' and now()) AND (data->>'pr' = '` + project + `') GROUP BY data->>'m'`)). WillReturnRows(sqlmock.NewRows([]string{"count", "key"}).AddRow(1, "method")) - res, err := as.GetRelayAudit(req) + sd := commonv3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + res, err := as.GetRelayAudit(ctx, req) if err != nil { t.Fatal("could not get audit logs:", err) } diff --git a/pkg/service/relay_audit_es_query.go b/pkg/service/relay_audit_es_query.go index 4f78991..39d01b1 100644 --- a/pkg/service/relay_audit_es_query.go +++ b/pkg/service/relay_audit_es_query.go @@ -2,17 +2,21 @@ package service import ( "bytes" + "context" "encoding/json" + "github.com/paralus/paralus/pkg/common" v1 "github.com/paralus/paralus/proto/rpc/audit" + "github.com/uptrace/bun" "google.golang.org/protobuf/types/known/structpb" ) type relayAuditElasticSearchService struct { + db *bun.DB relayQuery ElasticSearchQuery } -func (ra *relayAuditElasticSearchService) GetRelayAudit(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { +func (ra *relayAuditElasticSearchService) GetRelayAudit(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { if err != nil { return nil, err } @@ -21,14 +25,21 @@ func (ra *relayAuditElasticSearchService) GetRelayAudit(req *v1.RelayAuditReques return nil, err } req.Filter.Projects = []string{project} - return ra.GetRelayAuditByProjects(req) + return ra.GetRelayAuditByProjects(ctx, req) } -func (ra *relayAuditElasticSearchService) GetRelayAuditByProjects(req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { +func (ra *relayAuditElasticSearchService) GetRelayAuditByProjects(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { err = validateQueryString(req.GetFilter().QueryString) if err != nil { return &v1.RelayAuditResponse{}, err } + //validate user authz with incoming request + if len(req.GetFilter().GetProjects()) > 0 { + if err := ValidateUserAuditReadRequest(ctx, req.GetFilter().GetProjects(), ra.db, true); err != nil { + return nil, err + } + } + var buf bytes.Buffer var r map[string]interface{} res = &v1.RelayAuditResponse{} @@ -185,13 +196,21 @@ func (ra *relayAuditElasticSearchService) GetRelayAuditByProjects(req *v1.RelayA } m = append(m, t) } else { - - t := map[string]interface{}{ - "terms": map[string]interface{}{ - "json.project": req.Filter.Projects, - }, + if req.AuditType == common.RelayAPIAuditType { + t := map[string]interface{}{ + "terms": map[string]interface{}{ + "json.pr": req.Filter.Projects, + }, + } + m = append(m, t) + } else { + t := map[string]interface{}{ + "terms": map[string]interface{}{ + "json.project": req.Filter.Projects, + }, + } + m = append(m, t) } - m = append(m, t) } } // query string diff --git a/pkg/service/relay_audit_es_query_test.go b/pkg/service/relay_audit_es_query_test.go index 579d2f2..cb01c53 100644 --- a/pkg/service/relay_audit_es_query_test.go +++ b/pkg/service/relay_audit_es_query_test.go @@ -1,10 +1,15 @@ package service import ( + "context" "encoding/json" + "regexp" "strings" "testing" + "github.com/DATA-DOG/go-sqlmock" + "github.com/google/uuid" + "github.com/paralus/paralus/pkg/common" v1 "github.com/paralus/paralus/proto/rpc/audit" v3 "github.com/paralus/paralus/proto/types/commonpb/v3" ) @@ -85,8 +90,11 @@ type rmd struct { } func TestGetRelayAuditLogByProjectsSimple(t *testing.T) { + db, mock := getDB(t) + defer db.Close() + esq := &mockElasticSearchQuery{} - al := &relayAuditElasticSearchService{relayQuery: esq} + al := &relayAuditElasticSearchService{relayQuery: esq, db: db} req := v1.RelayAuditRequest{ Filter: &v1.RelayAuditQueryFilter{ QueryString: "query-string", @@ -102,7 +110,18 @@ func TestGetRelayAuditLogByProjectsSimple(t *testing.T) { DashboardData: true, }, } - _, err := al.GetRelayAuditByProjects(&req) + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + + sd := v3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + _, err := al.GetRelayAuditByProjects(ctx, &req) if err != nil { t.Error("unable to get audit logs") } @@ -121,15 +140,29 @@ func TestGetRelayAuditLogByProjectsSimple(t *testing.T) { } func TestGetRelayAuditLogByProjectsNoProject(t *testing.T) { + db, mock := getDB(t) + defer db.Close() + esq := &mockElasticSearchQuery{} - al := &relayAuditElasticSearchService{relayQuery: esq} + al := &relayAuditElasticSearchService{relayQuery: esq, db: db} req := v1.RelayAuditRequest{ Metadata: &v3.Metadata{UrlScope: "url/project"}, Filter: &v1.RelayAuditQueryFilter{ QueryString: "query-string", }, } - _, err := al.GetRelayAudit(&req) + uuid := uuid.New().String() + mock.ExpectQuery(regexp.QuoteMeta(`SELECT "sap"."account_id", "sap"."project_id", "sap"."group_id", "sap"."role_id", "sap"."role_name", "sap"."organization_id", "sap"."partner_id", "sap"."is_global", "sap"."scope", "sap"."permission_name", "sap"."base_url", "sap"."urls" FROM "sentry_account_permission" AS "sap" WHERE (account_id = '` + uuid + `') AND (partner_id = '` + uuid + `') AND (lower(role_name) = 'admin') AND (lower(scope) = 'organization')`)). + WillReturnRows(sqlmock.NewRows([]string{"account_id", "role_name", "scope"}).AddRow(uuid, "admin", "organization")) + + sd := v3.SessionData{ + Account: uuid, + Organization: uuid, + Partner: uuid, + Username: "user", + } + ctx := context.WithValue(context.Background(), common.SessionDataKey, &sd) + _, err := al.GetRelayAudit(ctx, &req) if err != nil { t.Error("unable to get audit logs", err) } diff --git a/pkg/service/test_utils.go b/pkg/service/test_utils.go index 6fdfe74..9ac6e82 100644 --- a/pkg/service/test_utils.go +++ b/pkg/service/test_utils.go @@ -169,14 +169,14 @@ func addUserFetchExpectation(mock sqlmock.Sqlmock) string { func addUserFullFetchExpectation(mock sqlmock.Sqlmock) string { uid := uuid.New().String() - mock.ExpectQuery(`SELECT "identities"."id", "identities"."schema_id", "identities"."traits", "identities"."created_at", "identities"."updated_at", "identities"."state", "identities"."state_changed_at", "identities"."nid", "identity_credential"."id" AS "identity_credential__id", "identity_credential"."identity_id" AS "identity_credential__identity_id", "identity_credential"."identity_credential_type_id" AS "identity_credential__identity_credential_type_id", "identity_credential__identity_credential_type"."id" AS "identity_credential__identity_credential_type__id", "identity_credential__identity_credential_type"."name" AS "identity_credential__identity_credential_type__name" FROM "identities" LEFT JOIN "identity_credentials" AS "identity_credential" ON ."identity_credential"."identity_id" = "identities"."id". LEFT JOIN "identity_credential_types" AS "identity_credential__identity_credential_type" ON ."identity_credential__identity_credential_type"."id" = "identity_credential"."identity_credential_type_id". WHERE .traits ->> 'email' = 'user-` + uid + `'.`). + mock.ExpectQuery(`SELECT "identities"."id", "identities"."schema_id", "identities"."traits", "identities"."created_at", "identities"."updated_at", "identities"."state", "identities"."state_changed_at", "identities"."nid", "identities"."metadata_public", "identity_credential"."id" AS "identity_credential__id", "identity_credential"."identity_id" AS "identity_credential__identity_id", "identity_credential"."identity_credential_type_id" AS "identity_credential__identity_credential_type_id", "identity_credential__identity_credential_type"."id" AS "identity_credential__identity_credential_type__id", "identity_credential__identity_credential_type"."name" AS "identity_credential__identity_credential_type__name" FROM "identities" LEFT JOIN "identity_credentials" AS "identity_credential" ON ."identity_credential"."identity_id" = "identities"."id". LEFT JOIN "identity_credential_types" AS "identity_credential__identity_credential_type" ON ."identity_credential__identity_credential_type"."id" = "identity_credential"."identity_credential_type_id". WHERE .traits ->> 'email' = 'user-` + uid + `'.`). WithArgs().WillReturnRows(sqlmock.NewRows([]string{"id", "traits", "identity_credential__identity_credential_type__name"}).AddRow(uid, []byte(`{"email":"user-`+uid+`", "first_name": "John", "last_name": "Doe", "description": "The OG user."}`), "password")) return uid } func addUserFullFetchExpectationWithIdpGroups(mock sqlmock.Sqlmock) string { uid := uuid.New().String() - mock.ExpectQuery(`SELECT "identities"."id", "identities"."schema_id", "identities"."traits", "identities"."created_at", "identities"."updated_at", "identities"."state", "identities"."state_changed_at", "identities"."nid", "identity_credential"."id" AS "identity_credential__id", "identity_credential"."identity_id" AS "identity_credential__identity_id", "identity_credential"."identity_credential_type_id" AS "identity_credential__identity_credential_type_id", "identity_credential__identity_credential_type"."id" AS "identity_credential__identity_credential_type__id", "identity_credential__identity_credential_type"."name" AS "identity_credential__identity_credential_type__name" FROM "identities" LEFT JOIN "identity_credentials" AS "identity_credential" ON ."identity_credential"."identity_id" = "identities"."id". LEFT JOIN "identity_credential_types" AS "identity_credential__identity_credential_type" ON ."identity_credential__identity_credential_type"."id" = "identity_credential"."identity_credential_type_id". WHERE .traits ->> 'email' = 'user-` + uid + `'.`). + mock.ExpectQuery(`SELECT "identities"."id", "identities"."schema_id", "identities"."traits", "identities"."created_at", "identities"."updated_at", "identities"."state", "identities"."state_changed_at", "identities"."nid", "identities"."metadata_public", "identity_credential"."id" AS "identity_credential__id", "identity_credential"."identity_id" AS "identity_credential__identity_id", "identity_credential"."identity_credential_type_id" AS "identity_credential__identity_credential_type_id", "identity_credential__identity_credential_type"."id" AS "identity_credential__identity_credential_type__id", "identity_credential__identity_credential_type"."name" AS "identity_credential__identity_credential_type__name" FROM "identities" LEFT JOIN "identity_credentials" AS "identity_credential" ON ."identity_credential"."identity_id" = "identities"."id". LEFT JOIN "identity_credential_types" AS "identity_credential__identity_credential_type" ON ."identity_credential__identity_credential_type"."id" = "identity_credential"."identity_credential_type_id". WHERE .traits ->> 'email' = 'user-` + uid + `'.`). WithArgs().WillReturnRows(sqlmock.NewRows([]string{"id", "traits", "identity_credential__identity_credential_type__name"}).AddRow(uid, []byte(`{"email":"user-`+uid+`", "first_name": "John", "last_name": "Doe", "description": "The OG user.", "idp_groups": ["BigShot"]}`), "password")) return uid } diff --git a/pkg/service/user.go b/pkg/service/user.go index fe8b730..176bd41 100644 --- a/pkg/service/user.go +++ b/pkg/service/user.go @@ -433,7 +433,11 @@ func (s *userService) Create(ctx context.Context, user *userv3.User) (*userv3.Us "email": user.GetMetadata().GetName(), // can be just username for API access "first_name": user.GetSpec().GetFirstName(), "last_name": user.GetSpec().GetLastName(), - }, user.Spec.ForceReset) + }, providers.IdentityPublicMetadata{ + ForceReset: user.GetSpec().GetForceReset(), + Organization: organizationId.String(), + Partner: partnerId.String(), + }) if err != nil { return &userv3.User{}, err } @@ -707,7 +711,9 @@ func (s *userService) UpdateForceResetFlag(ctx context.Context, username string) } if usr, ok := entity.(*models.KratosIdentities); ok { - err = s.ap.Update(ctx, usr.ID.String(), usr.Traits, false) + err = s.ap.Update(ctx, usr.ID.String(), usr.Traits, providers.IdentityPublicMetadata{ + ForceReset: false, + }) if err != nil { return err } @@ -734,7 +740,11 @@ func (s *userService) Update(ctx context.Context, user *userv3.User) (*userv3.Us "email": user.GetMetadata().GetName(), "first_name": user.GetSpec().GetFirstName(), "last_name": user.GetSpec().GetLastName(), - }, user.Spec.ForceReset) + }, providers.IdentityPublicMetadata{ + ForceReset: user.GetSpec().ForceReset, + Organization: organizationId.String(), + Partner: partnerId.String(), + }) if err != nil { return &userv3.User{}, err } diff --git a/pkg/service/user_test.go b/pkg/service/user_test.go index 4f3e3f2..6050a36 100644 --- a/pkg/service/user_test.go +++ b/pkg/service/user_test.go @@ -13,7 +13,6 @@ import ( "github.com/paralus/paralus/pkg/common" "github.com/paralus/paralus/pkg/query" userrpcv3 "github.com/paralus/paralus/proto/rpc/user" - commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3" v3 "github.com/paralus/paralus/proto/types/commonpb/v3" userv3 "github.com/paralus/paralus/proto/types/userpb/v3" ) @@ -474,7 +473,7 @@ func TestUserGetInfo(t *testing.T) { user := &userv3.User{ Metadata: &v3.Metadata{Partner: "partner-" + puuid, Organization: "org-" + ouuid, Name: "user-" + fakeuuuid}, } - ctx := context.WithValue(context.Background(), common.SessionDataKey, &commonv3.SessionData{Username: "user-" + uuuid}) + ctx := context.WithValue(context.Background(), common.SessionDataKey, &v3.SessionData{Username: "user-" + uuuid}) userinfo, err := us.GetUserInfo(ctx, user) if err != nil { @@ -647,7 +646,7 @@ func TestUserList(t *testing.T) { WithArgs().WillReturnRows(sqlmock.NewRows([]string{"max"}). AddRow(authenticated)) - qo := &commonv3.QueryOptions{ + qo := &v3.QueryOptions{ Q: tc.q, Limit: tc.limit, Offset: tc.offset, @@ -711,7 +710,7 @@ func TestUserDelete(t *testing.T) { user := &userv3.User{ Metadata: &v3.Metadata{Partner: "partner-" + puuid, Organization: "org-" + ouuid, Name: "user-" + uuuid}, } - ctx := context.WithValue(context.Background(), common.SessionDataKey, &commonv3.SessionData{Username: "not-user-" + uuuid}) + ctx := context.WithValue(context.Background(), common.SessionDataKey, &v3.SessionData{Username: "not-user-" + uuuid}) _, err := us.Delete(ctx, user) if err != nil { t.Fatal("could not delete user:", err) @@ -742,7 +741,7 @@ func TestUserDeleteSelf(t *testing.T) { user := &userv3.User{ Metadata: &v3.Metadata{Partner: "partner-" + puuid, Organization: "org-" + ouuid, Name: "user-" + uuuid}, } - ctx := context.WithValue(context.Background(), common.SessionDataKey, &commonv3.SessionData{Username: "user-" + uuuid}) + ctx := context.WithValue(context.Background(), common.SessionDataKey, &v3.SessionData{Username: "user-" + uuuid}) _, err := us.Delete(ctx, user) if err == nil { t.Fatal("user able to delete their own account") diff --git a/proto/rpc/audit/auditlog.pb.go b/proto/rpc/audit/auditlog.pb.go index de884e0..b82b0f1 100644 --- a/proto/rpc/audit/auditlog.pb.go +++ b/proto/rpc/audit/auditlog.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/audit/auditlog.proto @@ -335,45 +335,45 @@ var file_proto_rpc_audit_auditlog_proto_rawDesc = []byte{ 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x6c, 0x6f, 0x67, 0x42, - 0xec, 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, - 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0d, - 0x41, 0x75, 0x64, 0x69, 0x74, 0x6c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x3b, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x46, 0x45, 0xaa, 0x02, 0x16, 0x52, 0x65, 0x70, 0x2e, - 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x16, 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, - 0x72, 0x6b, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x52, 0x65, - 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5c, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x19, 0x52, 0x65, 0x70, 0x3a, 0x3a, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, - 0x6b, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x92, 0x41, 0x8e, 0x03, - 0x12, 0x26, 0x0a, 0x10, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, 0x6f, 0x67, 0x20, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, - 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, - 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, - 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, - 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, - 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, - 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, - 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, - 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, - 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x0f, 0x0a, 0x0d, 0x0a, 0x09, 0x42, - 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x22, 0x0a, 0x0e, 0x0a, 0x0a, - 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, - 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, + 0xec, 0x04, 0x92, 0x41, 0x8e, 0x03, 0x12, 0x26, 0x0a, 0x10, 0x41, 0x75, 0x64, 0x69, 0x74, 0x4c, + 0x6f, 0x67, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, + 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, + 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, + 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, + 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, + 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, + 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, + 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, + 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, + 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, + 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, + 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, + 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, + 0x0f, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x62, 0x22, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, + 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, + 0x42, 0x0d, 0x41, 0x75, 0x64, 0x69, 0x74, 0x6c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x3b, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x46, 0x45, 0xaa, 0x02, 0x16, 0x52, 0x65, + 0x70, 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, + 0x77, 0x6f, 0x72, 0x6b, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, + 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5c, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x19, 0x52, 0x65, 0x70, 0x3a, 0x3a, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, + 0x6f, 0x72, 0x6b, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/audit/auditlog.pb.gw.go b/proto/rpc/audit/auditlog.pb.gw.go index c55821c..ced1382 100644 --- a/proto/rpc/audit/auditlog.pb.gw.go +++ b/proto/rpc/audit/auditlog.pb.gw.go @@ -32,7 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_AuditLogService_GetAuditLog_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_AuditLogService_GetAuditLog_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_AuditLogService_GetAuditLog_0(ctx context.Context, marshaler runtime.Marshaler, client AuditLogServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -199,7 +199,7 @@ func RegisterAuditLogServiceHandlerServer(ctx context.Context, mux *runtime.Serv // RegisterAuditLogServiceHandlerFromEndpoint is same as RegisterAuditLogServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAuditLogServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/audit/auditlog_grpc.pb.go b/proto/rpc/audit/auditlog_grpc.pb.go index 6dbafa0..657f551 100644 --- a/proto/rpc/audit/auditlog_grpc.pb.go +++ b/proto/rpc/audit/auditlog_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/audit/auditlog.proto @@ -18,6 +18,11 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AuditLogService_GetAuditLog_FullMethodName = "/rep.framework.event.v1.AuditLogService/GetAuditLog" + AuditLogService_GetAuditLogByProjects_FullMethodName = "/rep.framework.event.v1.AuditLogService/GetAuditLogByProjects" +) + // AuditLogServiceClient is the client API for AuditLogService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +41,7 @@ func NewAuditLogServiceClient(cc grpc.ClientConnInterface) AuditLogServiceClient func (c *auditLogServiceClient) GetAuditLog(ctx context.Context, in *GetAuditLogSearchRequest, opts ...grpc.CallOption) (*GetAuditLogSearchResponse, error) { out := new(GetAuditLogSearchResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.AuditLogService/GetAuditLog", in, out, opts...) + err := c.cc.Invoke(ctx, AuditLogService_GetAuditLog_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -45,7 +50,7 @@ func (c *auditLogServiceClient) GetAuditLog(ctx context.Context, in *GetAuditLog func (c *auditLogServiceClient) GetAuditLogByProjects(ctx context.Context, in *GetAuditLogSearchRequest, opts ...grpc.CallOption) (*GetAuditLogSearchResponse, error) { out := new(GetAuditLogSearchResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.AuditLogService/GetAuditLogByProjects", in, out, opts...) + err := c.cc.Invoke(ctx, AuditLogService_GetAuditLogByProjects_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func _AuditLogService_GetAuditLog_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rep.framework.event.v1.AuditLogService/GetAuditLog", + FullMethod: AuditLogService_GetAuditLog_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuditLogServiceServer).GetAuditLog(ctx, req.(*GetAuditLogSearchRequest)) @@ -110,7 +115,7 @@ func _AuditLogService_GetAuditLogByProjects_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rep.framework.event.v1.AuditLogService/GetAuditLogByProjects", + FullMethod: AuditLogService_GetAuditLogByProjects_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuditLogServiceServer).GetAuditLogByProjects(ctx, req.(*GetAuditLogSearchRequest)) diff --git a/proto/rpc/audit/relayaudit.pb.go b/proto/rpc/audit/relayaudit.pb.go index 6ca975f..4ccc0a0 100644 --- a/proto/rpc/audit/relayaudit.pb.go +++ b/proto/rpc/audit/relayaudit.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/audit/relayaudit.proto @@ -343,87 +343,68 @@ var file_proto_rpc_audit_relayaudit_proto_rawDesc = []byte{ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x61, 0x75, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x32, 0x87, 0x05, 0x0a, 0x11, 0x52, 0x65, + 0x61, 0x75, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x32, 0xcb, 0x02, 0x0a, 0x11, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0xa5, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x50, 0x49, 0x41, - 0x75, 0x64, 0x69, 0x74, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, - 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, - 0x64, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, - 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x6c, - 0x61, 0x79, 0x61, 0x75, 0x64, 0x69, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x6c, 0x61, 0x79, 0x41, 0x50, 0x49, 0x41, 0x75, 0x64, 0x69, 0x74, 0x42, 0x79, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, - 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, + 0xa3, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, + 0x74, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, - 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x61, 0x75, 0x64, 0x69, 0x74, 0x12, 0xa3, 0x01, 0x0a, 0x0d, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x12, 0x29, 0x2e, - 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, - 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x72, 0x65, 0x6c, 0x61, - 0x79, 0x12, 0x8f, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, - 0x64, 0x69, 0x74, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x29, 0x2e, - 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, - 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, 0x72, 0x65, - 0x6c, 0x61, 0x79, 0x42, 0xef, 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x70, 0x2e, - 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x76, 0x31, 0x42, 0x0f, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x61, 0x75, 0x64, 0x69, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x64, 0x69, - 0x74, 0x3b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x52, 0x46, 0x45, 0xaa, - 0x02, 0x16, 0x52, 0x65, 0x70, 0x2e, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x16, 0x52, 0x65, 0x70, 0x5c, 0x46, + 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, + 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, + 0x12, 0x33, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2f, + 0x72, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x8f, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x65, 0x6c, + 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, + 0x6b, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, + 0x41, 0x75, 0x64, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x72, + 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x41, 0x75, 0x64, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, + 0x12, 0x15, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x42, 0xef, 0x04, 0x92, 0x41, 0x8f, 0x03, 0x12, 0x29, + 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x20, 0x41, 0x75, 0x64, 0x69, 0x74, 0x20, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, + 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, + 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, + 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, + 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, + 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, + 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, + 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, + 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, + 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, + 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1a, 0x63, + 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x70, 0x2e, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x52, 0x65, 0x6c, 0x61, 0x79, + 0x61, 0x75, 0x64, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, + 0x70, 0x63, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x3b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x52, 0x46, 0x45, 0xaa, 0x02, 0x16, 0x52, 0x65, 0x70, 0x2e, 0x46, 0x72, 0x61, + 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x16, 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5c, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x22, 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x22, 0x52, 0x65, 0x70, 0x5c, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, - 0x6b, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x52, 0x65, 0x70, 0x3a, 0x3a, 0x46, 0x72, - 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x3a, 0x3a, - 0x56, 0x31, 0x92, 0x41, 0x8f, 0x03, 0x12, 0x29, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x20, - 0x41, 0x75, 0x64, 0x69, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, - 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, - 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, - 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, - 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, - 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, - 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, - 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, - 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, - 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, - 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, - 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, - 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, - 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, - 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, + 0x52, 0x65, 0x70, 0x3a, 0x3a, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x3a, 0x3a, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -450,16 +431,12 @@ var file_proto_rpc_audit_relayaudit_proto_depIdxs = []int32{ 3, // 0: rep.framework.event.v1.RelayAuditRequest.metadata:type_name -> paralus.dev.types.common.v3.Metadata 0, // 1: rep.framework.event.v1.RelayAuditRequest.filter:type_name -> rep.framework.event.v1.RelayAuditQueryFilter 4, // 2: rep.framework.event.v1.RelayAuditResponse.result:type_name -> google.protobuf.Struct - 1, // 3: rep.framework.event.v1.RelayAuditService.GetRelayAPIAudit:input_type -> rep.framework.event.v1.RelayAuditRequest - 1, // 4: rep.framework.event.v1.RelayAuditService.GetRelayAPIAuditByProjects:input_type -> rep.framework.event.v1.RelayAuditRequest - 1, // 5: rep.framework.event.v1.RelayAuditService.GetRelayAudit:input_type -> rep.framework.event.v1.RelayAuditRequest - 1, // 6: rep.framework.event.v1.RelayAuditService.GetRelayAuditByProjects:input_type -> rep.framework.event.v1.RelayAuditRequest - 2, // 7: rep.framework.event.v1.RelayAuditService.GetRelayAPIAudit:output_type -> rep.framework.event.v1.RelayAuditResponse - 2, // 8: rep.framework.event.v1.RelayAuditService.GetRelayAPIAuditByProjects:output_type -> rep.framework.event.v1.RelayAuditResponse - 2, // 9: rep.framework.event.v1.RelayAuditService.GetRelayAudit:output_type -> rep.framework.event.v1.RelayAuditResponse - 2, // 10: rep.framework.event.v1.RelayAuditService.GetRelayAuditByProjects:output_type -> rep.framework.event.v1.RelayAuditResponse - 7, // [7:11] is the sub-list for method output_type - 3, // [3:7] is the sub-list for method input_type + 1, // 3: rep.framework.event.v1.RelayAuditService.GetRelayAudit:input_type -> rep.framework.event.v1.RelayAuditRequest + 1, // 4: rep.framework.event.v1.RelayAuditService.GetRelayAuditByProjects:input_type -> rep.framework.event.v1.RelayAuditRequest + 2, // 5: rep.framework.event.v1.RelayAuditService.GetRelayAudit:output_type -> rep.framework.event.v1.RelayAuditResponse + 2, // 6: rep.framework.event.v1.RelayAuditService.GetRelayAuditByProjects:output_type -> rep.framework.event.v1.RelayAuditResponse + 5, // [5:7] is the sub-list for method output_type + 3, // [3:5] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name diff --git a/proto/rpc/audit/relayaudit.pb.gw.go b/proto/rpc/audit/relayaudit.pb.gw.go index 3ea5a4d..f3d1a8d 100644 --- a/proto/rpc/audit/relayaudit.pb.gw.go +++ b/proto/rpc/audit/relayaudit.pb.gw.go @@ -32,113 +32,7 @@ var _ = utilities.NewDoubleArray var _ = metadata.Join var ( - filter_RelayAuditService_GetRelayAPIAudit_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} -) - -func request_RelayAuditService_GetRelayAPIAudit_0(ctx context.Context, marshaler runtime.Marshaler, client RelayAuditServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RelayAuditRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["metadata.urlScope"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "metadata.urlScope") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "metadata.urlScope", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "metadata.urlScope", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RelayAuditService_GetRelayAPIAudit_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetRelayAPIAudit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_RelayAuditService_GetRelayAPIAudit_0(ctx context.Context, marshaler runtime.Marshaler, server RelayAuditServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RelayAuditRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["metadata.urlScope"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "metadata.urlScope") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "metadata.urlScope", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "metadata.urlScope", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RelayAuditService_GetRelayAPIAudit_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetRelayAPIAudit(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_RelayAuditService_GetRelayAPIAuditByProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_RelayAuditService_GetRelayAPIAuditByProjects_0(ctx context.Context, marshaler runtime.Marshaler, client RelayAuditServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RelayAuditRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RelayAuditService_GetRelayAPIAuditByProjects_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetRelayAPIAuditByProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_RelayAuditService_GetRelayAPIAuditByProjects_0(ctx context.Context, marshaler runtime.Marshaler, server RelayAuditServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RelayAuditRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RelayAuditService_GetRelayAPIAuditByProjects_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetRelayAPIAuditByProjects(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_RelayAuditService_GetRelayAudit_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_RelayAuditService_GetRelayAudit_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_RelayAuditService_GetRelayAudit_0(ctx context.Context, marshaler runtime.Marshaler, client RelayAuditServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -249,56 +143,6 @@ func local_request_RelayAuditService_GetRelayAuditByProjects_0(ctx context.Conte // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRelayAuditServiceHandlerFromEndpoint instead. func RegisterRelayAuditServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RelayAuditServiceServer) error { - mux.Handle("GET", pattern_RelayAuditService_GetRelayAPIAudit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAudit", runtime.WithHTTPPathPattern("/event/v1/{metadata.urlScope=project/*}/relayaudit")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_RelayAuditService_GetRelayAPIAudit_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_RelayAuditService_GetRelayAPIAudit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_RelayAuditService_GetRelayAPIAuditByProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAuditByProjects", runtime.WithHTTPPathPattern("/event/v1/relayaudit")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_RelayAuditService_GetRelayAPIAuditByProjects_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_RelayAuditService_GetRelayAPIAuditByProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_RelayAuditService_GetRelayAudit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -355,7 +199,7 @@ func RegisterRelayAuditServiceHandlerServer(ctx context.Context, mux *runtime.Se // RegisterRelayAuditServiceHandlerFromEndpoint is same as RegisterRelayAuditServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterRelayAuditServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } @@ -390,50 +234,6 @@ func RegisterRelayAuditServiceHandler(ctx context.Context, mux *runtime.ServeMux // "RelayAuditServiceClient" to call the correct interceptors. func RegisterRelayAuditServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RelayAuditServiceClient) error { - mux.Handle("GET", pattern_RelayAuditService_GetRelayAPIAudit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAudit", runtime.WithHTTPPathPattern("/event/v1/{metadata.urlScope=project/*}/relayaudit")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RelayAuditService_GetRelayAPIAudit_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_RelayAuditService_GetRelayAPIAudit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_RelayAuditService_GetRelayAPIAuditByProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAuditByProjects", runtime.WithHTTPPathPattern("/event/v1/relayaudit")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_RelayAuditService_GetRelayAPIAuditByProjects_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_RelayAuditService_GetRelayAPIAuditByProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_RelayAuditService_GetRelayAudit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -482,20 +282,12 @@ func RegisterRelayAuditServiceHandlerClient(ctx context.Context, mux *runtime.Se } var ( - pattern_RelayAuditService_GetRelayAPIAudit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"event", "v1", "project", "metadata.urlScope", "relayaudit"}, "")) - - pattern_RelayAuditService_GetRelayAPIAuditByProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"event", "v1", "relayaudit"}, "")) - pattern_RelayAuditService_GetRelayAudit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4, 2, 5}, []string{"event", "v1", "project", "metadata.urlScope", "audit", "relay"}, "")) pattern_RelayAuditService_GetRelayAuditByProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"event", "v1", "audit", "relay"}, "")) ) var ( - forward_RelayAuditService_GetRelayAPIAudit_0 = runtime.ForwardResponseMessage - - forward_RelayAuditService_GetRelayAPIAuditByProjects_0 = runtime.ForwardResponseMessage - forward_RelayAuditService_GetRelayAudit_0 = runtime.ForwardResponseMessage forward_RelayAuditService_GetRelayAuditByProjects_0 = runtime.ForwardResponseMessage diff --git a/proto/rpc/audit/relayaudit.proto b/proto/rpc/audit/relayaudit.proto index 5f029db..74eba17 100644 --- a/proto/rpc/audit/relayaudit.proto +++ b/proto/rpc/audit/relayaudit.proto @@ -94,20 +94,6 @@ message RelayAuditResponse { } service RelayAuditService { - rpc GetRelayAPIAudit(RelayAuditRequest) - returns (RelayAuditResponse) { - option (google.api.http) = { - get : "/event/v1/{metadata.urlScope=project/*}/relayaudit" - }; - }; - - rpc GetRelayAPIAuditByProjects(RelayAuditRequest) - returns (RelayAuditResponse) { - option (google.api.http) = { - get : "/event/v1/relayaudit" - }; - }; - rpc GetRelayAudit(RelayAuditRequest) returns (RelayAuditResponse) { option (google.api.http) = { diff --git a/proto/rpc/audit/relayaudit_grpc.pb.go b/proto/rpc/audit/relayaudit_grpc.pb.go index b40eba0..f9b0dc0 100644 --- a/proto/rpc/audit/relayaudit_grpc.pb.go +++ b/proto/rpc/audit/relayaudit_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/audit/relayaudit.proto @@ -18,12 +18,15 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + RelayAuditService_GetRelayAudit_FullMethodName = "/rep.framework.event.v1.RelayAuditService/GetRelayAudit" + RelayAuditService_GetRelayAuditByProjects_FullMethodName = "/rep.framework.event.v1.RelayAuditService/GetRelayAuditByProjects" +) + // RelayAuditServiceClient is the client API for RelayAuditService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type RelayAuditServiceClient interface { - GetRelayAPIAudit(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) - GetRelayAPIAuditByProjects(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) GetRelayAudit(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) GetRelayAuditByProjects(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) } @@ -36,27 +39,9 @@ func NewRelayAuditServiceClient(cc grpc.ClientConnInterface) RelayAuditServiceCl return &relayAuditServiceClient{cc} } -func (c *relayAuditServiceClient) GetRelayAPIAudit(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) { - out := new(RelayAuditResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAudit", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *relayAuditServiceClient) GetRelayAPIAuditByProjects(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) { - out := new(RelayAuditResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAuditByProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *relayAuditServiceClient) GetRelayAudit(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) { out := new(RelayAuditResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.RelayAuditService/GetRelayAudit", in, out, opts...) + err := c.cc.Invoke(ctx, RelayAuditService_GetRelayAudit_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -65,7 +50,7 @@ func (c *relayAuditServiceClient) GetRelayAudit(ctx context.Context, in *RelayAu func (c *relayAuditServiceClient) GetRelayAuditByProjects(ctx context.Context, in *RelayAuditRequest, opts ...grpc.CallOption) (*RelayAuditResponse, error) { out := new(RelayAuditResponse) - err := c.cc.Invoke(ctx, "/rep.framework.event.v1.RelayAuditService/GetRelayAuditByProjects", in, out, opts...) + err := c.cc.Invoke(ctx, RelayAuditService_GetRelayAuditByProjects_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,8 +61,6 @@ func (c *relayAuditServiceClient) GetRelayAuditByProjects(ctx context.Context, i // All implementations should embed UnimplementedRelayAuditServiceServer // for forward compatibility type RelayAuditServiceServer interface { - GetRelayAPIAudit(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) - GetRelayAPIAuditByProjects(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) GetRelayAudit(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) GetRelayAuditByProjects(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) } @@ -86,12 +69,6 @@ type RelayAuditServiceServer interface { type UnimplementedRelayAuditServiceServer struct { } -func (UnimplementedRelayAuditServiceServer) GetRelayAPIAudit(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRelayAPIAudit not implemented") -} -func (UnimplementedRelayAuditServiceServer) GetRelayAPIAuditByProjects(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRelayAPIAuditByProjects not implemented") -} func (UnimplementedRelayAuditServiceServer) GetRelayAudit(context.Context, *RelayAuditRequest) (*RelayAuditResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRelayAudit not implemented") } @@ -110,42 +87,6 @@ func RegisterRelayAuditServiceServer(s grpc.ServiceRegistrar, srv RelayAuditServ s.RegisterService(&RelayAuditService_ServiceDesc, srv) } -func _RelayAuditService_GetRelayAPIAudit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RelayAuditRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RelayAuditServiceServer).GetRelayAPIAudit(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAudit", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RelayAuditServiceServer).GetRelayAPIAudit(ctx, req.(*RelayAuditRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RelayAuditService_GetRelayAPIAuditByProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RelayAuditRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RelayAuditServiceServer).GetRelayAPIAuditByProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/rep.framework.event.v1.RelayAuditService/GetRelayAPIAuditByProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RelayAuditServiceServer).GetRelayAPIAuditByProjects(ctx, req.(*RelayAuditRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _RelayAuditService_GetRelayAudit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RelayAuditRequest) if err := dec(in); err != nil { @@ -156,7 +97,7 @@ func _RelayAuditService_GetRelayAudit_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rep.framework.event.v1.RelayAuditService/GetRelayAudit", + FullMethod: RelayAuditService_GetRelayAudit_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RelayAuditServiceServer).GetRelayAudit(ctx, req.(*RelayAuditRequest)) @@ -174,7 +115,7 @@ func _RelayAuditService_GetRelayAuditByProjects_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/rep.framework.event.v1.RelayAuditService/GetRelayAuditByProjects", + FullMethod: RelayAuditService_GetRelayAuditByProjects_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RelayAuditServiceServer).GetRelayAuditByProjects(ctx, req.(*RelayAuditRequest)) @@ -189,14 +130,6 @@ var RelayAuditService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rep.framework.event.v1.RelayAuditService", HandlerType: (*RelayAuditServiceServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "GetRelayAPIAudit", - Handler: _RelayAuditService_GetRelayAPIAudit_Handler, - }, - { - MethodName: "GetRelayAPIAuditByProjects", - Handler: _RelayAuditService_GetRelayAPIAuditByProjects_Handler, - }, { MethodName: "GetRelayAudit", Handler: _RelayAuditService_GetRelayAudit_Handler, diff --git a/proto/rpc/role/role.pb.go b/proto/rpc/role/role.pb.go index d10b998..4de6799 100644 --- a/proto/rpc/role/role.pb.go +++ b/proto/rpc/role/role.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/role/role.proto @@ -99,46 +99,46 @@ var file_proto_rpc_role_role_proto_rawDesc = []byte{ 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xf2, 0x04, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, - 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, - 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x3b, - 0x72, 0x6f, 0x6c, 0x65, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x52, 0xaa, 0x02, 0x17, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, - 0x52, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, - 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, - 0x52, 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x52, 0x6f, 0x6c, - 0x65, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x93, 0x03, 0x12, 0x2d, 0x0a, 0x17, 0x52, 0x6f, 0x6c, - 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, - 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, - 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, - 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, - 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, - 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, - 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, - 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, - 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, - 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, - 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, - 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, - 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, - 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, - 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, + 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xf2, 0x04, 0x92, 0x41, 0x93, 0x03, 0x12, 0x2d, + 0x0a, 0x17, 0x52, 0x6f, 0x6c, 0x65, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, + 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, + 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, + 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, + 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, + 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, + 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, + 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, + 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x09, + 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, + 0x63, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x3b, 0x72, 0x6f, 0x6c, 0x65, 0x76, 0x33, 0xa2, 0x02, 0x04, + 0x50, 0x44, 0x52, 0x52, 0xaa, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, + 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x33, 0xca, 0x02, + 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, + 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, + 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, + 0x70, 0x63, 0x3a, 0x3a, 0x52, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/role/role.pb.gw.go b/proto/rpc/role/role.pb.gw.go index ae55b29..0c201f2 100644 --- a/proto/rpc/role/role.pb.gw.go +++ b/proto/rpc/role/role.pb.gw.go @@ -121,7 +121,7 @@ func local_request_RoleService_CreateRole_0(ctx context.Context, marshaler runti } var ( - filter_RoleService_GetRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_RoleService_GetRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_RoleService_GetRoles_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -211,7 +211,7 @@ func local_request_RoleService_GetRoles_0(ctx context.Context, marshaler runtime } var ( - filter_RoleService_GetRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_RoleService_GetRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_RoleService_GetRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -429,7 +429,7 @@ func local_request_RoleService_UpdateRole_0(ctx context.Context, marshaler runti } var ( - filter_RoleService_DeleteRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_RoleService_DeleteRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -675,7 +675,7 @@ func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux // RegisterRoleServiceHandlerFromEndpoint is same as RegisterRoleServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterRoleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/role/role_grpc.pb.go b/proto/rpc/role/role_grpc.pb.go index c1220f9..a8bc35b 100644 --- a/proto/rpc/role/role_grpc.pb.go +++ b/proto/rpc/role/role_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/role/role.proto @@ -19,6 +19,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + RoleService_CreateRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/CreateRole" + RoleService_GetRoles_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/GetRoles" + RoleService_GetRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/GetRole" + RoleService_UpdateRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/UpdateRole" + RoleService_DeleteRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/DeleteRole" +) + // RoleServiceClient is the client API for RoleService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +48,7 @@ func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient { func (c *roleServiceClient) CreateRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error) { out := new(v3.Role) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RoleService/CreateRole", in, out, opts...) + err := c.cc.Invoke(ctx, RoleService_CreateRole_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +57,7 @@ func (c *roleServiceClient) CreateRole(ctx context.Context, in *v3.Role, opts .. func (c *roleServiceClient) GetRoles(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.RoleList, error) { out := new(v3.RoleList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RoleService/GetRoles", in, out, opts...) + err := c.cc.Invoke(ctx, RoleService_GetRoles_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +66,7 @@ func (c *roleServiceClient) GetRoles(ctx context.Context, in *v3.Role, opts ...g func (c *roleServiceClient) GetRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error) { out := new(v3.Role) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RoleService/GetRole", in, out, opts...) + err := c.cc.Invoke(ctx, RoleService_GetRole_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (c *roleServiceClient) GetRole(ctx context.Context, in *v3.Role, opts ...gr func (c *roleServiceClient) UpdateRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error) { out := new(v3.Role) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RoleService/UpdateRole", in, out, opts...) + err := c.cc.Invoke(ctx, RoleService_UpdateRole_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +84,7 @@ func (c *roleServiceClient) UpdateRole(ctx context.Context, in *v3.Role, opts .. func (c *roleServiceClient) DeleteRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error) { out := new(v3.Role) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RoleService/DeleteRole", in, out, opts...) + err := c.cc.Invoke(ctx, RoleService_DeleteRole_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -135,7 +143,7 @@ func _RoleService_CreateRole_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RoleService/CreateRole", + FullMethod: RoleService_CreateRole_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RoleServiceServer).CreateRole(ctx, req.(*v3.Role)) @@ -153,7 +161,7 @@ func _RoleService_GetRoles_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RoleService/GetRoles", + FullMethod: RoleService_GetRoles_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RoleServiceServer).GetRoles(ctx, req.(*v3.Role)) @@ -171,7 +179,7 @@ func _RoleService_GetRole_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RoleService/GetRole", + FullMethod: RoleService_GetRole_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RoleServiceServer).GetRole(ctx, req.(*v3.Role)) @@ -189,7 +197,7 @@ func _RoleService_UpdateRole_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RoleService/UpdateRole", + FullMethod: RoleService_UpdateRole_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RoleServiceServer).UpdateRole(ctx, req.(*v3.Role)) @@ -207,7 +215,7 @@ func _RoleService_DeleteRole_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RoleService/DeleteRole", + FullMethod: RoleService_DeleteRole_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RoleServiceServer).DeleteRole(ctx, req.(*v3.Role)) diff --git a/proto/rpc/role/rolepermission.pb.go b/proto/rpc/role/rolepermission.pb.go index 88093bf..881275f 100644 --- a/proto/rpc/role/rolepermission.pb.go +++ b/proto/rpc/role/rolepermission.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/role/rolepermission.proto @@ -50,48 +50,48 @@ var file_proto_rpc_role_rolepermission_proto_rawDesc = []byte{ 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x72, 0x6f, 0x6c, 0x65, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x90, 0x05, 0x0a, 0x1b, - 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x13, 0x52, 0x6f, 0x6c, - 0x65, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x3b, 0x72, 0x6f, - 0x6c, 0x65, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x52, 0xaa, 0x02, 0x17, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x52, 0x6f, - 0x6c, 0x65, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, - 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x33, 0xe2, - 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, - 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, - 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x52, 0x6f, 0x6c, 0x65, 0x3a, - 0x3a, 0x56, 0x33, 0x92, 0x41, 0xa7, 0x03, 0x12, 0x37, 0x0a, 0x21, 0x52, 0x6f, 0x6c, 0x65, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, - 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x5a, 0x0a, 0x03, 0x34, - 0x30, 0x33, 0x12, 0x53, 0x0a, 0x51, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, - 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, - 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, - 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, - 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, - 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, - 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, - 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, - 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, - 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, - 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, - 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x90, 0x05, 0x92, 0x41, + 0xa7, 0x03, 0x12, 0x37, 0x0a, 0x21, 0x52, 0x6f, 0x6c, 0x65, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, + 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x5a, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x53, 0x0a, + 0x51, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x6f, 0x6c, 0x65, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, + 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, + 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, + 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, + 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, + 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, + 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x72, + 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x33, 0x42, 0x13, 0x52, 0x6f, 0x6c, 0x65, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x72, 0x70, 0x63, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x3b, 0x72, 0x6f, 0x6c, 0x65, 0x76, 0x33, 0xa2, + 0x02, 0x04, 0x50, 0x44, 0x52, 0x52, 0xaa, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x33, + 0xca, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, + 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x52, 0x6f, 0x6c, + 0x65, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, + 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x52, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/role/rolepermission.pb.gw.go b/proto/rpc/role/rolepermission.pb.gw.go index e3a8c1e..af68a1a 100644 --- a/proto/rpc/role/rolepermission.pb.gw.go +++ b/proto/rpc/role/rolepermission.pb.gw.go @@ -105,7 +105,7 @@ func RegisterRolepermissionServiceHandlerServer(ctx context.Context, mux *runtim // RegisterRolepermissionServiceHandlerFromEndpoint is same as RegisterRolepermissionServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterRolepermissionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/role/rolepermission_grpc.pb.go b/proto/rpc/role/rolepermission_grpc.pb.go index 174a0f9..449fabf 100644 --- a/proto/rpc/role/rolepermission_grpc.pb.go +++ b/proto/rpc/role/rolepermission_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/role/rolepermission.proto @@ -20,6 +20,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + RolepermissionService_GetRolepermissions_FullMethodName = "/paralus.dev.rpc.role.v3.RolepermissionService/GetRolepermissions" +) + // RolepermissionServiceClient is the client API for RolepermissionService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -37,7 +41,7 @@ func NewRolepermissionServiceClient(cc grpc.ClientConnInterface) RolepermissionS func (c *rolepermissionServiceClient) GetRolepermissions(ctx context.Context, in *v3.QueryOptions, opts ...grpc.CallOption) (*v31.RolePermissionList, error) { out := new(v31.RolePermissionList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.role.v3.RolepermissionService/GetRolepermissions", in, out, opts...) + err := c.cc.Invoke(ctx, RolepermissionService_GetRolepermissions_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -80,7 +84,7 @@ func _RolepermissionService_GetRolepermissions_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.role.v3.RolepermissionService/GetRolepermissions", + FullMethod: RolepermissionService_GetRolepermissions_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(RolepermissionServiceServer).GetRolepermissions(ctx, req.(*v3.QueryOptions)) diff --git a/proto/rpc/scheduler/cluster.pb.go b/proto/rpc/scheduler/cluster.pb.go index 8d6773f..a68ccfa 100644 --- a/proto/rpc/scheduler/cluster.pb.go +++ b/proto/rpc/scheduler/cluster.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/scheduler/cluster.proto @@ -270,44 +270,44 @@ var file_proto_rpc_scheduler_cluster_proto_rawDesc = []byte{ 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x42, - 0xd6, 0x04, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, - 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, - 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x33, - 0xa2, 0x02, 0x03, 0x50, 0x44, 0x52, 0xaa, 0x02, 0x12, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x12, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x33, - 0xe2, 0x02, 0x1e, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x15, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, - 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x8b, 0x03, 0x12, 0x25, 0x0a, - 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, - 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, - 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, - 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, - 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, - 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, - 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, - 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, - 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, - 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, - 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, - 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0xd6, 0x04, 0x92, 0x41, 0x8b, 0x03, 0x12, 0x25, 0x0a, 0x0f, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, + 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, + 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, + 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, + 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, + 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, + 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, + 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, + 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x3b, 0x72, 0x70, 0x63, 0x76, 0x33, 0xa2, + 0x02, 0x03, 0x50, 0x44, 0x52, 0xaa, 0x02, 0x12, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, + 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x12, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x56, 0x33, 0xe2, + 0x02, 0x1e, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, + 0x63, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x15, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, + 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/scheduler/cluster.pb.gw.go b/proto/rpc/scheduler/cluster.pb.gw.go index 204cc46..04917fb 100644 --- a/proto/rpc/scheduler/cluster.pb.gw.go +++ b/proto/rpc/scheduler/cluster.pb.gw.go @@ -102,7 +102,7 @@ func local_request_ClusterService_CreateCluster_0(ctx context.Context, marshaler } var ( - filter_ClusterService_GetClusters_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_ClusterService_GetClusters_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) func request_ClusterService_GetClusters_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -172,7 +172,7 @@ func local_request_ClusterService_GetClusters_0(ctx context.Context, marshaler r } var ( - filter_ClusterService_GetCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_ClusterService_GetCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_ClusterService_GetCluster_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -350,7 +350,7 @@ func local_request_ClusterService_UpdateCluster_0(ctx context.Context, marshaler } var ( - filter_ClusterService_DeleteCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_ClusterService_DeleteCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_ClusterService_DeleteCluster_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -440,7 +440,7 @@ func local_request_ClusterService_DeleteCluster_0(ctx context.Context, marshaler } var ( - filter_ClusterService_DownloadCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_ClusterService_DownloadCluster_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "project": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_ClusterService_DownloadCluster_0(ctx context.Context, marshaler runtime.Marshaler, client ClusterServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -691,7 +691,7 @@ func RegisterClusterServiceHandlerServer(ctx context.Context, mux *runtime.Serve // RegisterClusterServiceHandlerFromEndpoint is same as RegisterClusterServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterClusterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/scheduler/cluster_grpc.pb.go b/proto/rpc/scheduler/cluster_grpc.pb.go index a0ccf7d..dc1916b 100644 --- a/proto/rpc/scheduler/cluster_grpc.pb.go +++ b/proto/rpc/scheduler/cluster_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/scheduler/cluster.proto @@ -20,6 +20,15 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ClusterService_CreateCluster_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/CreateCluster" + ClusterService_GetClusters_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/GetClusters" + ClusterService_GetCluster_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/GetCluster" + ClusterService_UpdateCluster_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/UpdateCluster" + ClusterService_DeleteCluster_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/DeleteCluster" + ClusterService_DownloadCluster_FullMethodName = "/paralus.dev.rpc.v3.ClusterService/DownloadCluster" +) + // ClusterServiceClient is the client API for ClusterService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -42,7 +51,7 @@ func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient { func (c *clusterServiceClient) CreateCluster(ctx context.Context, in *v3.Cluster, opts ...grpc.CallOption) (*v3.Cluster, error) { out := new(v3.Cluster) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/CreateCluster", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_CreateCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -51,7 +60,7 @@ func (c *clusterServiceClient) CreateCluster(ctx context.Context, in *v3.Cluster func (c *clusterServiceClient) GetClusters(ctx context.Context, in *v31.QueryOptions, opts ...grpc.CallOption) (*v3.ClusterList, error) { out := new(v3.ClusterList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/GetClusters", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_GetClusters_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -60,7 +69,7 @@ func (c *clusterServiceClient) GetClusters(ctx context.Context, in *v31.QueryOpt func (c *clusterServiceClient) GetCluster(ctx context.Context, in *v3.Cluster, opts ...grpc.CallOption) (*v3.Cluster, error) { out := new(v3.Cluster) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/GetCluster", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_GetCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -69,7 +78,7 @@ func (c *clusterServiceClient) GetCluster(ctx context.Context, in *v3.Cluster, o func (c *clusterServiceClient) UpdateCluster(ctx context.Context, in *v3.Cluster, opts ...grpc.CallOption) (*v3.Cluster, error) { out := new(v3.Cluster) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/UpdateCluster", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_UpdateCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -78,7 +87,7 @@ func (c *clusterServiceClient) UpdateCluster(ctx context.Context, in *v3.Cluster func (c *clusterServiceClient) DeleteCluster(ctx context.Context, in *v3.Cluster, opts ...grpc.CallOption) (*DeleteClusterResponse, error) { out := new(DeleteClusterResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/DeleteCluster", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_DeleteCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -87,7 +96,7 @@ func (c *clusterServiceClient) DeleteCluster(ctx context.Context, in *v3.Cluster func (c *clusterServiceClient) DownloadCluster(ctx context.Context, in *v3.Cluster, opts ...grpc.CallOption) (*v31.HttpBody, error) { out := new(v31.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.v3.ClusterService/DownloadCluster", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterService_DownloadCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -150,7 +159,7 @@ func _ClusterService_CreateCluster_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/CreateCluster", + FullMethod: ClusterService_CreateCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).CreateCluster(ctx, req.(*v3.Cluster)) @@ -168,7 +177,7 @@ func _ClusterService_GetClusters_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/GetClusters", + FullMethod: ClusterService_GetClusters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).GetClusters(ctx, req.(*v31.QueryOptions)) @@ -186,7 +195,7 @@ func _ClusterService_GetCluster_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/GetCluster", + FullMethod: ClusterService_GetCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).GetCluster(ctx, req.(*v3.Cluster)) @@ -204,7 +213,7 @@ func _ClusterService_UpdateCluster_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/UpdateCluster", + FullMethod: ClusterService_UpdateCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).UpdateCluster(ctx, req.(*v3.Cluster)) @@ -222,7 +231,7 @@ func _ClusterService_DeleteCluster_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/DeleteCluster", + FullMethod: ClusterService_DeleteCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).DeleteCluster(ctx, req.(*v3.Cluster)) @@ -240,7 +249,7 @@ func _ClusterService_DownloadCluster_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.v3.ClusterService/DownloadCluster", + FullMethod: ClusterService_DownloadCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterServiceServer).DownloadCluster(ctx, req.(*v3.Cluster)) diff --git a/proto/rpc/sentry/audit_info.pb.go b/proto/rpc/sentry/audit_info.pb.go index a3ec06c..9180664 100644 --- a/proto/rpc/sentry/audit_info.pb.go +++ b/proto/rpc/sentry/audit_info.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/audit_info.proto @@ -210,6 +210,7 @@ type LookupClusterResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=displayName,proto3" json:"displayName,omitempty"` + Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` } func (x *LookupClusterResponse) Reset() { @@ -258,6 +259,13 @@ func (x *LookupClusterResponse) GetDisplayName() string { return "" } +func (x *LookupClusterResponse) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + var File_proto_rpc_sentry_audit_info_proto protoreflect.FileDescriptor var file_proto_rpc_sentry_audit_info_proto_rawDesc = []byte{ @@ -288,72 +296,73 @@ var file_proto_rpc_sentry_audit_info_proto_rawDesc = []byte{ 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x36, 0x0a, 0x14, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x4e, 0x49, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x4e, 0x49, 0x22, 0x4d, 0x0a, + 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x4e, 0x49, 0x22, 0x67, 0x0a, 0x15, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xb7, 0x02, 0x0a, - 0x17, 0x41, 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, - 0x6b, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x12, 0x29, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, - 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x12, 0x92, 0x01, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x2c, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, - 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0xb7, 0x02, 0x0a, 0x17, 0x41, 0x75, 0x64, 0x69, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x55, 0x73, 0x65, + 0x72, 0x12, 0x29, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, - 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2f, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0xf5, 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, + 0x70, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, - 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, - 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, - 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x92, 0x41, - 0x9c, 0x03, 0x12, 0x36, 0x0a, 0x20, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x41, 0x75, 0x64, - 0x69, 0x74, 0x20, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, - 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, - 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, - 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, - 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, - 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, - 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, - 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, - 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, - 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, - 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, - 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, - 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, - 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, - 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, - 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, + 0x12, 0x19, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x61, 0x75, 0x64, + 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x12, 0x92, 0x01, 0x0a, 0x0d, + 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x2e, + 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, + 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x61, + 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x42, 0xf5, 0x04, 0x92, 0x41, 0x9c, 0x03, 0x12, 0x36, 0x0a, 0x20, 0x53, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x20, 0x41, 0x75, 0x64, 0x69, 0x74, 0x20, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, + 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, + 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, + 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, + 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, + 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, + 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, + 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, + 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, + 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, + 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, + 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, + 0x68, 0x12, 0x00, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, + 0x0e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, + 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, + 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, + 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, + 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, + 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/sentry/audit_info.pb.gw.go b/proto/rpc/sentry/audit_info.pb.gw.go index bd7ea92..668e2b0 100644 --- a/proto/rpc/sentry/audit_info.pb.gw.go +++ b/proto/rpc/sentry/audit_info.pb.gw.go @@ -165,7 +165,7 @@ func RegisterAuditInformationServiceHandlerServer(ctx context.Context, mux *runt // RegisterAuditInformationServiceHandlerFromEndpoint is same as RegisterAuditInformationServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAuditInformationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/sentry/audit_info.proto b/proto/rpc/sentry/audit_info.proto index e5de318..31f2541 100644 --- a/proto/rpc/sentry/audit_info.proto +++ b/proto/rpc/sentry/audit_info.proto @@ -81,6 +81,7 @@ message LookupClusterRequest { message LookupClusterResponse { string name = 1; string displayName = 2; + string project = 3; } service AuditInformationService { diff --git a/proto/rpc/sentry/audit_info_grpc.pb.go b/proto/rpc/sentry/audit_info_grpc.pb.go index 73fff6d..7fe7230 100644 --- a/proto/rpc/sentry/audit_info_grpc.pb.go +++ b/proto/rpc/sentry/audit_info_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/sentry/audit_info.proto @@ -18,6 +18,11 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AuditInformationService_LookupUser_FullMethodName = "/paralus.dev.sentry.rpc.AuditInformationService/LookupUser" + AuditInformationService_LookupCluster_FullMethodName = "/paralus.dev.sentry.rpc.AuditInformationService/LookupCluster" +) + // AuditInformationServiceClient is the client API for AuditInformationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +41,7 @@ func NewAuditInformationServiceClient(cc grpc.ClientConnInterface) AuditInformat func (c *auditInformationServiceClient) LookupUser(ctx context.Context, in *LookupUserRequest, opts ...grpc.CallOption) (*LookupUserResponse, error) { out := new(LookupUserResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.AuditInformationService/LookupUser", in, out, opts...) + err := c.cc.Invoke(ctx, AuditInformationService_LookupUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -45,7 +50,7 @@ func (c *auditInformationServiceClient) LookupUser(ctx context.Context, in *Look func (c *auditInformationServiceClient) LookupCluster(ctx context.Context, in *LookupClusterRequest, opts ...grpc.CallOption) (*LookupClusterResponse, error) { out := new(LookupClusterResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.AuditInformationService/LookupCluster", in, out, opts...) + err := c.cc.Invoke(ctx, AuditInformationService_LookupCluster_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func _AuditInformationService_LookupUser_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.AuditInformationService/LookupUser", + FullMethod: AuditInformationService_LookupUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuditInformationServiceServer).LookupUser(ctx, req.(*LookupUserRequest)) @@ -110,7 +115,7 @@ func _AuditInformationService_LookupCluster_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.AuditInformationService/LookupCluster", + FullMethod: AuditInformationService_LookupCluster_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuditInformationServiceServer).LookupCluster(ctx, req.(*LookupClusterRequest)) diff --git a/proto/rpc/sentry/bootstrap.pb.go b/proto/rpc/sentry/bootstrap.pb.go index 510a6e7..24d145d 100644 --- a/proto/rpc/sentry/bootstrap.pb.go +++ b/proto/rpc/sentry/bootstrap.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/bootstrap.proto @@ -610,46 +610,48 @@ var file_proto_rpc_sentry_bootstrap_proto_rawDesc = []byte{ 0x70, 0x65, 0x63, 0x2e, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x3d, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2f, 0x2a, 0x7d, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, - 0x7d, 0x42, 0xe5, 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, - 0x42, 0x0e, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, - 0x02, 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, - 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, - 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x92, 0x41, 0x8c, 0x03, 0x12, 0x2e, 0x0a, - 0x18, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, - 0x70, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, - 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, - 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, - 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x33, 0x0a, 0x03, 0x34, 0x30, - 0x34, 0x12, 0x2c, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, - 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, - 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x52, - 0x2b, 0x0a, 0x03, 0x35, 0x30, 0x30, 0x12, 0x24, 0x0a, 0x22, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5a, 0x3a, 0x0a, 0x27, - 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x19, 0x08, 0x02, - 0x1a, 0x13, 0x58, 0x2d, 0x50, 0x41, 0x52, 0x41, 0x4c, 0x55, 0x53, 0x2d, 0x41, 0x50, 0x49, 0x2d, - 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x1f, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, - 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x7d, 0x42, 0x92, 0x05, 0x92, 0x41, 0xb9, 0x03, 0x12, 0x2e, 0x0a, 0x18, 0x53, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x20, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x20, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, + 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, + 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, + 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, + 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, + 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, + 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x33, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x2c, 0x0a, 0x2a, + 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, + 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x2b, 0x0a, 0x03, 0x35, 0x30, + 0x30, 0x12, 0x24, 0x0a, 0x22, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, + 0x72, 0x20, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, + 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, + 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, + 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0e, 0x42, + 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, 0x50, + 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, + 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, 0x50, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, + 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, 0x72, + 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/sentry/bootstrap.pb.gw.go b/proto/rpc/sentry/bootstrap.pb.gw.go index 7c5b418..de7ff76 100644 --- a/proto/rpc/sentry/bootstrap.pb.gw.go +++ b/proto/rpc/sentry/bootstrap.pb.gw.go @@ -102,7 +102,7 @@ func local_request_BootstrapService_PatchBootstrapInfra_0(ctx context.Context, m } var ( - filter_BootstrapService_GetBootstrapInfra_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_BootstrapService_GetBootstrapInfra_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_BootstrapService_GetBootstrapInfra_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -240,7 +240,7 @@ func local_request_BootstrapService_PatchBootstrapAgentTemplate_0(ctx context.Co } var ( - filter_BootstrapService_GetBootstrapAgentTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_BootstrapService_GetBootstrapAgentTemplate_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_BootstrapService_GetBootstrapAgentTemplate_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -414,7 +414,7 @@ func local_request_BootstrapService_RegisterBootstrapAgent_0(ctx context.Context } var ( - filter_BootstrapService_GetBootstrapAgentConfig_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 3, 5}} + filter_BootstrapService_GetBootstrapAgentConfig_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 4, 3, 5, 6, 2, 0, 0, 5, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 3, 4, 9, 5}} ) func request_BootstrapService_GetBootstrapAgentConfig_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -572,7 +572,7 @@ func local_request_BootstrapService_CreateBootstrapAgent_0(ctx context.Context, } var ( - filter_BootstrapService_GetBootstrapAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 3, 5}} + filter_BootstrapService_GetBootstrapAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 4, 3, 5, 6, 2, 0, 0, 5, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 3, 4, 9, 5}} ) func request_BootstrapService_GetBootstrapAgent_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -662,7 +662,7 @@ func local_request_BootstrapService_GetBootstrapAgent_0(ctx context.Context, mar } var ( - filter_BootstrapService_GetBootstrapAgents_0 = &utilities.DoubleArray{Encoding: map[string]int{"templateScope": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_BootstrapService_GetBootstrapAgents_0 = &utilities.DoubleArray{Encoding: map[string]int{"templateScope": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) func request_BootstrapService_GetBootstrapAgents_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -732,7 +732,7 @@ func local_request_BootstrapService_GetBootstrapAgents_0(ctx context.Context, ma } var ( - filter_BootstrapService_DeleteBootstrapAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 1, 4, 3, 5}} + filter_BootstrapService_DeleteBootstrapAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"spec": 0, "templateRef": 1, "metadata": 2, "name": 3}, Base: []int{1, 4, 3, 5, 6, 2, 0, 0, 5, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 3, 4, 9, 5}} ) func request_BootstrapService_DeleteBootstrapAgent_0(ctx context.Context, marshaler runtime.Marshaler, client BootstrapServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1221,7 +1221,7 @@ func RegisterBootstrapServiceHandlerServer(ctx context.Context, mux *runtime.Ser // RegisterBootstrapServiceHandlerFromEndpoint is same as RegisterBootstrapServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterBootstrapServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/sentry/bootstrap_grpc.pb.go b/proto/rpc/sentry/bootstrap_grpc.pb.go index 89f1da3..f9957c7 100644 --- a/proto/rpc/sentry/bootstrap_grpc.pb.go +++ b/proto/rpc/sentry/bootstrap_grpc.pb.go @@ -1,4 +1,8 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: proto/rpc/sentry/bootstrap.proto package sentry @@ -16,6 +20,21 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + BootstrapService_PatchBootstrapInfra_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapInfra" + BootstrapService_GetBootstrapInfra_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapInfra" + BootstrapService_PatchBootstrapAgentTemplate_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapAgentTemplate" + BootstrapService_GetBootstrapAgentTemplate_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplate" + BootstrapService_GetBootstrapAgentTemplates_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplates" + BootstrapService_RegisterBootstrapAgent_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/RegisterBootstrapAgent" + BootstrapService_GetBootstrapAgentConfig_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentConfig" + BootstrapService_CreateBootstrapAgent_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/CreateBootstrapAgent" + BootstrapService_GetBootstrapAgent_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgent" + BootstrapService_GetBootstrapAgents_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgents" + BootstrapService_DeleteBootstrapAgent_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/DeleteBootstrapAgent" + BootstrapService_UpdateBootstrapAgent_FullMethodName = "/paralus.dev.sentry.rpc.BootstrapService/UpdateBootstrapAgent" +) + // BootstrapServiceClient is the client API for BootstrapService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -44,7 +63,7 @@ func NewBootstrapServiceClient(cc grpc.ClientConnInterface) BootstrapServiceClie func (c *bootstrapServiceClient) PatchBootstrapInfra(ctx context.Context, in *sentry.BootstrapInfra, opts ...grpc.CallOption) (*sentry.BootstrapInfra, error) { out := new(sentry.BootstrapInfra) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapInfra", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_PatchBootstrapInfra_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -53,7 +72,7 @@ func (c *bootstrapServiceClient) PatchBootstrapInfra(ctx context.Context, in *se func (c *bootstrapServiceClient) GetBootstrapInfra(ctx context.Context, in *sentry.BootstrapInfra, opts ...grpc.CallOption) (*sentry.BootstrapInfra, error) { out := new(sentry.BootstrapInfra) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapInfra", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapInfra_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -62,7 +81,7 @@ func (c *bootstrapServiceClient) GetBootstrapInfra(ctx context.Context, in *sent func (c *bootstrapServiceClient) PatchBootstrapAgentTemplate(ctx context.Context, in *sentry.BootstrapAgentTemplate, opts ...grpc.CallOption) (*sentry.BootstrapAgentTemplate, error) { out := new(sentry.BootstrapAgentTemplate) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapAgentTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_PatchBootstrapAgentTemplate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -71,7 +90,7 @@ func (c *bootstrapServiceClient) PatchBootstrapAgentTemplate(ctx context.Context func (c *bootstrapServiceClient) GetBootstrapAgentTemplate(ctx context.Context, in *sentry.BootstrapAgentTemplate, opts ...grpc.CallOption) (*sentry.BootstrapAgentTemplate, error) { out := new(sentry.BootstrapAgentTemplate) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplate", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapAgentTemplate_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -80,7 +99,7 @@ func (c *bootstrapServiceClient) GetBootstrapAgentTemplate(ctx context.Context, func (c *bootstrapServiceClient) GetBootstrapAgentTemplates(ctx context.Context, in *v3.QueryOptions, opts ...grpc.CallOption) (*sentry.BootstrapAgentTemplateList, error) { out := new(sentry.BootstrapAgentTemplateList) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplates", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapAgentTemplates_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -89,7 +108,7 @@ func (c *bootstrapServiceClient) GetBootstrapAgentTemplates(ctx context.Context, func (c *bootstrapServiceClient) RegisterBootstrapAgent(ctx context.Context, in *RegisterAgentRequest, opts ...grpc.CallOption) (*RegisterAgentResponse, error) { out := new(RegisterAgentResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/RegisterBootstrapAgent", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_RegisterBootstrapAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -98,7 +117,7 @@ func (c *bootstrapServiceClient) RegisterBootstrapAgent(ctx context.Context, in func (c *bootstrapServiceClient) GetBootstrapAgentConfig(ctx context.Context, in *sentry.BootstrapAgent, opts ...grpc.CallOption) (*v3.HttpBody, error) { out := new(v3.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentConfig", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapAgentConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -107,7 +126,7 @@ func (c *bootstrapServiceClient) GetBootstrapAgentConfig(ctx context.Context, in func (c *bootstrapServiceClient) CreateBootstrapAgent(ctx context.Context, in *sentry.BootstrapAgent, opts ...grpc.CallOption) (*sentry.BootstrapAgent, error) { out := new(sentry.BootstrapAgent) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/CreateBootstrapAgent", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_CreateBootstrapAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -116,7 +135,7 @@ func (c *bootstrapServiceClient) CreateBootstrapAgent(ctx context.Context, in *s func (c *bootstrapServiceClient) GetBootstrapAgent(ctx context.Context, in *sentry.BootstrapAgent, opts ...grpc.CallOption) (*sentry.BootstrapAgent, error) { out := new(sentry.BootstrapAgent) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgent", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -125,7 +144,7 @@ func (c *bootstrapServiceClient) GetBootstrapAgent(ctx context.Context, in *sent func (c *bootstrapServiceClient) GetBootstrapAgents(ctx context.Context, in *GetBootstrapAgentsRequest, opts ...grpc.CallOption) (*sentry.BootstrapAgentList, error) { out := new(sentry.BootstrapAgentList) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgents", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_GetBootstrapAgents_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -134,7 +153,7 @@ func (c *bootstrapServiceClient) GetBootstrapAgents(ctx context.Context, in *Get func (c *bootstrapServiceClient) DeleteBootstrapAgent(ctx context.Context, in *sentry.BootstrapAgent, opts ...grpc.CallOption) (*DeleteBootstrapAgentResponse, error) { out := new(DeleteBootstrapAgentResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/DeleteBootstrapAgent", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_DeleteBootstrapAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -143,7 +162,7 @@ func (c *bootstrapServiceClient) DeleteBootstrapAgent(ctx context.Context, in *s func (c *bootstrapServiceClient) UpdateBootstrapAgent(ctx context.Context, in *sentry.BootstrapAgent, opts ...grpc.CallOption) (*sentry.BootstrapAgent, error) { out := new(sentry.BootstrapAgent) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.BootstrapService/UpdateBootstrapAgent", in, out, opts...) + err := c.cc.Invoke(ctx, BootstrapService_UpdateBootstrapAgent_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -230,7 +249,7 @@ func _BootstrapService_PatchBootstrapInfra_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapInfra", + FullMethod: BootstrapService_PatchBootstrapInfra_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).PatchBootstrapInfra(ctx, req.(*sentry.BootstrapInfra)) @@ -248,7 +267,7 @@ func _BootstrapService_GetBootstrapInfra_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapInfra", + FullMethod: BootstrapService_GetBootstrapInfra_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapInfra(ctx, req.(*sentry.BootstrapInfra)) @@ -266,7 +285,7 @@ func _BootstrapService_PatchBootstrapAgentTemplate_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/PatchBootstrapAgentTemplate", + FullMethod: BootstrapService_PatchBootstrapAgentTemplate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).PatchBootstrapAgentTemplate(ctx, req.(*sentry.BootstrapAgentTemplate)) @@ -284,7 +303,7 @@ func _BootstrapService_GetBootstrapAgentTemplate_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplate", + FullMethod: BootstrapService_GetBootstrapAgentTemplate_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapAgentTemplate(ctx, req.(*sentry.BootstrapAgentTemplate)) @@ -302,7 +321,7 @@ func _BootstrapService_GetBootstrapAgentTemplates_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentTemplates", + FullMethod: BootstrapService_GetBootstrapAgentTemplates_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapAgentTemplates(ctx, req.(*v3.QueryOptions)) @@ -320,7 +339,7 @@ func _BootstrapService_RegisterBootstrapAgent_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/RegisterBootstrapAgent", + FullMethod: BootstrapService_RegisterBootstrapAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).RegisterBootstrapAgent(ctx, req.(*RegisterAgentRequest)) @@ -338,7 +357,7 @@ func _BootstrapService_GetBootstrapAgentConfig_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgentConfig", + FullMethod: BootstrapService_GetBootstrapAgentConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapAgentConfig(ctx, req.(*sentry.BootstrapAgent)) @@ -356,7 +375,7 @@ func _BootstrapService_CreateBootstrapAgent_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/CreateBootstrapAgent", + FullMethod: BootstrapService_CreateBootstrapAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).CreateBootstrapAgent(ctx, req.(*sentry.BootstrapAgent)) @@ -374,7 +393,7 @@ func _BootstrapService_GetBootstrapAgent_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgent", + FullMethod: BootstrapService_GetBootstrapAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapAgent(ctx, req.(*sentry.BootstrapAgent)) @@ -392,7 +411,7 @@ func _BootstrapService_GetBootstrapAgents_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/GetBootstrapAgents", + FullMethod: BootstrapService_GetBootstrapAgents_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).GetBootstrapAgents(ctx, req.(*GetBootstrapAgentsRequest)) @@ -410,7 +429,7 @@ func _BootstrapService_DeleteBootstrapAgent_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/DeleteBootstrapAgent", + FullMethod: BootstrapService_DeleteBootstrapAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).DeleteBootstrapAgent(ctx, req.(*sentry.BootstrapAgent)) @@ -428,7 +447,7 @@ func _BootstrapService_UpdateBootstrapAgent_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.BootstrapService/UpdateBootstrapAgent", + FullMethod: BootstrapService_UpdateBootstrapAgent_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BootstrapServiceServer).UpdateBootstrapAgent(ctx, req.(*sentry.BootstrapAgent)) diff --git a/proto/rpc/sentry/cluster_authz.pb.go b/proto/rpc/sentry/cluster_authz.pb.go index ad264a8..7a9fa7c 100644 --- a/proto/rpc/sentry/cluster_authz.pb.go +++ b/proto/rpc/sentry/cluster_authz.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/cluster_authz.proto @@ -319,47 +319,47 @@ var file_proto_rpc_sentry_cluster_authz_proto_rawDesc = []byte{ 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x42, 0xfc, 0x04, 0x0a, 0x1a, 0x63, - 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, - 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x11, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, 0x50, 0x44, - 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, - 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, - 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x92, 0x41, 0xa0, 0x03, 0x12, 0x3a, 0x0a, 0x24, 0x53, 0x65, 0x6e, - 0x74, 0x72, 0x79, 0x20, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x20, 0x41, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, - 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, - 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, - 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, - 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, - 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, - 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, - 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, - 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x42, 0xfc, 0x04, 0x92, 0x41, 0xa0, + 0x03, 0x12, 0x3a, 0x0a, 0x24, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x20, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, + 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, + 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, + 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, + 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, + 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, + 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, + 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, + 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x11, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x7a, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, + 0x02, 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, + 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, + 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, + 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, + 0x6e, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/sentry/cluster_authz.pb.gw.go b/proto/rpc/sentry/cluster_authz.pb.gw.go index ed1f37c..fd17b14 100644 --- a/proto/rpc/sentry/cluster_authz.pb.gw.go +++ b/proto/rpc/sentry/cluster_authz.pb.gw.go @@ -104,7 +104,7 @@ func RegisterClusterAuthorizationServiceHandlerServer(ctx context.Context, mux * // RegisterClusterAuthorizationServiceHandlerFromEndpoint is same as RegisterClusterAuthorizationServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterClusterAuthorizationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/sentry/cluster_authz_grpc.pb.go b/proto/rpc/sentry/cluster_authz_grpc.pb.go index 4af354f..a47a324 100644 --- a/proto/rpc/sentry/cluster_authz_grpc.pb.go +++ b/proto/rpc/sentry/cluster_authz_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/sentry/cluster_authz.proto @@ -18,6 +18,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ClusterAuthorizationService_GetUserAuthorization_FullMethodName = "/paralus.dev.sentry.rpc.ClusterAuthorizationService/GetUserAuthorization" +) + // ClusterAuthorizationServiceClient is the client API for ClusterAuthorizationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -35,7 +39,7 @@ func NewClusterAuthorizationServiceClient(cc grpc.ClientConnInterface) ClusterAu func (c *clusterAuthorizationServiceClient) GetUserAuthorization(ctx context.Context, in *GetUserAuthorizationRequest, opts ...grpc.CallOption) (*GetUserAuthorizationResponse, error) { out := new(GetUserAuthorizationResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.ClusterAuthorizationService/GetUserAuthorization", in, out, opts...) + err := c.cc.Invoke(ctx, ClusterAuthorizationService_GetUserAuthorization_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -78,7 +82,7 @@ func _ClusterAuthorizationService_GetUserAuthorization_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.ClusterAuthorizationService/GetUserAuthorization", + FullMethod: ClusterAuthorizationService_GetUserAuthorization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ClusterAuthorizationServiceServer).GetUserAuthorization(ctx, req.(*GetUserAuthorizationRequest)) diff --git a/proto/rpc/sentry/kubeconfig.pb.go b/proto/rpc/sentry/kubeconfig.pb.go index 249f324..0e6101c 100644 --- a/proto/rpc/sentry/kubeconfig.pb.go +++ b/proto/rpc/sentry/kubeconfig.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/kubeconfig.proto @@ -728,44 +728,47 @@ var file_proto_rpc_sentry_kubeconfig_proto_rawDesc = []byte{ 0x02, 0x3c, 0x3a, 0x01, 0x2a, 0x1a, 0x37, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x7b, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x73, 0x73, 0x6f, 0x75, - 0x73, 0x65, 0x72, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0xc2, - 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, - 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0f, 0x4b, - 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, - 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, - 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, - 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x92, 0x41, 0xe8, 0x02, 0x12, 0x2f, 0x0a, 0x19, 0x53, - 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, - 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, - 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, - 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, - 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, - 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, - 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, - 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, - 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x3a, 0x0a, 0x27, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, - 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x19, 0x08, 0x02, 0x1a, 0x13, 0x58, 0x2d, 0x50, 0x41, - 0x52, 0x41, 0x4c, 0x55, 0x53, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, - 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, - 0x08, 0x01, 0x62, 0x1f, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, - 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x72, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x42, 0xef, + 0x04, 0x92, 0x41, 0x95, 0x03, 0x12, 0x2f, 0x0a, 0x19, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, + 0x4b, 0x75, 0x62, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, + 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, + 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, + 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, + 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, + 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, + 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, + 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, + 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, + 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, + 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, + 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x0f, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, + 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, + 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, + 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, + 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/sentry/kubeconfig.pb.gw.go b/proto/rpc/sentry/kubeconfig.pb.gw.go index 2a47a2b..8fd21a9 100644 --- a/proto/rpc/sentry/kubeconfig.pb.gw.go +++ b/proto/rpc/sentry/kubeconfig.pb.gw.go @@ -140,7 +140,7 @@ func local_request_KubeConfigService_GetForUser_0(ctx context.Context, marshaler } var ( - filter_KubeConfigService_GetForUser_1 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_KubeConfigService_GetForUser_1 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_KubeConfigService_GetForUser_1(ctx context.Context, marshaler runtime.Marshaler, client KubeConfigServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -312,7 +312,7 @@ func local_request_KubeConfigService_RevokeKubeconfig_1(ctx context.Context, mar } var ( - filter_KubeConfigService_GetOrganizationSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_KubeConfigService_GetOrganizationSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_KubeConfigService_GetOrganizationSetting_0(ctx context.Context, marshaler runtime.Marshaler, client KubeConfigServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -382,7 +382,7 @@ func local_request_KubeConfigService_GetOrganizationSetting_0(ctx context.Contex } var ( - filter_KubeConfigService_GetUserSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_KubeConfigService_GetUserSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_KubeConfigService_GetUserSetting_0(ctx context.Context, marshaler runtime.Marshaler, client KubeConfigServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -452,7 +452,7 @@ func local_request_KubeConfigService_GetUserSetting_0(ctx context.Context, marsh } var ( - filter_KubeConfigService_GetSSOUserSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_KubeConfigService_GetSSOUserSetting_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_KubeConfigService_GetSSOUserSetting_0(ctx context.Context, marshaler runtime.Marshaler, client KubeConfigServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -1037,7 +1037,7 @@ func RegisterKubeConfigServiceHandlerServer(ctx context.Context, mux *runtime.Se // RegisterKubeConfigServiceHandlerFromEndpoint is same as RegisterKubeConfigServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterKubeConfigServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/sentry/kubeconfig_grpc.pb.go b/proto/rpc/sentry/kubeconfig_grpc.pb.go index b036008..6fe0b46 100644 --- a/proto/rpc/sentry/kubeconfig_grpc.pb.go +++ b/proto/rpc/sentry/kubeconfig_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/sentry/kubeconfig.proto @@ -19,6 +19,19 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + KubeConfigService_GetForClusterWebSession_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterWebSession" + KubeConfigService_GetForClusterSystemSession_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterSystemSession" + KubeConfigService_GetForUser_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetForUser" + KubeConfigService_RevokeKubeconfig_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/RevokeKubeconfig" + KubeConfigService_GetOrganizationSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetOrganizationSetting" + KubeConfigService_GetUserSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetUserSetting" + KubeConfigService_GetSSOUserSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/GetSSOUserSetting" + KubeConfigService_UpdateOrganizationSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/UpdateOrganizationSetting" + KubeConfigService_UpdateUserSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/UpdateUserSetting" + KubeConfigService_UpdateSSOUserSetting_FullMethodName = "/paralus.dev.sentry.rpc.KubeConfigService/UpdateSSOUserSetting" +) + // KubeConfigServiceClient is the client API for KubeConfigService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -45,7 +58,7 @@ func NewKubeConfigServiceClient(cc grpc.ClientConnInterface) KubeConfigServiceCl func (c *kubeConfigServiceClient) GetForClusterWebSession(ctx context.Context, in *GetForClusterRequest, opts ...grpc.CallOption) (*v3.HttpBody, error) { out := new(v3.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterWebSession", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetForClusterWebSession_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -54,7 +67,7 @@ func (c *kubeConfigServiceClient) GetForClusterWebSession(ctx context.Context, i func (c *kubeConfigServiceClient) GetForClusterSystemSession(ctx context.Context, in *GetForClusterRequest, opts ...grpc.CallOption) (*v3.HttpBody, error) { out := new(v3.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterSystemSession", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetForClusterSystemSession_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -63,7 +76,7 @@ func (c *kubeConfigServiceClient) GetForClusterSystemSession(ctx context.Context func (c *kubeConfigServiceClient) GetForUser(ctx context.Context, in *GetForUserRequest, opts ...grpc.CallOption) (*v3.HttpBody, error) { out := new(v3.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetForUser", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetForUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -72,7 +85,7 @@ func (c *kubeConfigServiceClient) GetForUser(ctx context.Context, in *GetForUser func (c *kubeConfigServiceClient) RevokeKubeconfig(ctx context.Context, in *RevokeKubeconfigRequest, opts ...grpc.CallOption) (*RevokeKubeconfigResponse, error) { out := new(RevokeKubeconfigResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/RevokeKubeconfig", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_RevokeKubeconfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -81,7 +94,7 @@ func (c *kubeConfigServiceClient) RevokeKubeconfig(ctx context.Context, in *Revo func (c *kubeConfigServiceClient) GetOrganizationSetting(ctx context.Context, in *GetKubeconfigSettingRequest, opts ...grpc.CallOption) (*GetKubeconfigSettingResponse, error) { out := new(GetKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetOrganizationSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetOrganizationSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -90,7 +103,7 @@ func (c *kubeConfigServiceClient) GetOrganizationSetting(ctx context.Context, in func (c *kubeConfigServiceClient) GetUserSetting(ctx context.Context, in *GetKubeconfigSettingRequest, opts ...grpc.CallOption) (*GetKubeconfigSettingResponse, error) { out := new(GetKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetUserSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetUserSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -99,7 +112,7 @@ func (c *kubeConfigServiceClient) GetUserSetting(ctx context.Context, in *GetKub func (c *kubeConfigServiceClient) GetSSOUserSetting(ctx context.Context, in *GetKubeconfigSettingRequest, opts ...grpc.CallOption) (*GetKubeconfigSettingResponse, error) { out := new(GetKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/GetSSOUserSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_GetSSOUserSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -108,7 +121,7 @@ func (c *kubeConfigServiceClient) GetSSOUserSetting(ctx context.Context, in *Get func (c *kubeConfigServiceClient) UpdateOrganizationSetting(ctx context.Context, in *UpdateKubeconfigSettingRequest, opts ...grpc.CallOption) (*UpdateKubeconfigSettingResponse, error) { out := new(UpdateKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/UpdateOrganizationSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_UpdateOrganizationSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -117,7 +130,7 @@ func (c *kubeConfigServiceClient) UpdateOrganizationSetting(ctx context.Context, func (c *kubeConfigServiceClient) UpdateUserSetting(ctx context.Context, in *UpdateKubeconfigSettingRequest, opts ...grpc.CallOption) (*UpdateKubeconfigSettingResponse, error) { out := new(UpdateKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/UpdateUserSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_UpdateUserSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -126,7 +139,7 @@ func (c *kubeConfigServiceClient) UpdateUserSetting(ctx context.Context, in *Upd func (c *kubeConfigServiceClient) UpdateSSOUserSetting(ctx context.Context, in *UpdateKubeconfigSettingRequest, opts ...grpc.CallOption) (*UpdateKubeconfigSettingResponse, error) { out := new(UpdateKubeconfigSettingResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubeConfigService/UpdateSSOUserSetting", in, out, opts...) + err := c.cc.Invoke(ctx, KubeConfigService_UpdateSSOUserSetting_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -205,7 +218,7 @@ func _KubeConfigService_GetForClusterWebSession_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterWebSession", + FullMethod: KubeConfigService_GetForClusterWebSession_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetForClusterWebSession(ctx, req.(*GetForClusterRequest)) @@ -223,7 +236,7 @@ func _KubeConfigService_GetForClusterSystemSession_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetForClusterSystemSession", + FullMethod: KubeConfigService_GetForClusterSystemSession_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetForClusterSystemSession(ctx, req.(*GetForClusterRequest)) @@ -241,7 +254,7 @@ func _KubeConfigService_GetForUser_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetForUser", + FullMethod: KubeConfigService_GetForUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetForUser(ctx, req.(*GetForUserRequest)) @@ -259,7 +272,7 @@ func _KubeConfigService_RevokeKubeconfig_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/RevokeKubeconfig", + FullMethod: KubeConfigService_RevokeKubeconfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).RevokeKubeconfig(ctx, req.(*RevokeKubeconfigRequest)) @@ -277,7 +290,7 @@ func _KubeConfigService_GetOrganizationSetting_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetOrganizationSetting", + FullMethod: KubeConfigService_GetOrganizationSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetOrganizationSetting(ctx, req.(*GetKubeconfigSettingRequest)) @@ -295,7 +308,7 @@ func _KubeConfigService_GetUserSetting_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetUserSetting", + FullMethod: KubeConfigService_GetUserSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetUserSetting(ctx, req.(*GetKubeconfigSettingRequest)) @@ -313,7 +326,7 @@ func _KubeConfigService_GetSSOUserSetting_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/GetSSOUserSetting", + FullMethod: KubeConfigService_GetSSOUserSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).GetSSOUserSetting(ctx, req.(*GetKubeconfigSettingRequest)) @@ -331,7 +344,7 @@ func _KubeConfigService_UpdateOrganizationSetting_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/UpdateOrganizationSetting", + FullMethod: KubeConfigService_UpdateOrganizationSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).UpdateOrganizationSetting(ctx, req.(*UpdateKubeconfigSettingRequest)) @@ -349,7 +362,7 @@ func _KubeConfigService_UpdateUserSetting_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/UpdateUserSetting", + FullMethod: KubeConfigService_UpdateUserSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).UpdateUserSetting(ctx, req.(*UpdateKubeconfigSettingRequest)) @@ -367,7 +380,7 @@ func _KubeConfigService_UpdateSSOUserSetting_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubeConfigService/UpdateSSOUserSetting", + FullMethod: KubeConfigService_UpdateSSOUserSetting_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubeConfigServiceServer).UpdateSSOUserSetting(ctx, req.(*UpdateKubeconfigSettingRequest)) diff --git a/proto/rpc/sentry/kubectl_cluster.pb.go b/proto/rpc/sentry/kubectl_cluster.pb.go index f260ad5..f9f7bac 100644 --- a/proto/rpc/sentry/kubectl_cluster.pb.go +++ b/proto/rpc/sentry/kubectl_cluster.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/kubectl_cluster.proto @@ -298,47 +298,47 @@ var file_proto_rpc_sentry_kubectl_cluster_proto_rawDesc = []byte{ 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x74, 0x6c, 0x2f, 0x7b, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x3d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0xff, 0x04, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x2e, 0x72, 0x70, 0x63, 0x42, 0x13, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x74, 0x6c, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2b, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x53, 0x52, 0xaa, - 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x53, 0x65, - 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, - 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, - 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x3a, 0x3a, 0x52, - 0x70, 0x63, 0x92, 0x41, 0xa1, 0x03, 0x12, 0x3b, 0x0a, 0x25, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, - 0x20, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x74, 0x6c, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, - 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, - 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, - 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, - 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, - 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, - 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, - 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, - 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, - 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, - 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, - 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x69, 0x6e, 0x67, 0x73, 0x42, 0xff, 0x04, 0x92, 0x41, 0xa1, 0x03, 0x12, 0x3b, 0x0a, 0x25, + 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x20, 0x4b, 0x75, 0x62, 0x65, 0x63, 0x74, 0x6c, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x20, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, + 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, + 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, + 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, + 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, + 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, + 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, + 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, + 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, + 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, + 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1a, 0x63, + 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, + 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x72, 0x70, 0x63, 0x42, 0x13, 0x4b, 0x75, 0x62, 0x65, 0x63, + 0x74, 0x6c, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x65, 0x6e, 0x74, 0x72, 0x79, 0xa2, 0x02, 0x04, + 0x50, 0x44, 0x53, 0x52, 0xaa, 0x02, 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, + 0x65, 0x76, 0x2e, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x52, 0x70, 0x63, 0xca, 0x02, 0x16, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0xe2, 0x02, 0x22, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x53, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x5c, 0x52, 0x70, 0x63, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x19, 0x50, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x53, 0x65, 0x6e, 0x74, + 0x72, 0x79, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/sentry/kubectl_cluster.pb.gw.go b/proto/rpc/sentry/kubectl_cluster.pb.gw.go index 01286d5..444955b 100644 --- a/proto/rpc/sentry/kubectl_cluster.pb.gw.go +++ b/proto/rpc/sentry/kubectl_cluster.pb.gw.go @@ -100,7 +100,7 @@ func local_request_KubectlClusterSettingsService_UpdateKubectlClusterSettings_0( } var ( - filter_KubectlClusterSettingsService_GetKubectlClusterSettings_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_KubectlClusterSettingsService_GetKubectlClusterSettings_0 = &utilities.DoubleArray{Encoding: map[string]int{"opts": 0, "urlScope": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_KubectlClusterSettingsService_GetKubectlClusterSettings_0(ctx context.Context, marshaler runtime.Marshaler, client KubectlClusterSettingsServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -231,7 +231,7 @@ func RegisterKubectlClusterSettingsServiceHandlerServer(ctx context.Context, mux // RegisterKubectlClusterSettingsServiceHandlerFromEndpoint is same as RegisterKubectlClusterSettingsServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterKubectlClusterSettingsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/sentry/kubectl_cluster_grpc.pb.go b/proto/rpc/sentry/kubectl_cluster_grpc.pb.go index 2720655..2e436b7 100644 --- a/proto/rpc/sentry/kubectl_cluster_grpc.pb.go +++ b/proto/rpc/sentry/kubectl_cluster_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/sentry/kubectl_cluster.proto @@ -18,6 +18,11 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + KubectlClusterSettingsService_UpdateKubectlClusterSettings_FullMethodName = "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/UpdateKubectlClusterSettings" + KubectlClusterSettingsService_GetKubectlClusterSettings_FullMethodName = "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/GetKubectlClusterSettings" +) + // KubectlClusterSettingsServiceClient is the client API for KubectlClusterSettingsService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +41,7 @@ func NewKubectlClusterSettingsServiceClient(cc grpc.ClientConnInterface) Kubectl func (c *kubectlClusterSettingsServiceClient) UpdateKubectlClusterSettings(ctx context.Context, in *UpdateKubectlClusterSettingsRequest, opts ...grpc.CallOption) (*UpdateKubectlClusterSettingsResponse, error) { out := new(UpdateKubectlClusterSettingsResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/UpdateKubectlClusterSettings", in, out, opts...) + err := c.cc.Invoke(ctx, KubectlClusterSettingsService_UpdateKubectlClusterSettings_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -45,7 +50,7 @@ func (c *kubectlClusterSettingsServiceClient) UpdateKubectlClusterSettings(ctx c func (c *kubectlClusterSettingsServiceClient) GetKubectlClusterSettings(ctx context.Context, in *GetKubectlClusterSettingsRequest, opts ...grpc.CallOption) (*GetKubectlClusterSettingsResponse, error) { out := new(GetKubectlClusterSettingsResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/GetKubectlClusterSettings", in, out, opts...) + err := c.cc.Invoke(ctx, KubectlClusterSettingsService_GetKubectlClusterSettings_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func _KubectlClusterSettingsService_UpdateKubectlClusterSettings_Handler(srv int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/UpdateKubectlClusterSettings", + FullMethod: KubectlClusterSettingsService_UpdateKubectlClusterSettings_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubectlClusterSettingsServiceServer).UpdateKubectlClusterSettings(ctx, req.(*UpdateKubectlClusterSettingsRequest)) @@ -110,7 +115,7 @@ func _KubectlClusterSettingsService_GetKubectlClusterSettings_Handler(srv interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.sentry.rpc.KubectlClusterSettingsService/GetKubectlClusterSettings", + FullMethod: KubectlClusterSettingsService_GetKubectlClusterSettings_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(KubectlClusterSettingsServiceServer).GetKubectlClusterSettings(ctx, req.(*GetKubectlClusterSettingsRequest)) diff --git a/proto/rpc/sentry/relaypeer.pb.go b/proto/rpc/sentry/relaypeer.pb.go index 8703892..8e6ece8 100644 --- a/proto/rpc/sentry/relaypeer.pb.go +++ b/proto/rpc/sentry/relaypeer.pb.go @@ -2,7 +2,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/sentry/relaypeer.proto diff --git a/proto/rpc/sentry/relaypeer_grpc.pb.go b/proto/rpc/sentry/relaypeer_grpc.pb.go index 8f5320a..06fd8cd 100644 --- a/proto/rpc/sentry/relaypeer_grpc.pb.go +++ b/proto/rpc/sentry/relaypeer_grpc.pb.go @@ -1,6 +1,8 @@ +//protobuf for relay peering service + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/sentry/relaypeer.proto @@ -18,6 +20,12 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + RelayPeerService_RelayPeerHelloRPC_FullMethodName = "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerHelloRPC" + RelayPeerService_RelayPeerProbeRPC_FullMethodName = "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerProbeRPC" + RelayPeerService_RelayPeerSurveyRPC_FullMethodName = "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerSurveyRPC" +) + // RelayPeerServiceClient is the client API for RelayPeerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +44,7 @@ func NewRelayPeerServiceClient(cc grpc.ClientConnInterface) RelayPeerServiceClie } func (c *relayPeerServiceClient) RelayPeerHelloRPC(ctx context.Context, opts ...grpc.CallOption) (RelayPeerService_RelayPeerHelloRPCClient, error) { - stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[0], "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerHelloRPC", opts...) + stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[0], RelayPeerService_RelayPeerHelloRPC_FullMethodName, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (x *relayPeerServiceRelayPeerHelloRPCClient) Recv() (*PeerHelloResponse, er } func (c *relayPeerServiceClient) RelayPeerProbeRPC(ctx context.Context, opts ...grpc.CallOption) (RelayPeerService_RelayPeerProbeRPCClient, error) { - stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[1], "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerProbeRPC", opts...) + stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[1], RelayPeerService_RelayPeerProbeRPC_FullMethodName, opts...) if err != nil { return nil, err } @@ -98,7 +106,7 @@ func (x *relayPeerServiceRelayPeerProbeRPCClient) Recv() (*PeerProbeResponse, er } func (c *relayPeerServiceClient) RelayPeerSurveyRPC(ctx context.Context, opts ...grpc.CallOption) (RelayPeerService_RelayPeerSurveyRPCClient, error) { - stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[2], "/paralus.dev.sentry.rpc.RelayPeerService/RelayPeerSurveyRPC", opts...) + stream, err := c.cc.NewStream(ctx, &RelayPeerService_ServiceDesc.Streams[2], RelayPeerService_RelayPeerSurveyRPC_FullMethodName, opts...) if err != nil { return nil, err } diff --git a/proto/rpc/system/idp.pb.go b/proto/rpc/system/idp.pb.go index 4cb5132..ae3e256 100644 --- a/proto/rpc/system/idp.pb.go +++ b/proto/rpc/system/idp.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/idp.proto @@ -82,47 +82,47 @@ var file_proto_rpc_system_idp_proto_rawDesc = []byte{ 0x73, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x73, 0x6f, 0x2f, 0x69, 0x64, 0x70, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, - 0x87, 0x05, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, - 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, - 0x33, 0x42, 0x08, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, - 0x56, 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, - 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x9b, 0x03, 0x12, 0x35, - 0x0a, 0x1f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x20, 0x28, 0x49, 0x64, 0x50, 0x29, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, - 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, - 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, - 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, - 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, - 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, - 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, - 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, - 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x87, 0x05, 0x92, 0x41, 0x9b, 0x03, 0x12, 0x35, 0x0a, 0x1f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x28, 0x49, 0x64, 0x50, + 0x29, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, + 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, + 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, + 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, + 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, + 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, + 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, + 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, + 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, + 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, + 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, + 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, + 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, + 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, + 0x42, 0x08, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, + 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, + 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, + 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, + 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/system/idp.pb.gw.go b/proto/rpc/system/idp.pb.gw.go index da1af18..1d22d08 100644 --- a/proto/rpc/system/idp.pb.gw.go +++ b/proto/rpc/system/idp.pb.gw.go @@ -68,7 +68,7 @@ func local_request_IdpService_CreateIdp_0(ctx context.Context, marshaler runtime } var ( - filter_IdpService_GetIdp_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_IdpService_GetIdp_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_IdpService_GetIdp_0(ctx context.Context, marshaler runtime.Marshaler, client IdpServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -224,7 +224,7 @@ func local_request_IdpService_UpdateIdp_0(ctx context.Context, marshaler runtime } var ( - filter_IdpService_DeleteIdp_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_IdpService_DeleteIdp_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_IdpService_DeleteIdp_0(ctx context.Context, marshaler runtime.Marshaler, client IdpServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -430,7 +430,7 @@ func RegisterIdpServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, // RegisterIdpServiceHandlerFromEndpoint is same as RegisterIdpServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterIdpServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/idp_grpc.pb.go b/proto/rpc/system/idp_grpc.pb.go index 9c7b812..d0f2ce4 100644 --- a/proto/rpc/system/idp_grpc.pb.go +++ b/proto/rpc/system/idp_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/idp.proto @@ -20,6 +20,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + IdpService_CreateIdp_FullMethodName = "/paralus.dev.rpc.system.v3.IdpService/CreateIdp" + IdpService_GetIdp_FullMethodName = "/paralus.dev.rpc.system.v3.IdpService/GetIdp" + IdpService_ListIdps_FullMethodName = "/paralus.dev.rpc.system.v3.IdpService/ListIdps" + IdpService_UpdateIdp_FullMethodName = "/paralus.dev.rpc.system.v3.IdpService/UpdateIdp" + IdpService_DeleteIdp_FullMethodName = "/paralus.dev.rpc.system.v3.IdpService/DeleteIdp" +) + // IdpServiceClient is the client API for IdpService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -41,7 +49,7 @@ func NewIdpServiceClient(cc grpc.ClientConnInterface) IdpServiceClient { func (c *idpServiceClient) CreateIdp(ctx context.Context, in *v3.Idp, opts ...grpc.CallOption) (*v3.Idp, error) { out := new(v3.Idp) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.IdpService/CreateIdp", in, out, opts...) + err := c.cc.Invoke(ctx, IdpService_CreateIdp_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -50,7 +58,7 @@ func (c *idpServiceClient) CreateIdp(ctx context.Context, in *v3.Idp, opts ...gr func (c *idpServiceClient) GetIdp(ctx context.Context, in *v3.Idp, opts ...grpc.CallOption) (*v3.Idp, error) { out := new(v3.Idp) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.IdpService/GetIdp", in, out, opts...) + err := c.cc.Invoke(ctx, IdpService_GetIdp_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -59,7 +67,7 @@ func (c *idpServiceClient) GetIdp(ctx context.Context, in *v3.Idp, opts ...grpc. func (c *idpServiceClient) ListIdps(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v3.IdpList, error) { out := new(v3.IdpList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.IdpService/ListIdps", in, out, opts...) + err := c.cc.Invoke(ctx, IdpService_ListIdps_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -68,7 +76,7 @@ func (c *idpServiceClient) ListIdps(ctx context.Context, in *emptypb.Empty, opts func (c *idpServiceClient) UpdateIdp(ctx context.Context, in *v3.Idp, opts ...grpc.CallOption) (*v3.Idp, error) { out := new(v3.Idp) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.IdpService/UpdateIdp", in, out, opts...) + err := c.cc.Invoke(ctx, IdpService_UpdateIdp_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -77,7 +85,7 @@ func (c *idpServiceClient) UpdateIdp(ctx context.Context, in *v3.Idp, opts ...gr func (c *idpServiceClient) DeleteIdp(ctx context.Context, in *v3.Idp, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.IdpService/DeleteIdp", in, out, opts...) + err := c.cc.Invoke(ctx, IdpService_DeleteIdp_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -136,7 +144,7 @@ func _IdpService_CreateIdp_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.IdpService/CreateIdp", + FullMethod: IdpService_CreateIdp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdpServiceServer).CreateIdp(ctx, req.(*v3.Idp)) @@ -154,7 +162,7 @@ func _IdpService_GetIdp_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.IdpService/GetIdp", + FullMethod: IdpService_GetIdp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdpServiceServer).GetIdp(ctx, req.(*v3.Idp)) @@ -172,7 +180,7 @@ func _IdpService_ListIdps_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.IdpService/ListIdps", + FullMethod: IdpService_ListIdps_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdpServiceServer).ListIdps(ctx, req.(*emptypb.Empty)) @@ -190,7 +198,7 @@ func _IdpService_UpdateIdp_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.IdpService/UpdateIdp", + FullMethod: IdpService_UpdateIdp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdpServiceServer).UpdateIdp(ctx, req.(*v3.Idp)) @@ -208,7 +216,7 @@ func _IdpService_DeleteIdp_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.IdpService/DeleteIdp", + FullMethod: IdpService_DeleteIdp_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(IdpServiceServer).DeleteIdp(ctx, req.(*v3.Idp)) diff --git a/proto/rpc/system/metro.pb.go b/proto/rpc/system/metro.pb.go index 7660acc..a5e1301 100644 --- a/proto/rpc/system/metro.pb.go +++ b/proto/rpc/system/metro.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/metro.proto @@ -95,7 +95,32 @@ var file_proto_rpc_system_metro_proto_rawDesc = []byte{ 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, - 0x6d, 0x65, 0x7d, 0x42, 0xfa, 0x04, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x7d, 0x42, 0xfa, 0x04, 0x92, 0x41, 0x8c, 0x03, 0x12, 0x26, 0x0a, 0x10, 0x4c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, + 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, + 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, + 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, + 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, + 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, + 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, + 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, + 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, + 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, + 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x4d, 0x65, 0x74, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, @@ -110,31 +135,6 @@ var file_proto_rpc_system_metro_proto_rawDesc = []byte{ 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, - 0x92, 0x41, 0x8c, 0x03, 0x12, 0x26, 0x0a, 0x10, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, - 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, - 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, - 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, - 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, - 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, - 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, - 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, - 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, - 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, - 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, - 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, - 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, - 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, - 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, - 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, - 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, - 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/system/metro.pb.gw.go b/proto/rpc/system/metro.pb.gw.go index b8e85f7..daadd90 100644 --- a/proto/rpc/system/metro.pb.gw.go +++ b/proto/rpc/system/metro.pb.gw.go @@ -101,7 +101,7 @@ func local_request_LocationService_CreateLocation_0(ctx context.Context, marshal } var ( - filter_LocationService_GetLocations_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_LocationService_GetLocations_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_LocationService_GetLocations_0(ctx context.Context, marshaler runtime.Marshaler, client LocationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -171,7 +171,7 @@ func local_request_LocationService_GetLocations_0(ctx context.Context, marshaler } var ( - filter_LocationService_GetLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_LocationService_GetLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_LocationService_GetLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -349,7 +349,7 @@ func local_request_LocationService_UpdateLocation_0(ctx context.Context, marshal } var ( - filter_LocationService_DeleteLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_LocationService_DeleteLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_LocationService_DeleteLocation_0(ctx context.Context, marshaler runtime.Marshaler, client LocationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -575,7 +575,7 @@ func RegisterLocationServiceHandlerServer(ctx context.Context, mux *runtime.Serv // RegisterLocationServiceHandlerFromEndpoint is same as RegisterLocationServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterLocationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/metro_grpc.pb.go b/proto/rpc/system/metro_grpc.pb.go index 807b727..01b9d37 100644 --- a/proto/rpc/system/metro_grpc.pb.go +++ b/proto/rpc/system/metro_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/metro.proto @@ -19,6 +19,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + LocationService_CreateLocation_FullMethodName = "/paralus.dev.rpc.system.v3.LocationService/CreateLocation" + LocationService_GetLocations_FullMethodName = "/paralus.dev.rpc.system.v3.LocationService/GetLocations" + LocationService_GetLocation_FullMethodName = "/paralus.dev.rpc.system.v3.LocationService/GetLocation" + LocationService_UpdateLocation_FullMethodName = "/paralus.dev.rpc.system.v3.LocationService/UpdateLocation" + LocationService_DeleteLocation_FullMethodName = "/paralus.dev.rpc.system.v3.LocationService/DeleteLocation" +) + // LocationServiceClient is the client API for LocationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +48,7 @@ func NewLocationServiceClient(cc grpc.ClientConnInterface) LocationServiceClient func (c *locationServiceClient) CreateLocation(ctx context.Context, in *v3.Location, opts ...grpc.CallOption) (*v3.Location, error) { out := new(v3.Location) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.LocationService/CreateLocation", in, out, opts...) + err := c.cc.Invoke(ctx, LocationService_CreateLocation_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +57,7 @@ func (c *locationServiceClient) CreateLocation(ctx context.Context, in *v3.Locat func (c *locationServiceClient) GetLocations(ctx context.Context, in *v3.Location, opts ...grpc.CallOption) (*v3.LocationList, error) { out := new(v3.LocationList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.LocationService/GetLocations", in, out, opts...) + err := c.cc.Invoke(ctx, LocationService_GetLocations_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +66,7 @@ func (c *locationServiceClient) GetLocations(ctx context.Context, in *v3.Locatio func (c *locationServiceClient) GetLocation(ctx context.Context, in *v3.Location, opts ...grpc.CallOption) (*v3.Location, error) { out := new(v3.Location) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.LocationService/GetLocation", in, out, opts...) + err := c.cc.Invoke(ctx, LocationService_GetLocation_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (c *locationServiceClient) GetLocation(ctx context.Context, in *v3.Location func (c *locationServiceClient) UpdateLocation(ctx context.Context, in *v3.Location, opts ...grpc.CallOption) (*v3.Location, error) { out := new(v3.Location) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.LocationService/UpdateLocation", in, out, opts...) + err := c.cc.Invoke(ctx, LocationService_UpdateLocation_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +84,7 @@ func (c *locationServiceClient) UpdateLocation(ctx context.Context, in *v3.Locat func (c *locationServiceClient) DeleteLocation(ctx context.Context, in *v3.Location, opts ...grpc.CallOption) (*v3.Location, error) { out := new(v3.Location) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.LocationService/DeleteLocation", in, out, opts...) + err := c.cc.Invoke(ctx, LocationService_DeleteLocation_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -135,7 +143,7 @@ func _LocationService_CreateLocation_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.LocationService/CreateLocation", + FullMethod: LocationService_CreateLocation_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LocationServiceServer).CreateLocation(ctx, req.(*v3.Location)) @@ -153,7 +161,7 @@ func _LocationService_GetLocations_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.LocationService/GetLocations", + FullMethod: LocationService_GetLocations_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LocationServiceServer).GetLocations(ctx, req.(*v3.Location)) @@ -171,7 +179,7 @@ func _LocationService_GetLocation_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.LocationService/GetLocation", + FullMethod: LocationService_GetLocation_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LocationServiceServer).GetLocation(ctx, req.(*v3.Location)) @@ -189,7 +197,7 @@ func _LocationService_UpdateLocation_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.LocationService/UpdateLocation", + FullMethod: LocationService_UpdateLocation_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LocationServiceServer).UpdateLocation(ctx, req.(*v3.Location)) @@ -207,7 +215,7 @@ func _LocationService_DeleteLocation_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.LocationService/DeleteLocation", + FullMethod: LocationService_DeleteLocation_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(LocationServiceServer).DeleteLocation(ctx, req.(*v3.Location)) diff --git a/proto/rpc/system/oidc_provider.pb.go b/proto/rpc/system/oidc_provider.pb.go index 1d9635b..9f052f0 100644 --- a/proto/rpc/system/oidc_provider.pb.go +++ b/proto/rpc/system/oidc_provider.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/oidc_provider.proto @@ -95,48 +95,48 @@ var file_proto_rpc_system_oidc_provider_proto_rawDesc = []byte{ 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x2a, 0x2a, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x73, 0x73, 0x6f, 0x2f, 0x6f, 0x69, 0x64, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0x86, 0x05, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, - 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, - 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x4f, 0x69, 0x64, 0x63, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, - 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, - 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, - 0x3a, 0x3a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x91, 0x03, - 0x12, 0x2b, 0x0a, 0x15, 0x4f, 0x49, 0x64, 0x43, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, - 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, - 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, - 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, - 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, - 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, - 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, - 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, - 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, - 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, - 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, - 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, - 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, - 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, - 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0x86, 0x05, 0x92, 0x41, 0x91, 0x03, 0x12, + 0x2b, 0x0a, 0x15, 0x4f, 0x49, 0x64, 0x43, 0x20, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, + 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, + 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, + 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, + 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, + 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, + 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, + 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, + 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, + 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, + 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, + 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, + 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, + 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, + 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, + 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, + 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, + 0x11, 0x4f, 0x69, 0x64, 0x63, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, + 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, + 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, + 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, + 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_proto_rpc_system_oidc_provider_proto_goTypes = []interface{}{ diff --git a/proto/rpc/system/oidc_provider.pb.gw.go b/proto/rpc/system/oidc_provider.pb.gw.go index 44a8261..c6759c7 100644 --- a/proto/rpc/system/oidc_provider.pb.gw.go +++ b/proto/rpc/system/oidc_provider.pb.gw.go @@ -68,7 +68,7 @@ func local_request_OIDCProviderService_CreateOIDCProvider_0(ctx context.Context, } var ( - filter_OIDCProviderService_GetOIDCProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_OIDCProviderService_GetOIDCProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_OIDCProviderService_GetOIDCProvider_0(ctx context.Context, marshaler runtime.Marshaler, client OIDCProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -224,7 +224,7 @@ func local_request_OIDCProviderService_UpdateOIDCProvider_0(ctx context.Context, } var ( - filter_OIDCProviderService_DeleteOIDCProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_OIDCProviderService_DeleteOIDCProvider_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_OIDCProviderService_DeleteOIDCProvider_0(ctx context.Context, marshaler runtime.Marshaler, client OIDCProviderServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -430,7 +430,7 @@ func RegisterOIDCProviderServiceHandlerServer(ctx context.Context, mux *runtime. // RegisterOIDCProviderServiceHandlerFromEndpoint is same as RegisterOIDCProviderServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterOIDCProviderServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/oidc_provider_grpc.pb.go b/proto/rpc/system/oidc_provider_grpc.pb.go index ff95690..67abc4d 100644 --- a/proto/rpc/system/oidc_provider_grpc.pb.go +++ b/proto/rpc/system/oidc_provider_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/oidc_provider.proto @@ -20,6 +20,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + OIDCProviderService_CreateOIDCProvider_FullMethodName = "/paralus.dev.rpc.system.v3.OIDCProviderService/CreateOIDCProvider" + OIDCProviderService_GetOIDCProvider_FullMethodName = "/paralus.dev.rpc.system.v3.OIDCProviderService/GetOIDCProvider" + OIDCProviderService_ListOIDCProvider_FullMethodName = "/paralus.dev.rpc.system.v3.OIDCProviderService/ListOIDCProvider" + OIDCProviderService_UpdateOIDCProvider_FullMethodName = "/paralus.dev.rpc.system.v3.OIDCProviderService/UpdateOIDCProvider" + OIDCProviderService_DeleteOIDCProvider_FullMethodName = "/paralus.dev.rpc.system.v3.OIDCProviderService/DeleteOIDCProvider" +) + // OIDCProviderServiceClient is the client API for OIDCProviderService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -41,7 +49,7 @@ func NewOIDCProviderServiceClient(cc grpc.ClientConnInterface) OIDCProviderServi func (c *oIDCProviderServiceClient) CreateOIDCProvider(ctx context.Context, in *v3.OIDCProvider, opts ...grpc.CallOption) (*v3.OIDCProvider, error) { out := new(v3.OIDCProvider) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OIDCProviderService/CreateOIDCProvider", in, out, opts...) + err := c.cc.Invoke(ctx, OIDCProviderService_CreateOIDCProvider_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -50,7 +58,7 @@ func (c *oIDCProviderServiceClient) CreateOIDCProvider(ctx context.Context, in * func (c *oIDCProviderServiceClient) GetOIDCProvider(ctx context.Context, in *v3.OIDCProvider, opts ...grpc.CallOption) (*v3.OIDCProvider, error) { out := new(v3.OIDCProvider) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OIDCProviderService/GetOIDCProvider", in, out, opts...) + err := c.cc.Invoke(ctx, OIDCProviderService_GetOIDCProvider_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -59,7 +67,7 @@ func (c *oIDCProviderServiceClient) GetOIDCProvider(ctx context.Context, in *v3. func (c *oIDCProviderServiceClient) ListOIDCProvider(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*v3.OIDCProviderList, error) { out := new(v3.OIDCProviderList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OIDCProviderService/ListOIDCProvider", in, out, opts...) + err := c.cc.Invoke(ctx, OIDCProviderService_ListOIDCProvider_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -68,7 +76,7 @@ func (c *oIDCProviderServiceClient) ListOIDCProvider(ctx context.Context, in *em func (c *oIDCProviderServiceClient) UpdateOIDCProvider(ctx context.Context, in *v3.OIDCProvider, opts ...grpc.CallOption) (*v3.OIDCProvider, error) { out := new(v3.OIDCProvider) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OIDCProviderService/UpdateOIDCProvider", in, out, opts...) + err := c.cc.Invoke(ctx, OIDCProviderService_UpdateOIDCProvider_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -77,7 +85,7 @@ func (c *oIDCProviderServiceClient) UpdateOIDCProvider(ctx context.Context, in * func (c *oIDCProviderServiceClient) DeleteOIDCProvider(ctx context.Context, in *v3.OIDCProvider, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OIDCProviderService/DeleteOIDCProvider", in, out, opts...) + err := c.cc.Invoke(ctx, OIDCProviderService_DeleteOIDCProvider_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -136,7 +144,7 @@ func _OIDCProviderService_CreateOIDCProvider_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OIDCProviderService/CreateOIDCProvider", + FullMethod: OIDCProviderService_CreateOIDCProvider_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OIDCProviderServiceServer).CreateOIDCProvider(ctx, req.(*v3.OIDCProvider)) @@ -154,7 +162,7 @@ func _OIDCProviderService_GetOIDCProvider_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OIDCProviderService/GetOIDCProvider", + FullMethod: OIDCProviderService_GetOIDCProvider_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OIDCProviderServiceServer).GetOIDCProvider(ctx, req.(*v3.OIDCProvider)) @@ -172,7 +180,7 @@ func _OIDCProviderService_ListOIDCProvider_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OIDCProviderService/ListOIDCProvider", + FullMethod: OIDCProviderService_ListOIDCProvider_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OIDCProviderServiceServer).ListOIDCProvider(ctx, req.(*emptypb.Empty)) @@ -190,7 +198,7 @@ func _OIDCProviderService_UpdateOIDCProvider_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OIDCProviderService/UpdateOIDCProvider", + FullMethod: OIDCProviderService_UpdateOIDCProvider_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OIDCProviderServiceServer).UpdateOIDCProvider(ctx, req.(*v3.OIDCProvider)) @@ -208,7 +216,7 @@ func _OIDCProviderService_DeleteOIDCProvider_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OIDCProviderService/DeleteOIDCProvider", + FullMethod: OIDCProviderService_DeleteOIDCProvider_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OIDCProviderServiceServer).DeleteOIDCProvider(ctx, req.(*v3.OIDCProvider)) diff --git a/proto/rpc/system/organization.pb.go b/proto/rpc/system/organization.pb.go index e56e15a..27f6372 100644 --- a/proto/rpc/system/organization.pb.go +++ b/proto/rpc/system/organization.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/organization.proto @@ -102,47 +102,47 @@ var file_proto_rpc_system_organization_proto_rawDesc = []byte{ 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x7d, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0x85, - 0x05, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, - 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, - 0x42, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, - 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, - 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, - 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, - 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, - 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, - 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, - 0x56, 0x33, 0x92, 0x41, 0x90, 0x03, 0x12, 0x2a, 0x0a, 0x14, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, - 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, - 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, - 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, - 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, - 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, - 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, - 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, - 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, - 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, - 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, - 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, - 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, - 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, - 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x05, 0x92, 0x41, 0x90, 0x03, 0x12, 0x2a, 0x0a, 0x14, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, + 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, + 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, + 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, + 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, + 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, + 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, + 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, + 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, + 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, + 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, + 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, + 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, + 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x76, 0x33, 0xa2, + 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, + 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, + 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0xe2, 0x02, + 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, + 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_proto_rpc_system_organization_proto_goTypes = []interface{}{ diff --git a/proto/rpc/system/organization.pb.gw.go b/proto/rpc/system/organization.pb.gw.go index ed06eac..078ac5c 100644 --- a/proto/rpc/system/organization.pb.gw.go +++ b/proto/rpc/system/organization.pb.gw.go @@ -101,7 +101,7 @@ func local_request_OrganizationService_CreateOrganization_0(ctx context.Context, } var ( - filter_OrganizationService_GetOrganizations_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_OrganizationService_GetOrganizations_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_OrganizationService_GetOrganizations_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -171,7 +171,7 @@ func local_request_OrganizationService_GetOrganizations_0(ctx context.Context, m } var ( - filter_OrganizationService_GetOrganization_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_OrganizationService_GetOrganization_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_OrganizationService_GetOrganization_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -349,7 +349,7 @@ func local_request_OrganizationService_UpdateOrganization_0(ctx context.Context, } var ( - filter_OrganizationService_DeleteOrganization_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_OrganizationService_DeleteOrganization_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "name": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_OrganizationService_DeleteOrganization_0(ctx context.Context, marshaler runtime.Marshaler, client OrganizationServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -575,7 +575,7 @@ func RegisterOrganizationServiceHandlerServer(ctx context.Context, mux *runtime. // RegisterOrganizationServiceHandlerFromEndpoint is same as RegisterOrganizationServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterOrganizationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/organization_grpc.pb.go b/proto/rpc/system/organization_grpc.pb.go index 6bc742c..158cb4a 100644 --- a/proto/rpc/system/organization_grpc.pb.go +++ b/proto/rpc/system/organization_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/organization.proto @@ -19,6 +19,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + OrganizationService_CreateOrganization_FullMethodName = "/paralus.dev.rpc.system.v3.OrganizationService/CreateOrganization" + OrganizationService_GetOrganizations_FullMethodName = "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganizations" + OrganizationService_GetOrganization_FullMethodName = "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganization" + OrganizationService_UpdateOrganization_FullMethodName = "/paralus.dev.rpc.system.v3.OrganizationService/UpdateOrganization" + OrganizationService_DeleteOrganization_FullMethodName = "/paralus.dev.rpc.system.v3.OrganizationService/DeleteOrganization" +) + // OrganizationServiceClient is the client API for OrganizationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +48,7 @@ func NewOrganizationServiceClient(cc grpc.ClientConnInterface) OrganizationServi func (c *organizationServiceClient) CreateOrganization(ctx context.Context, in *v3.Organization, opts ...grpc.CallOption) (*v3.Organization, error) { out := new(v3.Organization) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OrganizationService/CreateOrganization", in, out, opts...) + err := c.cc.Invoke(ctx, OrganizationService_CreateOrganization_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +57,7 @@ func (c *organizationServiceClient) CreateOrganization(ctx context.Context, in * func (c *organizationServiceClient) GetOrganizations(ctx context.Context, in *v3.Organization, opts ...grpc.CallOption) (*v3.OrganizationList, error) { out := new(v3.OrganizationList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganizations", in, out, opts...) + err := c.cc.Invoke(ctx, OrganizationService_GetOrganizations_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +66,7 @@ func (c *organizationServiceClient) GetOrganizations(ctx context.Context, in *v3 func (c *organizationServiceClient) GetOrganization(ctx context.Context, in *v3.Organization, opts ...grpc.CallOption) (*v3.Organization, error) { out := new(v3.Organization) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganization", in, out, opts...) + err := c.cc.Invoke(ctx, OrganizationService_GetOrganization_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (c *organizationServiceClient) GetOrganization(ctx context.Context, in *v3. func (c *organizationServiceClient) UpdateOrganization(ctx context.Context, in *v3.Organization, opts ...grpc.CallOption) (*v3.Organization, error) { out := new(v3.Organization) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OrganizationService/UpdateOrganization", in, out, opts...) + err := c.cc.Invoke(ctx, OrganizationService_UpdateOrganization_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +84,7 @@ func (c *organizationServiceClient) UpdateOrganization(ctx context.Context, in * func (c *organizationServiceClient) DeleteOrganization(ctx context.Context, in *v3.Organization, opts ...grpc.CallOption) (*v3.Organization, error) { out := new(v3.Organization) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.OrganizationService/DeleteOrganization", in, out, opts...) + err := c.cc.Invoke(ctx, OrganizationService_DeleteOrganization_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -135,7 +143,7 @@ func _OrganizationService_CreateOrganization_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OrganizationService/CreateOrganization", + FullMethod: OrganizationService_CreateOrganization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServiceServer).CreateOrganization(ctx, req.(*v3.Organization)) @@ -153,7 +161,7 @@ func _OrganizationService_GetOrganizations_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganizations", + FullMethod: OrganizationService_GetOrganizations_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServiceServer).GetOrganizations(ctx, req.(*v3.Organization)) @@ -171,7 +179,7 @@ func _OrganizationService_GetOrganization_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OrganizationService/GetOrganization", + FullMethod: OrganizationService_GetOrganization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServiceServer).GetOrganization(ctx, req.(*v3.Organization)) @@ -189,7 +197,7 @@ func _OrganizationService_UpdateOrganization_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OrganizationService/UpdateOrganization", + FullMethod: OrganizationService_UpdateOrganization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServiceServer).UpdateOrganization(ctx, req.(*v3.Organization)) @@ -207,7 +215,7 @@ func _OrganizationService_DeleteOrganization_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.OrganizationService/DeleteOrganization", + FullMethod: OrganizationService_DeleteOrganization_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(OrganizationServiceServer).DeleteOrganization(ctx, req.(*v3.Organization)) diff --git a/proto/rpc/system/partner.pb.go b/proto/rpc/system/partner.pb.go index 7c3602b..16f28b9 100644 --- a/proto/rpc/system/partner.pb.go +++ b/proto/rpc/system/partner.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/partner.proto @@ -125,47 +125,47 @@ var file_proto_rpc_system_partner_proto_rawDesc = []byte{ 0x74, 0x65, 0x64, 0x20, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x66, 0x75, 0x6c, 0x6c, 0x79, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x2a, 0x20, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xfb, 0x04, 0x0a, 0x1d, 0x63, 0x6f, - 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, - 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x50, 0x61, 0x72, - 0x74, 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x76, - 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, - 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, - 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, - 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x8b, 0x03, 0x12, 0x25, 0x0a, 0x0f, - 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, - 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, - 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, - 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, - 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, - 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, - 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, - 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, - 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, - 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, - 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, - 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, - 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xfb, 0x04, 0x92, 0x41, 0x8b, 0x03, + 0x12, 0x25, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x20, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, + 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, + 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, + 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, + 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, + 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, + 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, + 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, + 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, + 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, + 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, + 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, + 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, + 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, + 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x50, 0x61, 0x72, 0x74, + 0x6e, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, + 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x76, 0x33, + 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, + 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0xe2, + 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, + 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/system/partner.pb.gw.go b/proto/rpc/system/partner.pb.gw.go index 0b41c87..772f2b9 100644 --- a/proto/rpc/system/partner.pb.gw.go +++ b/proto/rpc/system/partner.pb.gw.go @@ -67,7 +67,7 @@ func local_request_PartnerService_CreatePartner_0(ctx context.Context, marshaler } var ( - filter_PartnerService_GetPartner_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_PartnerService_GetPartner_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_PartnerService_GetPartner_0(ctx context.Context, marshaler runtime.Marshaler, client PartnerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -223,7 +223,7 @@ func local_request_PartnerService_UpdatePartner_0(ctx context.Context, marshaler } var ( - filter_PartnerService_DeletePartner_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_PartnerService_DeletePartner_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_PartnerService_DeletePartner_0(ctx context.Context, marshaler runtime.Marshaler, client PartnerServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -429,7 +429,7 @@ func RegisterPartnerServiceHandlerServer(ctx context.Context, mux *runtime.Serve // RegisterPartnerServiceHandlerFromEndpoint is same as RegisterPartnerServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterPartnerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/partner_grpc.pb.go b/proto/rpc/system/partner_grpc.pb.go index 17c830f..44e3985 100644 --- a/proto/rpc/system/partner_grpc.pb.go +++ b/proto/rpc/system/partner_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/partner.proto @@ -19,6 +19,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + PartnerService_CreatePartner_FullMethodName = "/paralus.dev.rpc.system.v3.PartnerService/CreatePartner" + PartnerService_GetPartner_FullMethodName = "/paralus.dev.rpc.system.v3.PartnerService/GetPartner" + PartnerService_GetInitPartner_FullMethodName = "/paralus.dev.rpc.system.v3.PartnerService/GetInitPartner" + PartnerService_UpdatePartner_FullMethodName = "/paralus.dev.rpc.system.v3.PartnerService/UpdatePartner" + PartnerService_DeletePartner_FullMethodName = "/paralus.dev.rpc.system.v3.PartnerService/DeletePartner" +) + // PartnerServiceClient is the client API for PartnerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +48,7 @@ func NewPartnerServiceClient(cc grpc.ClientConnInterface) PartnerServiceClient { func (c *partnerServiceClient) CreatePartner(ctx context.Context, in *v3.Partner, opts ...grpc.CallOption) (*v3.Partner, error) { out := new(v3.Partner) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.PartnerService/CreatePartner", in, out, opts...) + err := c.cc.Invoke(ctx, PartnerService_CreatePartner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +57,7 @@ func (c *partnerServiceClient) CreatePartner(ctx context.Context, in *v3.Partner func (c *partnerServiceClient) GetPartner(ctx context.Context, in *v3.Partner, opts ...grpc.CallOption) (*v3.Partner, error) { out := new(v3.Partner) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.PartnerService/GetPartner", in, out, opts...) + err := c.cc.Invoke(ctx, PartnerService_GetPartner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +66,7 @@ func (c *partnerServiceClient) GetPartner(ctx context.Context, in *v3.Partner, o func (c *partnerServiceClient) GetInitPartner(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*v3.Partner, error) { out := new(v3.Partner) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.PartnerService/GetInitPartner", in, out, opts...) + err := c.cc.Invoke(ctx, PartnerService_GetInitPartner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (c *partnerServiceClient) GetInitPartner(ctx context.Context, in *EmptyRequ func (c *partnerServiceClient) UpdatePartner(ctx context.Context, in *v3.Partner, opts ...grpc.CallOption) (*v3.Partner, error) { out := new(v3.Partner) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.PartnerService/UpdatePartner", in, out, opts...) + err := c.cc.Invoke(ctx, PartnerService_UpdatePartner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +84,7 @@ func (c *partnerServiceClient) UpdatePartner(ctx context.Context, in *v3.Partner func (c *partnerServiceClient) DeletePartner(ctx context.Context, in *v3.Partner, opts ...grpc.CallOption) (*v3.Partner, error) { out := new(v3.Partner) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.PartnerService/DeletePartner", in, out, opts...) + err := c.cc.Invoke(ctx, PartnerService_DeletePartner_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -135,7 +143,7 @@ func _PartnerService_CreatePartner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.PartnerService/CreatePartner", + FullMethod: PartnerService_CreatePartner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PartnerServiceServer).CreatePartner(ctx, req.(*v3.Partner)) @@ -153,7 +161,7 @@ func _PartnerService_GetPartner_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.PartnerService/GetPartner", + FullMethod: PartnerService_GetPartner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PartnerServiceServer).GetPartner(ctx, req.(*v3.Partner)) @@ -171,7 +179,7 @@ func _PartnerService_GetInitPartner_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.PartnerService/GetInitPartner", + FullMethod: PartnerService_GetInitPartner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PartnerServiceServer).GetInitPartner(ctx, req.(*EmptyRequest)) @@ -189,7 +197,7 @@ func _PartnerService_UpdatePartner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.PartnerService/UpdatePartner", + FullMethod: PartnerService_UpdatePartner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PartnerServiceServer).UpdatePartner(ctx, req.(*v3.Partner)) @@ -207,7 +215,7 @@ func _PartnerService_DeletePartner_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.PartnerService/DeletePartner", + FullMethod: PartnerService_DeletePartner_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(PartnerServiceServer).DeletePartner(ctx, req.(*v3.Partner)) diff --git a/proto/rpc/system/project.pb.go b/proto/rpc/system/project.pb.go index d868d0d..d84e2c3 100644 --- a/proto/rpc/system/project.pb.go +++ b/proto/rpc/system/project.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/system/project.proto @@ -105,47 +105,47 @@ var file_proto_rpc_system_project_proto_rawDesc = []byte{ 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xfb, 0x04, 0x0a, 0x1d, - 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x72, 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, - 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x72, 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, - 0x6d, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, - 0x56, 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, - 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, - 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x8b, 0x03, 0x12, 0x25, - 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, - 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xfb, 0x04, 0x92, 0x41, + 0x8b, 0x03, 0x12, 0x25, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x20, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x33, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, - 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, - 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, - 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, - 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, - 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, - 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, - 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, - 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, - 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, + 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, + 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, + 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, + 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, + 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, + 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, + 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, + 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, + 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, + 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, + 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, + 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, + 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, + 0x70, 0x63, 0x2e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2e, 0x76, 0x33, 0x42, 0x0c, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, + 0x70, 0x63, 0x2f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3b, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, + 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x53, 0xaa, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x19, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, + 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, + 0x33, 0xe2, 0x02, 0x25, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, + 0x52, 0x70, 0x63, 0x5c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/rpc/system/project.pb.gw.go b/proto/rpc/system/project.pb.gw.go index 062f8d6..d466c50 100644 --- a/proto/rpc/system/project.pb.gw.go +++ b/proto/rpc/system/project.pb.gw.go @@ -121,7 +121,7 @@ func local_request_ProjectService_CreateProject_0(ctx context.Context, marshaler } var ( - filter_ProjectService_GetProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} + filter_ProjectService_GetProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} ) func request_ProjectService_GetProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -211,7 +211,7 @@ func local_request_ProjectService_GetProjects_0(ctx context.Context, marshaler r } var ( - filter_ProjectService_GetProject_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_ProjectService_GetProject_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_ProjectService_GetProject_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -429,7 +429,7 @@ func local_request_ProjectService_UpdateProject_0(ctx context.Context, marshaler } var ( - filter_ProjectService_DeleteProject_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_ProjectService_DeleteProject_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_ProjectService_DeleteProject_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -675,7 +675,7 @@ func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.Serve // RegisterProjectServiceHandlerFromEndpoint is same as RegisterProjectServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/system/project_grpc.pb.go b/proto/rpc/system/project_grpc.pb.go index bf21248..f916482 100644 --- a/proto/rpc/system/project_grpc.pb.go +++ b/proto/rpc/system/project_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/system/project.proto @@ -19,6 +19,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ProjectService_CreateProject_FullMethodName = "/paralus.dev.rpc.system.v3.ProjectService/CreateProject" + ProjectService_GetProjects_FullMethodName = "/paralus.dev.rpc.system.v3.ProjectService/GetProjects" + ProjectService_GetProject_FullMethodName = "/paralus.dev.rpc.system.v3.ProjectService/GetProject" + ProjectService_UpdateProject_FullMethodName = "/paralus.dev.rpc.system.v3.ProjectService/UpdateProject" + ProjectService_DeleteProject_FullMethodName = "/paralus.dev.rpc.system.v3.ProjectService/DeleteProject" +) + // ProjectServiceClient is the client API for ProjectService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +48,7 @@ func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient { func (c *projectServiceClient) CreateProject(ctx context.Context, in *v3.Project, opts ...grpc.CallOption) (*v3.Project, error) { out := new(v3.Project) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.ProjectService/CreateProject", in, out, opts...) + err := c.cc.Invoke(ctx, ProjectService_CreateProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +57,7 @@ func (c *projectServiceClient) CreateProject(ctx context.Context, in *v3.Project func (c *projectServiceClient) GetProjects(ctx context.Context, in *v3.Project, opts ...grpc.CallOption) (*v3.ProjectList, error) { out := new(v3.ProjectList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.ProjectService/GetProjects", in, out, opts...) + err := c.cc.Invoke(ctx, ProjectService_GetProjects_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +66,7 @@ func (c *projectServiceClient) GetProjects(ctx context.Context, in *v3.Project, func (c *projectServiceClient) GetProject(ctx context.Context, in *v3.Project, opts ...grpc.CallOption) (*v3.Project, error) { out := new(v3.Project) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.ProjectService/GetProject", in, out, opts...) + err := c.cc.Invoke(ctx, ProjectService_GetProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +75,7 @@ func (c *projectServiceClient) GetProject(ctx context.Context, in *v3.Project, o func (c *projectServiceClient) UpdateProject(ctx context.Context, in *v3.Project, opts ...grpc.CallOption) (*v3.Project, error) { out := new(v3.Project) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.ProjectService/UpdateProject", in, out, opts...) + err := c.cc.Invoke(ctx, ProjectService_UpdateProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +84,7 @@ func (c *projectServiceClient) UpdateProject(ctx context.Context, in *v3.Project func (c *projectServiceClient) DeleteProject(ctx context.Context, in *v3.Project, opts ...grpc.CallOption) (*v3.Project, error) { out := new(v3.Project) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.system.v3.ProjectService/DeleteProject", in, out, opts...) + err := c.cc.Invoke(ctx, ProjectService_DeleteProject_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -135,7 +143,7 @@ func _ProjectService_CreateProject_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.ProjectService/CreateProject", + FullMethod: ProjectService_CreateProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProjectServiceServer).CreateProject(ctx, req.(*v3.Project)) @@ -153,7 +161,7 @@ func _ProjectService_GetProjects_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.ProjectService/GetProjects", + FullMethod: ProjectService_GetProjects_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProjectServiceServer).GetProjects(ctx, req.(*v3.Project)) @@ -171,7 +179,7 @@ func _ProjectService_GetProject_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.ProjectService/GetProject", + FullMethod: ProjectService_GetProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProjectServiceServer).GetProject(ctx, req.(*v3.Project)) @@ -189,7 +197,7 @@ func _ProjectService_UpdateProject_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.ProjectService/UpdateProject", + FullMethod: ProjectService_UpdateProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProjectServiceServer).UpdateProject(ctx, req.(*v3.Project)) @@ -207,7 +215,7 @@ func _ProjectService_DeleteProject_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.system.v3.ProjectService/DeleteProject", + FullMethod: ProjectService_DeleteProject_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ProjectServiceServer).DeleteProject(ctx, req.(*v3.Project)) diff --git a/proto/rpc/user/group.pb.go b/proto/rpc/user/group.pb.go index aedb215..2529a0b 100644 --- a/proto/rpc/user/group.pb.go +++ b/proto/rpc/user/group.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/user/group.proto @@ -104,46 +104,46 @@ var file_proto_rpc_user_group_proto_rawDesc = []byte{ 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x7b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xf5, 0x04, - 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, - 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, - 0x63, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x33, 0xa2, 0x02, 0x04, - 0x50, 0x44, 0x52, 0x55, 0xaa, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, - 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x33, 0xca, 0x02, - 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, - 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, - 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, - 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, - 0x70, 0x63, 0x3a, 0x3a, 0x55, 0x73, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x95, 0x03, - 0x12, 0x2e, 0x0a, 0x18, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, - 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x51, 0x0a, 0x03, 0x34, - 0x30, 0x33, 0x12, 0x4a, 0x0a, 0x48, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, - 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x64, 0x6f, - 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, - 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, - 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, - 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, - 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, - 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, - 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, - 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, - 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, - 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, - 0x75, 0x74, 0x68, 0x12, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x92, 0x41, 0x95, 0x03, 0x12, 0x2e, 0x0a, 0x18, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x20, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, + 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, + 0x51, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, 0x4a, 0x0a, 0x48, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, + 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, + 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, + 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, + 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, + 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, + 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, + 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, + 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x75, + 0x73, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x0a, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, + 0x75, 0x73, 0x65, 0x72, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x55, 0xaa, 0x02, 0x17, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, + 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, + 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, + 0x52, 0x70, 0x63, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x55, 0x73, 0x65, + 0x72, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_proto_rpc_user_group_proto_goTypes = []interface{}{ diff --git a/proto/rpc/user/group.pb.gw.go b/proto/rpc/user/group.pb.gw.go index d4aa9c6..142f5ca 100644 --- a/proto/rpc/user/group.pb.gw.go +++ b/proto/rpc/user/group.pb.gw.go @@ -122,7 +122,7 @@ func local_request_GroupService_CreateGroup_0(ctx context.Context, marshaler run } var ( - filter_GroupService_GetGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{"partner": 0, "organization": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} + filter_GroupService_GetGroups_0 = &utilities.DoubleArray{Encoding: map[string]int{"partner": 0, "organization": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} ) func request_GroupService_GetGroups_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -212,7 +212,7 @@ func local_request_GroupService_GetGroups_0(ctx context.Context, marshaler runti } var ( - filter_GroupService_GetGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_GroupService_GetGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_GroupService_GetGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -430,7 +430,7 @@ func local_request_GroupService_UpdateGroup_0(ctx context.Context, marshaler run } var ( - filter_GroupService_DeleteGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} + filter_GroupService_DeleteGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "partner": 1, "organization": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} ) func request_GroupService_DeleteGroup_0(ctx context.Context, marshaler runtime.Marshaler, client GroupServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -676,7 +676,7 @@ func RegisterGroupServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu // RegisterGroupServiceHandlerFromEndpoint is same as RegisterGroupServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterGroupServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/user/group_grpc.pb.go b/proto/rpc/user/group_grpc.pb.go index 3bf70b6..2b06f46 100644 --- a/proto/rpc/user/group_grpc.pb.go +++ b/proto/rpc/user/group_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/user/group.proto @@ -20,6 +20,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + GroupService_CreateGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/CreateGroup" + GroupService_GetGroups_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/GetGroups" + GroupService_GetGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/GetGroup" + GroupService_UpdateGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/UpdateGroup" + GroupService_DeleteGroup_FullMethodName = "/paralus.dev.rpc.user.v3.GroupService/DeleteGroup" +) + // GroupServiceClient is the client API for GroupService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -41,7 +49,7 @@ func NewGroupServiceClient(cc grpc.ClientConnInterface) GroupServiceClient { func (c *groupServiceClient) CreateGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error) { out := new(v3.Group) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.GroupService/CreateGroup", in, out, opts...) + err := c.cc.Invoke(ctx, GroupService_CreateGroup_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -50,7 +58,7 @@ func (c *groupServiceClient) CreateGroup(ctx context.Context, in *v3.Group, opts func (c *groupServiceClient) GetGroups(ctx context.Context, in *v31.QueryOptions, opts ...grpc.CallOption) (*v3.GroupList, error) { out := new(v3.GroupList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.GroupService/GetGroups", in, out, opts...) + err := c.cc.Invoke(ctx, GroupService_GetGroups_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -59,7 +67,7 @@ func (c *groupServiceClient) GetGroups(ctx context.Context, in *v31.QueryOptions func (c *groupServiceClient) GetGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error) { out := new(v3.Group) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.GroupService/GetGroup", in, out, opts...) + err := c.cc.Invoke(ctx, GroupService_GetGroup_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -68,7 +76,7 @@ func (c *groupServiceClient) GetGroup(ctx context.Context, in *v3.Group, opts .. func (c *groupServiceClient) UpdateGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error) { out := new(v3.Group) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.GroupService/UpdateGroup", in, out, opts...) + err := c.cc.Invoke(ctx, GroupService_UpdateGroup_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -77,7 +85,7 @@ func (c *groupServiceClient) UpdateGroup(ctx context.Context, in *v3.Group, opts func (c *groupServiceClient) DeleteGroup(ctx context.Context, in *v3.Group, opts ...grpc.CallOption) (*v3.Group, error) { out := new(v3.Group) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.GroupService/DeleteGroup", in, out, opts...) + err := c.cc.Invoke(ctx, GroupService_DeleteGroup_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -136,7 +144,7 @@ func _GroupService_CreateGroup_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.GroupService/CreateGroup", + FullMethod: GroupService_CreateGroup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GroupServiceServer).CreateGroup(ctx, req.(*v3.Group)) @@ -154,7 +162,7 @@ func _GroupService_GetGroups_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.GroupService/GetGroups", + FullMethod: GroupService_GetGroups_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GroupServiceServer).GetGroups(ctx, req.(*v31.QueryOptions)) @@ -172,7 +180,7 @@ func _GroupService_GetGroup_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.GroupService/GetGroup", + FullMethod: GroupService_GetGroup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GroupServiceServer).GetGroup(ctx, req.(*v3.Group)) @@ -190,7 +198,7 @@ func _GroupService_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.GroupService/UpdateGroup", + FullMethod: GroupService_UpdateGroup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GroupServiceServer).UpdateGroup(ctx, req.(*v3.Group)) @@ -208,7 +216,7 @@ func _GroupService_DeleteGroup_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.GroupService/DeleteGroup", + FullMethod: GroupService_DeleteGroup_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GroupServiceServer).DeleteGroup(ctx, req.(*v3.Group)) diff --git a/proto/rpc/user/user.pb.go b/proto/rpc/user/user.pb.go index fb22dbf..da494b4 100644 --- a/proto/rpc/user/user.pb.go +++ b/proto/rpc/user/user.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/user/user.proto @@ -710,47 +710,47 @@ var file_proto_rpc_user_user_proto_rawDesc = []byte{ 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x76, 0x33, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x7b, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x66, 0x6f, - 0x72, 0x67, 0x6f, 0x74, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0xf2, 0x04, 0x0a, - 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x76, 0x33, 0x42, 0x09, 0x55, 0x73, - 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, - 0x52, 0x55, 0xaa, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, - 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x17, 0x50, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x55, - 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x23, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x50, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, - 0x3a, 0x3a, 0x55, 0x73, 0x65, 0x72, 0x3a, 0x3a, 0x56, 0x33, 0x92, 0x41, 0x93, 0x03, 0x12, 0x2d, - 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x20, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, 0x2e, 0x30, 0x2a, 0x01, 0x02, - 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, - 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, 0x03, 0x34, 0x30, 0x33, 0x12, - 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, - 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, 0x3b, 0x0a, 0x03, 0x34, 0x30, - 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x77, 0x68, - 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, - 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x12, - 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, 0x0a, 0x0a, 0x41, 0x70, 0x69, - 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, - 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, 0x21, 0x0a, 0x0c, 0x41, 0x70, - 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, 0x1a, 0x0b, - 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x20, 0x02, 0x0a, 0x0f, 0x0a, - 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, 0x02, 0x08, 0x01, 0x62, 0x31, - 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, - 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, - 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, - 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x67, 0x6f, 0x74, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0xf2, 0x04, 0x92, + 0x41, 0x93, 0x03, 0x12, 0x2d, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x20, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x0d, + 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x20, 0x44, 0x65, 0x76, 0x32, 0x03, 0x32, + 0x2e, 0x30, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x79, 0x61, 0x6d, 0x6c, 0x52, 0x50, 0x0a, + 0x03, 0x34, 0x30, 0x33, 0x12, 0x49, 0x0a, 0x47, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, + 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x64, + 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x70, 0x65, 0x72, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x52, + 0x3b, 0x0a, 0x03, 0x34, 0x30, 0x34, 0x12, 0x34, 0x0a, 0x2a, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, + 0x65, 0x64, 0x20, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x2e, 0x12, 0x06, 0x0a, 0x04, 0x9a, 0x02, 0x01, 0x07, 0x5a, 0x55, 0x0a, 0x1f, + 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, 0x08, 0x02, + 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x4b, 0x45, 0x59, 0x49, 0x44, 0x20, 0x02, 0x0a, + 0x21, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x11, 0x08, 0x02, 0x1a, 0x0b, 0x58, 0x2d, 0x41, 0x50, 0x49, 0x2d, 0x54, 0x4f, 0x4b, 0x45, 0x4e, + 0x20, 0x02, 0x0a, 0x0f, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, 0x41, 0x75, 0x74, 0x68, 0x12, + 0x02, 0x08, 0x01, 0x62, 0x31, 0x0a, 0x0e, 0x0a, 0x0a, 0x41, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x41, + 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x10, 0x0a, 0x0c, 0x41, 0x70, 0x69, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x0d, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x69, 0x63, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x00, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x75, 0x73, 0x65, 0x72, + 0x2e, 0x76, 0x33, 0x42, 0x09, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, + 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x52, 0x55, 0xaa, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x52, 0x70, 0x63, 0x2e, 0x55, 0x73, 0x65, 0x72, + 0x2e, 0x56, 0x33, 0xca, 0x02, 0x17, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, + 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x23, + 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x52, 0x70, 0x63, 0x5c, + 0x55, 0x73, 0x65, 0x72, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, + 0x65, 0x76, 0x3a, 0x3a, 0x52, 0x70, 0x63, 0x3a, 0x3a, 0x55, 0x73, 0x65, 0x72, 0x3a, 0x3a, 0x56, + 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/rpc/user/user.pb.gw.go b/proto/rpc/user/user.pb.gw.go index da9a9d2..09c9051 100644 --- a/proto/rpc/user/user.pb.gw.go +++ b/proto/rpc/user/user.pb.gw.go @@ -138,7 +138,7 @@ func local_request_UserService_GetUsers_0(ctx context.Context, marshaler runtime } var ( - filter_UserService_GetUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_UserService_GetUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_UserService_GetUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -346,7 +346,7 @@ func local_request_UserService_UpdateUserForceReset_0(ctx context.Context, marsh } var ( - filter_UserService_DeleteUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}} + filter_UserService_DeleteUser_0 = &utilities.DoubleArray{Encoding: map[string]int{"metadata": 0, "name": 1}, Base: []int{1, 2, 3, 2, 0, 0}, Check: []int{0, 1, 1, 2, 4, 3}} ) func request_UserService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, client UserServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -434,7 +434,7 @@ func local_request_UserService_DownloadCliConfig_0(ctx context.Context, marshale } var ( - filter_UserService_UserListApiKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"username": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} + filter_UserService_UserListApiKeys_0 = &utilities.DoubleArray{Encoding: map[string]int{"username": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} ) func request_UserService_UserListApiKeys_0(ctx context.Context, marshaler runtime.Marshaler, client UserServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -939,7 +939,7 @@ func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux // RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) + conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err } diff --git a/proto/rpc/user/user_grpc.pb.go b/proto/rpc/user/user_grpc.pb.go index 4e2d141..10e2c70 100644 --- a/proto/rpc/user/user_grpc.pb.go +++ b/proto/rpc/user/user_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/user/user.proto @@ -20,6 +20,21 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + UserService_AuditLogWebhook_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/AuditLogWebhook" + UserService_CreateUser_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/CreateUser" + UserService_GetUsers_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/GetUsers" + UserService_GetUser_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/GetUser" + UserService_GetUserInfo_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/GetUserInfo" + UserService_UpdateUser_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UpdateUser" + UserService_UpdateUserForceReset_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UpdateUserForceReset" + UserService_DeleteUser_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/DeleteUser" + UserService_DownloadCliConfig_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/DownloadCliConfig" + UserService_UserListApiKeys_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UserListApiKeys" + UserService_UserDeleteApiKeys_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UserDeleteApiKeys" + UserService_UserForgotPassword_FullMethodName = "/paralus.dev.rpc.user.v3.UserService/UserForgotPassword" +) + // UserServiceClient is the client API for UserService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -48,7 +63,7 @@ func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient { func (c *userServiceClient) AuditLogWebhook(ctx context.Context, in *UserLoginAuditRequest, opts ...grpc.CallOption) (*UserLoginAuditResponse, error) { out := new(UserLoginAuditResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/AuditLogWebhook", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_AuditLogWebhook_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -57,7 +72,7 @@ func (c *userServiceClient) AuditLogWebhook(ctx context.Context, in *UserLoginAu func (c *userServiceClient) CreateUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error) { out := new(v3.User) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/CreateUser", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_CreateUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -66,7 +81,7 @@ func (c *userServiceClient) CreateUser(ctx context.Context, in *v3.User, opts .. func (c *userServiceClient) GetUsers(ctx context.Context, in *v31.QueryOptions, opts ...grpc.CallOption) (*v3.UserList, error) { out := new(v3.UserList) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/GetUsers", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_GetUsers_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -75,7 +90,7 @@ func (c *userServiceClient) GetUsers(ctx context.Context, in *v31.QueryOptions, func (c *userServiceClient) GetUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error) { out := new(v3.User) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/GetUser", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_GetUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -84,7 +99,7 @@ func (c *userServiceClient) GetUser(ctx context.Context, in *v3.User, opts ...gr func (c *userServiceClient) GetUserInfo(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.UserInfo, error) { out := new(v3.UserInfo) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/GetUserInfo", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_GetUserInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -93,7 +108,7 @@ func (c *userServiceClient) GetUserInfo(ctx context.Context, in *v3.User, opts . func (c *userServiceClient) UpdateUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*v3.User, error) { out := new(v3.User) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/UpdateUser", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_UpdateUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -102,7 +117,7 @@ func (c *userServiceClient) UpdateUser(ctx context.Context, in *v3.User, opts .. func (c *userServiceClient) UpdateUserForceReset(ctx context.Context, in *UpdateForceResetRequest, opts ...grpc.CallOption) (*UpdateForceResetResponse, error) { out := new(UpdateForceResetResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/UpdateUserForceReset", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_UpdateUserForceReset_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -111,7 +126,7 @@ func (c *userServiceClient) UpdateUserForceReset(ctx context.Context, in *Update func (c *userServiceClient) DeleteUser(ctx context.Context, in *v3.User, opts ...grpc.CallOption) (*UserDeleteApiKeysResponse, error) { out := new(UserDeleteApiKeysResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/DeleteUser", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_DeleteUser_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -120,7 +135,7 @@ func (c *userServiceClient) DeleteUser(ctx context.Context, in *v3.User, opts .. func (c *userServiceClient) DownloadCliConfig(ctx context.Context, in *CliConfigRequest, opts ...grpc.CallOption) (*v31.HttpBody, error) { out := new(v31.HttpBody) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/DownloadCliConfig", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_DownloadCliConfig_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -129,7 +144,7 @@ func (c *userServiceClient) DownloadCliConfig(ctx context.Context, in *CliConfig func (c *userServiceClient) UserListApiKeys(ctx context.Context, in *ApiKeyRequest, opts ...grpc.CallOption) (*UserListApiKeysResponse, error) { out := new(UserListApiKeysResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/UserListApiKeys", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_UserListApiKeys_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -138,7 +153,7 @@ func (c *userServiceClient) UserListApiKeys(ctx context.Context, in *ApiKeyReque func (c *userServiceClient) UserDeleteApiKeys(ctx context.Context, in *ApiKeyRequest, opts ...grpc.CallOption) (*UserDeleteApiKeysResponse, error) { out := new(UserDeleteApiKeysResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/UserDeleteApiKeys", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_UserDeleteApiKeys_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -147,7 +162,7 @@ func (c *userServiceClient) UserDeleteApiKeys(ctx context.Context, in *ApiKeyReq func (c *userServiceClient) UserForgotPassword(ctx context.Context, in *UserForgotPasswordRequest, opts ...grpc.CallOption) (*UserForgotPasswordResponse, error) { out := new(UserForgotPasswordResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.user.v3.UserService/UserForgotPassword", in, out, opts...) + err := c.cc.Invoke(ctx, UserService_UserForgotPassword_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -234,7 +249,7 @@ func _UserService_AuditLogWebhook_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/AuditLogWebhook", + FullMethod: UserService_AuditLogWebhook_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).AuditLogWebhook(ctx, req.(*UserLoginAuditRequest)) @@ -252,7 +267,7 @@ func _UserService_CreateUser_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/CreateUser", + FullMethod: UserService_CreateUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).CreateUser(ctx, req.(*v3.User)) @@ -270,7 +285,7 @@ func _UserService_GetUsers_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/GetUsers", + FullMethod: UserService_GetUsers_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetUsers(ctx, req.(*v31.QueryOptions)) @@ -288,7 +303,7 @@ func _UserService_GetUser_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/GetUser", + FullMethod: UserService_GetUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetUser(ctx, req.(*v3.User)) @@ -306,7 +321,7 @@ func _UserService_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/GetUserInfo", + FullMethod: UserService_GetUserInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).GetUserInfo(ctx, req.(*v3.User)) @@ -324,7 +339,7 @@ func _UserService_UpdateUser_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/UpdateUser", + FullMethod: UserService_UpdateUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UpdateUser(ctx, req.(*v3.User)) @@ -342,7 +357,7 @@ func _UserService_UpdateUserForceReset_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/UpdateUserForceReset", + FullMethod: UserService_UpdateUserForceReset_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UpdateUserForceReset(ctx, req.(*UpdateForceResetRequest)) @@ -360,7 +375,7 @@ func _UserService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/DeleteUser", + FullMethod: UserService_DeleteUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).DeleteUser(ctx, req.(*v3.User)) @@ -378,7 +393,7 @@ func _UserService_DownloadCliConfig_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/DownloadCliConfig", + FullMethod: UserService_DownloadCliConfig_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).DownloadCliConfig(ctx, req.(*CliConfigRequest)) @@ -396,7 +411,7 @@ func _UserService_UserListApiKeys_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/UserListApiKeys", + FullMethod: UserService_UserListApiKeys_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UserListApiKeys(ctx, req.(*ApiKeyRequest)) @@ -414,7 +429,7 @@ func _UserService_UserDeleteApiKeys_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/UserDeleteApiKeys", + FullMethod: UserService_UserDeleteApiKeys_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UserDeleteApiKeys(ctx, req.(*ApiKeyRequest)) @@ -432,7 +447,7 @@ func _UserService_UserForgotPassword_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.user.v3.UserService/UserForgotPassword", + FullMethod: UserService_UserForgotPassword_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserServiceServer).UserForgotPassword(ctx, req.(*UserForgotPasswordRequest)) diff --git a/proto/rpc/v3/auth.pb.go b/proto/rpc/v3/auth.pb.go index 63cfcff..b259429 100644 --- a/proto/rpc/v3/auth.pb.go +++ b/proto/rpc/v3/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/rpc/v3/auth.proto diff --git a/proto/rpc/v3/auth_grpc.pb.go b/proto/rpc/v3/auth_grpc.pb.go index 2aeedf0..90e9868 100644 --- a/proto/rpc/v3/auth_grpc.pb.go +++ b/proto/rpc/v3/auth_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: proto/rpc/v3/auth.proto @@ -19,6 +19,10 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AuthService_IsRequestAllowed_FullMethodName = "/paralus.dev.rpc.auth.v3.AuthService/IsRequestAllowed" +) + // AuthServiceClient is the client API for AuthService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +40,7 @@ func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient { func (c *authServiceClient) IsRequestAllowed(ctx context.Context, in *v3.IsRequestAllowedRequest, opts ...grpc.CallOption) (*v3.IsRequestAllowedResponse, error) { out := new(v3.IsRequestAllowedResponse) - err := c.cc.Invoke(ctx, "/paralus.dev.rpc.auth.v3.AuthService/IsRequestAllowed", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_IsRequestAllowed_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -79,7 +83,7 @@ func _AuthService_IsRequestAllowed_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/paralus.dev.rpc.auth.v3.AuthService/IsRequestAllowed", + FullMethod: AuthService_IsRequestAllowed_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).IsRequestAllowed(ctx, req.(*v3.IsRequestAllowedRequest)) diff --git a/proto/types/audit/audit.pb.go b/proto/types/audit/audit.pb.go index 82716d7..3da4042 100644 --- a/proto/types/audit/audit.pb.go +++ b/proto/types/audit/audit.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.27.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/audit/audit.proto @@ -87,6 +87,7 @@ type Aggregations struct { GroupByKind *AggregatorGroup `protobuf:"bytes,4,opt,name=group_by_kind,json=groupByKind,proto3" json:"group_by_kind,omitempty"` GroupByMethod *AggregatorGroup `protobuf:"bytes,5,opt,name=group_by_method,json=groupByMethod,proto3" json:"group_by_method,omitempty"` GroupByNamespace *AggregatorGroup `protobuf:"bytes,6,opt,name=group_by_namespace,json=groupByNamespace,proto3" json:"group_by_namespace,omitempty"` + GroupByProject *AggregatorGroup `protobuf:"bytes,7,opt,name=group_by_project,json=groupByProject,proto3" json:"group_by_project,omitempty"` } func (x *Aggregations) Reset() { @@ -163,6 +164,13 @@ func (x *Aggregations) GetGroupByNamespace() *AggregatorGroup { return nil } +func (x *Aggregations) GetGroupByProject() *AggregatorGroup { + if x != nil { + return x.GroupByProject + } + return nil +} + type AggregatorGroup struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -440,6 +448,7 @@ type Data struct { Un string `protobuf:"bytes,26,opt,name=un,proto3" json:"un,omitempty"` Url string `protobuf:"bytes,27,opt,name=url,proto3" json:"url,omitempty"` W int32 `protobuf:"varint,28,opt,name=w,proto3" json:"w,omitempty"` + Pr string `protobuf:"bytes,29,opt,name=pr,proto3" json:"pr,omitempty"` } func (x *Data) Reset() { @@ -670,6 +679,13 @@ func (x *Data) GetW() int32 { return 0 } +func (x *Data) GetPr() string { + if x != nil { + return x.Pr + } + return "" +} + type Actor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -971,7 +987,7 @@ var file_proto_types_audit_audit_proto_rawDesc = []byte{ 0x68, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x69, 0x74, 0x73, 0x52, 0x04, 0x68, 0x69, - 0x74, 0x73, 0x22, 0x90, 0x04, 0x0a, 0x0c, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, + 0x74, 0x73, 0x22, 0xe7, 0x04, 0x0a, 0x0c, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4f, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, @@ -1004,110 +1020,117 @@ var file_proto_types_audit_audit_proto_rawDesc = []byte{ 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x4e, 0x61, 0x6d, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x54, 0x0a, 0x0f, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, - 0x74, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x41, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, - 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x70, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x0b, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, - 0x63, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, - 0x6f, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x22, 0x46, 0x0a, 0x0e, 0x44, 0x61, 0x74, - 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x34, 0x0a, 0x04, 0x6a, - 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x61, - 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x6a, 0x73, 0x6f, - 0x6e, 0x22, 0x51, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x43, 0x0a, 0x07, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, + 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2b, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x67, + 0x72, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x54, 0x0a, 0x0f, + 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x41, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x27, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, + 0x74, 0x73, 0x22, 0x3c, 0x0a, 0x0b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, 0x63, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x22, 0x46, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x53, + 0x4f, 0x4e, 0x12, 0x34, 0x0a, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x06, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x04, 0x48, 0x69, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x04, - 0x68, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x61, 0x72, - 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, - 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x04, 0x68, 0x69, 0x74, 0x73, 0x22, 0xfb, 0x04, 0x0a, 0x04, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x37, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, - 0x74, 0x6f, 0x72, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, - 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x61, 0x76, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x61, 0x76, 0x12, 0x0e, 0x0a, 0x02, 0x63, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x63, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x01, 0x52, - 0x01, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6b, - 0x12, 0x0c, 0x0a, 0x01, 0x6d, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6d, 0x12, 0x0c, - 0x0a, 0x01, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6e, 0x12, 0x0e, 0x0a, 0x02, - 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6e, 0x73, 0x12, 0x0c, 0x0a, 0x01, - 0x6f, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6f, 0x12, 0x0c, 0x0a, 0x01, 0x70, 0x18, - 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x70, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x15, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x01, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x72, 0x61, 0x18, 0x16, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x72, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x73, 0x63, 0x18, 0x17, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x02, 0x73, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x73, 0x74, 0x18, 0x18, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x73, 0x18, 0x19, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x74, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x75, 0x6e, 0x18, 0x1a, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x75, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x1b, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x1c, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x01, 0x77, 0x22, 0x72, 0x0a, 0x05, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x12, - 0x3d, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, 0x07, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0x5f, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, - 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x22, 0x5e, 0x0a, 0x06, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, - 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, - 0x74, 0x61, 0x22, 0x2f, 0x0a, 0x0a, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x74, 0x61, - 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x42, 0xef, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, + 0x74, 0x61, 0x52, 0x04, 0x6a, 0x73, 0x6f, 0x6e, 0x22, 0x51, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x07, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, + 0x53, 0x4f, 0x4e, 0x52, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x42, 0x0a, 0x04, 0x48, + 0x69, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x04, 0x68, 0x69, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x04, 0x68, 0x69, 0x74, 0x73, 0x22, + 0x8b, 0x05, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x37, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x61, 0x63, 0x74, 0x6f, + 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x3a, 0x0a, + 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, + 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x64, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, - 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, 0x75, 0x64, 0x69, 0x74, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x61, 0x75, 0x64, - 0x69, 0x74, 0x3b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x54, - 0x41, 0xaa, 0x02, 0x1a, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x1a, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x26, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, - 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, - 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x41, 0x75, 0x64, 0x69, - 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x06, 0x64, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x12, 0x16, 0x0a, + 0x06, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, + 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x61, + 0x76, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x61, 0x76, 0x12, 0x0e, 0x0a, 0x02, 0x63, + 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x63, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x64, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x01, 0x52, 0x01, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0c, 0x0a, 0x01, 0x6b, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x6b, 0x12, 0x0c, 0x0a, 0x01, 0x6d, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x01, 0x6d, 0x12, 0x0c, 0x0a, 0x01, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x01, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x6e, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x6f, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, + 0x6f, 0x12, 0x0c, 0x0a, 0x01, 0x70, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x70, 0x12, + 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x71, 0x12, 0x0e, 0x0a, + 0x02, 0x72, 0x61, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x72, 0x61, 0x12, 0x0e, 0x0a, + 0x02, 0x73, 0x63, 0x18, 0x17, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x73, 0x63, 0x12, 0x0e, 0x0a, + 0x02, 0x73, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x74, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x73, 0x12, 0x0e, 0x0a, + 0x02, 0x75, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x75, 0x6e, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x72, 0x6c, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, + 0x0c, 0x0a, 0x01, 0x77, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x77, 0x12, 0x0e, 0x0a, + 0x02, 0x70, 0x72, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x70, 0x72, 0x22, 0x72, 0x0a, + 0x05, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x3d, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x22, 0x25, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x5f, 0x0a, 0x06, 0x43, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, + 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x5e, 0x0a, 0x06, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, + 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4d, + 0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0x2f, 0x0a, 0x0a, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0xef, 0x01, 0x0a, 0x1e, 0x63, + 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, + 0x75, 0x64, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x34, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x3b, 0x61, 0x75, 0x64, 0x69, 0x74, 0x76, + 0x31, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x54, 0x41, 0xaa, 0x02, 0x1a, 0x50, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x75, 0x64, + 0x69, 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1a, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, + 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x26, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, + 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x41, 0x75, 0x64, 0x69, 0x74, 0x5c, 0x56, 0x31, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, 0x50, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x3a, 0x3a, 0x41, 0x75, 0x64, 0x69, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1147,20 +1170,21 @@ var file_proto_types_audit_audit_proto_depIdxs = []int32{ 2, // 5: paralus.dev.types.audit.v1.Aggregations.group_by_kind:type_name -> paralus.dev.types.audit.v1.AggregatorGroup 2, // 6: paralus.dev.types.audit.v1.Aggregations.group_by_method:type_name -> paralus.dev.types.audit.v1.AggregatorGroup 2, // 7: paralus.dev.types.audit.v1.Aggregations.group_by_namespace:type_name -> paralus.dev.types.audit.v1.AggregatorGroup - 3, // 8: paralus.dev.types.audit.v1.AggregatorGroup.buckets:type_name -> paralus.dev.types.audit.v1.GroupByType - 7, // 9: paralus.dev.types.audit.v1.DataSourceJSON.json:type_name -> paralus.dev.types.audit.v1.Data - 4, // 10: paralus.dev.types.audit.v1.DataSource._source:type_name -> paralus.dev.types.audit.v1.DataSourceJSON - 5, // 11: paralus.dev.types.audit.v1.Hits.hits:type_name -> paralus.dev.types.audit.v1.DataSource - 8, // 12: paralus.dev.types.audit.v1.Data.actor:type_name -> paralus.dev.types.audit.v1.Actor - 10, // 13: paralus.dev.types.audit.v1.Data.client:type_name -> paralus.dev.types.audit.v1.Client - 11, // 14: paralus.dev.types.audit.v1.Data.detail:type_name -> paralus.dev.types.audit.v1.Detail - 9, // 15: paralus.dev.types.audit.v1.Actor.account:type_name -> paralus.dev.types.audit.v1.Account - 12, // 16: paralus.dev.types.audit.v1.Detail.meta:type_name -> paralus.dev.types.audit.v1.DetailMeta - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 2, // 8: paralus.dev.types.audit.v1.Aggregations.group_by_project:type_name -> paralus.dev.types.audit.v1.AggregatorGroup + 3, // 9: paralus.dev.types.audit.v1.AggregatorGroup.buckets:type_name -> paralus.dev.types.audit.v1.GroupByType + 7, // 10: paralus.dev.types.audit.v1.DataSourceJSON.json:type_name -> paralus.dev.types.audit.v1.Data + 4, // 11: paralus.dev.types.audit.v1.DataSource._source:type_name -> paralus.dev.types.audit.v1.DataSourceJSON + 5, // 12: paralus.dev.types.audit.v1.Hits.hits:type_name -> paralus.dev.types.audit.v1.DataSource + 8, // 13: paralus.dev.types.audit.v1.Data.actor:type_name -> paralus.dev.types.audit.v1.Actor + 10, // 14: paralus.dev.types.audit.v1.Data.client:type_name -> paralus.dev.types.audit.v1.Client + 11, // 15: paralus.dev.types.audit.v1.Data.detail:type_name -> paralus.dev.types.audit.v1.Detail + 9, // 16: paralus.dev.types.audit.v1.Actor.account:type_name -> paralus.dev.types.audit.v1.Account + 12, // 17: paralus.dev.types.audit.v1.Detail.meta:type_name -> paralus.dev.types.audit.v1.DetailMeta + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_proto_types_audit_audit_proto_init() } diff --git a/proto/types/audit/audit.proto b/proto/types/audit/audit.proto index 9b9caff..ccc3ae9 100644 --- a/proto/types/audit/audit.proto +++ b/proto/types/audit/audit.proto @@ -15,6 +15,7 @@ message Aggregations { AggregatorGroup group_by_kind = 4; AggregatorGroup group_by_method = 5; AggregatorGroup group_by_namespace = 6; + AggregatorGroup group_by_project = 7; } message AggregatorGroup { @@ -69,6 +70,7 @@ message Data { string un = 26; string url = 27; int32 w = 28; + string pr = 29; } message Actor { diff --git a/proto/types/authz/authz.pb.go b/proto/types/authz/authz.pb.go index 6fede10..3d99a50 100644 --- a/proto/types/authz/authz.pb.go +++ b/proto/types/authz/authz.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/authz/authz.proto diff --git a/proto/types/commonpb/v3/artifacts.pb.go b/proto/types/commonpb/v3/artifacts.pb.go index 5370a13..6adf46e 100644 --- a/proto/types/commonpb/v3/artifacts.pb.go +++ b/proto/types/commonpb/v3/artifacts.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/commonpb/v3/artifacts.proto @@ -461,6 +461,7 @@ type ArtifactSpec struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Types that are assignable to Artifact: + // // *ArtifactSpec_UploadedYAML // *ArtifactSpec_UploadedHelm // *ArtifactSpec_YamlInGitRepo @@ -469,6 +470,7 @@ type ArtifactSpec struct { // *ArtifactSpec_ManagedAlertManger Artifact isArtifactSpec_Artifact `protobuf_oneof:"artifact"` // Types that are assignable to Options: + // // *ArtifactSpec_HelmOptions // *ArtifactSpec_YamlOptions Options isArtifactSpec_Options `protobuf_oneof:"options"` diff --git a/proto/types/commonpb/v3/auth.pb.go b/proto/types/commonpb/v3/auth.pb.go index 793789b..f4e37ab 100644 --- a/proto/types/commonpb/v3/auth.pb.go +++ b/proto/types/commonpb/v3/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/commonpb/v3/auth.proto diff --git a/proto/types/commonpb/v3/common.pb.go b/proto/types/commonpb/v3/common.pb.go index 56cce30..f7694bb 100644 --- a/proto/types/commonpb/v3/common.pb.go +++ b/proto/types/commonpb/v3/common.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/commonpb/v3/common.proto @@ -1123,7 +1123,7 @@ var file_proto_types_commonpb_v3_common_proto_rawDesc = []byte{ 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xf4, 0x08, 0x0a, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xf0, 0x08, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1f, 0x92, 0x41, 0x1c, 0x2a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x14, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, @@ -1169,266 +1169,266 @@ var file_proto_types_commonpb_v3_common_proto_rawDesc = []byte{ 0x25, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x20, 0x74, 0x6f, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x62, 0x65, 0x6c, 0x6f, 0x6e, 0x67, 0x73, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, - 0x14, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, - 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x08, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, - 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x08, 0x75, - 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x6d, - 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x41, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x6d, 0x92, 0x41, 0x6a, 0x0a, 0x35, 0x2a, 0x08, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x18, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, - 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, - 0x01, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0xd2, 0x01, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x32, 0x31, 0x7b, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, - 0x2d, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2c, 0x22, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, - 0x3a, 0x20, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x22, 0x7d, 0x22, 0xa7, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, - 0x65, 0x74, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x1e, 0x92, 0x41, 0x1b, 0x2a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x13, 0x6e, 0x61, - 0x6d, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x4e, 0x92, - 0x41, 0x4b, 0x0a, 0x2d, 0x2a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, - 0x61, 0x32, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, 0x6f, 0x66, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xd2, 0x01, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x32, 0x1a, 0x7b, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x7d, 0x22, 0xea, 0x02, - 0x0a, 0x0b, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x5a, 0x0a, - 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x40, - 0x92, 0x41, 0x3d, 0x2a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x32, 0x32, 0x66, 0x6c, - 0x61, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x69, 0x66, - 0x20, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x80, 0x01, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, - 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x42, 0x3a, 0x92, 0x41, 0x37, 0x2a, 0x08, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x32, 0x2b, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x69, 0x73, 0x20, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x20, - 0x74, 0x6f, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x7c, 0x92, 0x41, - 0x79, 0x0a, 0x3d, 0x2a, 0x0b, 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, - 0x32, 0x24, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, 0x01, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x32, 0x38, 0x7b, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, 0x72, - 0x75, 0x65, 0x2c, 0x22, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x5b, - 0x7b, 0x22, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x7d, 0x5d, 0x7d, 0x22, 0xd0, 0x02, 0x0a, 0x09, 0x44, - 0x72, 0x69, 0x66, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x67, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x4d, 0x92, 0x41, 0x4a, 0x2a, 0x07, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x32, 0x3f, 0x66, 0x6c, 0x61, 0x67, 0x20, 0x74, 0x6f, - 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x69, 0x66, 0x20, 0x64, 0x72, 0x69, 0x66, - 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x12, 0x67, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x4f, 0x92, 0x41, 0x4c, 0x2a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x32, - 0x66, 0x6c, 0x61, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, - 0x69, 0x66, 0x20, 0x73, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0xf2, 0x02, 0x06, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0xf2, 0x02, 0x04, 0x44, 0x65, - 0x6e, 0x79, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x71, 0x92, 0x41, 0x6e, 0x0a, - 0x48, 0x2a, 0x09, 0x44, 0x72, 0x69, 0x66, 0x74, 0x53, 0x70, 0x65, 0x63, 0x32, 0x31, 0x64, 0x72, - 0x69, 0x66, 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, - 0x01, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x32, 0x22, 0x7b, 0x22, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x20, 0x22, 0x44, 0x65, 0x6e, 0x79, 0x22, 0x7d, 0x22, 0x52, 0x0a, - 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, - 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x12, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x0e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x12, 0x36, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x24, 0x92, 0x41, 0x21, 0x2a, 0x03, 0x4b, 0x65, 0x79, 0x32, 0x1a, 0x4b, 0x65, 0x79, - 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0x92, 0x41, 0x25, - 0x2a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x1c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, - 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x70, 0x92, 0x41, - 0x6d, 0x0a, 0x40, 0x2a, 0x0e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x32, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, 0x01, 0x03, 0x6b, 0x65, 0x79, 0xd2, 0x01, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x32, 0x29, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, - 0x6d, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x22, 0x2c, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3a, - 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7d, 0x22, 0xc0, - 0x02, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x12, 0x6e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2b, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, - 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x29, 0x92, - 0x41, 0x26, 0x2a, 0x06, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x32, 0x1c, 0x6c, 0x69, 0x73, 0x74, - 0x20, 0x6f, 0x66, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x70, - 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x4a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x2e, 0x92, 0x41, 0x2b, 0x2a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x32, 0x1f, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x20, 0x73, 0x74, - 0x79, 0x6c, 0x65, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x20, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x3a, 0x73, 0x92, 0x41, - 0x70, 0x0a, 0x37, 0x2a, 0x0d, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, - 0x65, 0x63, 0x32, 0x26, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x70, + 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x08, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, + 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, 0x75, 0x72, 0x6c, + 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x3f, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, + 0x41, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x41, 0x74, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x3a, 0x6d, 0x92, 0x41, 0x6a, 0x0a, 0x35, 0x2a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x32, 0x18, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, 0x01, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0xd2, 0x01, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x31, 0x7b, 0x22, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x2c, 0x22, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x3a, 0x20, 0x22, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x7d, 0x22, + 0xa6, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x32, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1e, 0x92, + 0x41, 0x1b, 0x2a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0x13, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x6f, + 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x03, 0xe0, 0x41, 0x03, 0x52, 0x02, 0x69, 0x64, 0x3a, 0x4e, 0x92, 0x41, 0x4b, 0x0a, 0x2d, 0x2a, + 0x0b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x32, 0x17, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0xd2, 0x01, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x1a, 0x7b, 0x22, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x7d, 0x22, 0xea, 0x02, 0x0a, 0x0b, 0x53, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x5a, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x40, 0x92, 0x41, 0x3d, 0x2a, 0x07, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x32, 0x32, 0x66, 0x6c, 0x61, 0x67, 0x20, 0x74, 0x6f, + 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x69, 0x66, 0x20, 0x73, 0x68, 0x61, 0x72, + 0x69, 0x6e, 0x67, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, + 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x12, 0x80, 0x01, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x42, 0x3a, 0x92, 0x41, 0x37, 0x2a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x32, 0x2b, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x20, 0x69, 0x73, 0x20, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x20, 0x74, 0x6f, 0x52, 0x08, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x7c, 0x92, 0x41, 0x79, 0x0a, 0x3d, 0x2a, 0x0b, + 0x53, 0x68, 0x61, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x70, 0x65, 0x63, 0x32, 0x24, 0x73, 0x68, 0x61, + 0x72, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0xd2, 0x01, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x32, 0x38, 0x7b, 0x22, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x3a, 0x20, 0x5b, 0x7b, 0x22, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x7d, 0x5d, 0x7d, 0x22, 0xd0, 0x02, 0x0a, 0x09, 0x44, 0x72, 0x69, 0x66, 0x74, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x67, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x42, 0x4d, 0x92, 0x41, 0x4a, 0x2a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x32, 0x3f, 0x66, 0x6c, 0x61, 0x67, 0x20, 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, + 0x69, 0x66, 0x79, 0x20, 0x69, 0x66, 0x20, 0x64, 0x72, 0x69, 0x66, 0x74, 0x20, 0x72, 0x65, 0x63, + 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x67, 0x0a, 0x06, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x4f, 0x92, 0x41, + 0x4c, 0x2a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x32, 0x66, 0x6c, 0x61, 0x67, 0x20, + 0x74, 0x6f, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x79, 0x20, 0x69, 0x66, 0x20, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x73, 0x20, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x20, 0x66, 0x6f, 0x72, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xf2, 0x02, 0x06, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0xf2, 0x02, 0x04, 0x44, 0x65, 0x6e, 0x79, 0x52, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x71, 0x92, 0x41, 0x6e, 0x0a, 0x48, 0x2a, 0x09, 0x44, 0x72, + 0x69, 0x66, 0x74, 0x53, 0x70, 0x65, 0x63, 0x32, 0x31, 0x64, 0x72, 0x69, 0x66, 0x74, 0x20, 0x72, + 0x65, 0x63, 0x6f, 0x6e, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x61, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x32, 0x35, 0x7b, 0x22, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x22, 0x3a, 0x20, 0x5b, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, - 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x22, 0x7d, 0x2c, 0x7b, 0x22, 0x6b, 0x65, - 0x79, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x22, 0x7d, 0x5d, - 0x7d, 0x22, 0x9a, 0x04, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x59, 0x0a, 0x0d, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x33, 0x92, 0x41, 0x30, 0x2a, 0x0e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x54, 0x79, 0x70, 0x65, 0x32, 0x1c, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, - 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x63, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x40, 0x01, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0xc3, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2c, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, - 0x6b, 0x92, 0x41, 0x68, 0x2a, 0x10, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x17, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, - 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x40, - 0x01, 0xf2, 0x02, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4e, 0x6f, 0x74, 0x53, 0x65, 0x74, - 0xf2, 0x02, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, - 0x65, 0x64, 0xf2, 0x02, 0x08, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4f, 0x4b, 0xf2, 0x02, 0x0c, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x0f, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x7c, 0x0a, - 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x3e, - 0x92, 0x41, 0x3b, 0x2a, 0x0c, 0x4c, 0x61, 0x73, 0x74, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x32, 0x29, 0x77, 0x68, 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x69, 0x73, 0x20, - 0x6c, 0x61, 0x73, 0x74, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x40, 0x01, 0x52, 0x0b, - 0x6c, 0x61, 0x73, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0x92, 0x41, 0x2f, - 0x2a, 0x06, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x32, 0x23, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x63, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x40, 0x01, 0x52, - 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x3a, 0x25, 0x92, 0x41, 0x22, 0x0a, 0x20, 0x2a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x14, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, - 0x66, 0x20, 0x61, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x40, 0x01, 0x22, 0xae, - 0x08, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x0c, 0x0a, 0x01, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x71, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, - 0x07, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, - 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x72, - 0x6f, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x4d, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x35, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x5c, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, - 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x76, 0x33, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, 0x63, 0x6f, 0x70, - 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, - 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x63, 0x6f, 0x70, - 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, - 0x63, 0x6f, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, - 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x1a, - 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x72, - 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x72, - 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x53, 0x4f, 0x55, - 0x73, 0x65, 0x72, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x53, 0x4f, - 0x55, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x06, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x6c, 0x75, 0x65, - 0x70, 0x72, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x62, 0x6c, 0x75, 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x12, 0x2a, 0x0a, 0x10, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, - 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x49, 0x44, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x1c, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, - 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x41, 0x0a, 0x08, 0x48, 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x2a, 0x58, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4e, - 0x6f, 0x74, 0x53, 0x65, 0x74, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4f, 0x4b, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x2a, 0xa9, 0x01, 0x0a, - 0x16, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x53, 0x65, - 0x74, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x01, - 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x10, 0x02, - 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x03, 0x12, 0x0a, 0x0a, - 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x74, - 0x72, 0x79, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x10, - 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x10, 0x07, 0x12, 0x0b, - 0x0a, 0x07, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x53, - 0x74, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x10, 0x09, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, - 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0x10, 0x0a, 0x42, 0xfc, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, - 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, - 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0x2f, 0x76, 0x33, 0x3b, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x54, 0x43, 0xaa, - 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x1b, - 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x27, 0x50, 0x61, - 0x72, 0x61, 0x6c, 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, - 0x3a, 0x44, 0x65, 0x76, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0xd2, 0x01, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x32, 0x22, 0x7b, 0x22, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, + 0x3a, 0x20, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3a, + 0x20, 0x22, 0x44, 0x65, 0x6e, 0x79, 0x22, 0x7d, 0x22, 0x52, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x52, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0xfa, 0x01, 0x0a, + 0x0e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, + 0x36, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x24, 0x92, 0x41, + 0x21, 0x2a, 0x03, 0x4b, 0x65, 0x79, 0x32, 0x1a, 0x4b, 0x65, 0x79, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x28, 0x92, 0x41, 0x25, 0x2a, 0x05, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x32, 0x1c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x70, 0x92, 0x41, 0x6d, 0x0a, 0x40, 0x2a, 0x0e, + 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x32, 0x20, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0xd2, 0x01, 0x03, 0x6b, 0x65, 0x79, 0xd2, 0x01, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x32, 0x29, + 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x6b, 0x65, + 0x79, 0x22, 0x2c, 0x22, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, + 0x65, 0x2d, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7d, 0x22, 0xc0, 0x02, 0x0a, 0x0d, 0x50, 0x6c, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x6e, 0x0a, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x42, 0x29, 0x92, 0x41, 0x26, 0x2a, 0x06, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x32, 0x1c, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x4a, 0x0a, 0x08, 0x73, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2e, 0x92, + 0x41, 0x2b, 0x2a, 0x08, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x32, 0x1f, 0x4b, 0x75, + 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x20, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x20, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x20, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x73, + 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x3a, 0x73, 0x92, 0x41, 0x70, 0x0a, 0x37, 0x2a, 0x0d, + 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x32, 0x26, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x32, 0x35, 0x7b, 0x22, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x22, + 0x3a, 0x20, 0x5b, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x22, 0x73, 0x6f, 0x6d, 0x65, + 0x2d, 0x6b, 0x65, 0x79, 0x22, 0x7d, 0x2c, 0x7b, 0x22, 0x6b, 0x65, 0x79, 0x22, 0x3a, 0x20, 0x22, + 0x73, 0x6f, 0x6d, 0x65, 0x2d, 0x6b, 0x65, 0x79, 0x22, 0x7d, 0x5d, 0x7d, 0x22, 0x9a, 0x04, 0x0a, + 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x59, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x33, + 0x92, 0x41, 0x30, 0x2a, 0x0e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x54, + 0x79, 0x70, 0x65, 0x32, 0x1c, 0x74, 0x79, 0x70, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x40, 0x01, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x12, 0xc3, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x6b, 0x92, 0x41, 0x68, 0x2a, + 0x10, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x32, 0x17, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x40, 0x01, 0xf2, 0x02, 0x0c, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x4e, 0x6f, 0x74, 0x53, 0x65, 0x74, 0xf2, 0x02, 0x0f, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, 0x64, 0xf2, 0x02, 0x08, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4f, 0x4b, 0xf2, 0x02, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x7c, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x3e, 0x92, 0x41, 0x3b, 0x2a, 0x0c, + 0x4c, 0x61, 0x73, 0x74, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x32, 0x29, 0x77, 0x68, + 0x65, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x69, 0x73, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x40, 0x01, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x32, 0x92, 0x41, 0x2f, 0x2a, 0x06, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x32, 0x23, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x20, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x40, 0x01, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, + 0x6f, 0x6e, 0x3a, 0x25, 0x92, 0x41, 0x22, 0x0a, 0x20, 0x2a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x32, 0x14, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x20, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x40, 0x01, 0x22, 0xae, 0x08, 0x0a, 0x0c, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0c, 0x0a, 0x01, 0x71, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x72, 0x74, + 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x72, 0x74, 0x6e, + 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x70, + 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x5c, 0x0a, 0x0b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3a, 0x2e, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x12, 0x52, + 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x12, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2e, 0x0a, + 0x12, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x67, 0x6e, 0x6f, 0x72, + 0x65, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, + 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x72, 0x6c, 0x53, 0x63, 0x6f, 0x70, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x53, 0x53, 0x4f, 0x55, 0x73, 0x65, 0x72, 0x18, 0x16, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x53, 0x53, 0x4f, 0x55, 0x73, 0x65, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x6c, 0x75, 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, + 0x52, 0x65, 0x66, 0x18, 0x19, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x6c, 0x75, 0x65, 0x70, + 0x72, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x66, 0x12, 0x2a, 0x0a, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x64, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, + 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, + 0x44, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1d, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, + 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x41, 0x0a, 0x08, 0x48, 0x74, + 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x2a, 0x58, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4e, 0x6f, 0x74, 0x53, 0x65, 0x74, + 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x74, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x4f, 0x4b, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x46, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x2a, 0xa9, 0x01, 0x0a, 0x16, 0x50, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x53, 0x65, 0x74, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x49, + 0x6e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, + 0x65, 0x64, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x74, 0x72, 0x79, 0x10, 0x05, 0x12, + 0x0b, 0x0a, 0x07, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x65, 0x64, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, + 0x53, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x64, 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x69, + 0x6e, 0x67, 0x10, 0x09, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x74, 0x65, + 0x64, 0x10, 0x0a, 0x42, 0xfc, 0x01, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x61, 0x72, 0x61, + 0x6c, 0x75, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x33, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x70, 0x62, 0x2f, 0x76, 0x33, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x76, 0x33, 0xa2, 0x02, 0x04, 0x50, 0x44, 0x54, 0x43, 0xaa, 0x02, 0x1b, 0x50, 0x61, 0x72, + 0x61, 0x6c, 0x75, 0x73, 0x2e, 0x44, 0x65, 0x76, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x33, 0xca, 0x02, 0x1b, 0x50, 0x61, 0x72, 0x61, 0x6c, + 0x75, 0x73, 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x5c, 0x56, 0x33, 0xe2, 0x02, 0x27, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, + 0x5c, 0x44, 0x65, 0x76, 0x5c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x5c, 0x56, 0x33, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x1f, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x75, 0x73, 0x3a, 0x3a, 0x44, 0x65, 0x76, 0x3a, + 0x3a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3a, 0x3a, + 0x56, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/types/controller/cluster_controller.pb.go b/proto/types/controller/cluster_controller.pb.go index 97c43fc..5134941 100644 --- a/proto/types/controller/cluster_controller.pb.go +++ b/proto/types/controller/cluster_controller.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/controller/cluster_controller.proto diff --git a/proto/types/infrapb/v3/cluster.pb.go b/proto/types/infrapb/v3/cluster.pb.go index 7777c33..2322200 100644 --- a/proto/types/infrapb/v3/cluster.pb.go +++ b/proto/types/infrapb/v3/cluster.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/infrapb/v3/cluster.proto diff --git a/proto/types/rolepb/v3/role.pb.go b/proto/types/rolepb/v3/role.pb.go index 238d494..4e47631 100644 --- a/proto/types/rolepb/v3/role.pb.go +++ b/proto/types/rolepb/v3/role.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/rolepb/v3/role.proto diff --git a/proto/types/rolepb/v3/rolepermission.pb.go b/proto/types/rolepb/v3/rolepermission.pb.go index 3adfd8c..33b03a4 100644 --- a/proto/types/rolepb/v3/rolepermission.pb.go +++ b/proto/types/rolepb/v3/rolepermission.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/rolepb/v3/rolepermission.proto diff --git a/proto/types/scheduler/namespace.pb.go b/proto/types/scheduler/namespace.pb.go index cb5f403..12878f0 100644 --- a/proto/types/scheduler/namespace.pb.go +++ b/proto/types/scheduler/namespace.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/scheduler/namespace.proto diff --git a/proto/types/sentry/account_permission.pb.go b/proto/types/sentry/account_permission.pb.go index 48fab69..1bffe42 100644 --- a/proto/types/sentry/account_permission.pb.go +++ b/proto/types/sentry/account_permission.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/sentry/account_permission.proto diff --git a/proto/types/sentry/group_permission.pb.go b/proto/types/sentry/group_permission.pb.go index 1e1081f..7ce1749 100644 --- a/proto/types/sentry/group_permission.pb.go +++ b/proto/types/sentry/group_permission.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/sentry/group_permission.proto diff --git a/proto/types/sentry/kubeconfig_setting.pb.go b/proto/types/sentry/kubeconfig_setting.pb.go index 397e497..aeb2301 100644 --- a/proto/types/sentry/kubeconfig_setting.pb.go +++ b/proto/types/sentry/kubeconfig_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/sentry/kubeconfig_setting.proto diff --git a/proto/types/sentry/kubectl_cluster_setting.pb.go b/proto/types/sentry/kubectl_cluster_setting.pb.go index e25d22c..06acfc6 100644 --- a/proto/types/sentry/kubectl_cluster_setting.pb.go +++ b/proto/types/sentry/kubectl_cluster_setting.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/sentry/kubectl_cluster_setting.proto diff --git a/proto/types/sentry/sentry.pb.go b/proto/types/sentry/sentry.pb.go index 94fcc6c..7bbc070 100644 --- a/proto/types/sentry/sentry.pb.go +++ b/proto/types/sentry/sentry.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/sentry/sentry.proto diff --git a/proto/types/systempb/v3/idp.pb.go b/proto/types/systempb/v3/idp.pb.go index 49a022e..255e44e 100644 --- a/proto/types/systempb/v3/idp.pb.go +++ b/proto/types/systempb/v3/idp.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/systempb/v3/idp.proto diff --git a/proto/types/systempb/v3/oidc_provider.pb.go b/proto/types/systempb/v3/oidc_provider.pb.go index 131ed2a..1564f9f 100644 --- a/proto/types/systempb/v3/oidc_provider.pb.go +++ b/proto/types/systempb/v3/oidc_provider.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/systempb/v3/oidc_provider.proto diff --git a/proto/types/systempb/v3/organization.pb.go b/proto/types/systempb/v3/organization.pb.go index 98dc28e..8682b45 100644 --- a/proto/types/systempb/v3/organization.pb.go +++ b/proto/types/systempb/v3/organization.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/systempb/v3/organization.proto diff --git a/proto/types/systempb/v3/partner.pb.go b/proto/types/systempb/v3/partner.pb.go index 82c8d71..8a11a8a 100644 --- a/proto/types/systempb/v3/partner.pb.go +++ b/proto/types/systempb/v3/partner.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/systempb/v3/partner.proto diff --git a/proto/types/systempb/v3/project.pb.go b/proto/types/systempb/v3/project.pb.go index 51a83f6..6f2c10f 100644 --- a/proto/types/systempb/v3/project.pb.go +++ b/proto/types/systempb/v3/project.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/systempb/v3/project.proto diff --git a/proto/types/userpb/v3/group.pb.go b/proto/types/userpb/v3/group.pb.go index 07a06c6..f4e0d05 100644 --- a/proto/types/userpb/v3/group.pb.go +++ b/proto/types/userpb/v3/group.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/userpb/v3/group.proto diff --git a/proto/types/userpb/v3/user.pb.go b/proto/types/userpb/v3/user.pb.go index 59df703..fb5bf5f 100644 --- a/proto/types/userpb/v3/user.pb.go +++ b/proto/types/userpb/v3/user.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.31.0 // protoc (unknown) // source: proto/types/userpb/v3/user.proto diff --git a/scripts/initialize/permissions/ztka/audit_read.json b/scripts/initialize/permissions/ztka/audit_read.json deleted file mode 100644 index 9f53bf7..0000000 --- a/scripts/initialize/permissions/ztka/audit_read.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "audit.read", - "resource_urls": [], - "resource_action_urls": [ - { - "url": "/relay", - "methods": [ - "GET" - ] - } - ], - "base_url": "/event/v1/audit", - "description": "Read system audit logs", - "authenticated": true, - "scope": "ORGANIZATION" -} \ No newline at end of file diff --git a/scripts/initialize/permissions/ztka/org_relayAudit_read.json b/scripts/initialize/permissions/ztka/org_relayAudit_read.json index ec01a8a..f1f58af 100644 --- a/scripts/initialize/permissions/ztka/org_relayAudit_read.json +++ b/scripts/initialize/permissions/ztka/org_relayAudit_read.json @@ -9,7 +9,7 @@ } ], "resource_action_urls": [], - "base_url": "/event/v1/relayaudit", + "base_url": "/event/v1/audit/relay", "description": "Permission to view kubectl audit logs", "authenticated": true, "scope": "ORGANIZATION" diff --git a/scripts/initialize/permissions/ztka/project_audit_read.json b/scripts/initialize/permissions/ztka/project_audit_read.json deleted file mode 100644 index 16b05d6..0000000 --- a/scripts/initialize/permissions/ztka/project_audit_read.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "project.audit.read", - "resource_urls": [], - "resource_action_urls": [ - { - "url": "/relay", - "methods": [ - "GET" - ] - } - ], - "base_url": "/event/v1/project/:project_id/audit", - "description": "View project kubectl audit information", - "authenticated": true, - "scope": "PROJECT" -} \ No newline at end of file diff --git a/scripts/initialize/permissions/ztka/project_relayAudit_read.json b/scripts/initialize/permissions/ztka/project_relayAudit_read.json index 9f16fde..20a3719 100644 --- a/scripts/initialize/permissions/ztka/project_relayAudit_read.json +++ b/scripts/initialize/permissions/ztka/project_relayAudit_read.json @@ -9,7 +9,7 @@ } ], "resource_action_urls": [], - "base_url": "/event/v1/project/:project_id/relayaudit", + "base_url": "/event/v1/project/:project_id/audit/relay", "description": "View project kubectl audit log information", "authenticated": true, "scope": "PROJECT" diff --git a/scripts/initialize/roles/gitops/roles.json b/scripts/initialize/roles/gitops/roles.json index 52d1410..224a6da 100644 --- a/scripts/initialize/roles/gitops/roles.json +++ b/scripts/initialize/roles/gitops/roles.json @@ -49,7 +49,6 @@ "ssouser.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.taskset.read", "project.taskset.write", "project.placement.read", @@ -76,7 +75,6 @@ "project.v2.config.workloadtemplate.write", "org.auditLog.read", "org.relayAudit.read", - "audit.read", "project.repository.read", "project.repository.write", "project.trigger.read", @@ -162,7 +160,6 @@ "project.v2.config.workloadtemplate.read", "org.auditLog.read", "org.relayAudit.read", - "audit.read", "project.repository.read", "project.trigger.read", "project.pipeline.read", @@ -210,7 +207,6 @@ "registryimage.write", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.workload.read", "project.workload.write", "project.workload.customer.read", @@ -295,7 +291,6 @@ "registryimage.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.workload.read", "project.workload.customer.read", "project.taskset.read", @@ -353,7 +348,6 @@ "template.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.taskset.read", "project.taskset.write", "project.placement.read", @@ -398,7 +392,6 @@ "template.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.taskset.read", "project.placement.read", "project.override.read", @@ -497,7 +490,6 @@ "template.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "project.taskset.read", "project.placement.read", "project.override.read", diff --git a/scripts/initialize/roles/ztka/roles.json b/scripts/initialize/roles/ztka/roles.json index 58b4804..4cbbb10 100644 --- a/scripts/initialize/roles/ztka/roles.json +++ b/scripts/initialize/roles/ztka/roles.json @@ -24,7 +24,6 @@ "ssouser.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "kubeconfig.read", "kubeconfig.write", "v2debug.read", @@ -33,7 +32,6 @@ "kubectl.fullaccess", "org.auditLog.read", "org.relayAudit.read", - "audit.read", "organization.read", "organization.write", "cluster.read", @@ -58,7 +56,6 @@ "kubectl.cluster.read", "org.auditLog.read", "org.relayAudit.read", - "audit.read", "organization.read", "cluster.read", "hub.openapi.explorer.read" @@ -72,7 +69,6 @@ "project.admin.write", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "kubeconfig.read", "v2debug.read", "kubectl.fullaccess", @@ -89,7 +85,6 @@ "project.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "kubeconfig.read", "v2debug.read", "kubectl.cluster.read", @@ -103,14 +98,12 @@ "project.read", "project.auditLog.read", "project.relayAudit.read", - "project.audit.read", "kubeconfig.read", "v2debug.read", "kubectl.clustersettings.read", "kubectl.clustersettings.write", "kubectl.cluster.read", "cluster.read", - "cluster.write", "kubectl.fullaccess" ] }, diff --git a/server/audit_info.go b/server/audit_info.go index a54c087..27ce06f 100644 --- a/server/audit_info.go +++ b/server/audit_info.go @@ -15,13 +15,14 @@ import ( type auditInfoServer struct { bs service.BootstrapService aps service.AccountPermissionService + prs service.ProjectService } var _ sentryrpc.AuditInformationServiceServer = (*auditInfoServer)(nil) // NewAuditInfoServer returns new Audit Information Server -func NewAuditInfoServer(bs service.BootstrapService, aps service.AccountPermissionService) sentryrpc.AuditInformationServiceServer { - return &auditInfoServer{bs: bs, aps: aps} +func NewAuditInfoServer(bs service.BootstrapService, aps service.AccountPermissionService, prs service.ProjectService) sentryrpc.AuditInformationServiceServer { + return &auditInfoServer{bs: bs, aps: aps, prs: prs} } func (s *auditInfoServer) LookupUser(ctx context.Context, req *sentryrpc.LookupUserRequest) (*sentryrpc.LookupUserResponse, error) { @@ -82,7 +83,16 @@ func (s *auditInfoServer) LookupCluster(ctx context.Context, req *sentryrpc.Look return nil, err } + project, err := s.prs.GetByID(ctx, ba.Metadata.Project) + if err != nil { + _log.Warnw("unable to get project name", "id", ba.Metadata.Project, "error", err) + return nil, err + } + + _log.Infow("project name in lookup cluster", "project", project.Metadata.Name) + return &sentryrpc.LookupClusterResponse{ - Name: ba.Metadata.Labels["paralus.dev/clusterName"], + Name: ba.Metadata.Labels["paralus.dev/clusterName"], + Project: project.Metadata.Name, }, nil } diff --git a/server/auditlog.go b/server/auditlog.go index dc6540b..54cf64b 100644 --- a/server/auditlog.go +++ b/server/auditlog.go @@ -19,9 +19,9 @@ func NewAuditLogServer(auditLogService q.AuditLogService) (v1.AuditLogServiceSer } func (a *auditLogServer) GetAuditLog(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { - return a.as.GetAuditLog(req) + return a.as.GetAuditLog(ctx, req) } func (a *auditLogServer) GetAuditLogByProjects(ctx context.Context, req *v1.GetAuditLogSearchRequest) (res *v1.GetAuditLogSearchResponse, err error) { - return a.as.GetAuditLogByProjects(req) + return a.as.GetAuditLogByProjects(ctx, req) } diff --git a/server/relayaudit.go b/server/relayaudit.go index 09c9a49..332f023 100644 --- a/server/relayaudit.go +++ b/server/relayaudit.go @@ -24,17 +24,9 @@ func NewRelayAuditServer(relayAuditService q.RelayAuditService, relayCommandAudi }, nil } -func (r *relayAuditServer) GetRelayAPIAudit(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { - return r.rs.GetRelayAudit(req) -} - -func (r *relayAuditServer) GetRelayAPIAuditByProjects(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { - return r.rs.GetRelayAuditByProjects(req) -} - func (r *relayAuditServer) GetRelayAudit(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { if req.AuditType == ec.RelayAPIAuditType { - res, err = r.rs.GetRelayAudit(req) + res, err = r.rs.GetRelayAudit(ctx, req) if err != nil { return nil, err } @@ -44,7 +36,7 @@ func (r *relayAuditServer) GetRelayAudit(ctx context.Context, req *v1.RelayAudit if err != nil { return nil, err } - auditRes, err := r.al.GetAuditLog(auditReq) + auditRes, err := r.al.GetAuditLog(ctx, auditReq) if err != nil { return nil, err } @@ -58,7 +50,7 @@ func (r *relayAuditServer) GetRelayAudit(ctx context.Context, req *v1.RelayAudit func (r *relayAuditServer) GetRelayAuditByProjects(ctx context.Context, req *v1.RelayAuditRequest) (res *v1.RelayAuditResponse, err error) { if req.AuditType == ec.RelayAPIAuditType { - res, err = r.rs.GetRelayAuditByProjects(req) + res, err = r.rs.GetRelayAuditByProjects(ctx, req) if err != nil { return nil, err } @@ -68,7 +60,7 @@ func (r *relayAuditServer) GetRelayAuditByProjects(ctx context.Context, req *v1. if err != nil { return nil, err } - auditRes, err := r.al.GetAuditLogByProjects(auditReq) + auditRes, err := r.al.GetAuditLogByProjects(ctx, auditReq) if err != nil { return nil, err } diff --git a/server/relaypeerclient.go b/server/relaypeerclient.go index 36c680a..7864e19 100644 --- a/server/relaypeerclient.go +++ b/server/relaypeerclient.go @@ -14,7 +14,7 @@ import ( relayrpc "github.com/paralus/paralus/proto/rpc/sentry" ) -//RelayClusterConnectionInfo relay conn info +// RelayClusterConnectionInfo relay conn info type RelayClusterConnectionInfo struct { Relayuuid string Relayip string @@ -95,7 +95,7 @@ helloRPCSendLoop: _log.Debugw("Exit: helloRPCSendLoop") } -//ClientHelloRPC will handle periodic heartbeat messages between relay and the core service. +// ClientHelloRPC will handle periodic heartbeat messages between relay and the core service. func ClientHelloRPC(ctx context.Context, stream relayrpc.RelayPeerService_RelayPeerHelloRPCClient, interval time.Duration, relayUUID string, ip func() string) { go helloRPCSend(ctx, stream, interval, relayUUID, ip) @@ -116,7 +116,7 @@ func ClientHelloRPC(ctx context.Context, stream relayrpc.RelayPeerService_RelayP _log.Debugw("stopping helloRPC routine") } -//ClientTLSConfig sets tls config +// ClientTLSConfig sets tls config func ClientTLSConfig(tlsCrt string, tlsKey string, rootCA string, addr string) (*tls.Config, error) { cert, err := tls.LoadX509KeyPair(tlsCrt, tlsKey) @@ -155,7 +155,7 @@ func ClientTLSConfig(tlsCrt string, tlsKey string, rootCA string, addr string) ( }, nil } -//send loop of probe rpc. recvs clustersni from PeerProbeChanel and sends to core service +// send loop of probe rpc. recvs clustersni from PeerProbeChanel and sends to core service func probeRPCSend(ctx context.Context, stream relayrpc.RelayPeerService_RelayPeerProbeRPCClient, relayUUID string, peerProbeChanel chan string) { probeRPCSendLoop: for {